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
File size: 1,177 Bytes
c2adc59 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | {
"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>"
}
} |