Downloads · 30 days
17
21% of all-time downloads
kprsnt/drug-discovery-qwen-14b
drug-discovery-qwen-14b is a text classification model from kprsnt. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of Qwen 2.5 14B for drug discovery and molecular property prediction. It predicts whether a drug compound (represented as a SMILES string) is likely to be approved or fail in clinica…
Downloads · 30 days
17
21% of all-time downloads
All-time downloads
81
Public
Parameters
14B
28 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors28 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Qwen 2.5 14B for drug discovery and molecular property prediction. It predicts whether a drug compound (represented as a SMILES string) is likely to be approved or fail in clinical trials.
| Metric | Score |
|---|---|
| Accuracy | 0.6185 |
| F1 Score | 0.0000 |
| Precision | 0.0000 |
| Recall | 0.0000 |
| ROC-AUC | 0.5000 |
| PR-AUC | 0.3815 |
The model was trained on a curated dataset of drug molecules with known clinical trial outcomes:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
# Load model and tokenizer
model_name = "kprsnt/drug-discovery-qwen-14b"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Example SMILES string (Aspirin)
smiles = "CC(=O)OC1=CC=CC=C1C(=O)O"
# Tokenize and predict
inputs = tokenizer(smiles, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
outputs = model(**inputs)
probs = torch.softmax(outputs.logits, dim=-1)
prediction = torch.argmax(probs, dim=-1).item()
print(f"Prediction: {'Approved' if prediction == 1 else 'Failed'}")
print(f"Confidence: {probs[0][prediction].item():.2%}")
@misc{drug-discovery-qwen-14b,
author = {Prashanth Kumar},
title = {Drug Discovery Model - Qwen 2.5 14B Finetuned},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/kprsnt/drug-discovery-qwen-14b}
}