Analysis Local AI

9 min read · Dec 3, 2026

MedGemma 2: Benchmarks on a 16GB Mac Next to MedGemma 1.5

Google's MedGemma 2 E4B tested against MedGemma 1.5 4B on a 16GB M4 Mac mini across 8 synthetic clinical tasks, llama-bench throughput, and thinking-mode latency.

9 min read Checked Dec 5, 2026 7 primary sources
MedGemma 2 E4B on a 16GB Mac mini passed 8 of 8 clinical tasks against 2 of 8 clean passes for MedGemma 1.5
The Benchmarque benchmark graphic (M4 Mac mini 16GB, Dec 4, 2026) PRIMARY VISUAL

The short version

VERDICT // SUMMARY

On a 16GB M4 Mac mini, MedGemma 2 E4B passed all 8 synthetic clinical tasks at 27.5 tokens per second and 6.3 to 6.9 GB of unified memory, while MedGemma 1.5 4B erred on 6 of 8 including reversing a drug interaction. Turn llama.cpp's default thinking mode off for lookups (2.4x to 8x faster) and keep it on for clinical scoring arithmetic.

KEY NUMBERS // VERIFIED READOUT 4 METRICS AUDITED
  • Clinical task accuracy

    8 / 8

    MedGemma 2 E4B passed every synthetic task; MedGemma 1.5 made errors on 6 of 8.

    Benchmarque test, Dec 4, 2026

  • Generation speed

    27.5 tok/s

    26% slower than MedGemma 1.5 (37.1 tok/s), while reading prompts 33% faster (635 tok/s).

    llama-bench tg128, Dec 4, 2026

  • Memory footprint

    6.3-6.9 GB

    Runs offline on a 16GB M4 Mac mini with vision enabled and zero macOS swapping.

    Server RSS with vision

  • Default thinking penalty

    2.4x-8x

    llama.cpp enables thinking by default, slowing simple lookups and risking blank outputs.

    Thinking ON vs OFF, Dec 4, 2026

Test conditions

Parameter Configuration
Machine Mac mini, Apple M4, 16GB unified memory
Runtime llama.cpp 1.1.0 via Homebrew (Metal backend), llama-server
Models MedGemma 2 E4B Q4_K_M (ggml-org GGUF, 5.65 GB) and MedGemma 1.5 4B Q4_K_M (Unsloth GGUF, 2.49 GB)
Benchmark suite llama-bench (3 runs each), 8 clinical scenarios at temperature 0.2, plus 1 tricky CHA2DS2-VASc prompt repeated 3 times at temperature 0.7
Dataset Fictional patient histories and a fictional lab report; zero real patient data
Test date December 4, 2026 (one day after release)

Why a 16GB Mac matters for MedGemma 2

Google released MedGemma 2 on December 3, 2026 with native tool calling as its primary capability: instead of answering static questions in isolation, the model can look up patient records, invoke calculators, and cite supplied guidelines. Because clinics face strict limits on sending patient records to cloud APIs and most independent health developers do not own 80GB server GPUs, local execution on an ordinary 16GB machine determines practical viability.

Setup speed and the blank-reply trap

Installing llama.cpp via Homebrew took 4.7 seconds, downloading the 5.65 GB quantized file took 1 minute 40 seconds (roughly 55 MB/s), and llama-server finished loading in 2 seconds.

Initial requests returned blank responses. llama.cpp’s default chat template enables MedGemma 2’s thinking mode automatically, allowing internal reasoning tokens to exhaust a 700-token output cap before any visible answer starts. Google’s own sample code disables thinking by default and recommends 8,192 to 16,384 output tokens whenever thinking is active. Raising max_tokens or passing "chat_template_kwargs": {"enable_thinking": false} fixes empty replies immediately.

Standard speed test (llama-bench) and memory

$ llama-bench -m medgemma-2-E4B-it-Q4_K_M.gguf -p 512,2048 -n 128 -r 3
| model                    |     size | params | backend   | test   |          t/s |
| gemma4 E4B Q4_K - Medium | 5.25 GiB | 7.52 B | BLAS,MTL  | pp512  | 634.82 ± 0.81 |
| gemma4 E4B Q4_K - Medium | 5.25 GiB | 7.52 B | BLAS,MTL  | pp2048 | 628.51 ± 0.26 |
| gemma4 E4B Q4_K - Medium | 5.25 GiB | 7.52 B | BLAS,MTL  | tg128  |  27.49 ± 0.01 |
Metric (llama-bench, 3 runs) MedGemma 2 E4B (Q4_K_M) MedGemma 1.5 4B (Q4_K_M)
Generation (tg128, tok/s) 27.5 37.1
Prompt ingestion (pp512, tok/s) 634.8 478.7
Live server RAM (GB) 6.3 to 6.9 4.0 to 4.8

