Instructions to use voidful/barbet-1b-specialists with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use voidful/barbet-1b-specialists with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="voidful/barbet-1b-specialists")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("voidful/barbet-1b-specialists", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use voidful/barbet-1b-specialists with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "voidful/barbet-1b-specialists" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voidful/barbet-1b-specialists", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/voidful/barbet-1b-specialists
- SGLang
How to use voidful/barbet-1b-specialists with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "voidful/barbet-1b-specialists" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voidful/barbet-1b-specialists", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "voidful/barbet-1b-specialists" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voidful/barbet-1b-specialists", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use voidful/barbet-1b-specialists with Docker Model Runner:
docker model run hf.co/voidful/barbet-1b-specialists
Request access to the Barbet 1B specialists
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Access is reviewed manually. Please say briefly who you are and what you plan to use the checkpoints for.
Log in or Sign Up to review the conditions and access this model content.
Barbet 1B specialists (RL fine-tunes)
Fifteen specialist checkpoints of Barbet 1B, a 1B-parameter language model for Traditional Chinese (Taiwan) and English with a native 1M-token context (29 layers: global attention plus Mamba layers, hidden size 1536).
Each specialist is the same SFT model (v6.7, step 5626) fine-tuned further with reinforcement learning on one group of program-checked task families: the tasks are generated on the fly, the model acts as a tool-using agent (one tool call per assistant turn), and a program decides whether the episode succeeded.
These are research checkpoints, not a finished assistant. Each one is narrow: it is better than the SFT model on its own task group and often worse elsewhere (see "Known problems"). They were trained as teachers for a later distillation into one model; that distillation has not been done.
Checkpoints
One folder per specialist; every folder is self-contained (weights, tokenizer, model code, loader).
| Folder | RL steps | Stop reason | Trained on |
|---|---|---|---|
math |
4000 | converged | arithmetic and word problems, no tool |
ifeval2 |
2400 | converged | following formatting / length / keyword instructions |
agent3 |
800 | converged | function calling |
lookup2 |
1600 | converged | looking facts up in a knowledge base or registry |
assist2 |
1200 | converged | general assistant replies |
office3 |
800 | converged | files, workbooks and tables |
analyst |
1200 + 200 | converged | data analysis and shell-style tools |
notes |
1200 + 200 | converged | notes, multi-step tasks |
context |
1400 | converged | long-context tasks |
catalog |
800 | converged | picking the right tool out of a large catalogue |
tools |
4000 | converged | using a calculator / date tool to make up for weak arithmetic |
reader |
1600 | step limit | reading long documents and citing the source |
caller |
2800 | step limit | argument values, recovering from tool errors, multi-turn dialogue |
extract |
1600 | converged | structured extraction |
memory |
1000 | interrupted, not converged | remembering earlier turns of a long conversation |
"Converged" means the training reward stopped improving under a fixed plateau rule; checkpoints were not picked by
benchmark score. memory was stopped early by a machine problem and has no held-out evaluation.
SOURCE.txt in each folder states the exact step.
Results
All numbers are success rates in %. The comparison models are Qwen3.5-0.8B and MiniCPM5-1B, run through the same harness in their own tool-call format.
Own held-out tasks (40 per family; entities, layouts and tool names not seen in training)
| Task | Specialist | Barbet | Qwen3.5-0.8B | MiniCPM5-1B |
|---|---|---|---|---|
| date arithmetic with a tool | tools |
100 | 55 | 60 |
| value lookup with a tool | tools |
100 | 22.5 | 0 |
| summary with a tool | tools |
100 | 5 | 0 |
| maths with a calculator | tools |
52.5 | 25 | 12.5 |
| answer from a long document (strict: short reply required) | reader |
77.5 | 15 | 25 |
| answer from two documents (strict) | reader |
75 | 0 | 0 |
| say "not in the document" | reader |
32.5 | 37.5 | 45 |
| answer with a citation | reader |
55 | 10 | 0 |
| pick a tool from a catalogue | catalog |
45 | 42.5 | 55 |
| dialogue: fill missing slots | caller |
57.5 | 35 | 12.5 |
| dialogue: cancel | caller |
75 | 42.5 | 45 |
| dialogue: resolve a reference | caller |
22.5 | 47.5 | 20 |
| tool error: retry | caller |
82.5 | 20 | 0 |
| tool error: stop on a fatal error | caller |
7.5 | 42.5 | 27.5 |
| strict argument formats (7 families) | caller |
0β12.5 | 2.5β10 | 0β5 |
| extraction: list | extract |
55 | β | β |
| extraction: fields | extract |
17.5 | β | β |
The two "strict" document rows require a short reply; the comparison models usually answer correctly in a full sentence and fail only that check (ignoring it they score 70 / 55 on one document and 52.5 / 47.5 on two).
These tasks were written by the same people who trained the model, so they favour it; read them as "the skill was learned", not as a ranking.
Public benchmarks (best Barbet checkpoint / Qwen3.5-0.8B / MiniCPM5-1B)
| Benchmark | Barbet | Qwen | MiniCPM |
|---|---|---|---|
| ACEBench | 17.5 | 18.4 | 18.9 |
| HammerBench (zh) | 15.9 | 14.8 | 19.0 |
| HammerBench (en) | 16.7 | 18.6 | 21.3 |
| ΟΒ²-bench | 18.0 | 40.0 | 37.3 |
| BFCL multi-turn | 0.6 | 7.0 | 6.9 |
| AndroidControl | 4.3 | 18.1 | 10.4 |
| JSONSchemaBench | 11.1 | 48.4 | 33.1 |
| Multi-IF (en, turn 3) | 4.5 | 20.3 | 37.4 |
GSM8K, no tool (math) |
39.7 | 50.0 | 59.5 |
GSM8K, calculator (tools) |
29.1 | 26.8 | 45.5 |
Benchmarks that need an LLM judge or a user simulator were run with local models instead of the official ones, so these numbers are not comparable with published leaderboards; they are only comparable with each other. No benchmark test data was used for training.
On public benchmarks Barbet is behind both comparison models almost everywhere. The general-ability score of the SFT model before RL is 46.6, against 51.2 and 53.7.
Known problems
- Each specialist forgets abilities outside its group.
toolssolves 1.1% of GSM8K without a calculator (the SFT model: 25.6%). agent3and the checkpoints trained from it emit tool calls even when no tool is offered, and their JSON validity is lower than the SFT model's.- Multi-turn instruction following is the largest gap: by the third turn the model has forgotten earlier instructions.
callergot worse than the SFT model at stopping after an unrecoverable tool error.- Strict argument formats were not learned by any checkpoint.
- Traditional Chinese quality and general knowledge are those of a 1B model: expect factual errors.
Usage
from huggingface_hub import snapshot_download
import sys
folder = snapshot_download("voidful/barbet-1b-specialists", allow_patterns="tools/*") + "/tools"
sys.path.insert(0, folder)
from load_barbet import load_barbet
model, tokenizer = load_barbet(folder, device="cuda:0")
- Use
load_barbet.py: weights are BF16 except the FP32 Mamba parameters, which must not be cast. - The model was trained with its own prompt renderer, not a standard chat template; see
INFERENCE.txtin each folder. Prompts in another format give much worse results. - Requirements are in
requirements-inference.txt(mamba-ssmandcausal-conv1dneed a matching CUDA build).
Intended use and limits
Research on small tool-using models, RL fine-tuning and distillation. Not for unsupervised use on anything that matters: the checkpoints make mistakes, can call tools with wrong arguments, and have had no safety evaluation.