Downloads · 30 days
72
3% of all-time downloads
hogru/MolReactGen-GuacaMol-Molecules
MolReactGen-GuacaMol-Molecules is a text generation model from hogru. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
MolReactGen is a model that generates molecules in SMILES format (this model) and reaction templates in SMARTS format.
Downloads · 30 days
72
3% of all-time downloads
All-time downloads
2.8K
Public
Repo size
49.3 MB
Likes
1
Public
Click a slice to open those files.
.bin12.3 MB · 99%
From the Hugging Face model README
MolReactGen is a model that generates molecules in SMILES format (this model) and reaction templates in SMARTS format.
MolReactGen is based on the the GPT-2 transformer decoder architecture and has been trained on the GuacaMol dataset. More information can be found in these introductory slides.
The main use of this model is to pass the master's examination of the author ;-)
The model can be used in a Hugging Face text generation pipeline. For the intended use case a wrapper around the raw text generation pipeline is needed. This is the generate.py from the repository.
The model has a default GenerationConfig() (generation_config.json) which can be overwritten. Depending on the number of molecules to be generated (num_return_sequences in the JSON file) this might take a while. The generation code above shows a progress bar during generation.
The model generates molecules that are similar to the GuacaMol training data, which itself is based on ChEMBL. Any checks of the molecules, e.g. chemical feasiblitly, must be adressed by the user of the model.
The default Hugging Face Trainer() has been used, with an EarlyStoppingCallback().
The training data was pre-processed with a PreTrainedTokenizerFast() trained on the training data with a character level pre-tokenizer and Unigram as the sub-word tokenization algorithm with a vocabulary size of 88. Other tokenizers can be configured.
More configuration (options) can be found in the conf directory of the repository.
Please see the slides / the poster mentioned above.
Please see the slides / the poster mentioned above.
Please see the slides / the poster mentioned above.