How to Run Google's MedGemma 2 Free: The Medical AI That Runs Offline on Your Phone

On 3 December 2026, Google released the most capable health AI it has ever given away for free. It is called MedGemma 2, and it is not a chatbot that answers medical quiz questions. It is a model that can look at a patient's record, realise it is missing a number, fetch that number with a database query, run the maths itself, and then cite the guideline it used, all in one conversation. And the small version runs entirely offline on a phone, in a build about the size of a single movie download.

That combination is new. The first MedGemma, released in 2025, could read a chest X-ray and answer a question about it. MedGemma 2 can do a job. The question is whether you can run it yourself, for free, without a hospital server room. The answer is yes, if you pick the right size, and this post walks you through exactly how.

What is MedGemma 2, and why is it different from a medical chatbot?

MedGemma 2 is Google's second generation of open models for health AI developers, built on Gemma 4 and trained on an expanded body of clinical knowledge. Google calls it its most advanced open model for health AI, and the reason is not the size. It is the behaviour.

A normal medical chatbot works like this: you ask a question, it answers from what it memorised during training. If it does not know a fact, it guesses, and it guesses confidently. That is exactly the behaviour you do not want anywhere near a medical record.

MedGemma 2 works differently. It combines chain-of-thought reasoning with structured function calls, which means it can recognise when it needs more information, call the right tool to get it, and then reason over the result across several turns. In plain English: it can stop, look something up, do the calculation, and then answer, instead of answering from memory alone.

There are two sizes. MedGemma 2 26B MoE is a mixture-of-experts model with 25.2 billion total parameters and only about 4 billion active per token. It is built for hospital servers, private cloud and local hosting. MedGemma 2 E4B is an effective 4 billion parameter model built for on-device use on phones, tablets and laptops. It runs entirely offline at the point of care. Most readers of this post will use E4B, because the 26B model needs about 58 GB of inference memory and a single 80 GB or larger GPU. E4B needs far less, and the phone build needs only 4 to 5 GB.

The model is also multimodal in a way that matters for real clinics. It takes text and images, and the E4B version also takes audio, so it can transcribe medical dictation. On the imaging side it adds ECG, mammography and ultrasound to the chest X-ray, histopathology, dermatology and fundus images the first MedGemma could read.

What can it actually do? The three tool patterns

Google describes three things MedGemma 2 can do that a plain question-answering model cannot. These are the three patterns you will build with, so it is worth understanding each one before you install anything.

First, it can access patient records. Give it a question about a patient's history and it can generate SQL and FHIR queries to retrieve the relevant part of a longitudinal record, then reason over what comes back. FHIR is the standard format hospitals use to exchange health records, so a model that can write FHIR queries is a model that can talk to a real hospital system instead of a toy demo.

Second, it can calculate formulas from medical guidelines. Instead of guessing a clinical score from memory, it can generate Python code that you run in your own secure environment to evaluate the score from the numbers you supply. The calculation happens in code you can inspect, not inside the model's head.

Third, it can cite institutional guidelines. It can search medical literature such as PubMed, or a hospital's own care protocols, and cite the source passages so a clinician can verify the response. That is the difference between an answer you have to trust and an answer you can check.

All three patterns share one idea: the model does the reasoning, but the facts come from tools and documents you control. That is how you build a health tool that a clinician can actually supervise, and Google is explicit that clinician oversight is the point. MedGemma 2 is designed for developers building tools under clinician supervision, not for unsupervised use.

How do I run it free on my laptop? Route 1: Ollama

The fastest free route is Ollama, and Google lists Ollama among the ecosystems MedGemma 2 is available on today. Ollama has an official MedGemma 2 listing, and I verified the exact model name live before writing this post. It is medgemma2, and the default size is the E4B model at about 6.6 GB, with a 128K-token context window.

Step one is to install Ollama. Download it from ollama.com/download for macOS, Windows or Linux, and open it. It is free and open source, and it runs the model entirely on your machine.

Step two is one command:

ollama run medgemma2

