48M param model achieves tool calling via grammar-constrained design
Turbulent-Sky5396 · reddit · 2026-08-25
Researchers achieved tool calling in a 48M parameter model by designing the tokenizer, loss, and decoder around five specific decisions.
Mechanism & Results:
- The model only handles tool calls; JSON syntax (braces, quotes, keys) is enforced by the grammar, not generated by the model.
- Reliability: Guarantees parseable JSON and prevents undeclared tool calls, eliminating worst-case failures.
- Accuracy: 86.3% on mobile actions and 52.5% on droidcall (in-domain). Unseen catalogs drop to 28 due to function selection errors.
Details:
- Includes a $56 synthetic data script for adapting to custom catalogs.
- Weaknesses: Optional arguments, parallel instances, Java/JS dialects, and 768-token context limit.
- The repo also documents 11 negative results, valuable for similar research.
Related event: 48M-Parameter Model Handles Agent Tool Calls(2 posts)→
More from coding & agent
- ByteDance's TRAE launches TRAE Bao: a cloud-based coding assistant you control from your phone — xiaohu · 2026-11-30
- ByteDance's TRAE 2.0 gives its coding agent a cloud computer that works while your laptop is closed — xiaohu · 2026-11-30
- 19 GitHub Actions Runner Providers Benchmarked: Speed and Cost, Updated Weekly — DanielLockyer · 2026-11-30
- User says Grok agents killed his Gmail habit — Musk amplifies the agent-takes-over-email workflow — elonmusk · 2026-11-30
- open-daytona: rootless gVisor sandbox pool runs 1,536 concurrent agent-RL sandboxes on Slurm — victor_explore · 2026-11-30
- SteerCamp launches on iPhone: AI coworkers run cloud PCs while you approve on the go — pramodk73 · 2026-11-30