Text Generation
GGUF
Safetensors
gemma3_text
function-calling
tool-use
agent
llama-cpp
unsloth
llama-agent
conversational
Instructions to use victor/functiongemma-agent-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 victor/functiongemma-agent-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 victor/functiongemma-agent-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf victor/functiongemma-agent-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 victor/functiongemma-agent-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf victor/functiongemma-agent-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf victor/functiongemma-agent-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf victor/functiongemma-agent-gguf:Q4_K_M
Use Docker
docker model run hf.co/victor/functiongemma-agent-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use victor/functiongemma-agent-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "victor/functiongemma-agent-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "victor/functiongemma-agent-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/victor/functiongemma-agent-gguf:Q4_K_M
- Ollama
How to use victor/functiongemma-agent-gguf with Ollama:
ollama run hf.co/victor/functiongemma-agent-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use victor/functiongemma-agent-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf victor/functiongemma-agent-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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "victor/functiongemma-agent-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use victor/functiongemma-agent-gguf with Docker Model Runner:
docker model run hf.co/victor/functiongemma-agent-gguf:Q4_K_M
- Lemonade
How to use victor/functiongemma-agent-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull victor/functiongemma-agent-gguf:Q4_K_M
Run and chat with the model
lemonade run user.functiongemma-agent-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use victor/functiongemma-agent-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 victor/functiongemma-agent-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:9931/v1 hermes config set model.default victor/functiongemma-agent-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use victor/functiongemma-agent-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf victor/functiongemma-agent-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:9931/v1 \ --custom-model-id "victor/functiongemma-agent-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"
Upload README.md with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110---base_model: unsloth/functiongemma-270m-itlibrary_name: gguflicense: gemmatags: - function-calling - tool-use - agent - llama-cpp - gguf - unsloth - llama-agentdatasets: - victor/functiongemma-agent-sftpipeline_tag: text-generation---
# FunctionGemma Agent GGUF
A fine-tuned version of [FunctionGemma-270M](https://huggingface.co/unsloth/functiongemma-270m-it) for agentic tool-calling tasks, converted to GGUF format for use with llama.cpp and [llama-agent](https://github.com/ggml-org/llama.cpp/tree/master/tools/agent).
## Model Details
| Property | Value ||----------|-------|| Base Model | [unsloth/functiongemma-270m-it](https://huggingface.co/unsloth/functiongemma-270m-it) || Fine-tuned Model | [victor/functiongemma-agent-finetuned](https://huggingface.co/victor/functiongemma-agent-finetuned) || Training Dataset | [victor/functiongemma-agent-sft](https://huggingface.co/datasets/victor/functiongemma-agent-sft) || Quantization | Q4_K_M (4-bit) || Parameters | 270M |
## Training
Fine-tuned using [Unsloth](https://github.com/unslothai/unsloth) with LoRA on HuggingFace Jobs infrastructure.
**Training Configuration:**- LoRA rank: 128, alpha: 256- Epochs: 3- Learning rate: 2e-4- Batch size: 4, gradient accumulation: 2- Hardware: NVIDIA A100-80GB- Training method: SFT with `train_on_responses_only`
**Dataset:** 7,500 synthetic examples covering:- Multi-step tool chaining (glob → read → edit)- Error recovery patterns- Clarification dialogs- No-tool responses- Parallel tool calls
## Tools
The model is trained on 5 tools matching llama-agent:
| Tool | Description ||------|-------------|| `read_file` | Read file contents with line numbers || `write_file` | Create or overwrite a file || `edit_file` | Find and replace text in a file || `glob` | Find files matching pattern || `bash` | Execute shell command |
## Usage
### With llama.cpp
```bash# Downloadwget https://huggingface.co/victor/functiongemma-agent-gguf/resolve/main/functiongemma-270m-it.Q4_K_M.gguf
# Run inference./llama-cli -m functiongemma-270m-it.Q4_K_M.gguf -p "<start_of_turn>userRead the main.py file<end_of_turn><start_of_turn>model"```
### With llama-agent
```bash./llama-agent -m functiongemma-270m-it.Q4_K_M.gguf```
## Format
Uses FunctionGemma's native format with `<escape>` delimiters:
```<start_of_turn>userFix the typo in config.json<end_of_turn><start_of_turn>model<think>I need to find and read the config file first.</think><start_function_call>call:glob{pattern:<escape>**/config.json<escape>}<end_function_call><end_of_turn><start_of_turn>developer<start_function_response>response:glob{stdout:<escape>src/config.json<escape>,stderr:<escape><escape>,exit_code:0}<end_function_response><end_of_turn>...```
## License
This model inherits the [Gemma license](https://ai.google.dev/gemma/terms) from the base model.
## Links
- Training script: [victor/llama-agent-training](https://huggingface.co/victor/llama-agent-training)- Dataset: [victor/functiongemma-agent-sft](https://huggingface.co/datasets/victor/functiongemma-agent-sft)- llama-agent: [github.com/ggml-org/llama.cpp/tools/agent](https://github.com/ggml-org/llama.cpp/tree/master/tools/agent)README.mdAdded+110