Downloads · 30 days
19
20% of all-time downloads
terrytwk/chemberta-700k-augmented-smiles
chemberta-700k-augmented-smiles is a machine learning model from terrytwk. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A RoBERTa-based transformer model pre-trained on 70k unique nonisomeric SMILES from PubChem, augmented 10x to 700k training samples using masked language modeling (MLM). This model is designed for molecular property p…
Downloads · 30 days
19
20% of all-time downloads
All-time downloads
97
Public
Parameters
129M
516 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors516 MB · 100%
From the Hugging Face model README
A RoBERTa-based transformer model pre-trained on 70k unique nonisomeric SMILES from PubChem, augmented 10x to 700k training samples using masked language modeling (MLM). This model is designed for molecular property prediction and chemical SMILES understanding tasks.
Trained using Hugging Face Transformers library with distributed training capabilities.
Note: This model was pre-trained from scratch (not fine-tuned). The model architecture and training approach are inspired by ChemBERTa, and seyonec/SMILES_tokenized_PubChem_shard00_160k is used as a baseline for comparison. The tokenizer from seyonec/SMILES_tokenized_PubChem_shard00_160k should be used with this model as they share the same vocabulary.
This model can be used for masked language modeling on SMILES strings to understand molecular structure representations. It can be fine-tuned on downstream tasks such as:
The model should be fine-tuned on specific molecular property prediction tasks. Example tasks include:
This model was pre-trained on molecular SMILES data and is not designed for:
from transformers import AutoModelForMaskedLM, AutoTokenizer
from transformers import pipeline
# Load model and tokenizer
model = AutoModelForMaskedLM.from_pretrained("terrytwk/chemberta-700k-augmented-smiles")
tokenizer = AutoTokenizer.from_pretrained("seyonec/SMILES_tokenized_PubChem_shard00_160k")
# Create fill-mask pipeline
fill_mask = pipeline('fill-mask', model=model, tokenizer=tokenizer)
# Example: predict masked token in a SMILES string
results = fill_mask("CC(=O)OC1=CC=CC=C1C(=O)O [MASK]")
print(results)
from transformers import AutoModelForSequenceClassification, AutoTokenizer
from transformers import TrainingArguments, Trainer
# Load pre-trained model for sequence classification
model = AutoModelForSequenceClassification.from_pretrained(
"terrytwk/chemberta-700k-augmented-smiles",
num_labels=2 # Adjust based on your task
)
tokenizer = AutoTokenizer.from_pretrained("seyonec/SMILES_tokenized_PubChem_shard00_160k")
# Fine-tune on your molecular property prediction dataset
# ... (add your training code)
This model was evaluated on the FART dataset for molecular taste prediction. On this benchmark, the model achieved an evaluation accuracy of 0.8895, performing better or on par with the baseline model seyonec/SMILES_tokenized_PubChem_shard00_160k.
Notably, this performance was achieved despite:
This demonstrates the effectiveness of SMILES augmentation as a data-efficient training strategy for molecular language models.
Evaluation Reference: Zimmermann et al. (2025). A chemical language model for molecular taste prediction. npj Science of Food
For evaluation results on other molecular property prediction benchmarks, please refer to fine-tuning experiments on datasets such as:
If you use this model in your research, please cite:
@misc{chemberta700kaugmented2024,
title={ChemBERTa-700k-Augmented-SMILES: Improved Molecular Property Prediction with SMILES Augmentation},
author={Terry Kim},
year={2024},
howpublished={\url{https://huggingface.co/terrytwk/chemberta-700k-augmented-smiles}}
}
@article{zimmermann2025chemical,
title={A chemical language model for molecular taste prediction},
author={Zimmermann, Yoel and Sieben, Leif and Seng, Henrik and Pestlin, Philipp and G{\"o}rlich, Franz},
journal={npj Science of Food},
volume={9},
number={1},
pages={122},
year={2025},
publisher={Nature Publishing Group},
doi={10.1038/s41538-025-00474-z},
url={https://www.nature.com/articles/s41538-025-00474-z}
}
@article{chemberta2020,
title={ChemBERTa: Large-Scale Self-Supervised Pretraining for Molecular Property Prediction},
author={Chithrananda, Seyone and Grand, Gabriel and Ramsundar, Bharath},
journal={arXiv preprint arXiv:2010.09885},
year={2020}
}
For questions or issues regarding this model, please open an issue in the repository.