khairi commited on
Commit
b205ef8
·
verified ·
1 Parent(s): b455b1a

Upload ProtNLA

Browse files
Files changed (3) hide show
  1. config.json +4 -161
  2. generation_config.json +4 -4
  3. model.safetensors +2 -2
config.json CHANGED
@@ -1,170 +1,13 @@
1
  {
2
  "architectures": [
3
- "EncoderDecoderModel"
4
  ],
5
- "decoder": {
6
- "_name_or_path": "",
7
- "add_cross_attention": true,
8
- "architectures": null,
9
- "attention_probs_dropout_prob": 0.2,
10
- "bad_words_ids": null,
11
- "begin_suppress_tokens": null,
12
- "bos_token_id": 0,
13
- "chunk_size_feed_forward": 0,
14
- "cross_attention_hidden_size": null,
15
- "decoder_start_token_id": 0,
16
- "diversity_penalty": 0.0,
17
- "do_sample": false,
18
- "early_stopping": false,
19
- "embedding_size": 768,
20
- "encoder_no_repeat_ngram_size": 0,
21
- "eos_token_id": null,
22
- "exponential_decay_length_penalty": null,
23
- "finetuning_task": null,
24
- "forced_bos_token_id": null,
25
- "forced_eos_token_id": null,
26
- "hidden_act": "silu",
27
- "hidden_dropout_prob": 0.2,
28
- "hidden_size": 768,
29
- "id2label": {
30
- "0": "LABEL_0",
31
- "1": "LABEL_1"
32
- },
33
- "initializer_range": 0.02,
34
- "intermediate_size": 2048,
35
- "is_decoder": true,
36
- "is_encoder_decoder": false,
37
- "label2id": {
38
- "LABEL_0": 0,
39
- "LABEL_1": 1
40
- },
41
- "layer_norm_eps": 1e-12,
42
- "length_penalty": 1.0,
43
- "max_length": 20,
44
- "max_position_embeddings": 1536,
45
- "min_length": 0,
46
- "model_type": "roformer",
47
- "no_repeat_ngram_size": 0,
48
- "num_attention_heads": 8,
49
- "num_beam_groups": 1,
50
- "num_beams": 1,
51
- "num_hidden_layers": 6,
52
- "num_return_sequences": 1,
53
- "output_attentions": false,
54
- "output_hidden_states": false,
55
- "output_scores": false,
56
- "pad_token_id": 2,
57
- "prefix": null,
58
- "problem_type": null,
59
- "pruned_heads": {},
60
- "remove_invalid_values": false,
61
- "repetition_penalty": 1.0,
62
- "return_dict": true,
63
- "return_dict_in_generate": false,
64
- "rotary_value": false,
65
- "sep_token_id": null,
66
- "suppress_tokens": null,
67
- "task_specific_params": null,
68
- "temperature": 1.0,
69
- "tf_legacy_loss": false,
70
- "tie_encoder_decoder": false,
71
- "tie_word_embeddings": true,
72
- "tokenizer_class": null,
73
- "top_k": 50,
74
- "top_p": 1.0,
75
- "torch_dtype": null,
76
- "torchscript": false,
77
- "type_vocab_size": 2,
78
- "typical_p": 1.0,
79
- "use_bfloat16": false,
80
- "use_cache": true,
81
- "vocab_size": 16681
82
- },
83
  "decoder_start_token_id": 0,
84
- "encoder": {
85
- "_name_or_path": "khairi/ProtFormer",
86
- "add_cross_attention": false,
87
- "architectures": [
88
- "RoFormerForMaskedLM"
89
- ],
90
- "attention_probs_dropout_prob": 0.2,
91
- "bad_words_ids": null,
92
- "begin_suppress_tokens": null,
93
- "bos_token_id": null,
94
- "chunk_size_feed_forward": 0,
95
- "cross_attention_hidden_size": null,
96
- "decoder_start_token_id": null,
97
- "diversity_penalty": 0.0,
98
- "do_sample": false,
99
- "early_stopping": false,
100
- "embedding_size": 768,
101
- "encoder_no_repeat_ngram_size": 0,
102
- "eos_token_id": null,
103
- "exponential_decay_length_penalty": null,
104
- "finetuning_task": null,
105
- "forced_bos_token_id": null,
106
- "forced_eos_token_id": null,
107
- "hidden_act": "silu",
108
- "hidden_dropout_prob": 0.2,
109
- "hidden_size": 768,
110
- "id2label": {
111
- "0": "LABEL_0",
112
- "1": "LABEL_1"
113
- },
114
- "initializer_range": 0.02,
115
- "intermediate_size": 2048,
116
- "is_decoder": false,
117
- "is_encoder_decoder": false,
118
- "label2id": {
119
- "LABEL_0": 0,
120
- "LABEL_1": 1
121
- },
122
- "layer_norm_eps": 1e-12,
123
- "length_penalty": 1.0,
124
- "max_length": 20,
125
- "max_position_embeddings": 1536,
126
- "min_length": 0,
127
- "model_type": "roformer",
128
- "no_repeat_ngram_size": 0,
129
- "num_attention_heads": 6,
130
- "num_beam_groups": 1,
131
- "num_beams": 1,
132
- "num_hidden_layers": 6,
133
- "num_return_sequences": 1,
134
- "output_attentions": false,
135
- "output_hidden_states": false,
136
- "output_scores": false,
137
- "pad_token_id": 2,
138
- "prefix": null,
139
- "problem_type": null,
140
- "pruned_heads": {},
141
- "remove_invalid_values": false,
142
- "repetition_penalty": 1.0,
143
- "return_dict": true,
144
- "return_dict_in_generate": false,
145
- "rotary_value": false,
146
- "sep_token_id": null,
147
- "suppress_tokens": null,
148
- "task_specific_params": null,
149
- "temperature": 1.0,
150
- "tf_legacy_loss": false,
151
- "tie_encoder_decoder": false,
152
- "tie_word_embeddings": true,
153
- "tokenizer_class": null,
154
- "top_k": 50,
155
- "top_p": 1.0,
156
- "torch_dtype": "float32",
157
- "torchscript": false,
158
- "type_vocab_size": 2,
159
- "typical_p": 1.0,
160
- "use_bfloat16": false,
161
- "use_cache": true,
162
- "vocab_size": 25005
163
- },
164
  "is_encoder_decoder": true,
165
  "model_type": "encoder-decoder",
166
  "pad_token_id": 2,
167
  "torch_dtype": "float32",
168
- "transformers_version": "4.39.2",
169
- "vocab_size": 16681
170
  }
 
