BERT base for SMILES
9
18 commits
10 repos using this model
3 linked in READMEs
updated Jul 25, 2025
This is bidirectional transformer pretrained on SMILES (simplified molecular-input line-entry system) strings.
Example: Amoxicillin
O=C([C@@H](c1ccc(cc1)O)N)N[C@@H]1C(=O)N2[C@@H]1SC([C@@H]2C(=O)O)(C)C
Two training objectives were used:
This model is primarily aimed at being fine-tuned on the following tasks:
from transformers import BertTokenizerFast, BertModel
checkpoint = 'unikei/bert-base-smiles'
tokenizer = BertTokenizerFast.from_pretrained(checkpoint)
model = BertModel.from_pretrained(checkpoint)
example = 'O=C([C@@H](c1ccc(cc1)O)N)N[C@@H]1C(=O)N2[C@@H]1SC([C@@H]2C(=O)O)(C)C'
tokens = tokenizer(example, return_tensors='pt')
predictions = model(**tokens)
Jouary et al. (2025) Bridging scales between chemical space and behavioral phenotype:
A cross-modal mapping between behavior and molecular structure, derived using the unikei/bert-base-smiles model, effectively distinguished between distinct neurotransmitter classes, such as dopaminergic/serotonergic ligands, purines, and metabotropic glutamate ligands.
BERT base for SMILES
9
18 commits
10 repos using this model
3 linked in READMEs
updated Jul 25, 2025
This is bidirectional transformer pretrained on SMILES (simplified molecular-input line-entry system) strings.
Example: Amoxicillin
O=C([C@@H](c1ccc(cc1)O)N)N[C@@H]1C(=O)N2[C@@H]1SC([C@@H]2C(=O)O)(C)C
Two training objectives were used:
This model is primarily aimed at being fine-tuned on the following tasks:
from transformers import BertTokenizerFast, BertModel
checkpoint = 'unikei/bert-base-smiles'
tokenizer = BertTokenizerFast.from_pretrained(checkpoint)
model = BertModel.from_pretrained(checkpoint)
example = 'O=C([C@@H](c1ccc(cc1)O)N)N[C@@H]1C(=O)N2[C@@H]1SC([C@@H]2C(=O)O)(C)C'
tokens = tokenizer(example, return_tensors='pt')
predictions = model(**tokens)
Jouary et al. (2025) Bridging scales between chemical space and behavioral phenotype:
A cross-modal mapping between behavior and molecular structure, derived using the unikei/bert-base-smiles model, effectively distinguished between distinct neurotransmitter classes, such as dopaminergic/serotonergic ligands, purines, and metabotropic glutamate ligands.