YAML Metadata Warning:The pipeline tag "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

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.

Example Usage

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))

Paper

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

Downloads last month
33
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using Aurigene-AI/molt5-large-smiles2caption 1

Collection including Aurigene-AI/molt5-large-smiles2caption

Paper for Aurigene-AI/molt5-large-smiles2caption