CoolFace
Modelpublic

sagawa/ZINC-t5-v2

sourceHugging Facemitupdated 4y agoView on Hugging Face
0likes17downloads
Model Card

ZINC-t5

This model is a fine-tuned version of google/t5-v1_1-base on the sagawa/ZINC-canonicalized dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.1228
  • —Accuracy: 0.9476

Model description

We trained t5 on SMILES from ZINC using the task of masked-language modeling (MLM). Compared to ZINC-t5, ZINC-t5-v2 uses a character-level tokenizer, and it was also trained on ZINC.

Intended uses & limitations

This model can be used for the prediction of molecules' properties, reactions, or interactions with proteins by changing the way of finetuning. As an example, We finetuned this model to predict products. The model is here, and you can use the demo here. Using its encoder, we trained a regression model to predict a reaction yield. You can use this demo here.

Training and evaluation data

We downloaded ZINC data and canonicalized them using RDKit. Then, we dropped duplicates. The total number of data is 22992522, and they were randomly split into train:validation=10:1.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-03
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 10.0

Training results

Training LossStepAccuracyValidation Loss
0.20901000000.92640.1860
0.16282000000.93490.1613
0.16323000000.93950.1467
0.14514000000.94350.1345
0.13115000000.94650.1261