Research review / models

MedGemma 2 Adds Clinical Tool Calling on Gemma 4, in a 26B MoE and an On-Device E4B

Google Research released MedGemma 2 on December 3. Built on Gemma 4, it generates FHIR and SQL queries, writes code for clinical formulas and cites supplied sources, in a 26B mixture-of-experts size with 4B active parameters and an E4B size for phones. Google reports relative gains over Gemma 4, and the weights are gated under the HAI-DEF terms.

By Sandeep Belgavi · Published 2026-12-04

On December 3, 2026 Google Research published Introducing MedGemma 2: Our most capable open model for health AI developers. The pitch is a change of job: "it moves beyond MedGemma 1 and 1.5's simple question-answering to help developers build more complex tool-enabled workflows."

Two sizes, two deployment targets

  • 26B MoE: a "26-billion-parameter Mixture-of-Experts model activating 4B parameters per token." At 16-bit precision Google says it "runs on a single 80 GB+ GPU such as an NVIDIA RTX PRO 6000, H100, or A100."
  • E4B: an "Effective 4-billion-parameter model" that runs at 16-bit on "a single 24 GB GPU, such as an NVIDIA L4 24 GB or RTX 4090," and at 4-bit on recent phones. A mixed-precision 4-bit build is offered through LiteRT-LM with pre-converted checkpoints.
  • Tooling: Transformers and vLLM, plus Ollama, Unsloth, llama.cpp and MLX, and a Model Garden listing for Google Cloud.

What tool calling means here

Google describes three evaluated workflows, each run "using a lightweight harness where needed":

  • Patient records: the model "can generate SQL and FHIR (Fast Healthcare Interoperability Resources) queries." On MedAgentBench it "improves relative accuracy over Gemma 4 by 6% for 26B MoE and 9% for E4B." On the SQL-based AgentEHR benchmark the 26B gains a relative 31% in F1, and the E4B "achieves over 2.5x the F1 score."
  • Clinical formulas: the model writes Python that the harness runs "in an isolated sandbox." On the MedCalc-Bench-Verified subset, relative accuracy rises 10% for the 26B and 56% for the E4B.
  • Grounding: trained "to anchor answers in supplied references" and cite passages. The reported gain, 5% and 11% relative, is on "an internal grounded clinical question-answering benchmark," which outsiders cannot inspect.

All of these are relative improvements over the base Gemma 4 model of the same size. The post does not compare MedGemma 2 with larger frontier models in these tables.

Open, with conditions

The Hugging Face model card lists the licence as health-ai-developer-foundations, and access requires agreeing to the HAI-DEF Terms of Use. That is open weights with use terms, not an OSI-approved licence. Google's own disclaimer is direct: outputs "are not intended to directly inform clinical diagnosis, patient management decisions, treatment recommendations, or any other direct clinical practice applications." The card says post-training used de-identified and licensed data, including FHIR-based EHR data and data "collected internally at Google from consented participants."

Why it matters

Analysis: the interesting design choice is that the model writes code and queries, and something else executes them. That puts the safety boundary in the harness: the sandbox that runs the formula code, the read-only database role behind the SQL, and the FHIR scopes the token carries. A 4B-active model that runs on one hospital GPU makes on-premises deployment realistic, which keeps patient data local, but it also means each hospital is now responsible for those controls rather than a cloud provider. The gap between E4B and 26B gains on MedCalc (56% versus 10% relative) mostly shows how weak the small base model was at writing code, not that E4B now matches 26B.

What to watch

Independent evaluations on public benchmarks with absolute scores, and whether anyone publishes results for the grounding behaviour outside Google's internal test. Also watch the derivative models: MedGemma 1 had more than 1,000, and the HAI-DEF terms will apply to fine-tunes of version 2 too.

Original exercise, not executed: Geetha tests the code-then-execute pattern on a non-medical task for the Belgavi's Book Store, logged as CASE-9169. A small model writes Python to compute late-return fees from the store policy, a sandbox with no network runs it, and the log compares each result with a hand-checked value before any code is trusted.

Sources accessed December 4, 2026. Views are my own and do not represent any employer, past or present.

Sources and evidence

MedGemma 2, released December 3 on Gemma 4, adds tool calling for FHIR and SQL record queries, sandboxed formula code and cited answers, in a 26B MoE with 4B active and an on-device E4B. Google reports only relative gains over Gemma 4, and the weights are gated under HAI-DEF terms.