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 B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
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 B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
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 B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/B4lt/gemma4-loghub-e2b-GGUF:Q4_K_M
Quick Links

gemma4-loghub-e2b-GGUF

Gemma 4 E2B fine-tuned for infrastructure, Linux, Windows, networking, cloud and application log analysis.

Files

gemma4-loghub-e2b-loghub-Q4_K_M.gguf

This is the recommended release artifact:

  • Base family: Gemma 4 E2B
  • Format: GGUF v3
  • Quantization: Q4_K_M
  • Mode: text-only language model
  • Tensor count: 601
  • Size: ~3.2 GB
  • Chat template: embedded Gemma 4 template
  • SHA256: e70b4d0009db2ec9fa4a57782d57264084572bb34bf9a4d41b76eb9559a07f73

Why Text-Only

Gemma 4 E2B is a multimodal model with language, audio and vision tensors. For log analysis we only need text inference. Some llama-server based tools fail when given a unified Gemma4 GGUF that contains the extra audio/vision tensors. This release keeps the fine-tuned language tensors and removes audio, vision and multimodal projector tensors.

llama.cpp

Use a recent llama.cpp build with Gemma4 support.

llama-server \
  -m gemma4-loghub-e2b-loghub-Q4_K_M.gguf \
  -c 4096 \
  --reasoning off

If your llama-server does not support --reasoning off, use:

llama-server \
  -m gemma4-loghub-e2b-loghub-Q4_K_M.gguf \
  -c 4096 \
  --chat-template-kwargs '{"enable_thinking":false}'

Ollama

From this directory:

ollama create gemma4-loghub-e2b:q4 -f Modelfile
ollama run gemma4-loghub-e2b:q4

Unsloth Studio

Import the real .gguf file directly:

gemma4-loghub-e2b-loghub-Q4_K_M.gguf

Do not import a symlink, the old LoRA adapter GGUF, or the unified multimodal GGUF.

Start with context length 2048 or 4096 on laptops.

Downloads last month
33
GGUF
Model size
5B 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 B4lt/gemma4-loghub-e2b-GGUF

Quantized
(3)
this model