That downloads the E4B model, about 6.6 GB, and drops you into a chat with it. On a laptop with 8 GB of GPU memory, or a 16 GB Mac, it runs. No account, no API key, no Hugging Face login, no terms click-through on Ollama's side. Ollama mirrors the weights itself, so the pull just works.

Step three is to give it something real to do, with sample data. Never paste a real patient's record into any local model test. Use the demo data from Google's own examples, or invent a fictional patient. A good first prompt looks like this:

You are a clinical assistant under clinician supervision.
Here is a fictional patient record: a 62 year old man with
type 2 diabetes, on metformin 1000 mg twice daily, latest
HbA1c 8.1 percent, eGFR 58.
Which clinical score should be calculated first, and what
Python code would compute it from these numbers?

Watch what it does. A good response will pick a score, explain why, and write the code instead of guessing the number. That is the behaviour you are testing: does it reach for a tool or a calculation instead of answering from memory?

If you want the bigger model instead, the tag is medgemma2:26b, about 18 GB, with a 256K-token architecture:

ollama pull medgemma2:26b
ollama run medgemma2:26b

Do not run that on a laptop. The 26B model is a server model. It needs the 80 GB class GPU Google names in its hardware table, and a laptop will simply run out of memory. The E4B model is the laptop model, and it is the one this tutorial is built around.

One honest note about the Ollama route: the old MedGemma 1 listing in Ollama is a different model, called medgemma, built on Gemma 3. Do not confuse the two. The new one is medgemma2, built on Gemma 4, with tool calling. If you type the old name you will get the old model.

What about running it without Ollama? Route 2: Transformers on your own GPU

If you already have a 24 GB GPU, or a 24 GB or larger MacBook Pro, you can run the E4B model directly with Hugging Face Transformers or vLLM, or on Apple silicon with MLX. The Hugging Face repos are google/medgemma-2-E4B-it for the small model and google/medgemma-2-26B-A4B-it for the large one.

There is a catch here, and it is the biggest catch in this whole post, so read it before you click anything. The Hugging Face files are gated. You have to log in, accept Google's Health AI Developer Foundations (HAI-DEF) terms of use and a separate Prohibited Use Policy, and only then can you download the weights. Only the accompanying source code is Apache 2.0. The weights are not. Do not call MedGemma 2 a fully open Apache 2.0 model, because it is not, and do not be surprised when the download page asks you to accept terms first.

That gating is also why the Ollama route is the friendlier first step for most readers. Ollama's mirror does not ask you to accept the Hugging Face terms in the browser. The terms still apply to how you use the model, but the download itself is one command.

The local route also gives you the tools the Ollama chat does not. With Transformers you can wire the model to your own FHIR server, your own SQL database and your own guideline documents, and let it call them as functions. That is the real build: a small local service where the model reasons and your code does the fetching. Google's HAI-DEF Cookbook on GitHub gives coding examples for the common patterns, and it is the best place to start once the one-command Ollama test has convinced you the model is worth building on.

How does the phone version work? Route 3: the 4 to 5 GB offline build

This is the part of MedGemma 2 that no other free medical model offers. Google ships pre-converted .litertlm checkpoints of the E4B model for LiteRT-LM, and the 4 or 8 bit mixed-precision build needs only about 4 to 5 GB of memory. That fits on a phone, a tablet or a desktop, and it runs entirely offline. No internet, no API bill, no patient data leaving the device.

Google names the Pixel 11 Pro and the Samsung Galaxy S26 as target phones, and secondary reporting from TechTimes puts numbers on the speed: about 18.2 tokens per second on the Pixel 11 Pro TPU, 17.2 on the Galaxy S26 Ultra GPU, and 21.7 on the iPhone 17 Pro GPU, all at a 4,096-token context. Those are usable speeds for a real conversation, not a slideshow.

To try it, you use the LiteRT-LM CLI with the pre-converted checkpoint from Hugging Face, following the fine-tuning and conversion tutorials in Google's GitHub repos. There is no app-store download and no free hosted demo to click, so this route takes more setup than the Ollama command. But the payoff is a medical AI that works in a rural clinic with no signal, which is exactly the setting Google names for it. MedGemma 1 is already used in rural clinics in Uganda, maternal health networks in Kenya, outpatient triage and dermatology screening at AIIMS New Delhi, and by Jacaranda Health in Tanzania. The phone build of MedGemma 2 is aimed at the same places, with a model that can now call tools instead of just answering questions.

