Downloads · 30 days
125
100% of all-time downloads
sourxv-17/medical_llama3
medical_llama3 is a machine learning model from sourxv-17. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
LLaMA 3.1 8B Instruct fine-tuned for medical question answering, built for MedAssist: a cited, guarded medical information assistant (B.Tech project, Group 36, Symbiosis Institute of Technology, Pune).
Downloads · 30 days
125
100% of all-time downloads
All-time downloads
125
Public
Repo size
5.3 GB
Likes
1
Public
Click a slice to open those files.
.gguf4.9 GB · 93%
From the Hugging Face model README
LLaMA 3.1 8B Instruct fine-tuned for medical question answering, built for MedAssist: a cited, guarded medical information assistant (B.Tech project, Group 36, Symbiosis Institute of Technology, Pune).
Code: github.com/sourav-singh-10/medical-llm-safety-guardrails Training data: sourxv-17/llama3.1-medical-dataset Routing benchmark: sourxv-17/medroute-bench
| File | What it is |
|---|---|
medical-llama3.1-8b-Q4_K_M.gguf | Final model (checkpoint-3400), merged and quantised to GGUF Q4_K_M, about 4.9 GB. Runs on CPU with Ollama or llama.cpp |
adapter_model.safetensors, adapter_config.json | LoRA adapter files uploaded earlier in the project |
| Metric | Base LLaMA 3.1 8B | This model |
|---|---|---|
| Perplexity on reference answers (n = 200) | 9.25 | 5.53 |
| ROUGE-L (n = 100) | 0.157 | 0.162 |
| Emergency escalation (model only) | 100% | 100% |
| Off-topic refusal (model only, app rules off) | 55% | 15% |
Fine-tuning weakened off-topic refusal, so MedAssist enforces refusal with its own topic router and guardrails rather than relying on the model.
# Modelfile
FROM ./medical-llama3.1-8b-Q4_K_M.gguf
TEMPLATE """{{ range .Messages }}<|start_header_id|>{{ .Role }}<|end_header_id|>
{{ .Content }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
"""
PARAMETER stop "<|eot_id|>"
PARAMETER temperature 0.2
ollama create medical-llama3.1 -f Modelfile
ollama run medical-llama3.1 "What are the symptoms of dengue?"
For education and health information only. It is not a doctor, does not diagnose, and can be wrong. In an emergency in India call 108 or 112; for mental-health support call Tele-MANAS 14416.