How to use from
llama.cpp
# Gated model: Login with a HF token with gated access permission
hf auth login
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf meghanamakkapati/Gemma-4_quantization:IQ4_XS
# Run inference directly in the terminal:
llama cli -hf meghanamakkapati/Gemma-4_quantization:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf meghanamakkapati/Gemma-4_quantization:IQ4_XS
# Run inference directly in the terminal:
llama cli -hf meghanamakkapati/Gemma-4_quantization: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 meghanamakkapati/Gemma-4_quantization:IQ4_XS
# Run inference directly in the terminal:
./llama-cli -hf meghanamakkapati/Gemma-4_quantization: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 meghanamakkapati/Gemma-4_quantization:IQ4_XS
# Run inference directly in the terminal:
./build/bin/llama-cli -hf meghanamakkapati/Gemma-4_quantization:IQ4_XS
Use Docker
docker model run hf.co/meghanamakkapati/Gemma-4_quantization:IQ4_XS
Quick Links

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gemma-4 E4B IQ4_XS — Quantized GGUF

Compressed submission for the Resilient AI Challenge (Image-to-Text category), joint initiative of the Government of France, Government of India, UNESCO, and ITU.

Model details

Field Value
Base model google/gemma-4-E4B-IT
Fine-tuning Parameter-efficient fine-tuning
Compression IQ4_XS (~4.25 bpw, importance-matrix quantization)
Format GGUF (llama.cpp)
Vision projector mmproj-BF16.gguf (BF16, unchanged)

Model size

Model Size
F16 baseline 15.05 GB
IQ4_XS (this model) 5.06 GB
mmproj (vision projector) 0.99 GB
Compression ratio ~3.7× smaller than F16

Running the model

Use llama-server with the provided llama_server_config.json:

llama-server \
  -m gemma4-E4B-IQ4_XS.gguf \
  --mmproj mmproj-BF16.gguf \
  --host 0.0.0.0 --port 8080 \
  --n-gpu-layers 99 \
  --ctx-size 8192

Generation parameters: temperature=1.0, top_p=0.95, top_k=64

Downloads last month
-
GGUF
Model size
7B 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