print(ask_doctor("I have a headache and fever from 2 days. What should I do?"))
Example Output
Patient: I have a headache and fever from 2 days. What should I do?
Model: Based on your symptoms, you may be experiencing a viral
infection. I recommend rest, staying hydrated, and taking paracetamol
for fever. If fever exceeds 103°F or symptoms worsen, please consult
a doctor immediately.
Training Details
Parameter
Value
Base Model
SmolLM2-1.7B-Instruct
Method
LoRA
Dataset
avaliev/chat_doctor
Steps
1494
Start Loss
1.5952
Final Loss
1.1899
Framework
HuggingFace Transformers + PEFT
Limitations
Small model (1.7B) — answers may be generic sometimes
Not a replacement for real medical advice
Best used for educational and research purposes
Author
Gaurav — Fine-tuned as part of ML learning project