lavita/ChatDoctor-HealthCareMagic-100k
Viewer โข Updated โข 112k โข 6.55k โข 112
A QLoRA fine-tuned version of Gemma 3 4B on the ChatDoctor-HealthCareMagic dataset for medical Q&A.
| Epoch | Loss | Token Accuracy |
|---|---|---|
| 1 | 2.402 | 0.49 |
| 2 | 2.300 | 0.51 |
| 3 | 2.261 | 0.52 |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("google/gemma-3-4b-it")
model = PeftModel.from_pretrained(base, "BhuvanKrishna12/adaptllm-medical")
Input: I have been taking metformin and recently started ciprofloxacin. I am experiencing hypoglycemia episodes.
Output: Ciprofloxacin is a fluoroquinolone antibiotic which can affect blood glucose levels when combined with metformin. You should consult your doctor about switching to a different antibiotic.
This model is for research and educational purposes only. Not intended for actual medical diagnosis or treatment.
AdaptLLM โ a local LLM fine-tuning pipeline