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.
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.
Step 5: Use Google's recommended settings
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.