PhTae/MolBridge-Gen-Base-S2C

Model

EMNLP 2025 main

0

10 commits

1 linked in READMEs

updated Oct 31, 2025

See the code

README

EMNLP 2025 main

"Bridging the Gap Between Molecule and Textual Descriptions via Substructure-aware Alignment"

GitHub Paper

This model is trained on ChEBI-20 dataset.

from transformers import AutoTokenizer, T5ForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained("laituan245/molt5-base", model_max_length=512)
model = T5ForConditionalGeneration.from_pretrained('PhTae/MolBridge-Gen-Base-S2C')

canonicalized_smiles = 'CC(=O)N[C@@H](CCCN=C(N)N)C(=O)[O-]'
canonicalized_smiles = 'Provide a whole descriptions of this molecule: ' + canonicalized_smiles

token = tokenizer(canonicalized_smiles, return_tensors='pt', padding='longest', truncation=True)
gen_results = model.generate(input_ids=token['input_ids'],
                             attention_mask=token['attention_mask'], 
                             num_beams=5, 
                             max_new_tokens=512)

gen_results = tokenizer.decode(gen_results[0], skip_special_tokens=True)
print(gen_results)
chemistry
safetensors
t5

PhTae/MolBridge-Gen-Base-S2C

Model

EMNLP 2025 main

0

10 commits

1 linked in READMEs

updated Oct 31, 2025

See the code

README

EMNLP 2025 main

"Bridging the Gap Between Molecule and Textual Descriptions via Substructure-aware Alignment"

GitHub Paper

This model is trained on ChEBI-20 dataset.

from transformers import AutoTokenizer, T5ForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained("laituan245/molt5-base", model_max_length=512)
model = T5ForConditionalGeneration.from_pretrained('PhTae/MolBridge-Gen-Base-S2C')

canonicalized_smiles = 'CC(=O)N[C@@H](CCCN=C(N)N)C(=O)[O-]'
canonicalized_smiles = 'Provide a whole descriptions of this molecule: ' + canonicalized_smiles

token = tokenizer(canonicalized_smiles, return_tensors='pt', padding='longest', truncation=True)
gen_results = model.generate(input_ids=token['input_ids'],
                             attention_mask=token['attention_mask'], 
                             num_beams=5, 
                             max_new_tokens=512)

gen_results = tokenizer.decode(gen_results[0], skip_special_tokens=True)
print(gen_results)
chemistry
safetensors
t5