01 / AI · Analysis
Google adds medical tool calling to MedGemma 2
The model generates queries for patient records, and its mixed-precision mobile build uses about 4–5 GB of inference memory.
Google released MedGemma 2, an open model that lets healthcare apps call external tools to retrieve information such as a patient’s medical history. Google Research described a model for hospital servers and a smaller one for mobile devices.
Earlier MedGemma releases focused on simple question answering. With the new model, which is based on Gemma 4, an app can decide whether it needs more information, call a tool and process the result. It can finish in one request or make follow-up queries.
Google said developers need to adapt and validate the model for their intended use. The company’s usage guidance excludes using model outputs directly for diagnosis or treatment recommendations. Training and evaluation used de-identified datasets from public and private sources.
Relative accuracy gains over Gemma 4 on medical tool benchmarks
| MedAgentBench | 26B MoE | 6 | |
|---|---|---|---|
| E4B | 9 | ||
| MedCalc-Bench-Verified | 26B MoE | 10 | |
| E4B | 56 |
Patient records and clinical calculations
MedGemma 2 can generate queries to retrieve a patient’s history using SQL, a database query language, or FHIR, a standard for exchanging health information. MedAgentBench tests multi-step retrieval, calculations and entry of medical orders in a simulated electronic health record system. In Google’s evaluation, both versions outperformed their same-size Gemma 4 counterparts on accuracy.
AgentEHR tests work with SQL-based electronic health records and reports an F1 score, which combines precision and recall. Google reported that the server model’s F1 score was 31% higher than that of the same-size Gemma 4 model. The smaller model scored more than 2.5 times as high as its Gemma 4 counterpart.
For clinical calculations, the model can write Python code. In Google’s example, it extracted the values from a case and a separate test program ran the generated code in an isolated environment.
When given hospital guidelines or medical literature, the model can cite the passages it used so clinicians can check the answer against the original text. Google assessed how accurately the model used those references in an internal clinical question-answering test.
Inference memory by deployment
The 26B MoE model, designed for hospital servers and private clouds, activates only some of its parameters for each token, a unit of text. At 16-bit precision, it uses about 58 GB of inference memory. Google lists a single GPU with at least 80 GB of memory as a configuration.
The smaller E4B model also runs on offline workstations. Its 16-bit build uses about 18 GB of inference memory and can run on a single GPU with 24 GB of memory. The deployment guide lists it for uncompressed fine-tuning and evaluation and as a reference for lower-precision builds.
The mobile mixed-precision build keeps layers that are sensitive to accuracy at higher precision. It uses about 4–5 GB of inference memory, and the deployment guide lists phones, tablets and desktops as supported targets.
Developers in South Korea testing mobile apps can use the Samsung Galaxy S26 as a reference device. Google cited it as an example of running the smaller model at 4-bit precision. Pre-converted .litertlm model files for mobile and desktop testing are available on Hugging Face.