← TinyGPT · docs · devlog · roadmap · speedup
source: docs/learn/small-model-tool-calling-playbook.md · view on GitHub ↗

Small-model tool-calling: the SOTA playbook (what others do)

What: a survey of how the field builds SOTA small (1-8B) tool-callers — data, SFT tricks, RL, eval, on-device serving — distilled to what’s stealable on a Mac. Why: we kept finding cheap wins one at a time (parser fixes, function masking) because we worked bottom-up. This is the top-down map so we stop re-deriving the known playbook. Surveyed 2026-06-14.

Companion: tool-calling-frontier-parity.md (our own results) · external-references.md.

1. Data synthesis (how SOTA training sets are built)

2. SFT tricks

3. RL / post-training

4. Eval (and its traps)

5. On-device / Apple-Silicon serving

STEAL / ADOPT priority list (mapped to our gaps)

  1. ToolRL graded reward (name+param-name+param-value+format) replacing our per-call binary — the single highest-ROI fix to our flat +2 RL. Reward-fn edit only.
  2. Function masking + irrelevance augmentation in SFT data — targets our live_multiple WRONG_FUNC (32%) + over-emission directly. Cheap data edit.
  3. Dynamic sampling (drop zero-advantage groups) + clip-higher — fixes the no-variance skips we observed; sample-efficiency on Mac compute. Few-line GRPO edit.
  4. 8-bit (not 4-bit) for the tool-caller, BFCL-validated — 4-bit may be silently costing FC accuracy.
  5. Eval upgrades: add irrelevance + format-sensitivity (paraphrase ×3) probes now; a multi-turn stateful slice later (where small models actually cliff).
  6. RFT (best-of-N filtered by the AST matcher) as a cheap rung before full GRPO.
  7. Serving: prefix-KV-cache the tool schema; constrained JSON with a reasoning prefix.