Text Generation
GGUF
English
French
llama.cpp
function-calling
tool-calling
gemma
bilingual
finetuned
conversational
Instructions to use rleo/function-gemma-finetuned-tool-call with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use rleo/function-gemma-finetuned-tool-call with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="rleo/function-gemma-finetuned-tool-call", filename="function-gemma-finetuned-tool-call.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use rleo/function-gemma-finetuned-tool-call with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf rleo/function-gemma-finetuned-tool-call # Run inference directly in the terminal: llama-cli -hf rleo/function-gemma-finetuned-tool-call
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf rleo/function-gemma-finetuned-tool-call # Run inference directly in the terminal: llama-cli -hf rleo/function-gemma-finetuned-tool-call
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 rleo/function-gemma-finetuned-tool-call # Run inference directly in the terminal: ./llama-cli -hf rleo/function-gemma-finetuned-tool-call
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 rleo/function-gemma-finetuned-tool-call # Run inference directly in the terminal: ./build/bin/llama-cli -hf rleo/function-gemma-finetuned-tool-call
Use Docker
docker model run hf.co/rleo/function-gemma-finetuned-tool-call
- LM Studio
- Jan
- vLLM
How to use rleo/function-gemma-finetuned-tool-call with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rleo/function-gemma-finetuned-tool-call" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rleo/function-gemma-finetuned-tool-call", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rleo/function-gemma-finetuned-tool-call
- Ollama
How to use rleo/function-gemma-finetuned-tool-call with Ollama:
ollama run hf.co/rleo/function-gemma-finetuned-tool-call
- Unsloth Studio new
How to use rleo/function-gemma-finetuned-tool-call with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rleo/function-gemma-finetuned-tool-call to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rleo/function-gemma-finetuned-tool-call to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for rleo/function-gemma-finetuned-tool-call to start chatting
- Pi new
How to use rleo/function-gemma-finetuned-tool-call with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf rleo/function-gemma-finetuned-tool-call
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "rleo/function-gemma-finetuned-tool-call" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use rleo/function-gemma-finetuned-tool-call with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf rleo/function-gemma-finetuned-tool-call
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 rleo/function-gemma-finetuned-tool-call
Run Hermes
hermes
- Docker Model Runner
How to use rleo/function-gemma-finetuned-tool-call with Docker Model Runner:
docker model run hf.co/rleo/function-gemma-finetuned-tool-call
- Lemonade
How to use rleo/function-gemma-finetuned-tool-call with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rleo/function-gemma-finetuned-tool-call
Run and chat with the model
lemonade run user.function-gemma-finetuned-tool-call-{{QUANT_TAG}}List all available models
lemonade list
Upload 2 files
Browse filesAdd finetuned version of gemma
- .gitattributes +1 -0
- README.md +97 -3
- function-gemma-finetuned-tool-call.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
function-gemma-finetuned-tool-call.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,97 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- fr
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
base_model: unsloth/functiongemma-270m-it
|
| 7 |
+
library_name: gguf
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- gguf
|
| 11 |
+
- llama.cpp
|
| 12 |
+
- function-calling
|
| 13 |
+
- tool-calling
|
| 14 |
+
- gemma
|
| 15 |
+
- bilingual
|
| 16 |
+
- en
|
| 17 |
+
- fr
|
| 18 |
+
- finetuned
|
| 19 |
+
model_name: function-gemma-finetuned-tool-call
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# function-gemma-finetuned-tool-call
|
| 23 |
+
|
| 24 |
+
Fine-tuned Function-Gemma 270M model for bilingual (English/French) tool-calling.
|
| 25 |
+
|
| 26 |
+
## Files
|
| 27 |
+
|
| 28 |
+
- `function-gemma-finetuned-tool-call.gguf` (F16 merged GGUF)
|
| 29 |
+
|
| 30 |
+
## Base Model
|
| 31 |
+
|
| 32 |
+
- `unsloth/functiongemma-270m-it`
|
| 33 |
+
|
| 34 |
+
## Training Summary
|
| 35 |
+
|
| 36 |
+
- Method: SFT + LoRA, then merged into full weights
|
| 37 |
+
- Dataset: custom bilingual EN/FR tool-calling set (`dataset_80tools_en_fr.json`)
|
| 38 |
+
- Target behavior: structured function/tool calls with argument extraction and no-tool abstention when appropriate
|
| 39 |
+
|
| 40 |
+
## Local Evaluation (checkpoint benchmark)
|
| 41 |
+
|
| 42 |
+
From `outputs/eval_checkpoint_report.json`:
|
| 43 |
+
|
| 44 |
+
- Total cases: 16
|
| 45 |
+
- Pass rate: 0.8125
|
| 46 |
+
- Decision accuracy: 0.8125
|
| 47 |
+
- Tool name accuracy: 0.8125
|
| 48 |
+
- Argument presence accuracy: 1.0
|
| 49 |
+
- Tool-call recall: 1.0
|
| 50 |
+
- No-tool precision: 0.5
|
| 51 |
+
|
| 52 |
+
## Usage (llama.cpp)
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
llama.cpp/build/bin/llama-cli \
|
| 56 |
+
--model function-gemma-finetuned-tool-call.gguf \
|
| 57 |
+
--ctx-size 32768 \
|
| 58 |
+
--n-gpu-layers 99 \
|
| 59 |
+
--seed 3407 \
|
| 60 |
+
--top-k 64 \
|
| 61 |
+
--top-p 0.95 \
|
| 62 |
+
--temp 1.0 \
|
| 63 |
+
--jinja
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
For one-shot test:
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
llama.cpp/build/bin/llama-cli \
|
| 70 |
+
--model function-gemma-finetuned-tool-call.gguf \
|
| 71 |
+
--ctx-size 32768 \
|
| 72 |
+
--n-gpu-layers 99 \
|
| 73 |
+
--seed 3407 \
|
| 74 |
+
--top-k 64 \
|
| 75 |
+
--top-p 0.95 \
|
| 76 |
+
--temp 1.0 \
|
| 77 |
+
--jinja \
|
| 78 |
+
--single-turn \
|
| 79 |
+
--simple-io \
|
| 80 |
+
--prompt "What is the weather in Paris?"
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
## Prompt / Output Format
|
| 84 |
+
|
| 85 |
+
This model was fine-tuned for Function-Gemma style tool tags (e.g. `<start_function_call>...`).
|
| 86 |
+
When used with `--jinja`, llama.cpp applies the chat template stored in GGUF metadata.
|
| 87 |
+
|
| 88 |
+
## Limitations
|
| 89 |
+
|
| 90 |
+
- Small model (270M): can still over-call tools in ambiguous no-tool prompts.
|
| 91 |
+
- Best results require strong tool schema prompts and clear user intent.
|
| 92 |
+
|
| 93 |
+
## Intended Use
|
| 94 |
+
|
| 95 |
+
- Lightweight local assistant prototypes
|
| 96 |
+
- Tool-routing and structured argument extraction tasks
|
| 97 |
+
- EN/FR bilingual demos and experimentation
|
function-gemma-finetuned-tool-call.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00b4dd85c54a3f1bbbdc7643efb14fe0b9f1f4f8e02db151c9aa182852a62268
|
| 3 |
+
size 542847360
|