LChemME pre-trained using our LChemME python package on canonicalizing SMILES strings below 300 Da from the DOSEDO DNA-encoded diversity-oriented synthesis dataset.
LChemME is a Large Chemical Model for Embedding based on the BART architecture. BART is a transformer encoder-decoder model.
LChemME uses a relatively small vocabulary size (512) relative to natural language models. LChemME models are pretrained on the task of SMILES canonicalization (according to RDKit rules). This task requires the model to build an internal representation of the chemical graph directly from the SMILES string and decode the graph back to a canonical SMILES.
This checkpoint results from pretraining on 465,135 SMILES strings from a DNA-encoded diversity-oriented synthesis library with molecular weight less than 300 Da. The validation dataset comprised molecules with molecular weight greater than 350 Da. We aim for this LChemME model to assist with generalizing chemical property prediction from measurements on chemical fragments.
Here is how to use this model in PyTorch:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('scbirlab/lchemme-base-dosedo-lteq300')
model = AutoModelForSeq2SeqLM.from_pretrained('scbirlab/lchemme-base-dosedo-lteq300')
inputs = tokenizer("CC(Oc1ccccc1C(O)=O)=O", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
checkpoint-100000/optimizer.pt 810 MBcheckpoint-150000/optimizer.pt 810 MBcheckpoint-200000/optimizer.pt 810 MBcheckpoint-250000/optimizer.pt 810 MBcheckpoint-300000/optimizer.pt 810 MBcheckpoint-350000/optimizer.pt 810 MBcheckpoint-400000/optimizer.pt 810 MBcheckpoint-450000/optimizer.pt 810 MBcheckpoint-465135/optimizer.pt 810 MBcheckpoint-50000/optimizer.pt 810 MBcheckpoint-100000/model.safetensors 405 MBcheckpoint-150000/model.safetensors 405 MBcheckpoint-200000/model.safetensors 405 MBcheckpoint-250000/model.safetensors 405 MBcheckpoint-300000/model.safetensors 405 MBcheckpoint-350000/model.safetensors 405 MBcheckpoint-400000/model.safetensors 405 MBcheckpoint-450000/model.safetensors 405 MBcheckpoint-465135/model.safetensors 405 MBcheckpoint-50000/model.safetensors 405 MBmodel.safetensors 405 MBcheckpoint-100000/rng_state.pth 14.2 kBcheckpoint-150000/rng_state.pth 14.2 kBcheckpoint-200000/rng_state.pth 14.2 kBcheckpoint-250000/rng_state.pth 14.2 kBcheckpoint-300000/rng_state.pth 14.2 kBcheckpoint-350000/rng_state.pth 14.2 kBcheckpoint-400000/rng_state.pth 14.2 kBcheckpoint-450000/rng_state.pth 14.2 kBcheckpoint-465135/rng_state.pth 14.2 kBcheckpoint-50000/rng_state.pth 14.2 kBcheckpoint-100000/training_args.bin 5.6 kBcheckpoint-150000/training_args.bin 5.6 kBcheckpoint-200000/training_args.bin 5.6 kBcheckpoint-250000/training_args.bin 5.6 kBcheckpoint-300000/training_args.bin 5.6 kBcheckpoint-350000/training_args.bin 5.6 kBcheckpoint-400000/training_args.bin 5.6 kBcheckpoint-450000/training_args.bin 5.6 kBcheckpoint-465135/training_args.bin 5.6 kBcheckpoint-50000/training_args.bin 5.6 kBtraining_args.bin 5.6 kBcheckpoint-100000/scheduler.pt 1.1 kBcheckpoint-150000/scheduler.pt 1.1 kBcheckpoint-200000/scheduler.pt 1.1 kBcheckpoint-250000/scheduler.pt 1.1 kBcheckpoint-300000/scheduler.pt 1.1 kBcheckpoint-350000/scheduler.pt 1.1 kBcheckpoint-400000/scheduler.pt 1.1 kBcheckpoint-450000/scheduler.pt 1.1 kBcheckpoint-465135/scheduler.pt 1.1 kBcheckpoint-50000/scheduler.pt 1.1 kBfacebook/bart-base