License notice: This is a quantized derivative of google/medgemma-1.5-4b-it and is governed by the Gemma Terms of Use. You must accept those terms on the original model page before downloading or using this file. All credit for the base model goes to Google.
GGUF Q3_K_M (3-bit k-means quantization via llama.cpp)
Runtime
llama.cpp / llama.rn
Tested on
Tecno Spark 40 · MediaTek Helio G100 · 8 GB RAM
About this quantization
Q3_K_M uses 3-bit k-means quantization with medium-sized super-blocks. Compared to lower bit-widths:
Variant
Bits
Size
Notes
Q4_K_M
4.83
2.4 GB
Higher quality — recommended for workstation use
Q3_K_M
3.07
2.0 GB
Best fit for 8 GB mobile RAM — used in Capsule
Q2_K
2.96
1.5 GB
Perplexity penalty too high (+3.5 PPL)
IQ2_M
2.7
1.3 GB
Too slow on mobile CPU
Q3_K_M was selected after benchmarking on a mid-range Android phone (Tecno Spark 40, MediaTek Helio G100). It is the highest quality variant that fits within the phone's working RAM budget after the OS and app overhead are accounted for.
Files
File
Description
medgemma-1.5-4b-it-Q3_K_M.gguf
Q3_K_M quantized GGUF weights
Usage
llama.cpp CLI
bash
1./llama-cli \2 -m medgemma-1.5-4b-it-Q3_K_M.gguf \3 -n 512\4 --ctx-size 4096\5 --temp 0.3\6 --repeat-penalty 1.1\7 -p "<start_of_turn>user\nGenerate a SOAP note for the following transcript:\n\n{transcript}<end_of_turn>\n<start_of_turn>model\n"
No GPU required. Also tested on Ryzen 7 8845HS (32 GB RAM) where the Q4_K_M variant is used for the workstation pipeline.
Quantization command
bash
1# Convert base model weights to GGUF (run inside llama.cpp repo)2python convert_hf_to_gguf.py \3 /path/to/medgemma-1.5-4b-it \4 --outfile medgemma-1.5-4b-it-f16.gguf \5 --outtype f16
67# Quantize to Q3_K_M8./llama-quantize \9 medgemma-1.5-4b-it-f16.gguf \10 medgemma-1.5-4b-it-Q3_K_M.gguf \11 Q3_K_M
Memory layout on device
MedASR (101 MB ONNX) and MedGemma (2.0 GB GGUF) are loaded sequentially — never simultaneously — to stay within 8 GB RAM:
Record dictation → Load MedASR (101 MB) → Transcribe → Unload MedASR
→ Pre-load MedGemma during transcript review (2.0 GB)
→ Generate SOAP note → Unload MedGemma (on demand)
Total on-device footprint: 2.1 GB active at any one time.
License
This model is derived from google/medgemma-1.5-4b-it and inherits the Gemma Terms of Use. You must accept those terms before downloading or using this model.
Citation
If you use this model, please cite the original MedGemma work and acknowledge the Capsule project:
@misc{capsule2026,
title = {Capsule: Edge AI Clinical Documentation with Agentic Intelligence},
author = {Mohammed K. A. Abed},
year = {2026},
url = {https://github.com/mo-saif/capsule}
}