fmilletari-czi commited on
Commit
4dc54ad
·
verified ·
1 Parent(s): 8fc3ff4

Upload folder using huggingface_hub

Browse files
config.json CHANGED
@@ -1,105 +1,330 @@
1
  {
 
2
  "architectures": [
3
- "ESMFold2Model"
4
  ],
5
- "confidence_head": {
6
- "distogram_bins": 39,
7
- "enabled": true,
8
- "folding_trunk": {
9
- "dropout": 0.25,
10
- "n_heads": 8,
11
- "n_layers": 4
12
- },
13
- "max_dist": 50.75,
14
- "min_dist": 3.25,
15
- "num_pae_bins": 64,
16
- "num_pde_bins": 64,
17
- "num_plddt_bins": 50
18
- },
19
- "d_pair": 256,
20
- "d_single": 384,
21
- "disable_msa_features": false,
22
  "dtype": "float32",
23
- "esmc_id": "biohub/ESMC-6B",
24
- "folding_trunk": {
25
- "dropout": 0.25,
26
- "n_heads": 8,
27
- "n_layers": 48
28
- },
29
- "force_lm_dropout_during_inference": false,
30
- "inputs": {
31
- "atom_encoder": {
32
- "d_atom": 128,
33
- "d_token": 768,
34
- "expansion_ratio": 2,
35
- "n_blocks": 3,
36
- "n_heads": 4,
37
- "n_spatial_rope_pairs_per_axis": 2,
38
- "n_uid_rope_pairs": 10,
39
- "spatial_rope_base_frequency": 20.0,
40
- "swa_window_size": 128,
41
- "uid_rope_base_frequency": 10000.0
42
- },
43
- "d_inputs": 451
44
  },
45
- "lm_d_model": 2560,
46
- "lm_dropout": 0.0,
47
- "lm_encoder": {
48
- "enabled": true,
49
- "lm_dropout": 0.25,
50
- "n_layers": 4,
51
- "per_loop_lm_dropout": true
52
- },
53
- "lm_num_layers": 80,
54
- "model_type": "esmfold2",
55
- "msa_encoder": {
56
- "d_hidden": 32,
57
- "d_msa": 128,
58
- "enabled": true,
59
- "msa_head_width": 16,
60
- "n_heads_msa": 8,
61
- "n_layers": 4
62
  },
63
- "msa_encoder_overwrite": true,
64
- "n_relative_chain_bins": 2,
65
- "n_relative_residx_bins": 32,
66
- "num_diffusion_samples": 32,
67
- "num_loops": 3,
68
- "parcae": {
69
- "coda_n_layers": 2,
70
- "enabled": true,
71
- "max_steps": 6,
72
- "min_steps": 1,
73
- "poisson_mean": 3.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  },
75
  "structure_head": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  "diffusion_module": {
77
- "atom_num_blocks": 3,
78
- "atom_num_heads": 4,
79
- "c_atom": 128,
80
- "c_s_inputs": 451,
81
- "c_token": 768,
82
- "c_z": 256,
83
- "fourier_dim": 256,
84
- "relpos_r_max": 32,
85
- "relpos_s_max": 2,
 
 
 
 
 
 
86
  "sigma_data": 16.0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  "token_num_blocks": 12,
88
  "token_num_heads": 16,
89
- "transition_multiplier": 2
 
 
 
 
90
  },
91
- "distogram_bins": 64,
 
92
  "gamma_0": 0.8,
93
  "gamma_min": 1.0,
 
 
 
 
 
94
  "inference_num_steps": 14,
95
- "inference_p": 7.0,
 
 
 
 
96
  "inference_s_max": 160.0,
97
  "inference_s_min": 0.0004,
98
- "noise_scale": 1.003,
99
- "step_scale": 1.5,
100
  "train_noise_log_mean": -1.2,
101
  "train_noise_log_std": 1.5
102
  },
