sagawa/ZINC-canonicalized
Viewer • Updated • 23M • 182
How to use sagawa/ZINC-deberta with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="sagawa/ZINC-deberta") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("sagawa/ZINC-deberta")
model = AutoModelForMaskedLM.from_pretrained("sagawa/ZINC-deberta")This model is a fine-tuned version of microsoft/deberta-base on the sagawa/ZINC-canonicalized dataset. It achieves the following results on the evaluation set:
We trained deberta-base on SMILES from ZINC using the task of masked-language modeling (MLM). Its tokenizer is a character-level tokenizer trained on ZINC.
This model can be used for the prediction of molecules' properties, reactions, or interactions with proteins by changing the way of finetuning.
We downloaded ZINC data and canonicalized them using RDKit. Then, we droped duplicates. The total number of data is 22992522, and they were randomly split into train:validation=10:1.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|---|---|---|---|---|
| 0.045 | 1.06 | 100000 | 0.9842 | 0.0409 |
| 0.0372 | 2.13 | 200000 | 0.9864 | 0.0346 |
| 0.0337 | 3.19 | 300000 | 0.9874 | 0.0314 |
| 0.0318 | 4.25 | 400000 | 0.9882 | 0.0293 |
| 0.0296 | 5.31 | 500000 | 0.0277 | 0.9887 |
| 0.0289 | 6.38 | 600000 | 0.0264 | 0.9891 |
| 0.0267 | 7.44 | 700000 | 0.0253 | 0.9894 |
| 0.0261 | 8.5 | 800000 | 0.0243 | 0.9898 |
| 0.025 | 9.57 | 900000 | 0.0238 | 0.9900 |