Google has released MedGemma 2, a model for developers building medical applications, based on Gemma 4. It can call tools and link its answers to medical sources, enabling multi-step workflows with patient data. The model comes in two variants: 26B MoE, which activates 4 billion parameters per token, and E4B, with 4 billion parameters. In Google’s tests, MedGemma 2 outperformed Gemma 4 on tasks involving searches of electronic health records, medical calculations and working with sources.
Google releases MedGemma 2 for medical applications
What the model can do
MedGemma launched in 2025 as an open model that developers could adapt for healthcare. In a little over a year, it has been downloaded more than 10 million times, with over 60,000 unique users. The community has created more than 1,000 derivative models. More than 2,000 publications cite MedGemma, and a study of the model was published in Nature Medicine. Developers are also adapting it for tools that help healthcare organizations care for patients.
MedGemma 2 is designed for more complex workflows than answering individual questions. It combines a reasoning chain with structured function calling: the model can identify missing information, call an appropriate tool and process the result in one or more turns. This makes it possible to use the model as a foundation for reasoning and coordinating the actions of clinical AI agents.
Real-world medical applications may need access to patient histories in electronic health records and medical imaging archives, as well as up-to-date data from medical terminology servers, drug interaction databases, biomedical publications and internal clinical guidelines. MedGemma 2 can work with these sources through tools.
Google evaluated the model in several scenarios:
Source: research.google
In the medical calculations test, the model extracts input data from a case description and writes Python code. A lightweight test harness runs the code in an isolated environment.
Source: research.google
Where to run MedGemma 2
Both versions are available in 16-bit precision, in bfloat16 format. The model can be deployed wherever patient data is processed: on hospital servers, in a private cloud or virtual private cloud, on mobile devices, and on clinic workstations without a network connection.
.litertlm checkpoints are hosted on Hugging Face, along with learning materials on fine-tuning and model conversion.In addition to Hugging Face Transformers and vLLM, MedGemma 2 can be deployed and customized with Ollama, Unsloth, llama.cpp and MLX. Google Cloud users will find the model in Model Garden on the Gemini platform, where they can evaluate and customize it, and test it in their own virtual private cloud before deploying it as production network endpoints or scalable batch jobs.
Google also describes deployment options by task type. 26B MoE is suited to multi-step clinical reasoning, tool calling, serving many users and batch processing. E4B offers quality without compression; running it at full precision is suitable for fine-tuning and evaluation and provides a baseline for 4-bit versions. LiteRT-LM is intended for developing and testing offline mobile and desktop applications on Android, iOS and computers with a CPU or GPU and Pixel TPU. It also supports prototyping through a command line or API server, and exporting customized models to .litertlm.
Developer resources
Google has prepared the HAI-DEF Cookbook, a collection of code examples showing common ways to use MedGemma 2. To get started, the company also recommends reviewing the model card, which describes intended uses, limitations, data provenance and benchmarks; choosing a model and deployment configuration on the Get Started page; joining discussions on the HAI-DEF Forum; and sharing projects for possible publication in the HAI-DEF Showcase. Developers can also subscribe to the newsletter on the community page.
Data and limitations
The models were trained and evaluated on a combination of open and closed de-identified datasets. Google and its partners use datasets that have undergone strict anonymization or de-identification to protect research participants and patient privacy.
MedGemma and other HAI-DEF models are intended for the initial development of medical applications that work with text, images, audio, video and tool calling. Before use, a model must be evaluated, adapted and, if necessary, substantially modified for the specific task. Its outputs are not intended for direct diagnosis, decisions about patient management, treatment recommendations or other decisions in clinical practice, including mental and behavioral health.
The results presented show the model’s baseline capabilities; they do not establish its safety for any specific medical use. The model may also make errors beyond those identified by the tests. All MedGemma responses should be treated as preliminary: they need to be independently checked against clinical data and studied further using established research and development methods. Details are provided in the terms of use and prohibited-use policy.
MedGemma 2 and the HAI-DEF Cookbook were developed by Google teams. Contributors included developers and other staff from Health AI, Google Cloud, Google AI Edge, Google DeepMind and Google Research. The publication’s authors are Google Research software engineers Fereshteh Mahvar and Maddie Travers.
Dataist’s take: Tool calling expands the range of tasks developers can use MedGemma 2 for, but does not make it a system for independent clinical decisions. Google explicitly requires adaptation and independent review of outputs, and benchmark results do not establish the model’s safety in a specific application.
Daily AI news
Every day we pick what actually matters in AI and explain it plainly — no hype, no filler. Subscribe if you want to follow where the industry is going.
Only what matters — every day
Follow on X