1
  {
2
  "architectures": [
3
+ "ProtNLA"
4
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  "decoder_start_token_id": 0,
6
+ "eos_token_id": 1,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  "is_encoder_decoder": true,
8
  "model_type": "encoder-decoder",
9
  "pad_token_id": 2,
10
  "torch_dtype": "float32",
11
+ "transformers_version": "4.38.2",
12
+ "vocab_size": 10007
13
  }
generation_config.json CHANGED
@@ -1,12 +1,12 @@
1
  {
2
  "bos_token_id": 0,
3
- "do_sample": true,
4
  "eos_token_id": 1,
5
- "max_new_tokens": 20,
6
- "num_return_sequences": 5,
7
  "output_logits": true,
8
  "output_scores": true,
9
  "pad_token_id": 2,
10
  "repetition_penalty": 1.3,
11
- "transformers_version": "4.39.2"
 
12
  }
 
1
  {
2
  "bos_token_id": 0,
 
3
  "eos_token_id": 1,
4
+ "max_new_tokens": 50,
5
+ "num_beans": 1,
6
  "output_logits": true,
7
  "output_scores": true,
8
  "pad_token_id": 2,
9
  "repetition_penalty": 1.3,
10
+ "return_dict_in_generate": true,
11
+ "transformers_version": "4.38.2"
12
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6bce672bbf960b98736d425af3d4ddc6398e14fe94e1d6ff85b5e9293d7432f7
3
- size 453334260
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf2a48e643fba9b8f1d887408536581f2b93a4fc1703a5599e9222b36ef763b1
3
+ size 360315272