Last updated: December 4, 2026
MedGemma 2 is Google’s open model family for health AI developers, released December 3, 2026. Built on Gemma 4, it adds native medical tool calling, grounded citations and clinical code generation. It comes as a 26B MoE model for servers and an E4B model for workstations and phones, free to download under Google’s HAI-DEF terms.
Contents
- What is new in MedGemma 2
- Choosing a MedGemma 2 model
- How to run MedGemma 2
- Tool calling, grounding and thinking mode
- MedGemma 2 vs. Gemma 4 and MedGemma 1.5
- Licensing, limits and safety
- Frequently asked questions
What is new in MedGemma 2
Google Research announced general availability of MedGemma 2 on December 3, 2026 (Google Research blog). Google says the original 2025 MedGemma has been downloaded more than 10 million times. MedGemma 2 moves beyond the simple question answering of MedGemma 1 and 1.5 toward tool-enabled clinical workflows (MedGemma overview).
The main additions, according to Google (MedGemma overview):
- Native medical tool calling: chain-of-thought reasoning combined with structured function calling, so an app can decide when it needs more data, call the right tool and use the result over one or more turns.
- Grounding and citations: answers anchored in references you supply, such as institutional guidelines or biomedical literature, with cited passages clinicians can check.
- Code for clinical calculations: the model writes Python to compute clinical scores and formulas, which you run in your own sandbox.
- Multimodal input, text output: 2D images across radiology, dermatology, ophthalmology and pathology, clinical notes and FHIR records, and clinical audio (native on E4B only).
The model card adds that MedGemma 2 uses the Gemma 4 architecture without modification and, unlike earlier versions, uses Gemma 4’s own vision encoders (26B model card). It can generate HL7 FHIR API queries and SQL to pull a patient’s longitudinal history from health record systems.
Choosing a MedGemma 2 model
Google offers two 16-bit (bfloat16) sizes plus a 4-bit on-device build. The figures below come from Google’s selection guide and the Hugging Face model cards (Google Research blog) (26B model card) (E4B model card):
| Variant | Parameters | Inference memory | Target hardware | Inputs |
|---|---|---|---|---|
| MedGemma 2 26B MoE (A4B) | 25.2B total, 3.8B active per token | About 58 GB | Single 80 GB+ GPU (RTX PRO 6000, H100, A100) | Text, images, volumes, video |
| MedGemma 2 E4B | About 8B total, 4.5B effective | About 18 GB | Single 24 GB GPU (L4, RTX 4090) or 24 GB+ MacBook Pro | Text, images, volumes, video, audio |
| MedGemma 2 E4B (.litertlm, 4-bit mixed) | Same as E4B | About 4 to 5 GB | 12 GB+ phones, tablets and desktops on CPU, GPU or Pixel TPU | Same as E4B |
The cards list a context window of up to 256K tokens for the 26B MoE and up to 128K for E4B, with long context validated at 128K for both (26B model card). Google recommends the 26B MoE for multi-step clinical reasoning, tool use and batch serving, and E4B for full-precision fine-tuning and offline apps (Google Research blog).
How to run MedGemma 2
MedGemma 2 supports Hugging Face Transformers and vLLM, and Google says it can also be deployed and fine-tuned with Ollama, Unsloth, llama.cpp and MLX (Google Research blog). A typical local setup with Transformers (26B model card):
- Sign in to Hugging Face, open the MedGemma 2 model page and accept the HAI-DEF conditions to unlock the files.
- Install a recent Transformers:
pip install -U "transformers>=5.15.0" accelerate. Gemma 4 support starts at 5.10.1, but 5.15.0 or later is recommended for thinking-mode and tool-call parsing. - Load
google/medgemma-2-E4B-itorgoogle/medgemma-2-26B-A4B-itwith theany-to-anypipeline, usingdevice_map="auto". - Put image content before the text in your prompt, and audio after the text.
- Use Gemma 4 default sampling:
temperature=1.0,top_p=0.95,top_k=64. - To serve an OpenAI-compatible API instead, run
vllm serve "google/medgemma-2-26B-A4B-it"and send requests to/v1/chat/completions.
For the serving engines, see our vLLM 0.34 guide and Transformers 5.23 guide. For local desktop use, see our Ollama 0.40.17 guide. Google Cloud customers can instead deploy MedGemma 2 from Model Garden as online endpoints or batch jobs inside their own VPC (MedGemma overview).
Tool calling, grounding and thinking mode
Thinking is off unless you turn it on. Add the <|think|> token at the start of the system prompt, or set enable_thinking=True in apply_chat_template in Transformers (26B model card). In multi-turn chats, keep only final answers in the history and drop earlier reasoning, except in tool-calling turns, where thinking content is preserved.
For images, you can set a visual token budget of 70, 140, 280 (default), 560 or 1,120 tokens per image. Google recommends 70 or 140 per slice for multi-slice CT, MRI or whole-slide pathology (26B model card). Developers remain responsible for hosting, sandboxing and validating any code or database queries the model generates.
MedGemma 2 vs. Gemma 4 and MedGemma 1.5
Google compares MedGemma 2 with the Gemma 4 base models on tool-use benchmarks. These are Google’s own results (26B model card):
| Benchmark (metric) | MedGemma 2 4B | Gemma 4 E4B | MedGemma 2 26B MoE | Gemma 4 26B |
|---|---|---|---|---|
| MedAgentBench (success rate) | 53.3 | 48.7 | 86.3 | 81.3 |
| AgentEHR common (F1) | 27.7 | 10.2 | 30.7 | 23.5 |
| MedCalc-Bench Verified (accuracy) | 59.1 | 37.9 | 72.8 | 66.2 |
| Grounded Clinical QA, internal (accuracy) | 94.8 | 85.2 | 95.6 | 90.8 |
Against MedGemma 1.5 4B, the new 4B model scores 82.3 on MedQA versus 69.1. MedGemma 1.5 still scores higher on some image tasks, such as MIMIC-CXR classification (89.5 versus 86.3), and Google keeps it available for those uses (26B model card). For medical speech, E4B posts higher word error rates than Google’s dedicated MedASR model. For another recent Google open model for biology, see our CellGemma guide, and for NVIDIA’s open alternatives, our Nemotron 3.5 guide.
Licensing, limits and safety
Check these points before building on MedGemma 2 (Google Research blog) (MedGemma overview):
- License: use is governed by the HAI-DEF terms of use and prohibited use policy, not Apache 2.0.
- Not clinical-grade: outputs are not intended to inform diagnosis, patient management or treatment.
- Validation required: developers must adapt the model and verify performance for their specific use case before production.
- Mostly English: the model card notes its evaluations used primarily English prompts.
- Audio is file-based: E4B processes supplied audio only, with no live recording or ambient listening.
Frequently asked questions
What is MedGemma 2?
MedGemma 2 is Google’s open health AI model family, released December 3, 2026. Built on Gemma 4, it accepts medical images, text and (on E4B) audio, outputs text, and adds native tool calling, source grounding and Python code generation for clinical calculations.
What sizes does MedGemma 2 come in?
Two: a 26B Mixture-of-Experts model with about 4B active parameters per token for servers and private cloud, and an E4B model for workstations and devices. A 4-bit LiteRT-LM build of E4B targets phones, tablets and desktops.
What hardware do I need to run MedGemma 2?
Google says the 26B MoE needs a single 80 GB+ GPU at 16-bit (about 58 GB of memory), E4B needs a 24 GB GPU or 24 GB+ MacBook Pro (about 18 GB), and the 4-bit LiteRT-LM build needs about 4 to 5 GB.
Is MedGemma 2 free to download?
Yes. The weights are on Hugging Face and in Model Garden, but you must log in and accept the Health AI Developer Foundations (HAI-DEF) terms of use before downloading.
Can MedGemma 2 be used for diagnosis?
Not directly. Google says MedGemma is not clinical-grade, its outputs are not intended to inform diagnosis or treatment, and developers must validate and adapt it before any production use.
How is MedGemma 2 different from MedGemma 1.5?
MedGemma 1.5 is a Gemma 3 based 4B model focused on question answering and medical imaging. MedGemma 2 moves to Gemma 4, adds native tool calling, grounding and code generation, and adds a 26B MoE size. MedGemma 1.5 remains available.
Sources
- Introducing MedGemma 2: Our most capable open model for health AI developers (Google Research blog, December 3, 2026)
- MedGemma overview: what’s new in MedGemma 2 and choosing a model (Health AI Developer Foundations, Google for Developers)
- google/medgemma-2-26B-A4B-it model card (Hugging Face)
- google/medgemma-2-E4B-it model card (Hugging Face)