Instructions to use iromu/Gemma3-1B-tools-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use iromu/Gemma3-1B-tools-GGUF with 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 iromu/Gemma3-1B-tools-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf iromu/Gemma3-1B-tools-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 iromu/Gemma3-1B-tools-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf iromu/Gemma3-1B-tools-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 iromu/Gemma3-1B-tools-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf iromu/Gemma3-1B-tools-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 iromu/Gemma3-1B-tools-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf iromu/Gemma3-1B-tools-GGUF:Q4_K_M
Use Docker
docker model run hf.co/iromu/Gemma3-1B-tools-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use iromu/Gemma3-1B-tools-GGUF with Ollama:
ollama run hf.co/iromu/Gemma3-1B-tools-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use iromu/Gemma3-1B-tools-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf iromu/Gemma3-1B-tools-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "iromu/Gemma3-1B-tools-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use iromu/Gemma3-1B-tools-GGUF with Docker Model Runner:
docker model run hf.co/iromu/Gemma3-1B-tools-GGUF:Q4_K_M
- Lemonade
How to use iromu/Gemma3-1B-tools-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull iromu/Gemma3-1B-tools-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Gemma3-1B-tools-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use iromu/Gemma3-1B-tools-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf iromu/Gemma3-1B-tools-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default iromu/Gemma3-1B-tools-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use iromu/Gemma3-1B-tools-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf iromu/Gemma3-1B-tools-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "iromu/Gemma3-1B-tools-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Gemma3 1B Tools GGUF
The Gemma 3 1B tool-calling model in GGUF format, fine-tuned with LoRA for tool calling and agent-style interactions.
Base model
This model was fine-tuned from:
google/gemma-3-1b-it
GGUF files
The model is provided in GGUF format at the following precisions:
| Precision | File |
|---|---|
| BF16 | Gemma3-1B-tools-BF16.gguf (original precision) |
| Q4_K_M | Gemma3-1B-tools-Q4_K_M.gguf |
| Q5_K_M | Gemma3-1B-tools-Q5_K_M.gguf |
| Q8_0 | Gemma3-1B-tools-Q8_0.gguf |
Training
Training was performed using NVIDIA NeMo AutoModel with LoRA/PEFT.
LoRA configuration
- LoRA dimension:
32 - LoRA alpha:
32 - Dropout:
0.05 - Target modules:
*.proj(all*_projlinear layers)
Training configuration
- Max sequence length:
4096 - Learning rate:
5e-5(cosine decay, 15 warmup steps, min1e-6) - Weight decay:
0.01 - Global batch size:
64(micro batch 2 x 32 accumulation) - Training steps:
336(4 epochs) - Mixed precision:
bf16 - Validation loss:
0.579→0.4715(final epoch)
Dataset
Training used the sft_tools split of the
r0b0tlab/qwen3.8-max-glm5.2-kimi-k3-distillation dataset.
Tool-calling format
This model was trained with a custom chat template (embedded in the GGUF metadata). It renders the tool schemas into a developer turn and emits tool calls as:
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call>
Serving stacks must render prompts with this template for tool calling to work.
Intended use
- Structured tool/function calling
- Agent-style multi-step interactions
- Small-footprint on-device or edge deployment
It is not intended to be a general replacement for larger Gemma models.
GGUF versions
The model is available in GGUF format at:
- BF16
- Q4_K_M
- Q5_K_M
- Q8_0
Usage
Run the model with llama.cpp:
llama-cli -hf iromu/Gemma3-1B-tools-GGUF:Q4_K_M
The BF16 GGUF file can be quantized locally to other GGUF
precisions with llama-quantize if needed.
Validation matrix
Tool-calling validation on the sft_tools validation split (greedy decoding, 384 max new tokens). Throughput is single-stream greedy decode, not serving throughput.
Pretrained base (google/gemma-3-1b-it): 2.0% exact-args match (1/50). Fine-tuned (BF16): 66.0% exact-args match (33/50) (+64pp vs base).
- GGUF-BF16: 20/50 (40.0%) exact, 66.0 tok/s — 61% of BF16.
- GGUF-Q4_K_M: 10/50 (20.0%) exact, 89.5 tok/s — 30% of BF16.
- GGUF-Q5_K_M: 24/50 (48.0%) exact, 60.7 tok/s — 73% of BF16.
- GGUF-Q8_0: 22/50 (44.0%) exact, 50.2 tok/s — 67% of BF16.
| Model | Quant | n | Tool call emitted | Names match | Exact args match | Δ exact vs BASE | tok/s |
|---|---|---|---|---|---|---|---|
| Gemma3-1B-tools | BASE (google/gemma-3-1b-it) | 50 | 6/50 (12.0%) | 1/50 (2.0%) | 1/50 (2.0%) | — | 68.5 |
| Gemma3-1B-tools | BF16 | 50 | 50/50 (100.0%) | 41/50 (82.0%) | 33/50 (66.0%) | +64pp | 47.1 |
| Gemma3-1B-tools | GGUF-BF16 | 50 | 50/50 (100.0%) | 36/50 (72.0%) | 20/50 (40.0%) | +38pp | 66.0 |
| Gemma3-1B-tools | GGUF-Q4_K_M | 50 | 50/50 (100.0%) | 19/50 (38.0%) | 10/50 (20.0%) | +18pp | 89.5 |
| Gemma3-1B-tools | GGUF-Q5_K_M | 50 | 50/50 (100.0%) | 34/50 (68.0%) | 24/50 (48.0%) | +46pp | 60.7 |
| Gemma3-1B-tools | GGUF-Q8_0 | 50 | 50/50 (100.0%) | 37/50 (74.0%) | 22/50 (44.0%) | +42pp | 50.2 |
- Downloads last month
- 348
4-bit
5-bit
8-bit
16-bit