Translation between Molecules and Natural Language
Paper • 2204.11817 • Published
How to use laituan245/molt5-small with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("laituan245/molt5-small")
model = AutoModelForSeq2SeqLM.from_pretrained("laituan245/molt5-small")from transformers import AutoTokenizer, T5ForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained("laituan245/molt5-small", model_max_length=512)
model = T5ForConditionalGeneration.from_pretrained('laituan245/molt5-small')
For more information, please take a look at our paper.
Paper: Translation between Molecules and Natural Language
Authors: Carl Edwards*, Tuan Lai*, Kevin Ros, Garrett Honke, Heng Ji