MedGemma 2 writes 26% slower than version 1.5 because it carries 7.52B total parameters with per-layer embeddings (4.5B effective) versus 3.9B in 1.5, while reading long prompts 33% faster. Across live tasks, throughput held steady at 26.5 to 26.8 tokens per second. With the vision add-on loaded, llama-server used 6.3 to 6.9 GB RSS, lowering macOS free RAM from 87% to roughly 55% with zero swapping. Compare Apple Silicon speeds against discrete GPUs on the Benchmarks Leaderboard or size a dedicated box in the PC and Local AI Builder.

Official medical benchmarks (Google’s published numbers)

Benchmark What it measures MedGemma 2 4B MedGemma 1.5 4B Gemma 4 E4B (base)
MedQA (4 options) US medical licensing exam questions 82.3% 69.1% 74.0%
PubMedQA Answering from research abstracts 78.6% 67.6% 73.0%
MMLU Med Medical subsets of MMLU 81.6% 69.6% 79.0%
MedMCQA Indian medical entrance exam questions 63.8% 59.8% 62.6%
Grounded Clinical QA (internal) Answering strictly from supplied sources 94.8% 13.1% 85.2%
MIMIC-CXR (macro F1) Chest X-ray findings classification 86.3 89.5 74.2

Source: Google MedGemma 2 model card (Hugging Face, December 2026). MedCalc-Bench Verified is omitted from the table because Google published no MedGemma 1.5 4B score; on that test MedGemma 2 4B reached 59.1% versus 37.9% for Gemma 4 E4B.

Grounded Clinical QA jumped from 13.1% to 94.8%, matching the gains seen on local citation prompts. On MIMIC-CXR chest X-ray classification, MedGemma 1.5 still sits slightly higher (89.5 vs 86.3 macro F1), so version 2 is not an automatic win on every imaging metric.

Eight local clinical benchmark tasks

Both models ran the same 8 prompts at temperature 0.2 on the 16GB M4 Mac mini, with thinking on for MedGemma 2 (llama.cpp default). Every answer was checked manually and all generated Python code was executed.

Task MedGemma 2 E4B MedGemma 1.5 4B
Explain a lab result in plain English Correct and clear (37 s) Correct (10 s)
Drug interaction: ibuprofen with lisinopril Correct warning (41 s); overstated topical gel safety Right advice, but wrongly claimed lisinopril raises GI bleeding risk
Write Python code for CHA2DS2-VASc score Code ran cleanly, answer 4 correct (47 s) Code printed 4, prose stated 5
Answer only from supplied guideline with citations Correct with [§1][§3] citations (22 s) Contradicted itself on recheck interval
Explain the same lab result in Korean Natural and accurate (34 s) Fluent prose, but follow-up called hemoglobin high
Read a lab report image (flags printed) 9/9 values and 4/4 abnormal flags right (50 s) Correct (14 s)
Read lab report image with flags removed 4/4 abnormal values identified (29 s) Misclassified normal platelets as High
Tool calling (fetch labs + check interaction) Two exact tool calls in 9 s No native tool support; reversed interaction direction

Strongest result: on the two-function tool-calling prompt, MedGemma 2 emitted both tool calls with exact arguments (patient P-1042 for LDL and HbA1c; atorvastatin vs clarithromycin) in 9 seconds offline.

Worst failure: MedGemma 1.5 claimed atorvastatin raises clarithromycin levels, reversing the pharmacology (clarithromycin inhibits metabolism and raises statin exposure).

Thinking mode ON vs OFF: latency and accuracy trade-off

Re-running three straightforward prompts with thinking disabled cut wait time by 2.4x to 8x with identical correctness, and produced a cleaner table on the lab-image readout:

Task (MedGemma 2 E4B, temp 0.2) Thinking ON (s) Thinking OFF (s) Speedup
Lab explainer 35.9 8.3 4.3x
Guideline Q&A 23.8 3.0 7.9x
Read lab image 33.9 14.1 2.4x

On multi-step clinical math, thinking mode made the difference. A tricky CHA2DS2-VASc prompt (78-year-old man, prior TIA, heart attack last year; correct total 5 = age 2 + TIA 2 + prior myocardial infarction vascular disease 1) ran 3 times per setup at temperature 0.7:

Configuration Correct (of 3) Latency range Observed behavior
MedGemma 2 E4B, thinking ON 3 / 3 33 to 41 s Scored 5 on all three runs
MedGemma 2 E4B, thinking OFF 1 / 3 13 to 20 s Missed vascular-disease point twice
MedGemma 1.5 4B 1 / 3 Under 12 s Answered 4, 6, and 5

