MedGemma 2: tool calling and FHIR records, run locally

Google has released MedGemma 2, an open-weight model for building healthcare software: two sizes based on Gemma 4, native tool calling, FHIR and SQL queries, answers that cite their source. Benchmarks, memory requirements, stated limits and licence.

AIDigital HealthR&DMedGemmaGoogleGemma 4Open WeightsFHIRTool CallingDigital HealthLocal AIMDRLLM

Article

The official MedGemma 2 illustration: four blue tiles showing a heart, lungs, a head and a syringe, floating above a smartphone
The MedGemma 2 launch illustration. Image: Google (blog.google).

Yesterday, 3 December, Google released MedGemma 2, the new version of its open-weight model for developers of healthcare software. It is based on Gemma 4 and adds native tool calling: it can write FHIR and SQL queries to read an electronic health record, generate Python code for a clinical score and answer by citing the documents it is given. Running the queries and the code is left to the host application.

Google presents it as a starting point to adapt and validate. According to the model card, its outputs are not intended to directly inform diagnosis, treatment or clinical calculations.

Two sizes

MedGemma 2 26B is a Mixture of Experts that activates about 4 billion parameters per token and is designed for hospital servers or a private cloud. MedGemma 2 E4B is the compact version for laptops, offline workstations and phones, and the only one that also accepts audio.

26B, 16-bitE4B, 16-bitE4B, 4/8-bit (LiteRT-LM)
Inference memoryabout 58 GBabout 18 GB4-5 GB
Recommended memory80 GB or more24 GB or more12 GB or more

Ollama also has quantised versions, at 18-19 GB for the 26B. Google warns that quantised or converted versions may perform differently from the original weights and should be validated separately. Context is validated up to 128,000 tokens for both sizes, although the 26B architecture supports 256,000.

The published numbers

Google compares the model with Gemma 4, the general-purpose model it starts from, and with MedGemma 1.5 4B. Values range from 0 to 100 and higher is better.

BenchmarkMedGemma 2
26B
Gemma 4
26B
MedGemma 2
E4B
Gemma 4
E4B
MedGemma
1.5 4B
MedAgentBench (agent on a FHIR record)86.381.353.348.7-
AgentEHR, common cases (agent on an SQL record)30.723.527.710.2-
MedCalc-Bench Verified (clinical calculations)72.866.259.137.9-
Source-grounded clinical answers*95.690.894.885.213.1
Questions on FHIR records*95.294.795.694.638.0
Chest X-rays, MIMIC-CXR89.884.986.374.289.5
Histopathology, PathMCQA*68.049.663.342.770.0

* Google internal datasets.

The clearest gain is on the small model: in clinical calculations E4B goes from 37.9 to 59.1. On questions about FHIR records the gap with Gemma 4 is one point at most. In AgentEHR, where the agent has to find the information by itself over several queries, even the 26B stops at 30.7.

In image classification the new E4B is almost always below MedGemma 1.5 4B, which Google keeps available precisely for some of these tasks. MedGemma 2 uses Gemma 4’s vision encoders, without the medical pre-training of earlier versions.

For dictation Google has a dedicated, more accurate model, MedASR: in radiology its word error rate is 5.4%, against 10.6% for E4B.

What the model card leaves out

  • Languages. Safety evaluations used mainly English prompts, and the model card reports no results in Italian.
  • Other examinations. CT, MRI, ultrasound, mammography, ECG and whole-slide images are in the training data, but the model card publishes no results for them.
  • Clinical safety. The clinicians’ assessment before release covered text prompts only.

The licence

The weights can be downloaded from Hugging Face after accepting the Health AI Developer Foundations (HAI-DEF) terms, which are not an open source licence. Gemma 4, the starting model, is under Apache 2.0. Anyone who wants to build a product on it will find these constraints:

  • any use that could lead a health authority to deem Google the manufacturer of a medical device is prohibited;
  • anyone distributing the model or a derivative, including as an API service, must pass the same restrictions on to recipients and, where applicable, seek authorisation from the health authority;
  • Google can restrict uses it believes breach the terms. If the agreement is terminated, all copies and derivative models must be deleted.

In Europe, whoever markets software with an intended medical purpose under their own name is its manufacturer under the MDR, whatever model it runs on. If the device requires assessment by a notified body, the AI Act’s high-risk obligations also apply from 2 August 2028.

Our take

MedGemma 2 makes it more practical to run an assistant on a healthcare organisation’s data without that data leaving the premises: at 16-bit the 26B needs about 58 GB and fits in the memory of a 128 GB workstation. The nearest uses are those where a person checks the result against the original document, such as searching protocols, extracting data from reports for a study or preparing drafts.

We would start by comparing it with Gemma 4 on the same documents, in the language the organisation works in. Where the difference is one point, as with questions on FHIR records, the Apache 2.0 licence may weigh more. Where the model has to use tools or cite guidelines, MedGemma 2 has a wider advantage.

With tool calling, data access has to be designed too: read-only FHIR queries, the permissions of the person asking, code run in a sandbox and a log of every call.

Sources

Need support?Under attack?Service Status
Need support?Under attack?Service Status