FrontierThe story, in brief

Show HN: Needle: We Distilled Gemini Tool Calling into a 26M Model

26M parameters. That's all it takes to match 270M+ models on function calling—and it runs on your phone at 6000 tok/s.

Illustration of a transparent lens revealing connected networks across layers of paper.
Exploring the next frontier of AI research.AI illustration by KeyNews
The KeyNews take

Why it matters

Cactus open-sourced Needle, a drastically smaller tool-calling model built on a radical architectural insight: agentic capabilities don't require massive FFNs or reasoning capacity. By stripping MLPs and relying on cross-attention for retrieval-and-assembly, they've shown that function calling scales down dramatically—opening a new efficiency frontier for on-device AI agents.

The key facts

8 to know
  1. Needle: 26M parameters, beats FunctionGemma-270M on single-shot function calling

  2. Inference speed: 6000 tok/s prefill, 1200 tok/s decode on consumer devices

  3. Architecture: attention + gating only, no MLPs (Simple Attention Networks)

  4. Training: 200B token pretraining (16 TPU v6e, 27 hours) + 2B token function-calling post-training (45 minutes)

  5. Dataset: 15 tool categories (timers, messaging, navigation, smart home) synthesized via Gemini

  6. Tested on 5 baselines: FunctionGemma-270M, Qwen-0.6B, Granite-350M, LFM2.5-350M

  7. Finding generalizes: no-FFN architecture applies to RAG and any task with external structured knowledge

  8. Open source: MIT licensed, weights on Hugging Face, part of Cactus inference engine

Go to the source

Hacker Newsgithub.com

Publisher excerpt: Hey HN, Henry here from Cactus. We open-sourced Needle, a 26M parameter function-calling (tool use) model. It runs at 6000 tok/s prefill and 1200 tok/s decode on consumer devices. We were always frustrated by the little effort made towards building agentic models that run on budget phones, so we…
Read original report
Back to today's editionMore frontier news

Keep reading

Related stories

More from Frontier