Text Generation
HERMES
Safetensors
GGUF
English
qwen2
tool-calling
function-calling
multi-turn
agentic
reasoning
conversational
Instructions to use RefinedNeuro/RefinedToolCallV5-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- HERMES
How to use RefinedNeuro/RefinedToolCallV5-3b with HERMES:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use RefinedNeuro/RefinedToolCallV5-3b 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 RefinedNeuro/RefinedToolCallV5-3b:Q6_K # Run inference directly in the terminal: llama cli -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K # Run inference directly in the terminal: llama cli -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K
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 RefinedNeuro/RefinedToolCallV5-3b:Q6_K # Run inference directly in the terminal: ./llama-cli -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K
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 RefinedNeuro/RefinedToolCallV5-3b:Q6_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K
Use Docker
docker model run hf.co/RefinedNeuro/RefinedToolCallV5-3b:Q6_K
- LM Studio
- Jan
- vLLM
How to use RefinedNeuro/RefinedToolCallV5-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RefinedNeuro/RefinedToolCallV5-3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RefinedNeuro/RefinedToolCallV5-3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RefinedNeuro/RefinedToolCallV5-3b:Q6_K
- Ollama
How to use RefinedNeuro/RefinedToolCallV5-3b with Ollama:
ollama run hf.co/RefinedNeuro/RefinedToolCallV5-3b:Q6_K
- Unsloth Studio
How to use RefinedNeuro/RefinedToolCallV5-3b 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 RefinedNeuro/RefinedToolCallV5-3b 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 RefinedNeuro/RefinedToolCallV5-3b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RefinedNeuro/RefinedToolCallV5-3b to start chatting
- Pi
How to use RefinedNeuro/RefinedToolCallV5-3b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K
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": "RefinedNeuro/RefinedToolCallV5-3b:Q6_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use RefinedNeuro/RefinedToolCallV5-3b with Docker Model Runner:
docker model run hf.co/RefinedNeuro/RefinedToolCallV5-3b:Q6_K
- Lemonade
How to use RefinedNeuro/RefinedToolCallV5-3b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RefinedNeuro/RefinedToolCallV5-3b:Q6_K
Run and chat with the model
lemonade run user.RefinedToolCallV5-3b-Q6_K
List all available models
lemonade list
- Hermes Agent
How to use RefinedNeuro/RefinedToolCallV5-3b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K
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 RefinedNeuro/RefinedToolCallV5-3b:Q6_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use RefinedNeuro/RefinedToolCallV5-3b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RefinedNeuro/RefinedToolCallV5-3b:Q6_K
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 "RefinedNeuro/RefinedToolCallV5-3b:Q6_K" \ --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"
RefinedToolCall-V5-3B model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: WeiboAI/VibeThinker-3B
|
| 4 |
+
datasets:
|
| 5 |
+
- lambda/hermes-agent-reasoning-traces
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- tool-calling
|
| 11 |
+
- function-calling
|
| 12 |
+
- multi-turn
|
| 13 |
+
- agentic
|
| 14 |
+
- hermes
|
| 15 |
+
- reasoning
|
| 16 |
+
- qwen2
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# ๐ ๏ธ๐ง RefinedToolCall-V5-3B
|
| 20 |
+
|
| 21 |
+
### A 3B model that *reasons* and *calls tools* โ and actually holds a multi-turn conversation.
|
| 22 |
+
|
| 23 |
+
**Math-grade reasoning ยท real function calling ยท multi-turn agentic ยท 2.5 GB ยท runs on your laptop.**
|
| 24 |
+
|
| 25 |
+
> `ollama run refinedneuro/refinedtoolcallv5-3b`
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## Why it's different
|
| 30 |
+
|
| 31 |
+
Most 3B tool-callers nail a single function call and then fall apart the moment the task spans
|
| 32 |
+
several turns. **RefinedToolCall-V5** was built specifically to fix that โ and the numbers moved on
|
| 33 |
+
*every* axis at once, not just the one we were targeting.
|
| 34 |
+
|
| 35 |
+
- ๐ **Multi-turn agentic that actually works** โ **~3.7ร better** at stateful, multi-step
|
| 36 |
+
tool-use (Berkeley Function-Calling Leaderboard `multi_turn`) than where we started.
|
| 37 |
+
- ๐ ๏ธ **Sharper single-turn calling** โ **70.7%** on BFCL single-turn (held-out), our best ever.
|
| 38 |
+
- ๐ช **Recovers from tool errors** โ **0.896** recovery rate; it diagnoses failures instead of
|
| 39 |
+
looping on them.
|
| 40 |
+
- ๐งฎ **Reasoning fully intact** โ **AIME-2024 pass@8 0.933**, unchanged by all the tool training.
|
| 41 |
+
- โก **Tiny & local** โ 3B params, **2.5 GB** Q6_K, one command on Ollama, no GPU required.
|
| 42 |
+
- ๐ **Apache-2.0** โ use it, ship it, fine-tune it.
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## The receipts (all held-out, canary-gated)
|
| 47 |
+
|
| 48 |
+
| capability | this model |
|
| 49 |
+
|---|---|
|
| 50 |
+
| ๐ Multi-turn agentic (BFCL `multi_turn`, k=3) | **0.220 avg / 0.298 pass@3** |
|
| 51 |
+
| ๐ ๏ธ Single-turn function calling (BFCL, held-out) | **0.707** |
|
| 52 |
+
| ๐ฉน Recovery from tool errors (n=250) | **0.896** |
|
| 53 |
+
| ๐งฎ Reasoning (AIME-2024 pass@8) | **0.933** |
|
| 54 |
+
|
| 55 |
+
Every number is the **best across five fine-tuning rounds** โ multi-turn, single-turn, recovery,
|
| 56 |
+
*and* reasoning all peaked together.
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## How we got here (and why it generalizes)
|
| 61 |
+
|
| 62 |
+
We didn't just throw data at it. Five disciplined rounds, each one gated so it could **never**
|
| 63 |
+
regress reasoning or recovery:
|
| 64 |
+
|
| 65 |
+
1. **Grounding** โ stop inventing shell commands; call the actual functions.
|
| 66 |
+
2. **Plan + finish** โ think before calling, and know when the turn is done.
|
| 67 |
+
3. **Scale + long context** โ harder tasks, up to 24k tokens.
|
| 68 |
+
4. **On-policy self-improvement (the breakthrough)** โ the model learns from its *own* successful
|
| 69 |
+
multi-turn solutions (expert iteration), which broke past the imitation ceiling **and** sharpened
|
| 70 |
+
single-turn calling and error-recovery as a bonus.
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## Quick start
|
| 75 |
+
|
| 76 |
+
**Ollama**
|
| 77 |
+
```bash
|
| 78 |
+
ollama run refinedneuro/refinedtoolcallv5-3b # latest = Q6_K, 2.5 GB
|
| 79 |
+
```
|
| 80 |
+
> ๐ก Use **Q6_K or higher** for tool-calling โ lower quants corrupt the call tokens.
|
| 81 |
+
|
| 82 |
+
**Format:** ChatML + Hermes tools. Each turn the model emits a `<think>` plan โ one or more
|
| 83 |
+
`<tool_call>` blocks โ a final reply. Recommended: temp 0.6, top_p 0.95, repeat_penalty 1.1.
|
| 84 |
+
|
| 85 |
+
---
|
| 86 |
+
|
| 87 |
+
## Great for
|
| 88 |
+
โ
Local/offline agentic tool-use prototypes โ
Multi-step function-calling assistants
|
| 89 |
+
โ
Math & STEM reasoning โ
Learning how small agentic models are actually built.
|
| 90 |
+
|
| 91 |
+
## Be honest with me (research preview)
|
| 92 |
+
โ ๏ธ It's a **3B research preview**. Multi-turn is **dramatically improved (~3.7ร) but not solved** โ
|
| 93 |
+
very long, open-ended autonomous loops can still write buggy code or mis-plan. A brilliant,
|
| 94 |
+
tiny building block; not yet a drop-in autonomous engineer.
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
*Built on [WeiboAI/VibeThinker-3B](https://huggingface.co/WeiboAI/VibeThinker-3B) +
|
| 99 |
+
[lambda/hermes-agent-reasoning-traces](https://huggingface.co/datasets/lambda/hermes-agent-reasoning-traces).
|
| 100 |
+
Trained with distribution-matched RFT + on-policy expert iteration, every checkpoint gated against
|
| 101 |
+
reasoning/recovery canaries. Apache-2.0.*
|