Skip to content

How-ToGPU

How to Run Google's MedGemma 2 Locally on Your PC

Google's new MedGemma 2 open medical models come in E4B and 26B sizes. We explain the licence, which GGUF file fits your graphics card, and how to run it with llama.cpp or Transformers, plus the limits Google sets on its use.

By , Systems & Technical Editor

4 min read

How to Run Google's MedGemma 2 Locally on Your PC

This guide is based on Google's MedGemma 2 model card and the GGUF file listings published by ggml-org and Unsloth on Hugging Face, all read on 4 December 2026. Graphics card fits beyond the published file sizes are our estimates.

Google published MedGemma 2 on Hugging Face on 1 December 2026. It's an update to its MedGemma family of open models trained on medical text and images, and it's built on Gemma 4 with no changes to the base architecture. There are two instruction-tuned versions: a compact 4B model (E4B) that accepts text, images and audio, and a 26B Mixture-of-Experts model (A4B) with about 4 billion parameters active per token that accepts text and images. Both produce text only.

Before you start, be clear about what it's for. Google's model card says MedGemma's outputs are not intended to directly inform clinical diagnosis, patient management or treatment decisions, and that all outputs should be treated as preliminary and independently verified. It's a model for developers and researchers building and testing healthcare software, not a doctor on your desktop. Don't use it to make decisions about your own or anyone else's health.

Step 1: Accept the licence

The original Google repositories are gated: you need a Hugging Face account and must accept Google's Health AI Developer Foundations (HAI-DEF) terms of use before you can download the weights. The community GGUF conversions from ggml-org and Unsloth were not gated when we checked, but they're derived from the same model, so the same terms apply to how you use them.

Step 2: Pick a size that fits your graphics card

The GGUF files are the easiest way to run MedGemma 2 on a home PC. These are the published file sizes for the ggml-org conversions. Image and audio input also need a separate "mmproj" encoder file.

Model

Quant

File size

Encoder (mmproj Q8_0)

MedGemma 2 E4B

Q4_K_M

5.65GB

0.56GB

MedGemma 2 E4B

Q8_0

8.00GB

0.56GB

MedGemma 2 26B A4B

Q4_K_M

17.55GB

0.81GB

MedGemma 2 26B A4B

Q8_0

26.86GB

0.81GB

You also need room for the context cache, which grows with the length of the documents you feed in. As a rough guide (our estimate): the E4B at Q4_K_M suits an 8GB card such as the ASUS RTX 5060 8GB Dual OC, and at Q8_0 it's more comfortable on 12GB or 16GB. The 26B at Q4_K_M wants a 24GB or 32GB card to sit entirely in graphics memory. On a 16GB card such as the ASUS RTX 5060 Ti 16GB Dual OC you can try Unsloth's smaller 3-bit files (around 11 to 13GB) or keep some of the model in system RAM, which is slower. Our MedGemma 2 E4B vs 26B comparison and graphics card picks go into more detail.

Step 3: Run it with llama.cpp

ggml-org converted the models with llama.cpp in mind, so a recent build of llama.cpp is the simplest route. The ggml-org model page gives this one-line command for its Llama app, which downloads the model and runs it:

llama serve -hf ggml-org/medgemma-2-E4B-it-GGUF:Q8_0

Swap Q8_0 for Q4_K_M if you have an 8GB card, or use ggml-org/medgemma-2-26B-A4B-it-GGUF:Q4_K_M for the larger model. The Llama app, from the llama.cpp team and Hugging Face, also runs as a Windows system tray app and gives you a browser chat window plus an OpenAI-compatible local API, so other apps on your PC can use the model. If you'd rather download files yourself, you can fetch a single GGUF and its mmproj file from the model page and load them in llama.cpp's own server, and our guide to flash attention in llama.cpp covers a setting that can cut memory use with long contexts.

Step 4: Or use Python and Transformers

Google's own examples use the Transformers library. The model card says Gemma 4 is supported from Transformers 5.10.1, and recommends 5.15.0 or later for thinking mode and tool calling:

pip install -U "transformers>=5.15.0" accelerate

This route loads the full BF16 weights unless you quantise them yourself, and the BF16 GGUF files give a sense of the size: about 15GB for the E4B and about 50.5GB for the 26B. In practice that means the E4B is the realistic choice for a single consumer graphics card on this route.

The model card recommends Gemma 4's default sampling settings (temperature 1.0, top_p 0.95, top_k 64), which Google also used for its benchmarks. Thinking mode is switched on by putting the <|think|> token at the start of the system prompt. For images, put the image before your text in the prompt; for audio (E4B only), put the audio after the text. Google also warns that quantised and converted versions such as GGUF may behave differently from the original weights and should be validated separately.

The bottom line

MedGemma 2 is easy to try on a home PC: the E4B model at Q4_K_M runs on an 8GB graphics card by our estimate, and the 26B wants 24GB or more. Use it for building and testing healthcare software, not for medical decisions, and remember that Google says every output needs independent checking.

In this article

Sources

  1. 01Google, MedGemma 2 26B A4B model card (Hugging Face)
  2. 02Google, MedGemma 2 E4B model card (Hugging Face)
  3. 03ggml-org, MedGemma 2 E4B GGUF files (Hugging Face)
  4. 04ggml-org, MedGemma 2 26B A4B GGUF files (Hugging Face)
  5. 05Unsloth, MedGemma 2 26B A4B GGUF files (Hugging Face)
  6. 06llama.cpp team and Hugging Face, Llama app

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Hy-MT3 GGUF Files to Download in 2026

Best Picks

Best Hy-MT3 GGUF Files to Download in 2026

The best Hy-MT3 GGUF files to download for llama.cpp, from the 7B Q4_K_M most people should get to the top-quality 30B-A3B and the tiny 1.8B for laptops, plus the files most people can skip.

Hannah Vance3 min

How to Run Tencent Hy-MT3 Translation Models Locally on Your PC

How-To

How to Run Tencent Hy-MT3 Translation Models Locally on Your PC

Tencent's Hy-MT3 is a family of open-weights translation models covering 102 languages. We explain which size and GGUF file to download, how to run it offline with llama.cpp on a CPU or graphics card, and the prompts and settings Tencent recommends.

Marcus Thorne4 min