103
- "transformers_version": "4.57.6",
104
- "type": "release"
105
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  {
2
+ "transformers_version": "5.16.0.dev0",
3
  "architectures": [
4
+ "EsmFold2Model"
5
  ],
6
+ "output_hidden_states": false,
7
+ "return_dict": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  "dtype": "float32",
9
+ "chunk_size_feed_forward": 0,
10
+ "is_encoder_decoder": false,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  },
15
+ "label2id": {
16
+ "LABEL_0": 0,
17
+ "LABEL_1": 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  },
19
+ "problem_type": null,
20
+ "hidden_size": 384,
21
+ "pairwise_hidden_size": 256,
22
+ "single_inputs_size": 451,
23
+ "pair_transition_intermediate_size": 1024,
24
+ "sliding_window": 128,
25
+ "chunk_size": 64,
26
+ "num_relative_residx_bins": 32,
27
+ "num_relative_chain_bins": 2,
28
+ "num_loops": 20,
29
+ "num_res_types": 33,
30
+ "max_atomic_number": 128,
31
+ "char_vocab_size": 64,
32
+ "max_chars": 4,
33
+ "max_atoms_per_token": 23,
34
+ "atom_feature_dim": 389,
35
+ "folding_trunk_num_hidden_layers": 48,
36
+ "parcae_num_coda_layers": 2,
37
+ "atom_encoder": {
38
+ "architectures": null,
39
+ "output_hidden_states": false,
40
+ "return_dict": true,
41
+ "dtype": null,
42
+ "chunk_size_feed_forward": 0,
43
+ "is_encoder_decoder": false,
44
+ "id2label": {
45
+ "0": "LABEL_0",
46
+ "1": "LABEL_1"
47
+ },
48
+ "label2id": {
49
+ "LABEL_0": 0,
50
+ "LABEL_1": 1
51
+ },
52
+ "problem_type": null,
53
+ "hidden_size": 128,
54
+ "output_dim": 384,
55
+ "num_hidden_layers": 3,
56
+ "num_attention_heads": 4,
57
+ "head_dim": 32,
58
+ "intermediate_size": 256,
59
+ "spatial_rope_base_frequency": 20.0,
60
+ "num_spatial_rope_pairs_per_axis": 2,
61
+ "num_uid_rope_pairs": 10,
62
+ "uid_rope_base_frequency": 10000.0,
63
+ "_name_or_path": "",
64
+ "model_type": "",
65
+ "output_attentions": false,
66
+ "n_spatial_rope_pairs_per_axis": 2,
67
+ "n_uid_rope_pairs": 10,
68
+ "expansion_ratio": 2,
69
+ "token_hidden_size": 768
70
  },
