Google Research released MedGemma 2 on 3 December 2026, an open-weights health AI model built on Gemma 4. It comes in two sizes: a 26B mixture-of-experts model for hospital servers, and a small E4B model that also runs on laptops and phones.
The big change from earlier MedGemma versions is native tool calling, so the model can query patient records, run clinical calculators and cite the guidelines you give it. This guide covers the numbers, how to download and run it, what it needs, and the limits Google itself states.
TL;DR
- What: MedGemma 2, Google’s open health model family on Gemma 4, announced 3 Dec 2026 (Google Research blog).
- Sizes: 26B MoE (about 3.8B active per token) and E4B (4.5B effective, accepts audio too).
- New: tool calling and structured function calling, SQL/FHIR queries, Python for clinical scores, answers grounded in your reference documents with citations.
- Hardware: E4B at 16-bit needs about 18 GB (a 24 GB GPU or Mac); a 4-bit LiteRT-LM build runs in about 4 to 5 GB on phones. The 26B needs about 58 GB (one 80 GB GPU).
- Access: free download from Hugging Face after accepting Google’s Health AI Developer Foundations (HAI-DEF) terms. It is not an Apache 2.0 or MIT licence.
- Not a doctor: Google says outputs must not directly inform diagnosis or treatment, and all benchmark gains are Google-run.
What MedGemma 2 is
MedGemma is Google’s family of open models for healthcare developers. The first release came in 2025 on Gemma 3, followed by MedGemma 1.5. Google says the family has passed 10 million downloads, 60,000 unique users and more than 1,000 derivative models.
MedGemma 2 moves to the Gemma 4 base and adds agent skills. According to the Hugging Face model card, the vision encoder (and the audio encoder in E4B) came from Gemma 4 with no separate medical pre-training. The medical knowledge is added in post-training.
Google’s post-training data includes medical text and Q&A, EHR and FHIR records, chest X-ray, CT, MRI, ultrasound, mammography, histopathology, dermatology, ophthalmology, ECG, endoscopy video, genomics, tool-use trajectories and (E4B only) medical audio. The sources are public datasets plus licensed, de-identified and internal data.
Important: MedGemma 2 is a developer building block, not a medical chatbot for the public. Google calls it a starting point that needs validation and adaptation before any real use.
Specs: the two sizes
| Item | MedGemma 2 26B MoE | MedGemma 2 E4B |
|---|---|---|
| Hugging Face ID | google/medgemma-2-26b-a4b-it | google/medgemma-2-e4b-it |
| Parameters | 25.2B total, 3.8B active per token (8 of 128 experts plus 1 shared) | 4.5B effective (about 8B with per-layer embeddings), dense |
| Layers | 30 | 42 |
| Input | Text, images, volumetric slice sequences, video frames | Same, plus audio (16 kHz, up to 30 s) |
| Output | Text | Text |
| Context | Validated at 128K; card also says up to 256K | Up to 128K |
| Base model | Gemma 4 | Gemma 4 |
| Built for | Hospital servers, private cloud, VPC | Workstations, laptops, phones |
The two model cards disagree slightly on the 26B context (128K validated vs 256K input). I would plan around 128K until Google clarifies.
Benchmarks (all Google-run)
Every number below is from Google’s own model cards and blog. No independent lab has published results yet, and Google notes some datasets are internal and may be contaminated.
| Benchmark | 26B MoE | Gemma 4 26B | E4B | Gemma 4 E4B |
|---|---|---|---|---|
| MedAgentBench (success rate) | 86.3 | 81.3 | 53.3 | 48.7 |
| MedCalc-Bench Verified (accuracy) | 72.8 | 66.2 | 59.1 | 37.9 |
| AgentEHR common (F1) | 30.7 | 23.5 | 27.7 | 10.2 |
| Grounded clinical QA (accuracy) | 95.6 | 90.8 | 94.8 | 85.2 |
| MedQA, 4 options | not reported | n/a | 82.3 | 74.0 |
Google’s blog states the gains as relative improvements over Gemma 4. My arithmetic from the card numbers matches them:
- MedAgentBench: +6% (26B) and +9% (E4B)
- AgentEHR F1: +31% (26B) and over 2.5x (E4B)
- MedCalc-Bench: +10% (26B) and +56% (E4B)
- Grounding: +5% (26B) and +11% (E4B)
The E4B card also lists MedMCQA 63.8, PubMedQA 78.6 and MMLU Med 81.6. One regression to know: MIMIC-CXR macro F1 is 86.3, below MedGemma 1.5 4B at 89.5.
For medical dictation, E4B scores 10.6% word error rate on radiology audio against 27.2% for Gemma 4 E4B, but Google’s separate MedASR model is still better at 5.4%.
What hardware you need
| Variant | Precision | Memory (Google) | Runs on |
|---|---|---|---|
| 26B MoE | bfloat16 | about 58 GB | One 80 GB+ GPU (RTX PRO 6000, H100, A100) |
| E4B | bfloat16 | about 18 GB | 24 GB+ GPU (L4, RTX 4090) or 24 GB+ MacBook Pro |
| E4B .litertlm | 4/8-bit mixed | about 4 to 5 GB | Phones, tablets, desktops on CPU, GPU or Pixel TPU |
The LiteRT-LM model page lists measured speeds for the E4B build (1024-token prompt, 256 generated tokens):
| Device | Backend | Prefill tok/s | Decode tok/s |
|---|---|---|---|
| Pixel 11 Pro | TPU | 1,353 | 18.2 |
| Galaxy S26 Ultra | GPU | 1,138 | 17.2 |
| iPhone 17 Pro | GPU | 1,433 | 21.7 |
| MacBook Pro M5 | GPU | 1,109 | 58.1 |
| RTX 5080 laptop (MSI Vector 16 HX AI) | GPU | 2,024 | 89.2 |
| RTX 4090 (Linux) | GPU | 2,229 | 96.0 |
These are Google’s published figures, not my tests. Real speed will vary with context length and the other apps running.
How to download and run it
The weights are gated on Hugging Face, so you need a free account and must accept Google’s terms once. If you have never pulled a gated model, see our guide to downloading models from Hugging Face.
Option A: Transformers (E4B or 26B)
- Open the model page (
google/medgemma-2-e4b-itorgoogle/medgemma-2-26b-a4b-it) while signed in and accept the HAI-DEF conditions. - Log in locally with
huggingface-cli loginand an access token. - Install:
pip install -U "transformers>=5.15.0" accelerate. The card says 5.10.1 is the minimum for Gemma 4, and 5.15.0 or later is recommended for thinking mode and tool calling. - Load the model with
AutoModelForMultimodalLMandAutoProcessor(or theany-to-anypipeline withdevice_map="auto"), build messages withapply_chat_template, then callgenerateandparse_response. - Put images before text in the message content. Turn on thinking with
enable_thinkinginapply_chat_template.
Settings from the card: temperature 1.0, top_p 0.95, top_k 64. Use 1,024 to 4,096 max new tokens normally, and 8,192 to 16,384 with thinking on. Image token budget (max_soft_tokens) ranges 70 to 1,120, default 280.
Option B: on a phone or small PC with LiteRT-LM (4-bit E4B)
- Accept the terms on
litert-community/medgemma-2-e4b-it-litert-lmon Hugging Face. - Install the CLI:
pip install -U litert-lm. - Run:
litert-lm run --from-huggingface-repo=litert-community/medgemma-2-e4b-it-litert-lm --prompt="Summarise this note". - For Android and iOS apps, follow Google’s MedGemma 2 guide on the LiteRT-LM docs; I have not seen the step-by-step in the sources I checked.
Option C: Ollama, llama.cpp, vLLM, MLX, Unsloth
Google’s blog lists Transformers, vLLM, Ollama, Unsloth, llama.cpp and MLX as supported frameworks. At the time of writing (5 Dec 2026), the Ollama library page for medgemma still showed the older Gemma 3-based 4B and 27B models, not MedGemma 2, so ollama run medgemma gives you version 1, not 2.
Check before you trust a download: community GGUF, MLX or LiteRT conversions can behave differently from the BF16 original. Google’s card says to validate quantized versions separately. For llama.cpp basics see how to install llama.cpp; for the MoE model on limited VRAM see llama.cpp MoE offload.
Option D: Google Cloud Model Garden
Google Cloud customers can find MedGemma 2 in Model Garden to evaluate, fine-tune and validate inside their own VPC, then deploy as online endpoints or batch jobs. This is the route Google points hospitals to.
Using tool calling safely
Tool calling is the headline feature. Google describes three jobs it tested:
- Record retrieval: the model writes SQL and FHIR queries to pull a patient’s history.
- Clinical calculations: it writes Python for scores such as risk calculators.
- Grounded answers: it cites passages from the guidelines or papers you supply.
The model card is blunt about safety. Tool calls and generated code must be validated and run in sandboxes, and the developer is responsible for security. Keep multi-turn history to final answers only, except in tool-calling turns.
Practical rule: never let the model run SQL or Python directly against real patient data. Put a read-only account, a query allow-list and a human review step between the model and the database.
Licence and terms
MedGemma 2 is open-weights, but it is not under a standard open-source licence. Hugging Face tags it health-ai-developer-foundations, and use is governed by the HAI-DEF terms of use and a prohibited use policy. Google’s developer page does not name a single licence for the model, so read both documents before you build a product.
The page text is CC BY 4.0 and the fine-tuning notebooks in the MedGemma GitHub repo are Apache 2.0. Those apply to docs and code, not the weights.
MedGemma 2 vs MedGemma 1.5 vs Gemma 4
| MedGemma 2 | MedGemma 1 / 1.5 | Gemma 4 (general) | |
|---|---|---|---|
| Base | Gemma 4 | Gemma 3 | Gemma 4 |
| Sizes | 26B MoE, E4B | 4B, 27B | E2B to 31B |
| Tool calling | Yes, tuned for EHR and calculators | Google says mostly simple Q&A | General tool calling |
| Audio | E4B only | No (separate MedASR) | E2B and E4B |
| Chest X-ray F1 (E4B-size) | 86.3 | 89.5 (1.5 4B) | n/a |
| Medical focus | Yes | Yes | No |
If you need a general local model, our Gemma 4 local guide shows which size fits your GPU. MedGemma 2 only makes sense when your task is medical text, images or records.
Limits and common problems
- Not for clinical decisions. Google’s disclaimer says outputs are not meant to directly inform diagnosis, patient management or treatment, including mental health use.
- Benchmarks are not safety proof. Google says they show baseline capability only.
- English-first. The card says evaluations used mainly English prompts and lists languages as a limitation.
- Gated access. If a download returns 401 or 403, you have not accepted the terms on the model page or your token lacks read access.
- Old Transformers. Errors loading the model or parsing tool calls usually mean a Transformers version below 5.15.0.
- Audio only on E4B. The 26B model cannot take medical audio.
- Version 1 by accident. Pulling
medgemmafrom Ollama gives the Gemma 3-based model. - Unverified gaps. Google has not published pricing for Model Garden use, and no clinician-comparison or live-hospital deployment data.
My Take
This is a useful release because the E4B model is small enough to prototype on a normal gaming GPU or a 24 GB Mac, and tool calling over FHIR is what real health software needs. The jump on small-model agent tasks (E4B MedCalc-Bench from 37.9 to 59.1) is the most interesting number.
I would still be cautious. All results are Google-run, the licence adds usage rules, and the cards are explicit that this is not clinical-grade. For hobbyists and students, it is a great way to learn medical RAG and agents on synthetic data. For anything touching real patients, expect a lot of validation work.
FAQ
Is MedGemma 2 free?
The weights are free to download after accepting Google’s HAI-DEF terms. Running it on your own hardware has no per-token fee; Google Cloud hosting is billed by Google Cloud.
Can I run MedGemma 2 on my phone?
Yes, the 4-bit E4B build for LiteRT-LM needs about 4 to 5 GB and Google lists the Pixel 11 Pro and Galaxy S26 Ultra. Google’s table shows roughly 17 to 22 tokens per second on those phones.
Which size should I pick?
Pick E4B for a laptop, desktop or phone and for audio input. Pick the 26B MoE only if you have an 80 GB GPU and want the best agent scores.
Does MedGemma 2 work in Ollama?
Google lists Ollama as supported, but the Ollama library page showed only the older Gemma 3-based MedGemma when I checked on 5 Dec 2026. Watch that page or use Transformers or LiteRT-LM meanwhile.
Can it diagnose patients?
No. Google says outputs must not directly inform diagnosis or treatment and need independent verification by qualified people.
Is it open source?
It is open-weights under Google’s own HAI-DEF terms and prohibited use policy, not a standard licence such as Apache 2.0. Read them before commercial use.
What is new compared with MedGemma 1.5?
A Gemma 4 base, a 26B MoE size, native tool calling, FHIR and SQL skills, grounded citations and audio in E4B. Chest X-ray F1 on the small model is slightly lower than 1.5.
Can I fine-tune it?
Yes. Google provides notebooks in the MedGemma GitHub repo, and Unsloth is listed as supported. The 16-bit E4B is the recommended base for full fine-tuning and evaluation.
Sources
- Google Research: Introducing MedGemma 2 (3 Dec 2026)
- Hugging Face: google/medgemma-2-e4b-it model card
- Hugging Face: google/medgemma-2-26b-a4b-it model card
- Hugging Face: LiteRT-LM checkpoint
- Google HAI-DEF: MedGemma developer page
- Ollama library: medgemma (checked 5 Dec 2026)
- SQ Magazine: Google launches MedGemma 2
Medical disclaimer: this article is information about a software model, not medical advice.




