Downloads · 30 days
281
100% of all-time downloads
Aurigene-AI/molt5-large-smiles2caption
molt5-large-smiles2caption is a text generation model from Aurigene-AI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Mirrored by Aurigene AI Discovery stage: Evidence and literature / Lead optimization Writes a natural-language description of a molecule from its SMILES. Useful for annotating screening hits and summarising libraries.…
Downloads · 30 days
281
100% of all-time downloads
All-time downloads
281
Public
Repo size
3.1 GB
Likes
0
Public
Click a slice to open those files.
.bin3.1 GB · 100%
From the Hugging Face model README
Mirrored by Aurigene AI
Discovery stage: Evidence and literature / Lead optimization
Writes a natural-language description of a molecule from its SMILES. Useful for annotating screening hits and summarising libraries.
Upstream:
laituan245/molt5-large-smiles2caption- all credit to the original authors; the model card and licence below are theirs.Explore the rest of the catalogue: Molecule Explorer - Protein Target Explorer - Drug Discovery Model Hub
This model can be used to generate an input caption from a SMILES string.
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("laituan245/molt5-large-smiles2caption", model_max_length=512)
model = T5ForConditionalGeneration.from_pretrained('laituan245/molt5-large-smiles2caption')
input_text = 'C1=CC2=C(C(=C1)[O-])NC(=CC2=O)C(=O)O'
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids, num_beams=5, max_length=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
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