Practical rule: keep thinking off for summaries, parsing, and lookups; turn it on for scoring rubrics and multi-condition arithmetic.

Clinical pilots and independent evidence

Public deployments announced by Google (primarily built on MedGemma 1 with version 2 positioned as the upgrade) include Jacaranda Health’s PROMPTS maternal SMS triage platform, AIIMS New Delhi outpatient triage and dermatology screening, Crane AI’s EaseHealth in rural Uganda, Visilant’s community eye-screening workflow in India, Indonesia’s Ministry of Health TB pipeline (combining MedGemma with MedSigLIP), and MedGemma Impact Challenge winners EpiCast and ClinicDX on OpenMRS.

Independent evidence urges caution: a 2026 medRxiv preprint evaluating first-generation MedGemma 4B on 77 difficult teledermatology cases where specialists disagreed reported a mean reciprocal rank of 0.43, placing the right diagnosis in the top 10 under half the time even with lenient matching. Prospective live clinical outcome data remains thin.

Downsides and category ratings

  • Default thinking mode in llama.cpp slows simple queries and causes blank replies under small max_tokens limits.
  • Safety answers can be overly verbose (2,800 characters for ibuprofen + lisinopril) and overstated topical gel safety.
  • Unsolicited treatment suggestions (“anticoagulation is recommended”) require strict guardrails before any patient-facing deployment.
  • Weights require accepting Google’s gated HAI-DEF license terms rather than Apache 2.0 open source.
Category Score (of 10)
Output quality 8.5
Speed on 16GB Mac 7.0
Ease of setup 8.0
Value (free gated weights) 9.0
Privacy (full offline execution) 10.0
Overall rating 8.5

Check compatible Apple Silicon hardware via Mac mini M6 16GB on Amazon (paid link).

The verdict

For health AI developers and researchers building offline workflows on a 16GB Mac, start with MedGemma 2 E4B in llama.cpp, switch thinking off for everyday parsing and lookups, and enable thinking with a generous token cap for clinical calculations. Retire MedGemma 1.5 for text, grounding, and tool-calling pipelines after its directional drug-interaction failure. Skip MedGemma entirely as a personal symptom checker: it is a developer building block, not medical advice.

The catch: llama.cpp’s default thinking behavior slows simple prompts up to 8x, weights are restricted under HAI-DEF terms, and prospective live clinical outcome studies remain limited.

Quick answers

Can MedGemma 2 run on a 16GB Mac mini?

Yes. The 4-bit Q4_K_M E4B file (5.65 GB) runs offline on a 16GB M4 Mac mini at 27.5 tokens per second using 6.3 to 6.9 GB of unified memory with vision loaded and zero swapping.

Is MedGemma 2 better than MedGemma 1.5?

On text reasoning, grounded QA (94.8% vs 13.1%), and native tool calling, MedGemma 2 is a clear step forward. On MIMIC-CXR chest X-ray classification, Google’s published figures keep MedGemma 1.5 slightly ahead (89.5 vs 86.3 macro F1).

Why does MedGemma 2 return empty replies in llama.cpp?

llama.cpp activates thinking mode by default, exhausting a tight max_tokens limit on hidden reasoning before visible output begins. Raise max_tokens to 8,192+ or pass "chat_template_kwargs": {"enable_thinking": false}.

Are MedGemma 2 weights free and open source?

Weights are free to download after accepting Google’s HAI-DEF license on Hugging Face, which carries use restrictions rather than permissive Apache 2.0 terms.

LIVE DESK // BENCHMARQUE TOOLS

Track live street prices in the Hardware Market, check Hot Deals, or compare configurations in the PC and Local AI Builder and Benchmarks Leaderboard.

Sources & Primary Filings

7 cited
  1. Google: MedGemma 2 E4B model card and published benchmarks huggingface.co
  2. Google Research: Introducing MedGemma 2 for health AI developers research.google
  3. Google Blog: Introducing MedGemma 2 blog.google
  4. Google Blog: MedGemma deployments in global healthcare blog.google
  5. Google Blog: MedGemma Impact Challenge winners blog.google
  6. medRxiv preprint: Evaluation of MedGemma 4B on difficult teledermatology cases (2026) medrxiv.org
  7. Google for Developers: MedGemma 2 overview video youtube.com

The Monday Hardware & AI Briefing

Verified street-price drops, buy-or-wait signals, and reproducible benchmark tables every Monday morning. Zero popups, one-click unsubscribe.

Reader focus

Sponsor a benchmark series or hardware briefing on The Benchmarque. View media kit and sponsorship options.