How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf matrixportalx/Gemma-3-4B-GGUF:
# Run inference directly in the terminal:
llama-cli -hf matrixportalx/Gemma-3-4B-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf matrixportalx/Gemma-3-4B-GGUF:
# Run inference directly in the terminal:
llama-cli -hf matrixportalx/Gemma-3-4B-GGUF:
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 matrixportalx/Gemma-3-4B-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf matrixportalx/Gemma-3-4B-GGUF:
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 matrixportalx/Gemma-3-4B-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf matrixportalx/Gemma-3-4B-GGUF:
Use Docker
docker model run hf.co/matrixportalx/Gemma-3-4B-GGUF:
Quick Links

Gemma-3-4B GGUF Quantized Models

Technical Details

  • Quantization Tool: llama.cpp
  • Version: version: 5862 (704bb7a7)

Model Information

Available Files

๐Ÿš€ Download ๐Ÿ”ข Type ๐Ÿ“ Description
Download Q4 0 Standard 4-bit (fast on ARM)
Download Q4 K M 4-bit balanced (recommended default)
Download Q5 K M 5-bit best (recommended HQ option)

๐Ÿ’ก Q4 K M provides the best balance for most use cases

Downloads last month
23
GGUF
Model size
4B params
Architecture
gemma3
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for matrixportalx/Gemma-3-4B-GGUF