Google released MedGemma 2 26B A4B, a mixture-of-experts medical model under the HAI-DEF terms, and 4-bit inference requires a 32 GB Mac. Both verified Q4 GGUF builds, ggml-org Q4_K_M (17.546 GB) and Unsloth UD-Q4_K_XL (17.011 GB), exceed a 24 GB Mac's 16.8 GB usable budget. A 24 GB Mac fits 3-bit quants only, llama.cpp is the sole verified runtime today, and 16 GB Macs should skip it.
Does MedGemma 2 26B A4B run on a Mac?
The table below uses ModelFit engine arithmetic (ramBudgetRatio of 70% to 85% of unified memory) and labels every throughput figure as an estimate. File sizes come from the ggml-org GGUF repository and the Unsloth GGUF repository via the Hugging Face blobs API.
| Mac tier | Usable RAM | Best build | Size | Verdict |
|---|---|---|---|---|
| 16 GB (M6) | 11.2 GB | None | Exceeds budget | No |
| 24 GB (M5 Pro) | 16.8 GB | UD-Q3_K_XL | 12.907 GB | Fits (16.1 tok/s est.) |
| 32 GB (M6) | 22.4 GB | UD-Q5_K_XL | 21.218 GB | Tight (5.4 tok/s est.) |
| 48 GB (M5 Pro) | 34.8 GB | UD-Q8_K_XL | 27.636 GB | Fits (7.5 tok/s est.) |
| 64 GB (M5 Pro) | 48 GB | UD-Q8_K_XL | 27.636 GB | Fits (7.5 tok/s est.) |
| 96 GB (M5 Ultra) | 76.8 GB | BF16 | 50.505 GB | Fits (16.5 tok/s est.) |
| 128 GB (M5 Max) | 108.8 GB | BF16 | 50.505 GB | Fits (8.2 tok/s est.) |
| 256 GB (M5 Ultra) | 217.6 GB | BF16 | 50.505 GB | Fits (16.5 tok/s est.) |
| 512 GB (M5 Ultra) | 435.2 GB | BF16 | 50.505 GB | Fits (16.5 tok/s est.) |
Get told when a better model fits your Mac Mini M5 Pro 24 GB
One email when a new open-weight model is a better fit for your machine, plus the Thursday weekly.
For: Mac Mini M5 Pro 24 GB
You'll also get the weekly ModelFit email. By signing up you agree to our Privacy Policy. Unsubscribe from either email anytime, in one click.
The Q4 floor sits at 32 GB because a 32 GB Mac gives the engine 22.4 GB usable memory. Both 4-bit GGUF builds sit comfortably inside that ceiling: ggml-org Q4_K_M weighs 17.546 GB and Unsloth UD-Q4_K_XL weighs 17.011 GB. Engine arithmetic also fits Unsloth UD-Q5_K_XL (21.218 GB) at 32 GB, marked Tight because it leaves minimal room for KV cache or the vision projector. Dropping to Q4 restores headroom for longer prompts and image inputs.
A 24 GB Mac is the entry floor and is limited to 3-bit quants. Because 24 GB gives a 16.8 GB usable budget, neither ggml-org Q4_K_M (17.546 GB) nor Unsloth UD-Q4_K_XL (17.011 GB) fits. The engine picks Unsloth UD-Q3_K_XL (12.907 GB), alongside UD-Q3_K_M (12.728 GB). Both leave modest room for KV cache, the vision projector, and macOS.
A 16 GB Mac gets 11.2 GB usable, and no admissible build fits. The smallest 3-bit file, UD-IQ3_XXS (11.29 GB), exceeds that limit before any context is allocated. ModelFit excludes Unsloth 2-bit builds (UD-IQ2_XXS, UD-Q2_K_XL) because sub-3-bit quantization degrades medical reasoning too heavily.
What is in the MedGemma 2 26B A4B release?
According to the Google model card, MedGemma 2 ships two instruction-tuned checkpoints: a 4B multimodal variant (E4B) and this 26B mixture-of-experts variant (A4B). Google notes it uses the unmodified Gemma 4 architecture and targets reasoning for clinical research workflows. The A4B active parameter path lets a 26B model decode faster on memory-bandwidth-limited Macs.
Total memory in GB (weights + FP16 KV cache est. vs macOS wired-memory budgets)
The vendor README in the Unsloth GGUF card lists 30 layers for the 26B MoE (A4B) variant versus 42 layers for 4B (E4B). Fewer layers shrink per-token KV cache growth on 24 GB and 32 GB Macs, though long discharge summaries or multiple images can still push 24 GB into swap.
Google lists the pipeline as image-text-to-text. In llama.cpp, image input needs a separate multimodal projector (mmproj) file that adds resident memory above the GGUF weight sizes. Verify projector size in the GGUF repo before planning vision workloads on 24 GB, since ModelFit has not run an Apple Silicon test of the image path.
Google explicitly states the model is not for clinical use: outputs can be wrong or incomplete, require professional verification, and fall under Health AI Developer Foundations terms (other license).
Published weights and admissible builds
The Hugging Face blobs API reports Google BF16 safetensors at 51.612 GB and both BF16 GGUFs (ggml-org and Unsloth) at 50.505 GB. Standard ggml-org quants span Q4_K_M (17.546 GB), Q6_K (22.994 GB), and Q8_0 (26.86 GB), while Unsloth Dynamic builds run from 3-bit through UD-Q8_K_XL (27.636 GB). Sub-3-bit files are excluded below.
| Quant | Format | Size | Bytes | Status |
|---|---|---|---|---|
| BF16 | safetensors | 51.612 GB | 51,612,009,348 | Admissible |
| BF16 | gguf | 50.505 GB | 50,505,137,088 | Admissible |
| Q4_K_M | gguf | 17.546 GB | 17,545,884,832 | Admissible |
| Q6_K | gguf | 22.994 GB | 22,993,695,904 | Admissible |
| Q8_0 | gguf | 26.86 GB | 26,859,860,928 | Admissible |
| BF16 | gguf | 50.505 GB | 50,505,137,920 | Admissible |
| UD-IQ2_M | gguf | 10.015 GB | 10,014,755,392 | Excluded (below 3-bit) |
| UD-IQ2_XXS | gguf | 9.922 GB | 9,922,307,520 | Excluded (below 3-bit) |
| UD-IQ3_S | gguf | 11.416 GB | 11,416,419,392 | Admissible |
| UD-IQ3_XXS | gguf | 11.29 GB | 11,289,541,696 | Admissible |
| UD-Q2_K_XL | gguf | 10.547 GB | 10,546,818,880 | Excluded (below 3-bit) |
| UD-Q3_K_M | gguf | 12.728 GB | 12,728,374,080 | Admissible |
| UD-Q3_K_XL | gguf | 12.907 GB | 12,907,061,952 | Admissible |
| UD-Q4_K_XL | gguf | 17.011 GB | 17,010,980,672 | Admissible |
| UD-Q5_K_XL | gguf | 21.218 GB | 21,217,769,280 | Admissible |
| UD-Q6_K_XL | gguf | 23.295 GB | 23,295,391,552 | Admissible |
| UD-Q8_K_XL | gguf | 27.636 GB | 27,636,233,024 | Admissible |
On 32 GB, Q4_K_M (17.546 GB) and UD-Q4_K_XL (17.011 GB) trade a notch of precision below UD-Q5_K_XL (21.218 GB) for several gigabytes of KV and mmproj headroom. Moving from 24 GB's 3-bit ceiling to 4-bit matters on long reasoning chains where quantization errors compound.
At 48 GB and 64 GB, the engine picks UD-Q8_K_XL (27.636 GB), while Q8_0 (26.86 GB), UD-Q6_K_XL (23.295 GB), and Q6_K (22.994 GB) also fit easily. A 64 GB Mac gains context headroom rather than a higher quant, and BF16 (50.505 GB) fits from 96 GB upward.
Verified commands for llama.cpp, MLX, and Ollama
llama.cpp supports the official GGUF build. Run Q4_K_M (17.546 GB) from ggml-org on 32 GB+ Macs:
llama-cli -hf ggml-org/medgemma-2-26B-A4B-it-GGUF:Q4_K_M
Or run the slightly smaller Unsloth Dynamic Q4 build (17.011 GB) on 32 GB+:
llama-cli -hf unsloth/medgemma-2-26B-A4B-it-GGUF:UD-Q4_K_XL
On 24 GB Macs, replace the Unsloth suffix with a 3-bit build (UD-Q3_K_XL at 12.907 GB or UD-Q3_K_M at 12.728 GB) and keep context modest under the 16.8 GB budget.
Neither mlx-lm nor mlx-vlm supports MedGemma 2 26B A4B yet, and no verified Ollama tag exists.
Expected speed and quality evidence
ModelFit has no Mac Lab run for MedGemma 2 26B A4B, so speed numbers are engine estimates: 16.1 tok/s est. for UD-Q3_K_XL on 24 GB (M5 Pro), 5.4 tok/s est. for UD-Q5_K_XL on 32 GB (M6), and 7.5 tok/s est. for UD-Q8_K_XL on 48 GB (M5 Pro). Tier estimates vary with each tier's reference chip bandwidth.
Verified benchmarks in the vendor README cover the 4B sibling as family context: MedGemma 2 4B scores 82.3 on MedQA (4-op) vs 69.1 for MedGemma 1.5 4B, and 81.6 on MMLU Med vs 69.6.
Vision results for 4B are mixed: Chest ImaGenome anatomy detection rises from 38.0 to 53.7, while PathMCQA drops from 70.0 to 63.3. Independent Mac reports are still sparse.
How MedGemma 2 26B A4B compares on your Mac
Compare options in the ModelFit Mac checker. At 24 GB (M5 Pro), the engine's top local alternative is LFM2 24B-A2B Instruct (Q4_K_M, 14 GB load, 109.2 tok/s est.), with Gemma 4 26B-A4B (Q4_K_M) as runner-up.
Those general-purpose 24 GB picks lack medical tuning: LFM2 24B-A2B Instruct (Q4_K_M, 14 GB) hits 109.2 tok/s est., and Gemma 4 26B-A4B (Q4_K_M, 16 GB) hits 63.1 tok/s est., sharing MedGemma's base architecture while fitting 4-bit on 24 GB.
Skip MedGemma 2 26B A4B on 16 GB Macs or if you require Ollama or MLX today. Researchers with 32 GB+ get full 4-bit precision; check your setup in the ModelFit calculator or via npx @modelfit/cli@latest.
FAQ
What is the minimum Mac for MedGemma 2 26B A4B?
A 24 GB Mac is the entry floor for 3-bit builds (UD-Q3_K_XL at 12.907 GB inside 16.8 GB usable). Running 4-bit Q4 requires a 32 GB Mac (22.4 GB usable). A 16 GB Mac (11.2 GB usable) is below the smallest 3-bit file at 11.29 GB.
Why does Q4 require a 32 GB Mac instead of 24 GB?
Both verified Q4 GGUFs exceed a 24 GB Mac's 16.8 GB usable budget: ggml-org Q4_K_M is 17.546 GB and Unsloth UD-Q4_K_XL is 17.011 GB. A 32 GB Mac raises the engine budget to 22.4 GB, giving either Q4 build safe headroom.
Can I run it with Ollama or MLX?
Not today. No verified Ollama tag exists, and neither mlx-lm nor mlx-vlm supports the model yet. Use llama.cpp (llama-cli -hf ggml-org/medgemma-2-26B-A4B-it-GGUF:Q4_K_M on 32 GB+ or Unsloth 3-bit builds on 24 GB).
Are the published benchmarks for the 26B model?
The verified vendor README figures describe MedGemma 2 4B and 1.5 4B (for example, MedQA 4-op 82.3 on MedGemma 2 4B). Read the Google model card for 26B A4B evaluations; ModelFit has no Mac Lab run yet.
Can I use MedGemma 2 for patient care?
No. Google restricts MedGemma 2 under HAI-DEF terms and forbids clinical diagnosis or direct patient-care decisions. Use it for research prototyping, education, and clinician-in-the-loop tools after professional verification.
Sources
- https://huggingface.co/google/medgemma-2-26B-A4B-it
- https://huggingface.co/ggml-org/medgemma-2-26B-A4B-it-GGUF
- https://huggingface.co/unsloth/medgemma-2-26B-A4B-it-GGUF
- https://huggingface.co/unsloth/medgemma-2-26B-A4B-it-GGUF/raw/main/README.md
- https://huggingface.co/api/models/google/medgemma-2-26B-A4B-it?blobs=true
- https://huggingface.co/api/models/ggml-org/medgemma-2-26B-A4B-it-GGUF?blobs=true
- https://huggingface.co/api/models/unsloth/medgemma-2-26B-A4B-it-GGUF?blobs=true
- https://github.com/ggml-org/llama.cpp/releases
Don't miss the next one for your Mac Mini M5 Pro 24 GB
This article covers one moment. Get one email when a newer open-weight model fits your machine better, plus the Thursday weekly with what changed.
For: Mac Mini M5 Pro 24 GB
You'll also get the weekly ModelFit email. By signing up you agree to our Privacy Policy. Unsubscribe from either email anytime, in one click.
Match this model to a machine that can run it: by RAM tier for Apple Silicon, or by VRAM for an NVIDIA GPU.
See how this changes your recommendation
Run the wizardHave questions? Reach out on X/Twitter