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.
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)
| Dimensions | Changes | What it means for the industry | Recommended actions |
|---|---|---|---|
| Equipment threshold | 26M parameter model can run on a 2GB RAM mobile phone | AI Agent sinks from the cloud to the terminal | Evaluate the feasibility of accessing local tool calling scenarios |
| Inference speed | 6000 tok/s prefill, 1200 tok/s decode | Real-time voice assistant response is no longer a problem | Test the effect of Needle on smart speakers/watches |
| Training cost | 27 hours TPU + training after 45 minutes, about $5K | Vertical domain tools call the model and you can distill it yourself | Explore using Gemini/Claude synthetic data to fine-tune small models |
| Architectural innovation | Simple Attention Networks without FFN layer | Prove that inference is not a necessary condition for tool calling | Watch the architecture extend to RAG/retrieval enhanced generation scenarios |
| Degree of open source | MIT protocol, weight + code are all open source | The community can customize the vertical tool chain based on it | Download 14MB weight local deployment trial |
Adaptation suggestions
For individual developers and small teams running AI content and automation tools:
- 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.
- 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%.
- 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
Example: Running Needle locally
# 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 ——
Gemini、OpenAI、Claude、n8n、Hermes 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
- Want to learn to build an AI Agent workflow? See: AI Agent Tools 2026 Complete Tutorial: 5 Tools to Build an Automated Pipeline in 30 Minutes
- Someone used AI Agent to create a SaaS with a monthly income of $5,000: 18-Year-Old Built a $5,000/mo SaaS With AI Agents — Zero Hand-Written Code
- Recommended reading: How to use n8n + ChatGPT to build an AI content automated distribution system: How to build an AI content automated distribution system with n8n + ChatGPT: a complete 30-minute tutorial
Monetization angle
How can you make money from this trend?
WayToClawEarn focuses on verified earn playbooks—not just news. Start from these cases.
n8n + OpenAI affiliate site
Automate content and affiliate monetization
Claude + n8n automation agency
Charge monthly for agent workflow builds