Skip to content
localllm

google

gemma-3-27b-it

Image input

Parameters
27B
Max context length
131,072
Architecture
gemma3
License
gemma
llama.cpp
b4875+

About gemma-3-27b-it

gemma-3-27b-it is a GGUF model based on google/gemma-3-27b-it on Hugging Face. GGUF files are published by 2 sources (unsloth/gemma-3-27b-it-GGUF, MaziyarPanahi/gemma-3-27b-it-GGUF). It has about 27B parameters, the gemma3 architecture, a maximum context length of 131,072 tokens (values written in the GGUF).

There are 27 quantizations, with file sizes from 6.51 GB (UD-IQ1_S) to 54.0 GB (BF16) (actual sizes on Hugging Face).

Running Q4_K_M (16.5 GB) with an 8,192-token context needs an estimated 18.9 GB of memory, and an estimated 21.0 GB at 32,768 tokens. For 8,192 tokens, a GPU with 24 GB or more of VRAM (such as GeForce RTX 3090 Ti, GeForce RTX 4090), or a Mac with 24 GB or more of unified memory, is a rough guide (macOS caps how much memory the GPU can use, so leave some headroom). The smallest, UD-IQ1_S (6.51 GB), needs an estimated 8.91 GB at 8,192 tokens.

The original model is licensed under Gemma Terms of Use, which allows commercial use with conditions such as scale or purpose. Check the original license for the terms of use. An mmproj file for image input is also available.

File size and estimated memory per quantization

  • Up to 8 GB
  • Up to 16 GB
  • Up to 24 GB
  • Up to 48 GB
  • Up to 128 GB
  • More

File sizes are the actual values on Hugging Face. Memory is estimated for each context length (KV cache f16). The formula is in How memory is calculated.

All memory figures are Estimated (KV cache f16). It should run on a setup with at least this much VRAM (or Mac unified memory). Click a value to see the devices and models that fit that amount (Find by GPU / Mac).

2 sources publish GGUF files of this model. Quantization types and file sizes differ slightly between sources, so there is a table for each source below.

Using image input: This model supports image input. To use images, an mmproj file is loaded as well.

About the "quality guide" (how far a quantization drifts from the original)

For each quantization type, how far the output drifts from the original model, grouped into six levels from values llama.cpp measured on Llama-3-8B.

The value is mean KLD (the difference between the original and quantized model in next-token probabilities); smaller means closer to the original. Quantizations made with an imatrix (importance data) come out slightly smaller. Levels use the value without an imatrix (or with one, for types that only have that).

These values were not measured on this model. Larger models and MoE models tend to drift less with the same type. Distributor-specific mixed types (such as UD-Q4_K_XL) cannot be matched by type name alone, so they show "-".

Quantization Quality guide KLD (no imatrix) KLD (imatrix) Size (Llama-3-8B)
Q8_0 Nearly identical 0.0014 - 7.96 GiB
Q6_K Very small 0.0055 - 6.14 GiB
Q5_K_M Very small 0.0108 - 5.33 GiB
Q5_K_S Small 0.0166 - 5.21 GiB
Q5_1 Small 0.0180 - 5.65 GiB
Q5_0 Small 0.0222 - 5.21 GiB
Q4_K_M Small 0.0313 0.0282 4.58 GiB
Q4_K_S Medium 0.0431 0.0320 4.37 GiB
IQ4_NL Small - 0.0357 4.35 GiB
IQ4_XS Small - 0.0363 4.14 GiB
Q4_1 Medium 0.0717 - 4.78 GiB
Q4_0 Medium 0.0719 - 4.34 GiB
Q3_K_L Medium 0.0872 0.0731 4.03 GiB
Q3_K_M Medium 0.1019 0.0844 3.74 GiB
IQ3_M Medium - 0.1025 3.53 GiB
IQ3_S Medium - 0.1113 3.42 GiB
IQ3_XS Large - 0.1387 3.28 GiB
IQ3_XXS Large - 0.1836 3.05 GiB
Q3_K_S Large 0.2282 0.1998 3.41 GiB
IQ2_M Large - 0.3260 2.74 GiB
Q2_K Very large 0.4451 0.3322 2.96 GiB
Q2_K_S Very large - 0.4034 2.96 GiB
IQ2_S Very large - 0.4392 2.56 GiB
IQ2_XS Very large - 0.5463 2.43 GiB
IQ2_XXS Very large - 0.8120 2.24 GiB
IQ1_M Very large - 1.3931 2.01 GiB
IQ1_S Very large - 2.2546 1.88 GiB

