MedGemma 2 26B-A4B-it
Run with https://llama.app
llama serve -hf ggml-org/medgemma-2-26B-A4B-it-GGUF:Q4_K_M
Source models
- https://huggingface.co/google/medgemma-2-26B-A4B-it
Files
| Quant | Size | Notes |
|---|---|---|
| BF16 | 50.5 GB | 16-bit precision |
| Q8_0 | 26.9 GB | High-precision. All weight matrices at Q8_0 |
| Q6_K | 23.0 GB | imatrix-calibrated. Near-Q8_0 quality. |
| Q4_K_M | 17.5 GB | imatrix-calibrated. 4-bit routed experts with attention and shared dense FFN kept at Q8_0 |
| mmproj (BF16, Q8_0) | 1.19 GB / 806 MB | Vision encoder |
Notes
- MedGemma 2 26B-A4B-it is a 26B total (~4B active) Gemma 4 mixture-of-experts model (30 layers, 128 routed experts with 8 active per token plus a shared dense FFN, 256K context) with image input.
- In both
Q6_KandQ4_K_M, attention (attn_) and the shared dense FFN (ffn_gate,ffn_up,ffn_down) are kept at Q8_0. Becausemoe_intermediate_size = 704is not divisible by 256,ffn_down_expsautomatically falls back to Q8_0 inQ6_Kand Q5_0/Q8_0 inQ4_K_M. - Both
Q6_KandQ4_K_Mare calibrated with the imatrix computed from the BF16 on a 70/30 interleaved mix of bartowski's v6 calibration data (with conversations rendered through MedGemma's chat template) and biomedical Q&A (PubMedQA + MedQA-USMLE). - KL divergence against the BF16 (40 x 512 tokens):
- Held-out biomedical eval (PubMedQA + MedQA-USMLE): Q8_0 0.0748 (93.3% same top token), Q6_K 0.1031 (92.0% same top token), Q4_K_M 0.1742 (88.7% same top token; stock Q4_K_M was 0.6025 / 77.2%).
- wikitext-2: Q8_0 0.1749 (88.2% same top token), Q6_K 0.1760 (87.3% same top token), Q4_K_M 0.2919 (83.0% same top token; stock Q4_K_M was 0.9882 / 65.3%).
[!IMPORTANT] This model is automatically converted using https://github.com/ggml-org/convert