MedGemma 2 is Google's open model for health AI developers, announced on December 3, 2026. It is built on Gemma 4, accepts multimodal input, produces text, and adds medical tool calling and grounding. You can download it from Hugging Face, run the small E4B size on a laptop or phone, or host the 26B size on a server GPU or in Google Cloud's Model Garden.
This guide covers what Google actually published: the two sizes, the memory each needs, how to get access, a working command for the on-device build, and the limits Google states. It does not make the model safe for patient care. Google says that is up to the developer.
Who this is for and what you will have at the end
This is for developers, data scientists and IT leads at clinics, health-tech startups and hospital IT teams who want to evaluate an open medical model. It also suits students building a health AI project.
By the end you will know which size fits your hardware, how to accept the terms and fetch the weights, how to start the model locally, and what to put in an evaluation plan before anyone treats its output as anything other than a draft.
If you work on a managed AI platform instead, see our comparison of Gemini for healthcare against ChatGPT and Claude. That is a hosted product. MedGemma 2 is a model you host and control.
What MedGemma 2 is
Google's announcement describes MedGemma 2 as its "most advanced open model for health AI developers," trained on an expanded body of clinical knowledge and designed for clinician oversight. Google's research post says it is generally available as of December 3, 2026.
Capabilities Google lists:
- Flagging missing information in clinical workflows.
- Pulling from authorized medical records by using FHIR to query an electronic health record.
- Generating code that developers run in their own secure environment to evaluate clinical scores from established guidelines.
- Answering medical questions grounded in clinical guidelines, with the ability to search sources such as PubMed or a hospital's own protocols and cite passages.
- Using tools and reasoning over the results.
For background, Google says the original MedGemma arrived in 2025, that developers have downloaded MedGemma more than 10 million times in the 18 months since, and that people have built over 1,000 specialized derivative models. It also says the foundational research was published in Nature Medicine. These are Google's figures from its announcement.
The two sizes
| Model | Precision | Inference memory (Google) | Target hardware (Google) |
|---|---|---|---|
| MedGemma 2 26B MoE (4B active per token) | bfloat16 | about 58 GB | Hospital servers, cloud, a single 80 GB+ GPU such as an A100 or H100 |
| MedGemma 2 E4B | bfloat16 | about 18 GB | A single 24 GB GPU such as an L4 or RTX 4090, or a 24 GB+ Mac |
| MedGemma 2 E4B, 4/8-bit mixed (.litertlm) | 4/8-bit | about 4 to 5 GB | Android and iOS phones, tablets, desktops |
"MoE" means mixture of experts: the 26B model only activates about 4B parameters for each token, which cuts compute per response, but you still have to hold all the weights in memory. That is why the memory figure is close to what a 26B model needs rather than a 4B one.
Google's Get Started page recommends 80 GB or more for the 26B model, 24 GB or more for E4B in bfloat16, and 12 GB or more for the 4/8-bit build, since memory is needed beyond the weights.
Prerequisites
- A Hugging Face account. Google's page says to accept the Health AI Developer Foundations terms of use on the model page, then authenticate with
hf auth login. - Python and
pip. - Hardware that matches the size you pick (see the table above).
- A clear plan for data. Do not send real patient data to a model you have not assessed against your privacy and compliance obligations.
Step-by-step: run the on-device E4B build with LiteRT-LM
These steps follow Google's Get Started page.
-
Open the
litert-community/medgemma-2-e4b-it-litert-lmpage on Hugging Face and accept the terms of use. -
Authenticate:
hf auth login -
Install the CLI and run the model:
pip install litert-lm litert-lm run \ --from-huggingface-repo=litert-community/medgemma-2-e4b-it-litert-lm \ medgemma-2-e4b-it.litertlm \ --backend=gpu \ --prompt="Your prompt here" -
For an OpenAI-compatible local endpoint, Google says to use
litert-lm serve. Checklitert-lm serve --helpfor the flags in your installed version, because the Get Started page does not list them. -
To embed the model in an app, Google lists Android (Kotlin), iOS (Swift), Python and C++ APIs for LiteRT-LM.
Start with a prompt that has no patient information, for example a question about how a published clinical score is defined, and compare the answer with the guideline itself.
Alternative: run it with Ollama
Ollama's library page for medgemma2 lists three tags:
| Tag | Size on the page | Context | Input |
|---|---|---|---|
medgemma2:latest | 6.6 GB to 7.5 GB | 128K | Text, image |
medgemma2:e4b | 6.6 GB to 7.5 GB | 128K | Text, image |
medgemma2:26b | 18 GB to 19 GB | 256K | Text, image |
The page shows ollama run medgemma2 as the default command:
ollama run medgemma2Based on the tag names, ollama run medgemma2:e4b and ollama run medgemma2:26b should work, but the page does not show those commands, so confirm them with ollama pull on your machine. The page gives sizes as ranges and does not say which figure is the download size. Its readme says both sizes were validated at 128K tokens of context, and that the 26B architecture supports up to 256K. It also says audio input applies only to the E4B model.
The Ollama sizes are smaller than Google's bfloat16 memory figures, which suggests compressed builds, though the page does not say how they were made. Compression can change output quality, so run your evaluation on the exact build you will deploy.
Other ways to run or host it
Google's Get Started page lists these routes:
- Transformers or vLLM: run the Hugging Face checkpoints
google/medgemma-2-26b-a4b-itandgoogle/medgemma-2-e4b-it. The page links a quick-start notebook in thegoogle-health/medgemmaGitHub repository but shows no code itself. - Unsloth, llama.cpp and MLX: listed as supported ecosystems, with links and no commands.
- Google Cloud: deploy as an HTTPS endpoint from Model Garden on the Gemini platform, within your own VPC. For large datasets, Google points to a batch prediction job and notes that batch SLA and pricing differ from online prediction.
- Fine-tuning: sample fine-tuning and conversion notebooks are in the repo, including how to export a fine-tuned E4B to
.litertlm.
Choosing a size
| Your situation | Likely fit |
|---|---|
| Offline point-of-care app on phones or tablets | E4B, 4/8-bit LiteRT-LM build |
| Developer laptop or workstation for prototyping | E4B in bfloat16 or through Ollama |
| Multi-step clinical reasoning, tool use, high-throughput serving | 26B MoE on a server GPU or Model Garden |
Google's own selection guidance says the 26B model suits multi-step clinical reasoning, tool use and high-throughput serving, and that the E4B model is aimed at on-device use with a low memory footprint.
What Google says about quality
Google's research post reports gains for MedGemma 2 relative to Gemma 4:
| Benchmark | 26B MoE | E4B |
|---|---|---|
| MedAgentBench (FHIR EHR tasks) | +6% | +9% |
| AgentEHR (SQL over EHR) | +31% F1 | over 2.5x F1 |
| MedCalc-Bench-Verified (clinical calculations) | +10% | +56% |
| Internal grounded clinical QA | +5% | +11% |
Treat these carefully. They are Google's numbers, they are relative to Gemma 4 and not absolute scores, and the internal grounded QA benchmark is not publicly described. The post also lists absolute values for four benchmarks in a figure, but it does not clearly map each value to a specific model, so this article does not repeat them. The post itself says benchmarks show baseline capability and do not establish that the model is safe for any medical use.
Limits and safe-use rules
Google's research post states that MedGemma 2:
- is a starting point that needs appropriate validation, adaptation or meaningful modification before use;
- is not intended to directly inform diagnosis, patient management, treatment, or mental and behavioral health applications;
- can produce inaccurate output, which should be treated as preliminary and independently verified;
- was trained on a mix of public and private de-identified datasets that are not listed.
Google's Get Started page adds that the HAI-DEF Cookbook recipes are "educational starting points, not complete or verified applications" and that you must do your own fine-tuning, localization and evaluation. Google recommends running and validating generated code, such as clinical calculation code, in a sandbox before deployment.
The research post also points to terms of use and a prohibited use policy at developers.google.com/health-ai-developer-foundations. It does not state a license on the page, and the Hugging Face collection page did not show license or gating details when we opened it. Read the model card and terms on the repository you download from before building a product.
Verification: a small evaluation plan
Before you let anyone rely on the model in a workflow, build a test set from your own, de-identified or synthetic cases:
- Pick 30 to 50 questions where your clinicians already know the right answer, including edge cases and questions with missing information.
- For clinical scores, compute the expected value by hand or with the published formula, then compare it with what the model or its generated code returns.
- Run each question on the exact build you plan to ship (bfloat16, 4/8-bit or Ollama) and record every wrong or unsupported answer.
- Check that cited passages exist in the source you supplied.
- Have a clinician review a sample of outputs and record what they would change.
- Decide in writing what the model may never do in your product, starting with Google's list above.
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
| Hugging Face download is refused or returns 401/403 | You have not accepted the terms on that repository, or are not logged in. Accept the terms on the model page and run hf auth login again. |
| Out-of-memory error when loading the 26B model | Google lists about 58 GB of inference memory in bfloat16. Use an 80 GB+ GPU, a smaller compressed build, or switch to E4B. |
litert-lm command not found | The pip install litert-lm step did not finish or the Python scripts folder is not on your path. Reinstall in a virtual environment and retry. |
| Slow answers on a laptop | Try the E4B 4/8-bit build and check that the --backend=gpu setting is supported by your hardware. |
| Answers look confident but are wrong | Expected behavior for any language model. Google says outputs are preliminary. Add retrieval from your own guidelines and keep a human reviewer. |
Checklist
- Accepted the terms of use on the repository you download from.
- Picked a size that fits your memory and your use case.
- Ran the model locally with no patient data first.
- Wrote an evaluation set and tested the exact build you will ship.
- Wrote down what the model must not be used for, including diagnosis and treatment decisions.
- Confirmed legal and privacy requirements for any real patient data before it touches the model.
See also
- NVIDIA Open Models: Nemotron 4, Availability and How to Evaluate
- Google Antigravity: Use Your Own Gemini API Key, Models and Local LLMs (What Works)
- Claude Opus 4.8 (fast) Retired in GitHub Copilot: How to Switch Models
What we checked
- Opened Google's announcement at blog.google on 2026-12-04 and confirmed the December 3, 2026 date, the Gemma 4 base, the 26B MoE (4B active) and E4B sizes, and the availability list.
- Opened Google's research post for MedGemma 2 on 2026-12-04 and copied the relative benchmark figures and the stated limits exactly as written; the same page gave the model sizes and memory table.
- Cross-checked the memory figures (about 58 GB, 18 GB and 4 to 5 GB) between the research post and the Get Started page on developers.google.com; they match.
- Opened the Get Started page on 2026-12-04 and reproduced the
litert-lmcommand exactly as shown there (documented output was not shown on the page, so we show none). - Opened the Ollama library page for
medgemma2on 2026-12-04 and copied the three tags, sizes and context lengths. The page does not confirmollama runcommands for the non-default tags, and the article says so. - Opened the Hugging Face collection page on 2026-12-04; it listed the repositories but showed no license or gating information. A news search for outside coverage found no articles from The Verge, TechCrunch, Ars Technica, ZDNET or BleepingComputer, so every fact here comes from Google's and Ollama's own pages.
- Not tested hands-on: we did not download or run any MedGemma 2 build, so no timings, outputs or quality claims are ours. The steps follow Google's documentation as of 2026-12-04.
Last tested: 2026-12-04
Comments
Questions and tips are welcome. Comments are checked by the EpiFive team before they appear; please do not share passwords, phone numbers or other private details.