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

Fine-tuned version of google/gemma-4-26B-A4B-it for reliable tool use and function calling.

Training

  • Base model: google/gemma-4-26B-A4B-it (Mixture of Experts)
  • Fine-tuning framework: Unsloth
  • Hardware: NVIDIA A100 80GB (HuggingFace Space)
  • Method: QLoRA (4-bit) → merged to 16-bit

Training Data

Total: 6,893 examples, 2 epochs

Training Results

Step Loss
10 1.825
50 0.374
200 0.196
500 0.110
862 0.113

Final training loss: 0.224

Intended Use

Designed for agentic pipelines requiring reliable structured tool call generation. Tested with Ollama for local inference.

Files

  • model-0000x-of-00002.safetensors — merged 16-bit weights
  • gemma4-hermes-tools-Q4_K_M.gguf — quantized for local inference via Ollama/llama.cpp

License

Inherits Gemma Terms of Use

Downloads last month
489
Safetensors
Model size
27B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for brokencircuitranch/gemma4-hermes-tools

Quantized
(216)
this model