unsloth

medgemma 4b it

medgemma 4b it is a 3.88B dense gemma3 model from unsloth. Configured context length is 131,072 tokens. License: other. Quant sizes are the GGUF file bytes published on Hugging Face when a file exists.

Parameters3.9B
Context128K
Attentionhybrid
Licenseother

34 layers · 4 KV heads · head dim 256 · 28 sliding layers · GGUF repo · config

Quant file sizes

QuantFile sizeSource
BF167.23 GBHugging Face file bytes
UD-Q8_K_XL4.81 GBHugging Face file bytes
Q8_03.85 GBHugging Face file bytes
UD-Q6_K_XL3.32 GBHugging Face file bytes
Q6_K2.97 GBHugging Face file bytes
UD-Q5_K_XL2.64 GBHugging Face file bytes
Q5_K_M2.64 GBHugging Face file bytes
Q5_K_S2.57 GBHugging Face file bytes
UD-Q4_K_XL2.37 GBHugging Face file bytes
Q4_K_M2.32 GBHugging Face file bytes
Q4_K_S2.21 GBHugging Face file bytes
IQ4_NL2.20 GBHugging Face file bytes
IQ4_XS2.11 GBHugging Face file bytes
Q4_12.39 GBHugging Face file bytes
Q4_02.21 GBHugging Face file bytes
UD-Q3_K_XL2.00 GBHugging Face file bytes
Q3_K_M1.95 GBHugging Face file bytes
Q3_K_S1.80 GBHugging Face file bytes
UD-IQ3_XXS1.59 GBHugging Face file bytes
UD-Q2_K_XL1.65 GBHugging Face file bytes
Q2_K3.22 GBHugging Face file bytes
UD-IQ2_XXS1.25 GBHugging Face file bytes
UD-IQ1_M1.16 GBHugging Face file bytes
UD-IQ1_S1.10 GBHugging Face file bytes

On common machines

DeviceVerdictQuantSpeed
GeForce RTX 4060 Ti 8GBRunsUD-Q8_K_XL25–34
GeForce RTX 3060 12GBRunsBF1622–30
GeForce RTX 4060 Ti 16GBRuns greatBF1618–24
GeForce RTX 4090Runs greatBF1662–85
GeForce RTX 5090Runs greatBF16111–151
Apple M4 ProRuns greatBF1617–23
Apple M5RunsBF169.4–13
CPU only · DDR5-5600Runs on CPUBF165.5–7.5

Smallest devices that fit it fully

Run it

Commands for the GeForce RTX 4060 Ti 16GB estimate (BF16).

llama.cpp
llama-server -hf unsloth/medgemma-4b-it-GGUF:BF16 -c 8192 -ngl 34
Ollama
ollama run medgemma
LM Studio
lms get unsloth/medgemma-4b-it-GGUF
# Then load quant BF16