MolScaleTransfer ChemLM 25.75M is a small BERT-style chemical language model pre-trained with masked language modeling on molecular SMILES strings.
This checkpoint is intended to be used as an encoder initialization for downstream molecular property prediction tasks, and as one point in a model-scaling study of chemical language model transfer.
Paper: How Well Do Large-Scale Chemical Language Models Transfer to Downstream Tasks?
Tokenizer: ibm-research/MoLFormer-XL-both-10pct
Model size: 25.75M parameters
Model Details
Hyperparameter
Value
Hidden size
512
Number of hidden layers
8
Number of attention heads
8
Intermediate size
2048
Vocabulary size
2362
Maximum sequence length during pre-training
512
The model was pre-trained using the Academic Budget BERT-based implementation in the repository and converted from a DeepSpeed checkpoint to Hugging Face format.
Intended Use
This checkpoint is intended for:
downstream molecular property prediction by fine-tuning or linear probing,
checkpoint-to-checkpoint comparison in scaling experiments,
relating pre-training loss to downstream transfer performance.
For downstream molecular property prediction, load it with the custom model class defined in the repository:
For normal use, run_ft_molecule.py is recommended instead of manually writing this loading code.
Data
The pre-training data preparation follows the repository pipeline:
download ZINC-15 and PubChem SMILES used in MoLFormer-style pre-training,
preprocess, shard, and split the dataset,
create masked language modeling samples using ibm-research/MoLFormer-XL-both-10pct.
Pre-training Objective
The model was pre-trained with masked language modeling.
The sample generation configuration uses:
Setting
Value
Masked LM probability
0.15
Maximum sequence length
512
Maximum predictions per sequence
77
Tokenizer
ibm-research/MoLFormer-XL-both-10pct
Downstream Tasks
The repository defines task metadata in molscaletransfer/task_config.json.
Supported task categories include:
binary classification, e.g. BBBP, BACE, HIV
multitask classification, e.g. Tox21, ClinTox, SIDER
regression, e.g. QM9 targets, ESOL, FreeSolv, Lipophilicity
Metrics are selected from the task config:
Task category
Metric
Classification
ROC-AUC
Multitask classification
Mean ROC-AUC over tasks
Regression
MAE or RMSE, depending on the task config
Relation to MolScaleTransfer
This checkpoint is one example of the model family used in MolScaleTransfer, a toolkit for evaluating the scaling behavior and transfer performance of chemical language models.
Within that workflow, checkpoints like this can be used for:
pre-training loss evaluation,
Hessian trace or PGM analysis after conversion to Hugging Face format,
downstream fine-tuning and linear probe experiments,
comparison against larger or smaller checkpoints in the same scaling series.
Citation
If you use this model, please cite:
bibtex
1@misc{sagawa2026largescalechemicallanguagemodels,
2 title={How Well Do Large-Scale Chemical Language Models Transfer to Downstream Tasks?},
3 author={Tatsuya Sagawa and Ryosuke Kojima},
4 year={2026},
5 eprint={2602.11618},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG},
8 url={https://arxiv.org/abs/2602.11618},
9}