WayToClawEarn
High impactHacker News

Needle releases 26M parameter tool call model: using Gemini distillation technology to let AI Agent run on mobile phones

The Cactus team has open sourced Needle, a function call-specific model with only 26M parameters, achieving an inference speed of 6000 tok/s through distilled Gemini training. It adopts a unique Simple Attention Networks architecture (no MLP layer), which can run the core tool calling capabilities of AI Agent on consumer devices such as mobile phones and watches. It has received 216 points of hot discussion on HN.

WayToClawEarn EditorialPublished May 13, 2026Updated Aug 8, 2026

Editorial review of public sources · AI-assisted drafting. How we work · Original source

Core conclusion

On May 13, 2026, the Cactus team open sourced Needle on Hacker News - a special model for function calling (Tool Calling) with only 26M parameters. Its core breakthrough is to prove that tool calls are essentially retrieval assembly tasks rather than inference tasks, and do not require large models with tens of billions of parameters.

Needle reaches a prefill speed of 6000 tok/s and a decode speed of 1200 tok/s on consumer-grade devices. Training only takes 27 hours (16 TPU v6e) plus 45 minutes of post-training.

Key Points

  • Published: 2026-05-12 (HN hot post, 216 points)
  • Model size: only 26M parameters, 14MB weight file
  • Training cost: 200B token pre-training + 2B token tool calling data post-training
  • Core Innovation: Simple Attention Networks (pure attention + gating, no MLP layer)
  • Applicable scenarios: Local AI Agent on mobile phones, watches, smart glasses, and IoT devices

Background and trigger events

AI Agent is becoming a consensus direction in the industry, but there is always a bottleneck in deploying large-scale models on consumer devices - a 7B parameter model requires about 4GB of memory, while a 26M parameter only requires 14MB. The Cactus team found that the core of the Agent experience is tool calling, which is essentially a retrieval assembly process: matching query → extracting parameters → outputting JSON.

This does not require the reasoning capabilities of a large model, a small model with cross-attention is enough.

The Cactus team said on HN: "We were deeply dissatisfied with how little effort was put into building an Agent model that could run on cheap phones, so we took matters into our own hands."

Key Impact (by Dimension)

DimensionsChangesWhat it means for the industryRecommended actions
Equipment threshold26M parameter model can run on a 2GB RAM mobile phoneAI Agent sinks from the cloud to the terminalEvaluate the feasibility of accessing local tool calling scenarios
Inference speed6000 tok/s prefill, 1200 tok/s decodeReal-time voice assistant response is no longer a problemTest the effect of Needle on smart speakers/watches
Training cost27 hours TPU + training after 45 minutes, about $5KVertical domain tools call the model and you can distill it yourselfExplore using Gemini/Claude synthetic data to fine-tune small models
Architectural innovationSimple Attention Networks without FFN layerProve that inference is not a necessary condition for tool callingWatch the architecture extend to RAG/retrieval enhanced generation scenarios
Degree of open sourceMIT protocol, weight + code are all open sourceThe community can customize the vertical tool chain based on itDownload 14MB weight local deployment trial

Adaptation suggestions

For individual developers and small teams running AI content and automation tools:

  1. Local Agent Experiment: Run Needle on M4 Mac or Linux, and use n8n or OpenClaw to conduct a local Agent experiment without calling the cloud API.
  2. Reduce API costs: Use Needle as a pre-filtering layer for tool calls. Only complex inferences are routed to large models. It is expected to reduce API costs by 70%.
  3. Deployment: Explore integrating Needle in Home Assistant, Android applications or CLI tools to implement local AI functions

Task List (Example)

  • Download Needle model weights (14MB, GitHub release)
  • Run the playground locally to test the tool calling ability
  • Evaluate whether it can be used as a pre-step in the AI Agent workflow

AI —

Example: Running Needle locally

terminal

# Needle
git clone https://github.com/cactus-compute/needle.git
cd needle

# (Python 3.10+)
pip install -r requirements.txt

# (15MB)
wget https://huggingface.co/Cactus-Compute/needle/resolve/main/needle.pt

# —
python run.py --model needle.pt --prompt " 10 "

HN

  • Simon Willison playground ,, VPS
  • Needle ** Siri**
  • HN Home Assistant
  • Needle CLI ——

GeminiOpenAIClauden8nHermes Agent. The above are all common names in the AI ​​tool ecosystem. The platform side will automatically match and generate tool_mentions floating cards based on the maintained tools library.

Internal link guidance

View source →

Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.