One thing to say plainly about the phone build: Google publishes speed and memory for the 4-bit version, but no accuracy benchmarks for it. The 16-bit E4B model is the reference for the accuracy numbers in this post. The phone build is fast and private, but its accuracy is unproven in Google's own numbers, and a quantised model can lose accuracy in ways that matter in medicine. Test it on your own benchmark data before you trust it with anything real.

How good is it, really? The benchmarks, with the honest framing

Google's announcement gives only relative gains over Gemma 4, with no absolute scores in the blog post itself. That is a red flag for any careful reader, because a 56 percent relative jump can start from a low base. So here are the absolute numbers from Google's own model card, which Ollama's library page also reproduces, and every number in this section is Google's own run, unverified by anyone independent.

On MedCalc-Bench Verified, which tests clinical calculations, the E4B model scores 59.1 against Gemma 4 E4B's 37.9. That is the biggest absolute jump in the set, and it matches the story Google tells: the model got much better at doing the maths instead of guessing it. The 26B model scores 72.8 against Gemma 4 26B's 66.2.

On MedAgentBench, which tests agentic tool use, E4B scores 53.3 against 48.7 for Gemma 4 E4B, and the 26B scores 83.7 against 81.3. A real gain, but a modest one, and the 26B was already strong here.

On AgentEHR, which tests reasoning over electronic health records, the jump is dramatic: E4B scores 27.7 on the common split against 10.2 for Gemma 4, and 23.3 on the rare split against 7.1. The 26B scores 30.2 and 26.5 against 23.5 and 22.5. The E4B numbers are still low in absolute terms, so do not read 27.7 as a passing grade. Read it as a model that went from nearly useless at this task to partly useful.

On ClinSeek-Bench, E4B scores 44.0 against 33.5, and the 26B scores 50.1 against 47.2.

In relative terms, which is how Google's blog frames it: MedAgentBench up 6 percent for 26B and 9 percent for E4B, AgentEHR F1 up 31 percent for 26B and more than 2.5 times for E4B, MedCalc-Bench up 10 percent for 26B and 56 percent for E4B, and grounded clinical question answering up 5 percent for 26B and 11 percent for E4B. Every percentage in this paragraph is relative to Gemma 4, and the post says so every time, because a bare percentage here would be misleading.

There is one more honest note about what did not improve. The vision side is unchanged from Gemma 4. MedGemma 2 uses Gemma 4's native vision encoders without additional medical pre-training, unlike MedGemma 1 and 1.5. So if you were hoping for a much better X-ray reader, that is not what this release is. This release is about tool use and reasoning, not about seeing better.

What are the catches? Read these before you build anything

The licence is the biggest catch, and it is worth repeating once more in one place. MedGemma 2 is not Apache 2.0. The weights fall under Google's Health AI Developer Foundations terms of use plus a separate Prohibited Use Policy. The Hugging Face files are gated behind accepting those terms. Only the accompanying source code is Apache 2.0. If your project needs a permissively licensed model, this is not it, and you should look at the alternatives in the keep-reading section instead.

The second catch is that there is no free hosted API and no playground. The zero dollar routes are all self-hosting: Ollama, Transformers, vLLM, MLX or LiteRT-LM on your own hardware. Google Cloud customers can deploy through the Gemini platform Model Garden, but that is a paid cloud route. If you were hoping to call MedGemma 2 from an app with a free API key, that option does not exist.

The third catch is hardware honesty. The 26B model needs an 80 GB GPU. The E4B model needs 8 GB of GPU memory through Ollama, or a 16 GB Mac, and the full 16-bit version needs a 24 GB GPU. The phone build is the only version that runs on ordinary hardware, and its accuracy is unproven, as noted above.

