Transformers
PyTorch
t5
text2text-generation
protein-generation
sequence-generation
conditional-generation
text-generation-inference
Instructions to use MoMA-LAAS/prop2seq-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MoMA-LAAS/prop2seq-model with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("MoMA-LAAS/prop2seq-model") model = AutoModelForSeq2SeqLM.from_pretrained("MoMA-LAAS/prop2seq-model") - Notebooks
- Google Colab
- Kaggle
| { | |
| "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>" | |
| } | |
| } |