71
  "structure_head": {
72
+ "architectures": null,
73
+ "output_hidden_states": false,
74
+ "return_dict": true,
75
+ "dtype": null,
76
+ "chunk_size_feed_forward": 0,
77
+ "is_encoder_decoder": false,
78
+ "id2label": {
79
+ "0": "LABEL_0",
80
+ "1": "LABEL_1"
81
+ },
82
+ "label2id": {
83
+ "LABEL_0": 0,
84
+ "LABEL_1": 1
85
+ },
86
+ "problem_type": null,
87
  "diffusion_module": {
88
+ "architectures": null,
89
+ "output_hidden_states": false,
90
+ "return_dict": true,
91
+ "dtype": null,
92
+ "chunk_size_feed_forward": 0,
93
+ "is_encoder_decoder": false,
94
+ "id2label": {
95
+ "0": "LABEL_0",
96
+ "1": "LABEL_1"
97
+ },
98
+ "label2id": {
99
+ "LABEL_0": 0,
100
+ "LABEL_1": 1
101
+ },
102
+ "problem_type": null,
103
  "sigma_data": 16.0,
104
+ "hidden_size": 768,
105
+ "fourier_dim": 256,
106
+ "num_hidden_layers": 12,
107
+ "num_attention_heads": 16,
108
+ "head_dim": 48,
109
+ "intermediate_size": 1536,
110
+ "pair_intermediate_size": 512,
111
+ "atom_encoder": {
112
+ "architectures": null,
113
+ "output_hidden_states": false,
114
+ "return_dict": true,
115
+ "dtype": null,
116
+ "chunk_size_feed_forward": 0,
117
+ "is_encoder_decoder": false,
118
+ "id2label": {
119
+ "0": "LABEL_0",
120
+ "1": "LABEL_1"
121
+ },
122
+ "label2id": {
123
+ "LABEL_0": 0,
124
+ "LABEL_1": 1
125
+ },
126
+ "problem_type": null,
127
+ "hidden_size": 128,
128
+ "output_dim": 768,
129
+ "num_hidden_layers": 3,
130
+ "num_attention_heads": 4,
131
+ "head_dim": 32,
132
+ "intermediate_size": 256,
133
+ "spatial_rope_base_frequency": 20.0,
134
+ "num_spatial_rope_pairs_per_axis": 2,
135
+ "num_uid_rope_pairs": 10,
136
+ "uid_rope_base_frequency": 10000.0,
137
+ "_name_or_path": "",
138
+ "model_type": "",
139
+ "output_attentions": false
140
+ },
141
+ "_name_or_path": "",
142
+ "model_type": "",
143
+ "output_attentions": false,
144
+ "token_hidden_size": 768,
145
  "token_num_blocks": 12,
146
  "token_num_heads": 16,
147
+ "transition_multiplier": 2,
148
+ "c_z": 256,
149
+ "c_s_inputs": 451,
150
+ "relpos_r_max": 32,
151
+ "relpos_s_max": 2
152
  },
153
+ "num_distogram_bins": 64,
154
+ "num_diffusion_samples": 32,
155
  "gamma_0": 0.8,
156
  "gamma_min": 1.0,
157
+ "noise_scale": 1.003,
158
+ "step_scale": 1.5,
159
+ "inference_sigma_max_ratio": 160.0,
160
+ "inference_sigma_min_ratio": 0.0004,
161
+ "inference_exponent": 7.0,
162
  "inference_num_steps": 14,
163
+ "inference_sigma_cap": 256.0,
164
+ "_name_or_path": "",
165
+ "model_type": "",
166
+ "output_attentions": false,
167
+ "distogram_bins": 64,
168
  "inference_s_max": 160.0,
169
  "inference_s_min": 0.0004,
170
+ "inference_p": 7.0,
 
171
  "train_noise_log_mean": -1.2,
172
  "train_noise_log_std": 1.5
173
  },