The fourth catch is that the benchmarks are all Google's own, relative to Gemma 4, with no independent verification yet. The model was released yesterday. Nobody outside Google has published a serious independent evaluation. Treat every number in this post as a claim to test, not a fact to quote.

The safety line, stated plainly

Google's own disclaimer says HAI-DEF models are not intended to directly inform clinical diagnosis, patient management decisions, treatment recommendations or any other direct clinical practice, and that outputs require independent verification and clinical correlation. This post is a developer tutorial for building and testing tools under clinician oversight. MedGemma 2 is not a personal doctor, not a diagnosis tool, and not safe for real patient decisions on its own. Use sample and demo data only, never real patient data, and never let a model output reach a patient without a clinician checking it first. That is not a footnote. It is the condition the whole model is released under.

Why this release matters anyway

MedGemma 1 was downloaded more than 10 million times by more than 60,000 unique users, with over 1,000 derivative models and the underlying research published in Nature Medicine. That is a real developer community, not a press-release number. MedGemma 2 gives that community something the first version could not do: a model that can fetch a record, run a calculation and cite a guideline, and a small version that does it offline on a phone.

For a developer in a place with unreliable internet, or a clinic that cannot send patient data to a cloud API, that is a genuine new capability, free of charge, running on hardware they already own. The licence terms and the unproven phone accuracy are real limits. But the direction is right, and the one-command Ollama test costs you nothing but a 6.6 GB download to find out whether it is useful for your work.

FAQ

Is MedGemma 2 really free?
Yes, the weights are free to download and use under Google's HAI-DEF terms, and the Ollama route costs nothing beyond your own hardware and electricity. There is no free hosted API, so the free routes are all self-hosted on your own machine or phone.

What is the exact Ollama command?
ollama run medgemma2 downloads the E4B model, about 6.6 GB, with a 128K-token context. For the bigger model, use ollama pull medgemma2:26b, about 18 GB, which needs server-class hardware.

Can I run MedGemma 2 on my laptop?
Yes, if you run the E4B model. Ollama needs about 8 GB of GPU memory, or a 16 GB Mac. The 26B model needs an 80 GB GPU and is not a laptop model.

Does it work offline on a phone?
Yes. The 4 to 5 GB .litertlm build runs entirely offline through LiteRT-LM on Android and iOS phones, at roughly 17 to 22 tokens per second on current flagship phones. Its accuracy is unproven in Google's own numbers, so test it before trusting it.

Is MedGemma 2 open source?
Not in the Apache 2.0 sense. The weights are under Google's HAI-DEF terms of use and a Prohibited Use Policy, and the Hugging Face files are gated behind accepting those terms. Only the accompanying source code is Apache 2.0.

Can I use it to diagnose patients?
No. Google's own disclaimer says the model is not intended to directly inform clinical diagnosis, patient management or treatment decisions. It is a developer model for building tools under clinician oversight, and its outputs need independent verification.

How is MedGemma 2 different from MedGemma 1?
MedGemma 1 answered questions about medical text and images. MedGemma 2 adds native tool calling: FHIR and SQL record queries, Python clinical-score calculations, literature and guideline search with citations, and multi-turn reasoning over the results. It is built on Gemma 4 instead of Gemma 3.

What hardware do I need for the 26B model?
About 58 GB of inference memory and a single 80 GB or larger GPU, such as an NVIDIA RTX PRO 6000, H100 or A100. For most readers, the E4B model is the right choice.

Sources

Google blog: MedGemma 2 announcement
Google Research blog: Introducing MedGemma 2
Ollama library: medgemma2
Hugging Face: google/medgemma-2-E4B-it
Hugging Face: google/medgemma-2-26B-A4B-it
Health AI Developer Foundations terms of use

Keep reading on RiseMe

How to Try Google's Free CellGemma AI: Predict How Cancer Cells React to Drugs
LingSante-3.1-flash: The 560B Open Medical AI That Answers 20 Million Health Questions a Day
How to Run Ai2's Tiny Olmicro AI on Your Laptop for Free
How to Use Molmo 3 Free: The Open AI That Sees in 3D

Post a Comment