Google’s open MedGemma 2 can now write queries for patient record systems
Google released the model on 3 December as a foundation for healthcare applications. Its smaller version also runs offline on phones. Google said the results should not be used directly for treatment decisions.
Google released MedGemma 2 on 3 December. The model is based on the company’s Gemma 4 model, and developers can use it as a foundation for their own healthcare applications.
Earlier MedGemma versions answered questions. The new version also makes tool calls, Google Research wrote on its blog. Developers can build applications on the model that identify missing information, write a query to a patient record system and process the response in one or more steps. The model writes the queries in SQL or FHIR, a standard used for exchanging patient data. It also writes Python code for clinical calculation formulas and cites sections of the clinical guidelines it is given, so that a doctor can check the answer. The quality of such answers depends on the sources provided, and they may still contain content the sources do not support, Unite.AI reported.
The model does not run the code itself; the developer runs it in an isolated sandbox. The developer is also responsible for access permissions and security for queries and tools, Unite.AI said.
The Google Research blog and the model card summarised by Unite.AI compare MedGemma 2 with the corresponding Gemma 4 model:
| Benchmark | Gemma 4 E4B | MedGemma 2 E4B | Gemma 4 26B | MedGemma 2 26B |
|---|---|---|---|---|
| MedAgentBench, success rate % | 48.7 | 53.3 | 81.3 | 86.3 |
| MedCalc-Bench Verified, accuracy % | 37.9 | 59.1 | 66.2 | 72.8 |
| AgentEHR, F1 | 10.2 | 27.7 | 23.5 | 30.7 |
| ClinSeek-Bench, F1 | 33.5 | 44.0 | 47.2 | 49.1 |
Figures: Google, compiled by The Decoder.
Google said the figures reflect baseline capabilities and do not show that the model is safe for any medical use. The company reports the improvements in relative terms: E4B’s calculation accuracy improved by 56 per cent, which equals 21.2 percentage points.
In the figures gathered by The Decoder, even older frontier models beat MedGemma 2 on some benchmarks. On ClinSeek-Bench, Claude Opus 5 has a reported F1 of 63.9, against 49.1 for MedGemma 2 26B. The publication notes that there is no direct comparison with the latest models. It adds that the comparison is not entirely fair anyway, because Google presents the models as an efficient alternative that can be run locally and fine-tuned.
Google said the model’s outputs should not be used directly for diagnoses or treatment decisions. The model card states that safety evaluations were carried out mainly with English-language prompts, Unite.AI reported. The clinical safety evaluation used text prompts only.
26B is a mixture-of-experts (MoE) model: it uses about 4 billion of its 26 billion parameters to process each token. At 16-bit precision, it runs on a single GPU with 80 gigabytes or more. At 16-bit, E4B takes about 18 gigabytes of memory, and its 4-bit mixed-precision version about 4–5 gigabytes. This version also runs offline on phones. The models are available from Hugging Face, Ollama and Google Cloud, among others. They are covered by Google’s Health AI Developer Foundations terms of use, The Decoder reported. A developer may modify and redistribute the models but must obtain regulatory approvals independently and is responsible for the outputs the model produces.
Read more: Models