Transformers
PyTorch
t5
text2text-generation
protein-generation
sequence-generation
conditional-generation
text-generation-inference
Instructions to use MoMA-LAAS/idr-prop2seq-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MoMA-LAAS/idr-prop2seq-model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("MoMA-LAAS/idr-prop2seq-model") model = AutoModelForSeq2SeqLM.from_pretrained("MoMA-LAAS/idr-prop2seq-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from MoMA-LAAS/idr-prop2seq-model: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/MoMA-LAAS/idr-prop2seq-model/resolve/main/tokenizer.json
- Command line
-
hf download hf://MoMA-LAAS/idr-prop2seq-model/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/MoMA-LAAS/idr-prop2seq-model/resolve/main/tokenizer.json
1.18 kB
| { | |
| "version": "1.0", | |
| "truncation": null, | |
| "padding": null, | |
| "added_tokens": [ | |
| { | |
| "id": 0, | |
| "content": "<pad>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 1, | |
| "content": "<eos>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 2, | |
| "content": "<unk>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| } | |
| ], | |
| "normalizer": null, | |
| "pre_tokenizer": { | |
| "type": "WhitespaceSplit" | |
| }, | |
| "post_processor": null, | |
| "decoder": null, | |
| "model": { | |
| "type": "WordLevel", | |
| "vocab": { | |
| "<pad>": 0, | |
| "<eos>": 1, | |
| "<unk>": 2, | |
| "A": 3, | |
| "C": 4, | |
| "D": 5, | |
| "E": 6, | |
| "F": 7, | |
| "G": 8, | |
| "H": 9, | |
| "I": 10, | |
| "K": 11, | |
| "L": 12, | |
| "M": 13, | |
| "N": 14, | |
| "P": 15, | |
| "Q": 16, | |
| "R": 17, | |
| "S": 18, | |
| "T": 19, | |
| "V": 20, | |
| "W": 21, | |
| "Y": 22 | |
| }, | |
| "unk_token": "<unk>" | |
| } | |
| } |