Downloads · 30 days
382
17% of all-time downloads
tinyopsec/Llama-3.2-3B-Instruct-Medical-Finetuned-merged-GGUF
Llama-3.2-3B-Instruct-Medical-Finetuned-merged-GGUF is a text generation model from tinyopsec. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as llama3.2.
GGUF quantizations of MohamedAhmedAE/Llama-3.2-3B-Instruct-Medical-Finetuned-merged — a 3.21B-parameter Llama-3.2 model adapted to the medical domain using QLoRA, with the LoRA weights merged back into the base.
Downloads · 30 days
382
17% of all-time downloads
All-time downloads
2.3K
Public
Repo size
27.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf27.4 GB · 100%
From the Hugging Face model README
GGUF quantizations of MohamedAhmedAE/Llama-3.2-3B-Instruct-Medical-Finetuned-merged — a 3.21B-parameter Llama-3.2 model adapted to the medical domain using QLoRA, with the LoRA weights merged back into the base.
Quantized by tinyopsec.
| Attribute | Value |
|---|---|
| Architecture | LlamaForCausalLM |
| Parameters | ~3.21 B |
| Base model | meta-llama/Llama-3.2-3B-Instruct |
| Fine-tuning method | QLoRA (4-bit NF4 base + LoRA, r=128, α=256) |
| Merged | Yes — LoRA fused into base weights |
| Training precision | bfloat16 |
| Context length | 128K tokens (native) |
| Vocabulary | 128,256 tokens |
| Language | English |
| License | Llama 3.2 Community License |
| Developer | Mohamed Ahmed Abo El-Enen, Sally S. Ismail, Taymoor Mohamed Nazmy |
Med-LLaMA3.2-3B is the 3B (balanced / mid-tier) member of the Med-LLaMA3 family introduced in the paper "Med-LLaMA3: Advancing Medical Question-Answering Through Parameter-Efficient Fine-Tuning of Large Language Models" (Applied Sciences, 2026). The family adapts the LLaMA-3 architecture to the medical domain by training only a small fraction of the base model's parameters (5.70% for this 3B variant), achieving strong medical question-answering performance while keeping the memory footprint low.
meta-llama/Llama-3.2-3B-Instructmerge_and_unload() into the baseMohamedAhmedAE/Med_LLaMa3_fine-tuning_dataset, medalpaca/medical_meadow_medqa, medalpaca/medical_meadow_medical_flashcards, medalpaca/medical_meadow_wikidoc, medalpaca/medical_meadow_wikidoc_patient_information, medalpaca/medical_meadow_cord19, medalpaca/medical_meadow_pubmed_causal, openlifescienceai/medmcqa, bigbio/med_qa, qiaojin/PubMedQA, deepset/covid_qa_deepsetThis repository contains the merged standalone model. No adapter or PEFT is required for inference.
| File | Bits | Size | Use Case |
|---|---|---|---|
model_f16.gguf | 16 | 6.43 GB | Reference, maximum quality |
model_q8_0.gguf | 8 | 3.42 GB | High quality, fast on capable hardware |
model_q6_k.gguf | 6 | 2.64 GB | Near-lossless, good balance |
model_q5_k_m.gguf | 5 | 2.32 GB | Recommended for quality-focused use |
model_q5_k_s.gguf | 5 | 2.27 GB | Slightly smaller Q5 variant |
model_q4_k_m.gguf | 4 | 2.02 GB | Best balance of size and quality |
model_q4_k_s.gguf | 4 | 1.93 GB | Smaller Q4 variant |
model_q3_k_l.gguf | 3 | 1.82 GB | Low memory, acceptable quality |
model_q3_k_m.gguf | 3 | 1.69 GB | Compact, moderate quality loss |
model_q3_k_s.gguf | 3 | 1.54 GB | Minimum size Q3 |
Approximate total VRAM required for inference (weights + context overhead).
| Quantization | VRAM (approx.) |
|---|---|
| F16 | ~6.5 GB |
| Q8_0 | ~3.5 GB |
| Q6_K | ~2.8 GB |
| Q5_K_M | ~2.5 GB |
| Q4_K_M | ~2.2 GB |
| Q3_K_M | ~1.9 GB |
| Q3_K_S | ~1.7 GB |
./llama-cli -m model_q4_k_m.gguf \
-p "You are a helpful medical assistant. Answer the following question accurately and concisely.\n\nQuestion:\nWhat are the early symptoms of type 2 diabetes?\n\nAnswer:\n" \
-n 512 --temp 0.0
from llama_cpp import Llama
llm = Llama(model_path="model_q4_k_m.gguf", n_ctx=4096)
output = llm(
"You are a helpful medical assistant. Answer the following question accurately and concisely.\n\nQuestion:\nWhat is the mechanism of action of metformin?\n\nAnswer:\n",
max_tokens=512,
temperature=0.0,
)
print(output["choices"][0]["text"])
.gguf file from this repositoryollama run hf.co/tinyopsec/Llama-3.2-3B-Instruct-Medical-Finetuned-merged-GGUF:Q4_K_M
For medical question answering, use the standard Llama 3.2 chat template:
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are a helpful medical assistant. Answer the user's question accurately and concisely.<|eot_id|><|start_header_id|>user<|end_header_id|>
{your question here}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
For general instruction use, the default chat template also works.
The parent model is released under the Llama 3.2 Community License. Any use of this GGUF quantization must comply with the same license terms. Confirm the source dataset licenses before commercial deployment.
@article{aboelenen2026medllama3,
title={Med-LLaMA3: Advancing Medical Question-Answering Through Parameter-Efficient Fine-Tuning of Large Language Models},
author={Abo El-Enen, Mohamed Ahmed and Ismail, Sally S. and Nazmy, Taymoor Mohamed},
journal={Applied Sciences},
year={2026}
}