medgemma-health-chat
Q4_K_M GGUF of a MedGemma health-chat fine-tune for local, private clinical AI prototyping.
14
A 4-bit quantized, GPU-ready build of a MedGemma health-chat fine-tune, packaged for Docker Model Runner.
⚠️ Not a medical device. This model is a research/developer tool for building healthcare-adjacent applications. It is not validated for clinical use and must not be used to diagnose, treat, or make decisions about real patients. Always involve a licensed clinician. See Intended Use below.
| Base model | google/medgemma-1.5-4b-it (Gemma 3 architecture) |
| Fine-tune | bisonnetworking/medgemma-health-chat-merged |
| Parameters | 3.88B (text tower only — vision tower dropped, text-only chat) |
| Quantization | Q4_K_M (mixed 4/6-bit, llama.cpp llama-quantize) |
| Size | 2.31 GiB |
| Context length | 32,768 tokens (configurable at package time) |
| Backend | llama.cpp (CUDA + CPU) via Docker Model Runner |
| Measured VRAM | ~3.7 GB at 32K context on an RTX 2060 (6 GB) — fits with headroom |
# Pull
docker model pull abrarhasinpranto/medgemma-health-chat:Q4_K_M
# Run a one-off prompt
docker model run abrarhasinpranto/medgemma-health-chat:Q4_K_M \
"What are common symptoms of dehydration?"
# Or serve it as an OpenAI-compatible endpoint via Docker Model Runner
# and call it like any chat completion API on the exposed port.
This image is the third generation of a source model — each stage below is a separate, auditable transformation:
┌────────────────────────────────┐
│ google/medgemma-1.5-4b-it │ base model
│ (Gemma 3, multimodal, HAI-DEF │
│ license) │
└────────────────┬─────────────────┘
│ community fine-tune
▼
┌─────────────────────────────────────┐
│ bisonnetworking/medgemma-health-chat │ fp16 safetensors, ~8.6 GB
│ -merged │ (text + vision towers)
└────────────────┬───────────────────────┘
│ convert_hf_to_gguf.py
│ (text tower only)
▼
┌─────────────────────────────────┐
│ medgemma-health-chat-f16.gguf │ 7.76 GB, F16
└────────────────┬──────────────────┘
│ llama-quantize → Q4_K_M
▼
┌─────────────────────────────────┐
│ medgemma-health-chat-Q4_K_M.gguf │ 2.31 GiB ◄── this image
└────────────────┬──────────────────┘
│ docker model package --gguf
▼
┌─────────────────────────────────┐
│ Docker Model OCI artifact │
│ (llama.cpp backend, CUDA) │
└──────────────────────────────────┘
Validation performed before publishing:
convert_hf_to_gguf.py (text-only extraction from the Gemma3 multimodal checkpoint).llama-quantize CLI (Q4_K_M).llama-server on CPU with a direct chat-completion request — produced a coherent, on-topic clinical answer.docker model run on GPU (CUDA backend) — confirmed working end-to-end.No additional fine-tuning, RLHF, or safety-tuning was performed by the packager beyond what the upstream fine-tune (bisonnetworking/medgemma-health-chat-merged) already applied. This repo only handles format conversion and quantization — it does not change model weights' learned behavior beyond the precision loss inherent to 4-bit quantization.
| Quant | Approx. VRAM (32K ctx) | Minimum GPU |
|---|---|---|
| Q4_K_M (this image) | ~3.5–4 GB | 6 GB (e.g. RTX 2060) |
Lowering --context-size at repackage time (e.g. to 8192) frees several hundred MB more if you need headroom to run another model concurrently (e.g. an ASR model in the same pipeline).
google/medgemma-1.5-4b-it — Google, HAI-DEF licensebisonnetworking/medgemma-health-chat-merged — community fine-tuneIf you build on top of this image, please preserve this attribution chain and the license terms above.
Content type
Model
Digest
sha256:552de16cd…
Size
2.3 GB
Last updated
3 days ago
docker model pull abrarhasinpranto/medgemma-health-chat:Q4_K_M