174
+ "confidence_head": {
175
+ "architectures": null,
176
+ "output_hidden_states": false,
177
+ "return_dict": true,
178
+ "dtype": null,
179
+ "chunk_size_feed_forward": 0,
180
+ "is_encoder_decoder": false,
181
+ "id2label": {
182
+ "0": "LABEL_0",
183
+ "1": "LABEL_1"
184
+ },
185
+ "label2id": {
186
+ "LABEL_0": 0,
187
+ "LABEL_1": 1
188
+ },
189
+ "problem_type": null,
190
+ "num_hidden_layers": 4,
191
+ "num_plddt_bins": 50,
192
+ "num_pde_bins": 64,
193
+ "num_pae_bins": 64,
194
+ "min_dist": 3.25,
195
+ "max_dist": 50.75,
196
+ "distogram_bins": 39,
197
+ "eps": 1e-06,
198
+ "_name_or_path": "",
199
+ "model_type": "",
200
+ "output_attentions": false,
201
+ "enabled": true,
202
+ "num_attention_heads": 8,
203
+ "dropout": 0.25
204
+ },
205
+ "msa_encoder": {
206
+ "architectures": null,
207
+ "output_hidden_states": false,
208
+ "return_dict": true,
209
+ "dtype": null,
210
+ "chunk_size_feed_forward": 0,
211
+ "is_encoder_decoder": false,
212
+ "id2label": {
213
+ "0": "LABEL_0",
214
+ "1": "LABEL_1"
215
+ },
216
+ "label2id": {
217
+ "LABEL_0": 0,
218
+ "LABEL_1": 1
219
+ },
220
+ "problem_type": null,
221
+ "hidden_size": 128,
222
+ "outer_hidden_size": 32,
223
+ "num_hidden_layers": 4,
224
+ "num_attention_heads": 8,
225
+ "head_dim": 16,
226
+ "intermediate_size": 512,
227
+ "outer_product_chunk_size": null,
228
+ "_name_or_path": "",
229
+ "model_type": "",
230
+ "output_attentions": false,
231
+ "head_width": 16,
232
+ "enabled": true,
233
+ "overwrite": true,
234
+ "max_depth": 1024,
235
+ "column_mask_rate": 0.1
236
+ },
237
+ "lm_encoder": {
238
+ "architectures": null,
239
+ "output_hidden_states": false,
240
+ "return_dict": true,
241
+ "dtype": null,
242
+ "chunk_size_feed_forward": 0,
243
+ "is_encoder_decoder": false,
244
+ "id2label": {
245
+ "0": "LABEL_0",
246
+ "1": "LABEL_1"
247
+ },
248
+ "label2id": {
249
+ "LABEL_0": 0,
250
+ "LABEL_1": 1
251
+ },
252
+ "problem_type": null,
253
+ "num_hidden_layers": 4,
254
+ "lm_dropout": 0.25,
255
+ "per_loop_lm_dropout": true,
256
+ "_name_or_path": "",
257
+ "model_type": "",
258
+ "output_attentions": false,
259
+ "enabled": true
260
+ },
261
+ "esmc_config": {
262
+ "architectures": null,
263
+ "output_hidden_states": false,
264
+ "return_dict": true,
265
+ "dtype": "float32",
266
+ "chunk_size_feed_forward": 0,
267
+ "is_encoder_decoder": false,
268
+ "id2label": {
269
+ "0": "LABEL_0",
270
+ "1": "LABEL_1"
271
+ },
272
+ "label2id": {
273
+ "LABEL_0": 0,
274
+ "LABEL_1": 1
275
+ },
276
+ "problem_type": null,
277
+ "vocab_size": 64,
278
+ "hidden_size": 2560,
279
+ "intermediate_size": 6912,
280
+ "num_hidden_layers": 80,
281
+ "num_attention_heads": 40,
282
+ "num_key_value_heads": 40,
283
+ "hidden_act": "silu",
284
+ "max_position_embeddings": 2048,
285
+ "initializer_range": 0.02,
286
+ "pad_token_id": 1,
287
+ "bos_token_id": 0,
288
+ "eos_token_id": 2,
289
+ "tie_word_embeddings": false,
290
+ "rope_parameters": {
291
+ "rope_theta": 10000.0,
292
+ "rope_type": "default"
293
+ },
294
+ "attention_bias": false,
295
+ "attention_dropout": 0.0,
296
+ "mlp_bias": false,
297
+ "head_dim": 64,
298
+ "mask_token_id": 32,
299
+ "classifier_dropout": 0.1,
300
+ "_name_or_path": "",
301
+ "model_type": "esmc",
302
+ "output_attentions": false
303
+ },
304
+ "_name_or_path": "",
305
+ "model_type": "esmfold2",
306
+ "output_attentions": false,
307
+ "n_relative_residx_bins": 32,
308
+ "n_relative_chain_bins": 2,
309
+ "type": "release",
310
+ "folding_trunk_num_attention_heads": 8,
311
+ "folding_trunk_dropout": 0.25,
312
+ "disable_msa_features": false,
313
+ "lm_dropout": 0.0,
314
+ "force_lm_dropout_during_inference": false,
315
+ "lm_d_model": 2560,
316
+ "lm_num_layers": 80,
317
+ "lm_mask_pct": 0.0,
318
+ "num_diffusion_samples": 32,
319
+ "parcae": {
320
+ "enabled": true,
321
+ "poisson_mean": 3.0,
322
+ "min_steps": 1,
323
+ "max_steps": 6,
324
+ "coda_n_layers": 2
325
+ },
326
+ "auto_map": {
327
+ "AutoConfig": "modeling_esmfold2_remote.EsmFold2RemoteConfig",
328
+ "AutoModel": "modeling_esmfold2_remote.EsmFold2RemoteModel"
329
+ }
330
+ }
model-00001-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a24f050e2a2f9746b43b435c53719afc575a374fa302731b6911356a3d8b5cac
3
+ size 4955672788
model-00002-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1af1615f6f6d1b3c0a24a63d9052a0ecad5b3831d1513c1a5fea73870c1bec73
3
+ size 4971194264
model-00003-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:357b55ec56192fd01a1cfc39a5260caf2242503ac7c554f614e43c7a469f0ced
3
+ size 4997460576
model-00004-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f065aca1a13308bce41b78f728c28a0a29e3a9db6af531a74a258dbb06f8721b
3
+ size 4979069192
model-00005-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0c507dce5b2ddb22f77305607b4332506137850c5378e98e9729345264668b7
3
+ size 4934556472
model-00006-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90015eb13bbeab54237b18d6748dbd47f4bfd108fdf45704d66e5c3a93f8df7c
3
+ size 1481396616
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
modeling_esmfold2_remote.py ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Load this checkpoint with the ``esm`` package instead of the transformers port.
2
+
3
+ Shipped inside each ``biohub/ESMFold2*`` repo and named by its ``config.json``
4
+ ``auto_map``, so ``AutoModel.from_pretrained(repo, trust_remote_code=True)``
5
+ returns an ``esm.models.esmfold2`` model. Without the flag transformers keeps
6
+ using its own port.
7
+
8
+ Runs from the Hub module cache in the user's environment, so it imports nothing
9
+ but ``transformers``, ``packaging`` and ``esm``.
10
+ """
11
+
12
+ from typing import Any
13
+
14
+ from packaging.version import Version
15
+ from transformers.configuration_utils import PretrainedConfig
16
+ from transformers.modeling_utils import PreTrainedModel
17
+
18
+ #: Inclusive floor. Older esm cannot read the bundled single-checkpoint layout.
19
+ MIN_ESM_VERSION = "3.4.1"
20
+
21
+ #: Everything esm's from_pretrained consumes, directly or via resolve_model_dir.
22
+ _ESM_KWARGS = frozenset(
23
+ {
24
+ "load_esmc",
25
+ "esmc_precision",
26
+ "device",
27
+ "dtype",
28
+ "revision",
29
+ "cache_dir",
30
+ "token",
31
+ "local_files_only",
32
+ "force_download",
33
+ }
34
+ )
35
+
36
+
37
+ def esmfold2_class() -> Any:
38
+ """Return esm's ``EsmFold2Model``, or raise ``ImportError`` naming the pip command."""
39
+ try:
40
+ import esm
41
+ from esm.models.esmfold2 import EsmFold2Model
42
+ except ImportError as exc:
43
+ raise ImportError(
44
+ f"trust_remote_code=True runs the esm package, which failed to "
45
+ f"import ({exc}). Install it with:\n\n"
46
+ f" pip install 'esm>={MIN_ESM_VERSION}'\n\n"
47
+ "Or drop the flag to use the ESMFold2 port in transformers."
48
+ ) from exc
49
+ if Version(esm.__version__) < Version(MIN_ESM_VERSION):
50
+ raise ImportError(
51
+ f"esm {esm.__version__} is installed, but this checkpoint needs "
52
+ f"{MIN_ESM_VERSION} or newer. Upgrade with:\n\n"
53
+ f" pip install --upgrade 'esm>={MIN_ESM_VERSION}'"
54
+ )
55
+ return EsmFold2Model
56
+
57
+
58
+ class EsmFold2RemoteConfig(PretrainedConfig):
59
+ """Holds config.json verbatim. esm re-reads the file and builds its own config."""
60
+
61
+ model_type = "esmfold2"
62
+
63
+
64
+ class EsmFold2RemoteModel(PreTrainedModel):
65
+ """Loader shim; ``from_pretrained`` returns an esm model, not one of these.
66
+
67
+ A ``PreTrainedModel`` subclass only because the Auto classes call
68
+ ``register_for_auto_class`` on what they load and check its ``config_class``.
69
+ """
70
+
71
+ config_class = EsmFold2RemoteConfig
72
+
73
+ @classmethod
74
+ def from_pretrained(cls, pretrained_model_name_or_path, *args, **kwargs): # type: ignore[override]
75
+ # esm forwards leftover kwargs to resolve_model_dir, whose signature is
76
+ # fixed, so transformers' trust_remote_code / _from_auto would TypeError.
77
+ forwarded = {k: v for k, v in kwargs.items() if k in _ESM_KWARGS}
78
+ return esmfold2_class().from_pretrained(
79
+ pretrained_model_name_or_path, *args, **forwarded
80
+ )
tokenizer.json ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "<cls>",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 1,
17
+ "content": "<pad>",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 2,
26
+ "content": "<eos>",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 3,
35
+ "content": "<unk>",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ {
43
+ "id": 31,
44
+ "content": "|",
45
+ "single_word": false,
46
+ "lstrip": false,
47
+ "rstrip": false,
48
+ "normalized": false,
49
+ "special": true
50
+ },
51
+ {
52
+ "id": 32,
53
+ "content": "<mask>",
54
+ "single_word": false,
55
+ "lstrip": false,
56
+ "rstrip": false,
57
+ "normalized": false,
58
+ "special": true
59
+ }
60
+ ],
61
+ "normalizer": null,
62
+ "pre_tokenizer": null,
63
+ "post_processor": {
64
+ "type": "TemplateProcessing",
65
+ "single": [
66
+ {
67
+ "SpecialToken": {
68
+ "id": "<cls>",
69
+ "type_id": 0
70
+ }
71
+ },
72
+ {
73
+ "Sequence": {
74
+ "id": "A",
75
+ "type_id": 0
76
+ }
77
+ },
78
+ {
79
+ "SpecialToken": {
80
+ "id": "<eos>",
81
+ "type_id": 0
82
+ }
83
+ }
84
+ ],
85
+ "pair": [
86
+ {
87
+ "Sequence": {
88
+ "id": "A",
89
+ "type_id": 0
90
+ }
91
+ },
92
+ {
93
+ "Sequence": {
94
+ "id": "B",
95
+ "type_id": 1
96
+ }
97
+ }
98
+ ],
99
+ "special_tokens": {
100
+ "<cls>": {
101
+ "id": "<cls>",
102
+ "ids": [
103
+ 0
104
+ ],
105
+ "tokens": [
106
+ "<cls>"
107
+ ]
108
+ },
109
+ "<eos>": {
110
+ "id": "<eos>",
111
+ "ids": [
112
+ 2
113
+ ],
114
+ "tokens": [
115
+ "<eos>"
116
+ ]
117
+ }
118
+ }
119
+ },
120
+ "decoder": null,
121
+ "model": {
122
+ "type": "BPE",
123
+ "dropout": null,
124
+ "unk_token": "<unk>",
125
+ "continuing_subword_prefix": null,
126
+ "end_of_word_suffix": null,
127
+ "fuse_unk": false,
128
+ "byte_fallback": false,
129
+ "ignore_merges": false,
130
+ "vocab": {
131
+ "<cls>": 0,
132
+ "<pad>": 1,
133
+ "<eos>": 2,
134
+ "<unk>": 3,
135
+ "L": 4,
136
+ "A": 5,
137
+ "G": 6,
138
+ "V": 7,
139
+ "S": 8,
140
+ "E": 9,
141
+ "R": 10,
142
+ "T": 11,
143
+ "I": 12,
144
+ "D": 13,
145
+ "P": 14,
146
+ "K": 15,
147
+ "Q": 16,
148
+ "N": 17,
149
+ "F": 18,
150
+ "Y": 19,
151
+ "M": 20,
152
+ "H": 21,
153
+ "W": 22,
154
+ "C": 23,
155
+ "X": 24,
156
+ "B": 25,
157
+ "U": 26,
158
+ "Z": 27,
159
+ "O": 28,
160
+ ".": 29,
161
+ "-": 30,
162
+ "|": 31,
163
+ "<mask>": 32
164
+ },
165
+ "merges": []
166
+ }
167
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<cls>",
4
+ "chain_break_token": "|",
5
+ "cls_token": "<cls>",
6
+ "eos_token": "<eos>",
7
+ "extra_special_tokens": [],
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "<pad>",
11
+ "tokenizer_class": "EsmcTokenizer",
12
+ "unk_token": "<unk>"
13
+ }