Source: llama.cpp (MIT), measured on Llama-3-8B against FP16, Wikitext-2, revision f364eb6f. Original table · Reading and choosing quantizations

GGUF source

unsloth/gemma-3-27b-it-GGUF

Converted and published by a third party About this label

Using the original model requires a request or agreement on Hugging Face (this does not affect downloading the GGUF files).

Last checked: Nov 11, 2026

Architecture
gemma3
llama.cpp b4875 and later
Parameters
27.0B
Max context length
131,072
License
gemma Conditional
File size and memory per quantization for gemma-3-27b-it (unsloth/gemma-3-27b-it-GGUF)
Quantization File size Measured Quality guide 4,096 8,192 16,384 32,768 65,536 131,072 max
UD-IQ1_S 6.51 GB - 8.57 GB 8.91 GB 9.58 GB 10.9 GB 13.6 GB 19.0 GB
UD-IQ1_M 6.99 GB - 9.05 GB 9.39 GB 10.1 GB 11.4 GB 14.1 GB 19.5 GB
UD-IQ2_XXS 7.85 GB - 9.91 GB 10.2 GB 10.9 GB 12.3 GB 14.9 GB 20.3 GB
UD-IQ2_M 9.62 GB - 11.7 GB 12.0 GB 12.7 GB 14.0 GB 16.7 GB 22.1 GB
Q2_K 10.5 GB Very large 12.6 GB 12.9 GB 13.6 GB 14.9 GB 17.6 GB 23.0 GB
Q2_K_L 10.5 GB - 12.6 GB 12.9 GB 13.6 GB 14.9 GB 17.6 GB 23.0 GB
UD-Q2_K_XL 10.7 GB - 12.7 GB 13.1 GB 13.8 GB 15.1 GB 17.8 GB 23.1 GB
UD-IQ3_XXS 10.8 GB - 12.9 GB 13.2 GB 13.9 GB 15.2 GB 17.9 GB 23.3 GB
Q3_K_S 12.2 GB Large 14.2 GB 14.6 GB 15.2 GB 16.6 GB 19.3 GB 24.6 GB
Q3_K_M 13.4 GB Medium 15.5 GB 15.8 GB 16.5 GB 17.9 GB 20.5 GB 25.9 GB
UD-Q3_K_XL 13.7 GB - 15.8 GB 16.1 GB 16.8 GB 18.1 GB 20.8 GB 26.2 GB
IQ4_XS 14.8 GB Small 16.8 GB 17.2 GB 17.8 GB 19.2 GB 21.9 GB 27.2 GB
IQ4_NL 15.6 GB Small 17.6 GB 18.0 GB 18.6 GB 20.0 GB 22.7 GB 28.0 GB
Q4_0 15.6 GB Medium 17.7 GB 18.0 GB 18.7 GB 20.0 GB 22.7 GB 28.1 GB
Q4_K_S 15.7 GB Medium 17.7 GB 18.1 GB 18.7 GB 20.1 GB 22.8 GB 28.1 GB
Q4_K_M 16.5 GB Small 18.6 GB 18.9 GB 19.6 GB 21.0 GB 23.6 GB 29.0 GB
UD-Q4_K_XL 16.8 GB - 18.9 GB 19.2 GB 19.9 GB 21.2 GB 23.9 GB 29.3 GB
Q4_1 17.2 GB Medium 19.2 GB 19.6 GB 20.2 GB 21.6 GB 24.3 GB 29.6 GB
Q5_K_S 18.8 GB Small 20.8 GB 21.2 GB 21.8 GB 23.2 GB 25.9 GB 31.2 GB
Q5_K_M 19.3 GB Very small 21.3 GB 21.7 GB 22.3 GB 23.7 GB 26.4 GB 31.7 GB
UD-Q5_K_XL 19.3 GB - 21.4 GB 21.7 GB 22.4 GB 23.7 GB 26.4 GB 31.8 GB
Q6_K 22.2 GB Very small 24.2 GB 24.6 GB 25.2 GB 26.6 GB 29.3 GB 34.6 GB
UD-Q6_K_XL 23.7 GB - 25.8 GB 26.1 GB 26.8 GB 28.1 GB 30.8 GB 36.2 GB
Q8_0 28.7 GB Nearly identical 30.8 GB 31.1 GB 31.8 GB 33.1 GB 35.8 GB 41.2 GB
UD-Q8_K_XL 31.8 GB - 33.9 GB 34.2 GB 34.9 GB 36.2 GB 38.9 GB 44.3 GB
BF16 (2 parts) 54.0 GB Original precision 56.1 GB 56.4 GB 57.1 GB 58.4 GB 61.1 GB 66.5 GB

