ZhankuiHe commited on
Commit
d1505b3
·
1 Parent(s): d4e7d03

Upload KBRDGen

Browse files
Files changed (3) hide show
  1. config.json +110 -0
  2. generation_config.json +4 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "WEIGHT_DIMENSIONS": {},
3
+ "_name_or_path": "./src/recwizard/modules/kbrd/temp_kbrd_gen",
4
+ "architectures": [
5
+ "KBRDGen"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "dropout": 0.1,
9
+ "embeddings_scale": true,
10
+ "end_idx": 2,
11
+ "ffn_size": 300,
12
+ "gen_dim": 300,
13
+ "learn_positional_embeddings": false,
14
+ "n_heads": 2,
15
+ "n_layers": 2,
16
+ "n_positions": 1024,
17
+ "pad_idx": 0,
18
+ "rec_dim": 128,
19
+ "rec_module_config": {
20
+ "WEIGHT_DIMENSIONS": {
21
+ "edge_index.dtype": "torch.int64",
22
+ "edge_index.shape": [
23
+ 2,
24
+ 358184
25
+ ],
26
+ "edge_type.dtype": "torch.int64",
27
+ "edge_type.shape": [
28
+ 358184
29
+ ],
30
+ "item_index.dtype": "torch.int64",
31
+ "item_index.shape": [
32
+ 6924
33
+ ]
34
+ },
35
+ "_name_or_path": "temp_kbrd_rec",
36
+ "add_cross_attention": false,
37
+ "architectures": [
38
+ "KBRDRec"
39
+ ],
40
+ "bad_words_ids": null,
41
+ "begin_suppress_tokens": null,
42
+ "bos_token_id": null,
43
+ "chunk_size_feed_forward": 0,
44
+ "cross_attention_hidden_size": null,
45
+ "decoder_start_token_id": null,
46
+ "dim": 128,
47
+ "diversity_penalty": 0.0,
48
+ "do_sample": false,
49
+ "early_stopping": false,
50
+ "encoder_no_repeat_ngram_size": 0,
51
+ "eos_token_id": null,
52
+ "exponential_decay_length_penalty": null,
53
+ "finetuning_task": null,
54
+ "forced_bos_token_id": null,
55
+ "forced_eos_token_id": null,
56
+ "id2label": {
57
+ "0": "LABEL_0",
58
+ "1": "LABEL_1"
59
+ },
60
+ "is_decoder": false,
61
+ "is_encoder_decoder": false,
62
+ "label2id": {
63
+ "LABEL_0": 0,
64
+ "LABEL_1": 1
65
+ },
66
+ "length_penalty": 1.0,
67
+ "max_length": 20,
68
+ "min_length": 0,
69
+ "model_type": "",
70
+ "n_entity": 64368,
71
+ "n_relation": 214,
72
+ "no_repeat_ngram_size": 0,
73
+ "num_bases": 8,
74
+ "num_beam_groups": 1,
75
+ "num_beams": 1,
76
+ "num_return_sequences": 1,
77
+ "output_attentions": false,
78
+ "output_hidden_states": false,
79
+ "output_scores": false,
80
+ "pad_token_id": null,
81
+ "prefix": null,
82
+ "problem_type": null,
83
+ "pruned_heads": {},
84
+ "remove_invalid_values": false,
85
+ "repetition_penalty": 1.0,
86
+ "return_dict": true,
87
+ "return_dict_in_generate": false,
88
+ "sep_token_id": null,
89
+ "sub_n_relation": 35,
90
+ "suppress_tokens": null,
91
+ "task_specific_params": null,
92
+ "temperature": 1.0,
93
+ "tf_legacy_loss": false,
94
+ "tie_encoder_decoder": false,
95
+ "tie_word_embeddings": true,
96
+ "tokenizer_class": null,
97
+ "top_k": 50,
98
+ "top_p": 1.0,
99
+ "torch_dtype": "float32",
100
+ "torchscript": false,
101
+ "transformers_version": "4.33.3",
102
+ "typical_p": 1.0,
103
+ "use_bfloat16": false
104
+ },
105
+ "relu_dropout": 0.1,
106
+ "start_idx": 1,
107
+ "torch_dtype": "float32",
108
+ "transformers_version": "4.33.3",
109
+ "vocab_size": 15418
110
+ }
generation_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "transformers_version": "4.33.3"
4
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21afbc4902a882e6473bb902d2022fcfb6dbab14781344183e6e007a932259ba
3
+ size 436081777