Understand the project
Practical overview
When it fits
Use it when a molecular workflow needs transformer-learned representations from SMILES strings and you can work with a local Python and PyTorch codebase.
Who it is for
- Cheminformatics researchers and developers seeking learned molecular representations for downstream work.
- Drug-discovery practitioners exploring low-data experiments with molecular fingerprints.
Documented uses
- Encode molecular SMILES strings as learned fingerprints.
- Pretrain the transformer on a prepared SMILES corpus.
- Use repository example code to explore downstream tasks with the learned representations.
Before you choose
Requirements & limits
- Pretraining requires preparing a SMILES corpus before running the documented script.
- The listed dependencies include RDKit and PyTorch greater than 1.2.
- The repository links a pretrained model and includes downstream-task examples in
experiments/.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Source-based practical guide
Pretrain the transformer on a prepared SMILES corpus
Run the repository's documented pretraining stage once a SMILES corpus is ready.
Before you start
- A prepared SMILES corpus.
- NumPy, Pandas, PyTorch greater than 1.2, tqdm, and RDKit.
Steps
Prepare the SMILES corpus for pretraining.
Run the command below.
python pretrain_trfm.py
Expected outcome
The repository's pretraining workflow is invoked on the prepared corpus.
Guide limitations
- This guide covers pretraining, not a downstream task.
Evidence and transparency
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- DSPsleeporg/smiles-transformer · Official homepage title · retained in its source language

