Downloads · 30 days
9
23% of all-time downloads
amank-root/demo-ddi-1.5b-lora
demo-ddi-1.5b-lora is a machine learning model from amank-root. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
LoRA adapter fine-tuned on the OpenEnv-DDI drug-drug interaction triage task.
Downloads · 30 days
9
23% of all-time downloads
All-time downloads
40
Public
Repo size
125 MB
Likes
0
Public
Click a slice to open those files.
.safetensors111 MB · 60%
From the Hugging Face model README
LoRA adapter fine-tuned on the OpenEnv-DDI drug-drug interaction triage task.
Base model: Qwen/Qwen2.5-1.5B-Instruct
Task: Given a patient's medication list and labs, flag/monitor/ignore DDIs and suggest safer alternatives.
Training: 2 500 SFT rows (18 real + 480 synthetic cases), 2 epochs, r=8 LoRA.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct", torch_dtype="auto", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("amank-root/demo-ddi-1.5b-lora")
model = PeftModel.from_pretrained(base, "amank-root/demo-ddi-1.5b-lora")
model = model.merge_and_unload() # optional: merge for faster inference