Subscribe
0%
Illustration for: MedGemma 2: Google's open medical model moves to Gemma 4, with an offline 4.7GB phone build — what you need

MedGemma 2: Google's open medical model moves to Gemma 4, with an offline 4.7GB phone build — what you need

Google has released MedGemma 2, a pair of Gemma 4-based medical models (E4B and 26B-A4B) with official notebooks for fine-tuning, cloud serving and fully offline use on phones and laptops. Here is what the code shows you can run, on what hardware, and what Google says it is not for.

Listen to this article0:00 / 4:52

Google has released MedGemma 2, the next version of its open-weight medical AI models, now built on the Gemma 4 architecture. Google's official google-health/medgemma repository was updated on December 3 with MedGemma 2 notebooks for local inference, cloud serving, fine-tuning and on-device deployment, and The Neuron's December 4 digest reported the launch as an open healthcare model that can run on servers or offline devices.

Why it matters: MedGemma is one of the few medical models a hospital IT team, researcher or health-app developer can download and run on their own hardware, which matters when patient data can't leave the building. The new release adds an offline "agent" reference design that runs on a laptop or phone with no network after setup.

What was released

The repository's notebooks name two MedGemma 2 checkpoints on Hugging Face:

Model What the repo says Hardware named in Google's notebooks
google/medgemma-2-E4B-it Multimodal (text + images; the NPU notebook also mentions an audio encoder) Free Colab T4 GPU with 4-bit quantization; L4 GPU at full precision
google/medgemma-2-26B-A4B-it Larger variant (the repo does not detail its architecture) A100 80GB or H100 at full precision
litert-community/medgemma-2-e4b-it-litert-lm E4B packed for on-device use, 4/8-bit mixed precision 4.69 GB download; "mobile devices with 12 GB of GPU memory"

The quick-start notebook describes MedGemma 2 as "a collection of Gemma 4 variants" trained for medical text and image comprehension. Notebooks also reference a thinking mode and Gemma 4's variable-resolution image tokens. (Note: the repository's top-level README still describes the older Gemma 3-based MedGemma; the MedGemma 2 detail is in the notebooks and cookbook.)

What the notebooks show it doing

The repository's MedGemma 2 notebooks cover:

  • Document reading: extracting lab tests, panels, specimens and reference ranges from a laboratory report image into structured output.
  • Chest X-ray tasks: anatomy localization and longitudinal comparison of two scans.
  • Grounded literature answers: retrieving PubMed Central open-access papers with EmbeddingGemma and generating answers with inline citations.
  • Fine-tuning: supervised (LoRA) and reinforcement-learning notebooks, plus MedQA evaluation with vLLM.
  • Cloud serving: deploying to Google's Gemini Enterprise Agent Platform via Model Garden.
  • On-device: converting a fine-tuned E4B model to LiteRT-LM, including an ahead-of-time compile for the Google Tensor G6 NPU on Pixel 11.

The Neuron, citing a post from Sundar Pichai, also described retrieval from authorized records, clinical score evaluation and guideline Q&A among the use cases.

The offline agent: "MedGemma Edge"

The most practical piece is a new cookbook, edge_care, an offline reference agent that runs MedGemma 2 E4B with LiteRT-LM entirely on the local machine. According to its README it wires the model to:

  • deterministic Python calculators and rule tables (so the model extracts inputs and the code does the arithmetic — the example computes BMI and eGFR);
  • a local SQLite guideline index that cites page numbers and abstains below a similarity threshold;
  • document → JSON and document → HL7 FHIR R4 extraction from photos or PDFs;
  • MedASR (105M parameters, English only) for draft transcripts that a person reviews before the text reaches the model.

Google says answers take "tens of seconds on a laptop-class CPU."

Limits and terms

  • Not cleared for clinical use. The cookbook carries a caution that it is "not production-grade nor validated for clinical use" and must be run against models you have fine-tuned and evaluated yourself.
  • Not Apache-licensed weights. The code is Apache 2.0, but MedGemma weights fall under the Health AI Developer Foundations (HAI-DEF) terms and prohibited-use policy, and the Hugging Face models are gated behind accepting them.
  • On-device conversion is heavy. Google's NPU notebook says hosted Colab runtimes lack the memory; you need a Linux machine with roughly 160 GB of RAM plus swap and about 150 GB of disk, and conversion takes several hours.
  • No benchmark numbers verified here. Google's blog post and Hugging Face model cards were not reachable for this article, so we are not reporting accuracy claims.

Who should care

Developers already building on MedGemma 1 or 1.5 (the repo keeps the 1.5 CT and pathology notebooks) should test E4B on their own data before switching. Teams that need on-premises or offline processing — clinics with poor connectivity, privacy-constrained research groups — get the clearest new option: a gated but downloadable 4.7 GB model with a working tool-calling template. Start with the repo's Hugging Face quick-start on a free T4 runtime, then the edge_care quickstart.

Sources

  1. GitHub — google-health/medgemma (MedGemma 2 notebooks and README, updated Dec 3, 2026) github.com
  2. GitHub — google-health/medgemma: MedGemma Edge offline reference agent (cookbook/edge_care) github.com
  3. The Neuron — Everything That Happened in AI Today (Friday, December 4, 2026) theneuron.ai

#Google#MedGemma#Gemma 4#open-weight models#healthcare AI#on-device AI