Model reference · open weights

medgemma-2-it

NEW · this week LLMs google Omni (any→any) · MoE 3 builds Its own licence terms 10 dl/mo

medgemma-2-it is an open-weight language model from Google. medgemma-2-E4B-it-GGUF (GGUF) weighs 5.1 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • MedGemma 2 is a collection of multimodal models developed by Google for medical text and image comprehension.
  • The 4B variant, which supports a context window of up to 128K tokens, is designed for edge and mobile deployments.
  • It accepts text, vision, and audio inputs and is released under an other licence.

Summary of the google/medgemma-2-E4B-it model card, 2026-12-04. The estimate below is for another build of the family.

What it is

Released byGoogle
Released2026-12-01
Parameters8.0B
VRAM5.1 GB for the weights

What it runs on

Memory and cards for medgemma-2-E4B-it-GGUF (GGUF)

5.1 GBweights, file size
651 MBruntime overhead, at least

How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.

CardWeights alone
RTX 3060 12 GBfits
RTX 4060 Ti 16 GBfits
RTX 3090 24 GBfits
RTX 4090 24 GBfits
RTX 5090 32 GBfits
L40S 48 GBfits
A100 80 GBfits
H100 80 GBfits
RTX PRO 6000 Blackwell 96 GBfits
DGX Spark (GB10) 128 GB unifiedfits
H200 141 GBfits
B200 180 GBfits

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
medgemma-2-E4B-it ↗ 8.0BBF16 16.0 GBRTX 4090 24 GB
medgemma-2-26B-A4B-it ↗ 25.8BBF16 51.6 GBH100 80 GB
medgemma-2-E4B-it-GGUF (above) ↗
packaged by unsloth
9 builds: IQ2_M 3.5 GB … BF16 15.1 GB
GGUF 5.1 GBRTX 3060 12 GB

From the model card

What Google says about medgemma-2-it

Read the model card

Not for clinical use. This model is not intended to be used for clinical diagnosis, treatment decisions or any other direct patient-care decision. Outputs can be wrong or incomplete and must be independently verified by qualified professionals. Use is subject to the Health AI Developer Foundations terms of use.


[!NOTE] This card describes MedGemma 2, available as a 4B multimodal instruction-tuned variant (E4B) and a 26B Mixture-of-Experts instruction-tuned variant (A4B). For information on earlier variants, refer to the MedGemma 1.5 model card and the MedGemma 1 model card.

MedGemma is a collection of Gemma variants that are trained for performance on medical text and image comprehension. Developers can use MedGemma to accelerate building healthcare-based AI applications.

MedGemma 2 is an update to the MedGemma collection built on the Gemma 4 architecture, with no modifications to the Gemma 4 base architecture. Driven by developer and clinical research feedback, MedGemma 2 moves MedGemma from passive multimodal question answering to reasoning-capable models built for real-world clinical workflows across both server-scale and resource-constrained edge deployments. MedGemma 2 is released as two instruction-tuned checkpoints:

  • MedGemma 2 4B (E4B): A compact multimodal model (effective 4B parameters) designed for edge, mobile, and local developer deployments, supporting a context window of up to 128K tokens.
  • MedGemma 2 26B MoE (A4B): A 26B Mixture-of-Experts model (approximately 4B active parameters per token) designed for hospital on-premises servers and private cloud deployments, supporting a context window of up to 256K tokens.

Model Overview

The MedGemma 2 models are built on Gemma 4 and use the same decoder-only transformer architecture as Gemma 4, with no base architectural modifications. The 4B variant follows the Gemma 4 E4B dense design; the 26B variant follows the Gemma 4 26B Mixture-of-Experts (A4B) design. To learn more about the architecture, consult the Gemma 4 model card.

The LLM component of MedGemma 2 is post-trained, starting from Gemma 4. Post-training uses a diverse set of de-identified and licensed medical data, including medical text, medical question-answer pairs, FHIR-based EHR data, 2D and 3D radiology images, histopathology images, ophthalmology images, dermatology images, medical documents, and (for the 4B model) medical audio. Unlike MedGemma 1 and 1.5 which used a MedSigLIP-derived vision encoder, MedGemma 2 uses the native Gemma 4 vision encoders, without additional medical pre-training of the vision encoder.

  • We do not modify the architecture of Gemma 4. Local to global attention ratio is 5-to-1. Position is encoded with p-RoPE with p = 0.25 on global attention layers and with RoPE on local attention layers. The RoPE frequencies are set to 1M and 10k on global and local attention layers, respectively.

MedGemma 2 specifications

PropertyMedGemma 2 4B (E4B)MedGemma 2 26B MoE (A4B)
Model typeDecoder-only Transformer architecture, see the Gemma 4 technical report. 4B: dense (E4B).26B: Mixture-of-Experts (A4B, ~4B active parameters per token).
Total Parameters~8B including per-layer embeddings ‡25.2B ‡
Effective / Active Parameters4.5B effective ‡3.8B active ‡
Layers42 ‡30 ‡
Sliding Window512 tokens ‡1,024 tokens ‡
Context LengthSupports long context, validated at 128K tokens for both sizes.Supports long context, validated at 128K tokens for both sizes.
Vocabulary Size262K ‡262K ‡
Expert CountN/A (dense)8 active / 128 total and 1 shared ‡
Input modalitiesText, vision (images, volumes, video), and audio.Text and vision (images, volumes, video).
Output modalityText onlyText only
Vision Encoder Parameters~150M ‡~550M ‡
Audio Encoder Parameters~300M ‡N/A
Key publicationSellergren, Andrew, et al. "An open vision-language model for diverse medical applications." Nature Medicine (2026): 1-10.Sellergren, Andrew, et al. "An open vision-language model for diverse medical applications." Nature Medicine (2026): 1-10.
Model version2.0.02.0.0

‡ Based on Gemma 4

Benchmark Results

MedGemma 2 was evaluated across a range of different multimodal classification, report generation, visual question answering, agentic tool use, grounding, long-context EHR, and text-based tasks.

MedGemma 2 has been evaluated on a range of clinically relevant benchmarks to illustrate its baseline performance. These evaluations are based on both open benchmark datasets and internally curated datasets. Developers are expected to fine-tune MedGemma for improved performance on their use case. Consult the Intended use section for more details.

Sampling settings used for these evaluations are listed under Best Practices.

Imaging evaluations

The multimodal performance of MedGemma 2 4B and 26B MoE was evaluated across benchmarks covering radiology (2D, longitudinal 2D, and anatomical localization), histopathology, and dermatology. Results for MedGemma 1.5 4B, Gemma 4 E4B, and Gemma 4 26B are shown for comparison; see the Data card for dataset details.

Task / DatasetMetricMedGemma 2 4BMedGemma 1.5 4BGemma 4 E4BMedGemma 2 26B MoEGemma 4 26B
2D image classification
MIMIC-CXR**Macro F1

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms