How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="brokencircuitranch/gemma4-hermes-tools",
	filename="gemma4-hermes-tools-Q4_K_M.gguf",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": [
				{
					"type": "text",
					"text": "Describe this image in one sentence."
				},
				{
					"type": "image_url",
					"image_url": {
						"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
					}
				}
			]
		}
	]
)

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
480
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