pingzhili/uspto-50k
Viewer • Updated • 50k • 662 • 5
How to use pingzhili/chemberta-v2-finetuned-uspto-50k-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="pingzhili/chemberta-v2-finetuned-uspto-50k-classification") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("pingzhili/chemberta-v2-finetuned-uspto-50k-classification")
model = AutoModelForSequenceClassification.from_pretrained("pingzhili/chemberta-v2-finetuned-uspto-50k-classification", device_map="auto")This ChemBERTa-v2 checkpoint was fine-tuned on the USPTO-50k dataset for sequence classification.
Specifically, the objective is to predict the reaction class label, and the input is either (canonicalized) all reactant SMILES or all product SMILES (separated by ".").
Train/Test split: 0.99/0.01
Evaluation results:
Fine-tuning hyperparameters: