How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
# Run inference directly in the terminal:
llama cli -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
# Run inference directly in the terminal:
llama cli -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
# Run inference directly in the terminal:
./llama-cli -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
# Run inference directly in the terminal:
./build/bin/llama-cli -hf Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
Use Docker
docker model run hf.co/Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF:IQ4_XS
Quick Links

🧠 Gemma 4 (9B) - Imatrix Quantized (IQ4_XS)

This is a highly optimized, heavily quantized 4-bit (IQ4_XS) GGUF version of Google's Gemma 4. The quantization was performed using a custom Importance Matrix (imatrix) to ensure maximum retention of the model's reasoning capabilities and its massive 262k vocabulary, while aggressively shrinking the file size.

Optimized and compiled by Krasnopjorovs (Artjoms).

🌍 Multilingual Capabilities

Thanks to the preserved 262,144 token vocabulary and custom imatrix, this model exhibits exceptional multilingual logic.

Supported languages include (but are strictly not limited to): English, Russian, German, French, Italian, Mandarin Chinese, Japanese, Korean, and Arabic. During testing, the model successfully performed highly technical translations involving complex alphabets and provided unprompted transliteration (Pinyin, Romaji) and literal translation breakdowns.

📊 Model Specifications

  • Base Model: Google Gemma 4 (~8-9B parameters)
  • Quantization Format: IQ4_XS (GGUF)
  • Optimization: Custom Imatrix applied
  • File Size: ~4.71 GB
  • Context Size: 131,072 tokens (Native Training Context)
  • Vocabulary Size: 262,144 tokens
  • License: Apache 2.0

⚡ Hardware & Performance

This specific build is engineered for universal compatibility and maximum throughput. Because of its extremely lightweight footprint (~4.71 GB), it can run efficiently across a massive variety of hardware setups—from edge devices to enterprise AI clusters.

Deployment Flexibility:

  • Universal GPU Support: Comfortably fits entirely into the VRAM of almost any modern consumer or workstation GPU (8GB+ capacity), ensuring zero offloading bottlenecks.
  • CPU/RAM Fallback: Runs highly efficiently even on CPU-only configurations, provided there is sufficient standard system memory (e.g., DDR4/DDR5 ECC).
  • Professional Workstations: Achieves ultra-high token generation speeds on enterprise-grade architectures and multi-GPU arrays.
  • RAG & Vector Search: Perfect for local Retrieval-Augmented Generation pipelines (e.g., processing massive vector databases) where blazing-fast inference and large context windows (up to 131k) are critical.

🛠️ Usage with llama.cpp

This model is fully compatible with llama.cpp and frontends like Open WebUI.

CLI Example:

./main -m gemma-4-E4B-IQ4_XS.gguf -n 512 -c 8192 --color -i -p "Your prompt here"

🤝 About the Builder
This model was compiled to power local, secure AI hardware ecosystems. If you are looking for pre-configured, plug-and-play AI servers and workstations built specifically for running private LLMs, visit artjoms.ai.
Downloads last month
69
GGUF
Model size
8B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Krasnopjorovs/gemma-4-E4B-Imatrix-IQ4_XS-GGUF

Quantized
(280)
this model