Downloads · 30 days
13
9% of all-time downloads
dranreb1660/medimaven-llama3-8b-fp16
medimaven-llama3-8b-fp16 is a text generation model from dranreb1660. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A domain-adapted Llama-3 fine-tuned on ~150 k high-quality Q&A pairs, merged to full-precision fp16 weights for maximum downstream flexibility.
Downloads · 30 days
13
9% of all-time downloads
All-time downloads
138
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
A domain-adapted Llama-3 fine-tuned on ~150 k high-quality Q&A pairs, merged to full-precision fp16 weights for maximum downstream flexibility.
| Base model | Meta-Llama-3-8B |
| Tuning method | QLoRA (8-bit) → merge to fp16 |
| Training data | Curated MedQuAD v2, scrapped articles from Mayo Clinic, NIH, NHS and WEBMD |
| Intended use | Medical information retrieval, summarisation, chat |
Disclaimer Outputs are informational and do not constitute medical advice.
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("dranreb1660/medimaven-llama3-8b-fp16")
model = AutoModelForCausalLM.from_pretrained(
"dranreb1660/medimaven-llama3-8b-fp16",
torch_dtype="float16",
device_map="auto"
)
prompt = "Explain first-line treatment for GERD in two sentences."
print(tok.decode(model.generate(**tok(prompt, return_tensors="pt").to(model.device),
max_new_tokens=64)[0],
skip_special_tokens=True))
| Metric | Clean Llama-3 8 B | MediMaven |
|---|---|---|
| Medical MC-QA (exact-match) | 78.4 | 89.7 |
| F1 (MedQA-RAG) † | 0.71 | 0.83 |
Built dataset with de-duplicated, source-attributed passages (MedQuAD, Mayo, iCliniq) check dataset card for more info.
Applied QLoRA (32 → 4 bit) on NVIDIA T4, 3-epoch, LR 3e-5, cosine schedule.
Merged LoRA adapters to fp16; ran AWQ (see separate repo) for prod inference.
Llama-3 license prohibits use in regulated "high-risk" settings.
English-only; no guarantee of safe output in other languages.
@misc{medimaven2025llama3,
title = {MediMaven Llama-3.1-8B},
author = {Kyei-Mensah, Bernard},
year = {2025},
howpublished = {\url{https://huggingface.co/dranreb1660/medimaven-llama3-8b-fp16}}
}