Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash
TL;DR Highlight
An 8–29MB model beats 10x larger ones on mobile tool calls, but real-world use is still rough.
Who Should Read
App or embedded developers who want offline tool calling or structured extraction in smart home or mobile products.
Core Mechanics
- One 8–29MB binary
- Needle 3 targets phones, wearables, robots, smart home, cars, and microcontrollers.
- It has 29M–121M parameters across 2–20 layers.
- It gives up general chat ability to focus on tool calls and extraction.
- Beats 10x larger models on tool calls
- It claims better accuracy than models 10x its size on mobile tool calls.
- On extraction it matches models 2–3x larger.
- Baselines ran at f16 on vLLM, and DeepSeek V4 Flash ran through its cloud API.
- Pick the layer count you need
- Every layer is a sub-network of increasing capacity, so you can choose 2L to 20L.
- This is called intelligence laddering, with CQ2-bit binaries of 9–29MB.
- On a Raspberry Pi 5 it decodes at 400–4k tok/s and prefills at 1–10k tok/s.
- Fine-tuning passes DeepSeek V4 Flash
- Fine-tuning on DroidCall lifts every sub-network by 18–36 points.
- From 4 layers (29M) up, the tuned model beats DeepSeek V4 Flash, they say.
- The claim is for one downstream task tuned for one epoch.
- Route on a confidence score
- Each response carries a calibrated confidence, and calls below 0.1 go to suppressed_calls.
- Act at high scores, ask at middling ones, and refuse on an empty result.
- If no tool fits, it returns an empty list instead of guessing.
- Regex triggers can force a tool
- A regex trigger restricts decoding to the matched tools and forces a call.
- Keep one tool per action with plain descriptions.
- Keep the per-turn toolset small.
Community Reactions
- Indirect smart-home phrases often failed, per user reports
- One user said "it's too cold" lowered the thermostat, and "make it hot" also lowered it from 20 to 18 with high confidence.
- Another said "warm the house" set lights to a warm brightness instead.
- Direct commands like "turn all the lights on/off" worked.
- Reasoning field seems untrustworthy, some said
- In the car demo, "turn it up" was interpreted as lowering the volume.
- In the house demo, the reasoning correctly wanted the alarm off but the action did not happen.
- "My car crashed I need help" picked play_music with confidence 1.
- FunctionGemma beat it on a Runescape DB tool task, one user found
- Exact-argument match was 85.2% for FunctionGemma BF16, 20.4% for Needle 3 W4A8, and 18.7% for Needle 2 W4.
- They said it improves on Needle 2.
- Another user found MNLI far better for labeling.
- Dataset quality and anti-use-cases matter, commenters argued
- One said the dataset matters as much as the model, and artist or song names are as hard as all smart-home devices.
- Another said inflated tiny-model claims will bury genuinely useful innovation.
- They asked the authors to state clearly what the model cannot do.
How to Apply
- Test offline tool calling on your own 5 tools
- Install cactus-needle today and wrap 3–5 of your tools with @needle.tool.
- Run 20 real user phrases mixing direct and indirect wording, and log accuracy separately.
- Branch on confidence: act, confirm, refuse
- Execute at 0.7 or higher, ask for confirmation below that, and refuse on an empty result.
- Raise the threshold or always confirm for risky devices like ovens or heating.
- Narrow tool descriptions and add triggers
- Split tools to one per action and name enum values after what users say.
- Add regex triggers to intents that must always reach a tool.
- LoRA-tune on your domain and compare
- Fine-tune a 4L sub-network with LoRA on your toolset and compare it to your current model on the same test set.
- Measure argument accuracy, latency, and RAM before deciding to switch.
Try It
# Run in terminal: quick Needle 3 tool-calling test (based on the article's example)
pip install cactus-needle
# Save the below as test.py (replace with your own functions)
import needle
from typing import Literal
@needle.tool(triggers=[r"\b(turn|switch|power|flip)\b.*\b(on|off)\b", r"\btoggle\b"])
def control_device(device: str, action: Literal["on", "off", "toggle"]):
"Switch or toggle any named smart-home device."
return {"device": device, "action": action}
agent = needle.Needle(tools=[control_device])
r = agent.complete("{{user sentence}}")
calls = r["function_calls"]
if calls and r["confidence"] >= 0.7:
print("execute", calls)
elif calls:
print("confirm", calls, r["reasoning"])
else:
print("refuse")
# Next: try indirect phrases like "it's too cold" and check whether confidence is lowTerminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls