Transformers
PyTorch
esm
biology
protein-language-model
protein-generation
protein-structure
diffusion
Instructions to use airkingbd/dplm2_650m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use airkingbd/dplm2_650m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, EsmForDPLM2 tokenizer = AutoTokenizer.from_pretrained("airkingbd/dplm2_650m") model = EsmForDPLM2.from_pretrained("airkingbd/dplm2_650m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from airkingbd/dplm2_650m: direct link, hf CLI and curl.
- Browser
- Download file 2.02 kB
-
https://huggingface.co/airkingbd/dplm2_650m/resolve/refs%2Fpr%2F3/tokenizer_config.json
- Command line
-
hf download hf://airkingbd/dplm2_650m@refs/pr/3/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/airkingbd/dplm2_650m/resolve/refs%2Fpr%2F3/tokenizer_config.json
2.02 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<cls_aa>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "<eos_aa>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk_aa>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32": { | |
| "content": "<mask_aa>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "33": { | |
| "content": "<cls_struct>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "34": { | |
| "content": "<eos_struct>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "35": { | |
| "content": "<unk_struct>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "8229": { | |
| "content": "<mask_struct>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "clean_up_tokenization_spaces": true, | |
| "aa_cls_token": "<cls_aa>", | |
| "aa_eos_token": "<eos_aa>", | |
| "aa_mask_token": "<mask_aa>", | |
| "aa_unk_token": "<unk_aa>", | |
| "struct_cls_token": "<cls_struct>", | |
| "struct_eos_token": "<eos_struct>", | |
| "struct_mask_token": "<mask_struct>", | |
| "struct_unk_token": "<unk_struct>", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<pad>", | |
| "tokenizer_class": "DPLM2Tokenizer" | |
| } | |