The mmproj file for image input (F16) is 0.86 GB Measured . It is not included in the memory above, so add it if you use images.

Ollama  ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q4_K_M
llama.cpp  llama-server -hf unsloth/gemma-3-27b-it-GGUF:Q4_K_M

GGUF source

MaziyarPanahi/gemma-3-27b-it-GGUF

Converted and published by a third party About this label

Using the original model requires a request or agreement on Hugging Face (this does not affect downloading the GGUF files).

Last checked: Nov 3, 2026

Architecture
gemma3
llama.cpp b4875 and later
Parameters
27.0B
Max context length
131,072
License
gemma Conditional
File size and memory per quantization for gemma-3-27b-it (MaziyarPanahi/gemma-3-27b-it-GGUF)
Quantization File size Measured Quality guide 4,096 8,192 16,384 32,768 65,536 131,072 max
Q2_K 10.5 GB Very large 12.6 GB 12.9 GB 13.6 GB 14.9 GB 17.6 GB 23.0 GB
Q3_K_S 12.2 GB Large 14.2 GB 14.6 GB 15.2 GB 16.6 GB 19.3 GB 24.6 GB
Q3_K_M 13.4 GB Medium 15.5 GB 15.8 GB 16.5 GB 17.8 GB 20.5 GB 25.9 GB
Q3_K_L 14.5 GB Medium 16.6 GB 16.9 GB 17.6 GB 19.0 GB 21.6 GB 27.0 GB
Q4_K_S 15.7 GB Medium 17.7 GB 18.1 GB 18.7 GB 20.1 GB 22.8 GB 28.1 GB
Q4_K_M 16.5 GB Small 18.6 GB 18.9 GB 19.6 GB 21.0 GB 23.6 GB 29.0 GB
Q5_K_S 18.8 GB Small 20.8 GB 21.2 GB 21.8 GB 23.2 GB 25.9 GB 31.2 GB
Q5_K_M 19.3 GB Very small 21.3 GB 21.7 GB 22.3 GB 23.7 GB 26.4 GB 31.7 GB
Q6_K 22.2 GB Very small 24.2 GB 24.6 GB 25.2 GB 26.6 GB 29.3 GB 34.6 GB
Q8_0 28.7 GB Nearly identical 30.8 GB 31.1 GB 31.8 GB 33.1 GB 35.8 GB 41.2 GB
Ollama  ollama run hf.co/MaziyarPanahi/gemma-3-27b-it-GGUF:Q4_K_M
llama.cpp  llama-server -hf MaziyarPanahi/gemma-3-27b-it-GGUF:Q4_K_M

Generation speed on common GPUs and Macs (estimated)

A rough guide to how fast Q4_K_M (16.5 GB) generates text. Each token reads the model weights once, so the upper limit is memory bandwidth ÷ file size. The guide is 60–80% of that, where most published measurements fall.

