Downloads · 30 days
7
2% of all-time downloads
patilshrinivas/Qwen2.5-3B-Instruct-drug-ade-relation-extractor
Qwen2.5-3B-Instruct-drug-ade-relation-extractor is a text generation model from patilshrinivas. Use it when you need the model to write or continue text. It is set up for transformers.
Standalone merged version of a QLoRA fine-tuned Qwen/Qwen2.5-3B-Instruct model for extracting drug–adverse drug event (ADE) relations from clinical sentences.
Downloads · 30 days
7
2% of all-time downloads
All-time downloads
424
Public
Parameters
3.1B
6.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
Standalone merged version of a QLoRA fine-tuned Qwen/Qwen2.5-3B-Instruct model for extracting drug–adverse drug event (ADE) relations from clinical sentences.
Qwen/Qwen2.5-3B-Instructr=16, alpha=32, dropout=0.05This repository contains the LoRA adapter merged into the base model and can be loaded directly with Transformers.
| Metric | Fine-tuned Model |
|---|---|
| Strict Pair F1 | 71.98% |
| Drug F1 | 92.82% |
| Effect F1 | 76.44% |
| JSON Validity | 99.00% |
| Relaxed Pair F1 | 84.82% |
| G-Eval Average Correctness Score | 0.8749 |
G-Eval was performed with DeepEval using gpt-4o-mini.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "patilshrinivas/Qwen2.5-3B-Instruct-drug-ade-relation-extractor"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype="bfloat16",
device_map="auto",
)
For generation, use the model with the same clinical extraction prompt/schema described in the project documentation.
This model is intended for research and experimentation in structured clinical information extraction.
It is not a medical diagnostic system and does not replace clinical judgement.