Instructions to use Synthyra/ESM2-8M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Synthyra/ESM2-8M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Synthyra/ESM2-8M", trust_remote_code=True)# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("Synthyra/ESM2-8M", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer
Browse files- tokenizer_config.json +2 -2
tokenizer_config.json
CHANGED
|
@@ -41,10 +41,10 @@
|
|
| 41 |
"special": true
|
| 42 |
}
|
| 43 |
},
|
| 44 |
-
"
|
| 45 |
"cls_token": "<cls>",
|
| 46 |
"eos_token": "<eos>",
|
| 47 |
-
"
|
| 48 |
"mask_token": "<mask>",
|
| 49 |
"model_max_length": 1000000000000000019884624838656,
|
| 50 |
"pad_token": "<pad>",
|
|
|
|
| 41 |
"special": true
|
| 42 |
}
|
| 43 |
},
|
| 44 |
+
"clean_up_tokenization_spaces": false,
|
| 45 |
"cls_token": "<cls>",
|
| 46 |
"eos_token": "<eos>",
|
| 47 |
+
"extra_special_tokens": {},
|
| 48 |
"mask_token": "<mask>",
|
| 49 |
"model_max_length": 1000000000000000019884624838656,
|
| 50 |
"pad_token": "<pad>",
|