Device Memory bandwidth Guide (tokens/s) Estimated Upper limit
Radeon RX 7900 XT 20 GB 800 GB/s 29–39 48
Radeon RX 7900 XTX 24 GB 960 GB/s 35–46 58
GeForce RTX 5090 32 GB 1,792 GB/s 65–87 108
Apple M2 24 GB 100 GB/s 3.6–4.8 6.0
Apple M2 Pro 32 GB 200 GB/s 7.3–9.7 12
Apple M5 Ultra 96 GB 1,200 GB/s 44–58 73

Estimates only. Prompt processing speed (limited by compute) is not included. Longer contexts and offloading part of the model to the CPU make it slower. Macs are shown only when installed memory is at least 4/3 of what is needed. Devices without published bandwidth (some GeForce cards, etc.) are not shown.

Third-party evaluations

Values from other organizations for the original model before quantization. Not this site's own rating. Values are for the original model before quantization. GGUF quantization (especially small quantizations) can lower performance.

Human preference (LMArena)

1,365 1,362–1,369

Gemma 3 27B IT · 46,613 votes · Values as of Nov 9, 2026

Source: LMArena (CC BY 4.0). Original leaderboard · See in ranking

Capabilities (Epoch AI)

127.7 124.6–130.5

Gemma 3 27B · Values as of Mar 12, 2025

Source: Epoch Capabilities Index (Epoch AI) (CC BY 4.0). Original leaderboard · See in ranking

Hard science (GPQA)

47.7% 42.4%–53.0%

gemma-3-27b-it · Values as of Aug 27, 2026

Source: GPQA Diamond (Epoch AI) (CC BY 4.0). Original leaderboard · See in ranking

License and commercial use

Gemma Terms of Use Conditional

Allows commercial use. It must not be used for prohibited uses (Gemma Prohibited Use Policy), and redistributors must pass the same restrictions on. Google states it may restrict use it considers in violation of the terms.

Based on the license on the original model's Hugging Face page. Original license text (checked Oct 18, 2026)

The summary states facts this site read from the original text and is not legal advice. Always check the original license and its latest terms before use. All licenses

How to run

Mainline llama.cpp can load this model's format (gemma3) from b4875 (Mar 12, 2025) onward. Ollama and LM Studio bundle llama.cpp internally, so an older app fails to load it with errors such as "unknown model architecture". If that happens, update the app.

Example commands using Q4_K_M. To use another quantization, replace the name with one from the table above. Commands for files from other sources are in each source's section. How to run local LLMs

Ollama

Run it by pointing directly at the GGUF on Hugging Face.

ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q4_K_M

llama.cpp

Pass the repository and quantization name to llama-server (or llama-cli) with -hf.

llama-server -hf unsloth/gemma-3-27b-it-GGUF:Q4_K_M

LM Studio

Paste unsloth/gemma-3-27b-it-GGUF into the search box, download it, and choose the quantization from the file list.

Frequently asked questions

How much memory do I need to run gemma-3-27b-it (Q4_K_M)?
The file size is 16.5 GB (measured). With a 8,192-token context, the estimated memory including the KV cache is 18.9 GB. The formula is published at https://localllm.az-arte.com/en/guide/memory-calculation.
Can gemma-3-27b-it be used commercially?
The original model's license is Gemma Terms of Use (Commercial use with conditions).Allows commercial use. It must not be used for prohibited uses (Gemma Prohibited Use Policy), and redistributors must pass the same restrictions on. Google states it may restrict use it considers in violation of the terms. Check the original license text before deciding.
Does gemma-3-27b-it run in 8 GB, 12 GB, 16 GB or 24 GB of VRAM?
8 GB: no quantization fits; 12 GB: up to UD-IQ2_M (est. 12.0 GB); 16 GB: up to IQ4_XS (est. 17.2 GB); 24 GB: up to Q6_K (est. 24.6 GB) (estimated at 8,192 tokens with an f16 KV cache, files from the most-downloaded source).
What is the command to run gemma-3-27b-it with Ollama?
Run "ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q4_K_M" to use the GGUF on Hugging Face directly. To use another quantization, replace the name at the end.