Google releases MedGemma 2, an open health model that writes queries and code. What labs must validate before building on it
MedGemma 2 runs on your own hardware, calls tools and cites its sources. Google says it is not for use without validation by developers, and for clinical research groups that is the part that takes the time.

- On 3 December 2026 Google Research released MedGemma 2, built on Gemma 4, in a 26B mixture-of-experts version and an on-device E4B version.
- It can generate SQL and FHIR queries, write Python for clinical scores and cite supplied references; weights are on Hugging Face and Google Cloud.
- Google states the models need validation and adaptation by developers for each use case, so generated code and model versions belong in the study record.
On 3 December 2026 Google Research released MedGemma 2, the second generation of its open model family for health AI developers. It is built on Gemma 4 and comes in two sizes: a 26-billion-parameter mixture-of-experts model that activates about 4 billion parameters per token, and an E4B model small enough to run offline on a laptop or tablet. Where earlier MedGemma versions mostly answered questions, this one is trained to call tools: it writes SQL and FHIR queries against patient records, writes Python to compute clinical scores, and cites passages from documents it is given.
Google's terms are blunt about what happens next. The models “are not intended to be used without appropriate validation, adaptation and/or meaningful modification by developers for their specific use case.” For a hospital research group, that sentence is the real work. Teams that build regulated medical software usually plan that validation before writing code, pairing each requirement with the test that will prove it, which is the logic of the v model for software development. A study tool wrapped around an open model needs the same pairing, because the model can now produce code and queries, not just text.
We covered the general case in validating research software for clinical studies. MedGemma 2 makes it concrete.
What did Google release?
According to the Google Research announcement and reporting by Interesting Engineering, the release includes:
- Two models. MedGemma 2 26B MoE for servers and MedGemma 2 E4B for phones, tablets and laptops, both accepting text, 2D medical images, clinical audio and FHIR records.
- Tool use. Native tool calling for querying electronic health records, writing code for clinical calculations and searching literature such as PubMed or local protocols.
- Grounding. Answers can cite the supplied references, so a reviewer can check where a claim came from.
- Distribution. Weights on Hugging Face and Google Cloud's Model Garden, with support in Ollama, Unsloth, llama.cpp, MLX and LiteRT-LM for on-device use.
Google says the first MedGemma was downloaded more than 10 million times by over 60,000 users, who built more than 1,000 derivative models.
What do the benchmark numbers show?
Google reports gains over the base Gemma 4 models, not over other medical systems:
- AgentEHR (working with health records): F1 rose by 31% for the 26B model and was 2.5 times higher for E4B.
- MedCalc-Bench-Verified (clinical calculations): accuracy rose by 10% and 56% respectively.
- MedAgentBench: improvements of 6% and 9%.
These are relative figures from the developer, so treat them as a starting point for your own evaluation, not a result to cite as evidence of clinical safety.
What does it mean for research code?
An open model you can host yourself changes three things for clinical research groups.
Patient data can stay inside the institution
Because the weights are downloadable, a group can run the model on its own hardware, under its own data agreements, instead of sending records to an external API. That also means the group owns the security work.
The model writes code that becomes part of the study
If MedGemma 2 generates the Python that computes a severity score, that code is research code. It needs to be saved, reviewed and versioned like anything else that produces a number in a paper. Our review checklist applies to generated code too.
The model version is now a dependency
A study run on one checkpoint may not reproduce on the next. Pin the exact weights you used, record the prompt templates, and archive both with the analysis code, as you would any other part of a reproducible environment.
What should a lab do before building on it?
- Write the requirements first. State what the tool must do, for whom, and what counts as a wrong answer. Our guide to writing requirements for research software has a template.
- Pair every requirement with a test. Use a fixed set of records with known answers, including the awkward cases, and rerun it whenever the model or prompt changes.
- Log generated queries and code. Keep what the model wrote, not only what it concluded, so an auditor can retrace a result.
- Keep a clinician in the loop. Google designs MedGemma 2 for use under clinician oversight; the study protocol should say who checks what.
Questions about MedGemma 2
What is MedGemma 2?
An open model family from Google Research for health AI developers, released on 3 December 2026 and built on Gemma 4. It accepts text, 2D medical images, clinical audio and FHIR records and supports tool calling.
Can a hospital research group run it locally?
Yes. The weights are on Hugging Face and Google Cloud, and the E4B version is designed to run offline on laptops, tablets and phones. Running it locally keeps patient data in-house but makes the group responsible for security and validation.
Is MedGemma 2 approved for clinical use?
No. Google says its Health AI Developer Foundations models are not intended to be used without appropriate validation, adaptation or modification by developers for the specific use case, and the apps are meant to run under clinician oversight.
What should be archived with a study that uses it?
The exact model checkpoint, the prompt templates, the queries and code the model generated, the test set used for validation and the analysis code, ideally as one tagged, citable release.
Keep reading. More from the desk.

Google open-sources GenFocal: what its climate-model release gets right for research code
GenFocal turns 150 km climate runs into 25 km local weather. Google shipped code, weights and data together, each with a DOI. Here is what to copy.

How to validate research software for clinical studies
What ICH E6(R3) and FDA guidance expect, how to scale testing to risk, and how to validate analysis scripts, study apps and the paperwork around them.

Only 1 in 8 clinical prediction studies shares its code, MIT and Dana-Farber review finds
An MIT and Dana-Farber review of 3,967 clinical prediction studies found that 12.2% shared code, and few repositories were easy to rerun. What to do.