abrarhasinpranto/medgemma-health-chat

By abrarhasinpranto

Updated 3 days ago

Q4_K_M GGUF of a MedGemma health-chat fine-tune for local, private clinical AI prototyping.

Model
Languages & frameworks
Internet of things
Machine learning & AI
0

14

abrarhasinpranto/medgemma-health-chat repository overview

medgemma-health-chat (Q4_K_M)

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.


Model at a glance

Base modelgoogle/medgemma-1.5-4b-it (Gemma 3 architecture)
Fine-tunebisonnetworking/medgemma-health-chat-merged
Parameters3.88B (text tower only — vision tower dropped, text-only chat)
QuantizationQ4_K_M (mixed 4/6-bit, llama.cpp llama-quantize)
Size2.31 GiB
Context length32,768 tokens (configurable at package time)
Backendllama.cpp (CUDA + CPU) via Docker Model Runner
Measured VRAM~3.7 GB at 32K context on an RTX 2060 (6 GB) — fits with headroom

Quick start

# 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.

How this build was made

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:

  • Converted with llama.cpp's convert_hf_to_gguf.py (text-only extraction from the Gemma3 multimodal checkpoint).
  • Quantized with the official llama-quantize CLI (Q4_K_M).
  • Smoke-tested via llama-server on CPU with a direct chat-completion request — produced a coherent, on-topic clinical answer.
  • Re-tested after packaging via 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.


Hardware requirements

QuantApprox. VRAM (32K ctx)Minimum GPU
Q4_K_M (this image)~3.5–4 GB6 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).


Intended use & license

  • The base model (MedGemma) is governed by Google's Health AI Developer Foundations (HAI-DEF) terms of use and the Gemma license. MedGemma is explicitly described by Google as "intended to be used as a starting point... not intended to be used without appropriate validation, adaptation, and/or meaningful modification."
  • This image is a derivative work: base model → community fine-tune → format conversion/quantization. It carries the same license obligations forward.
  • Intended for: prototyping healthcare-adjacent chat assistants, education, and research on-device/on-prem, where data never has to leave your infrastructure.
  • Not intended for: direct clinical decision-making, diagnosis, treatment planning, or any use without a licensed clinician in the loop and further validation for your specific use case.

Attribution chain

  1. google/medgemma-1.5-4b-it — Google, HAI-DEF license
  2. bisonnetworking/medgemma-health-chat-merged — community fine-tune
  3. This image — GGUF conversion + Q4_K_M quantization + Docker Model Runner packaging by @abrarhasinpranto

If you build on top of this image, please preserve this attribution chain and the license terms above.

Tag summary

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