Quantized versions of google/gemma-4-E2B-it, converted to GGUF format and optimized for local deployment on PC and mobile devices.
All variants were produced using an importance matrix (imatrix) to preserve model quality as much as possible at each compression level.
Available Files
File
Size
Min RAM
Recommended For
gemma-4-E2B-it-Q4_0-imat.gguf
3.4 Go
5 Go
Desktop / laptop
gemma-4-E2B-it-Q4_0.gguf
3.4 Go
5 Go
Desktop / laptop
gemma-4-E2B-it-IQ4_XS-imat.gguf
3.3 Go
4.5 Go
Best quality/size ratio ✅
gemma-4-E2B-it-Q3_K_M-imat.gguf
3.2 Go
4 Go
Good balance
gemma-4-E2B-it-Q3_K_M.gguf
3.2 Go
4 Go
Good balance
gemma-4-E2B-it-Q3_K_S-imat.gguf
3.1 Go
4 Go
Mobile mid-range
gemma-4-E2B-it-IQ3_S-imat.gguf
3.1 Go
4 Go
Mobile mid-range
gemma-4-E2B-it-Q2_K-imat.gguf
3.0 Go
3.5 Go
Low-end devices
Not sure which to pick? Start with IQ4_XS-imat on PC, and Q3_K_S-imat or Q2_K-imat on mobile.
What is Quantization?
Quantization reduces the precision of a model's numerical weights — for example from 16-bit floating point down to 3 or 4 bits per value. This dramatically shrinks the file size and RAM usage, making it possible to run large language models on consumer hardware.
The trade-off is a small loss in output quality, which is more noticeable at lower bit levels (Q2) and barely perceptible at higher ones (Q4).
imatrix (importance matrix) is a technique that analyzes which weights matter most for the model's behavior and preserves them more carefully during compression. The -imat variants in this repo use this method and consistently outperform standard quantizations of the same bit level.
Quick Start — Desktop / Laptop
1. Download llama.cpp
Pre-built binaries for Windows, macOS, and Linux are available on the llama.cpp releases page. Download the latest release for your platform.
2. Download a model file
Pick one file from the list above and download it from this repository.
3. Run
bash
1./llama-cli \2 -m gemma-4-E2B-it-IQ4_XS-imat.gguf \3 -p "<start_of_turn>user\nHello, how are you?<end_of_turn>\n<start_of_turn>model\n"\4 -n 512\5 --temp 1.0 --top-p 0.95 --top-k 64\6 --no-display-prompt
Run as a local chat server (OpenAI-compatible API)