Downloads · 30 days
16
2% of all-time downloads
khanfs/ChemSolubilityBERTa
ChemSolubilityBERTa is a text classification model from khanfs. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
ChemSolubilityBERTa is a prototype designed to predict the aqueous solubility of chemical compounds from their SMILES representations. Based on ChemBERTa, a BERT-like transformer-based architecture, ChemBERTa pre-trai…
Downloads · 30 days
16
2% of all-time downloads
All-time downloads
702
Public
Parameters
44.1M
176 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors176 MB · 100%
From the Hugging Face model README
ChemSolubilityBERTa is a prototype designed to predict the aqueous solubility of chemical compounds from their SMILES representations. Based on ChemBERTa, a BERT-like transformer-based architecture, ChemBERTa pre-trained on 77M SMILES strings for molecular property prediction. We adapted ChemBERTa to predict solubility values by fine-tuning ChemBERTa with the ESOL (Estimated SOLubility) dataset, a water solubility prediction dataset of 1,128 samples. A user inputs a SMILES string, and the model outputs a log solubility value (log mol/L). You can read the full paper here.
seyonec/ChemBERTa-zinc-base-v1You can use the model to predict solubility for any molecule represented by a SMILES string:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("username/ChemSolubilityBERTa")
model = AutoModelForSequenceClassification.from_pretrained("username/ChemSolubilityBERTa")
smiles_string = "CCO" # Example for ethanol
inputs = tokenizer(smiles_string, return_tensors='pt')
outputs = model(**inputs)
solubility = outputs.logits.item()
print(f"Predicted solubility: {solubility}")
If you use ChemSolubilityBERTa in your research or projects, please cite the following:
@misc{ChemSolubilityBERTa,
author = {Farooq Khan},
title = {ChemSolubilityBERTa: A Transformer-Based Model for Predicting Aqueous Solubility from SMILES},
year = {2024},
url = {https://huggingface.co/khanfs/ChemSolubilityBERTa}
}
This model is licensed under the MIT License.