Lurker News
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 conducted investigations that led to an observation: agentic experiences are built upon tool calling, and massive models are overkill for it. Tool calling is fundamentally retrieval-and-assembly (match query to tool name, extract argument values, emit JSON), not reasoning. Cross-attention is the right primitive for this, and FFN parameters are wasted at this scale.
Simple Attention Networks: the entire model is just attention and gating, no MLPs anywhere. Needle is an experimental run for single-shot function calling for consumer devices (phones, watches, glasses...).
Training: - Pretrained on 200B tokens across 16 TPU v6e (27 hours) - Post-trained on 2B tokens of synthesized function-calling data (45 minutes) - Dataset synthesized via Gemini with 15 tool categories (timers, messaging, navigation, smart home, etc.)
You can test it right now and finetune on your Mac/PC: https://github.com/cactus-compute/needle
The full writeup on the architecture is here: https://github.com/cactus-compute/needle/blob/main/docs/simp...
We found that the "no FFN" finding generalizes beyond function calling to any task where the model has access to external structured knowledge (RAG, tool use, retrieval-augmented generation). The model doesn't need to memorize facts in FFN weights if the facts are provided in the input. Experimental results to published.
While it beats FunctionGemma-270M, Qwen-0.6B, Granite-350M, LFM2.5-350M on single-shot function calling, those models have more scope/capacity and excel in conversational settings. We encourage you to test on your own tools via the playground and finetune accordingly.
This is part of our broader work on Cactus (https://github.com/cactus-compute/cactus), an inference engine built from scratch for mobile, wearables and custom hardware. We wrote about Cactus here previously: https://news.ycombinator.com/item?id=44524544
Everything is MIT licensed. Weights: https://huggingface.co/Cactus-Compute/needle GitHub: https://github.com/cactus-compute/needle

Comments (211) 83 threads

nl2 replies#
Do you have any examples or data on the discriminatory power of the model for tool use?

The examples are things like "What is the weather in San Francisco", where you are only passed a tool like

  tools='[{"name":"get_weather","parameters":{"location":"string"}}]',
I had a thing[1] over 10 years ago that could handle this kind of problem using SPARQL and knowledge graphs.

My question is how effective is it at handling ambiguity.
Can I send it something like a text message "lets catch up at coffee tomorrow 10:00" and a command like "save this" and have it choose a "add appointment" action from hundreds (or even tens) of possible tools?
[1] https://github.com/nlothian/Acuitra/wiki/About

michelsedgh3 replies#
Thanks to a Huggingface linked below, I tested it and im not impressed. prmopt: i need to contact my boss i will be late. Result: 20mins [{"name":"set_timer","arguments":{"time_human":"20 minutes"}}]. It didnt use the email tool and i tried 2-3 different ways of asking it.
HnUser121 reply#
Did you give it an email tool? It uses the tool it’s given. HF example only has timer tool.
mahmoudimus3 replies#
works for me:

input: i need to contact my boss i will be late. output: [{"name":"send_email","arguments":{"to":"boss@company.com","subject":"Running late","body":"I will be late for the meeting."}}]
it did have the send_email tool on the left hand side though

hirako20002 replies#
Boss: what meeting are you talking about..?

In the ideal scenario, the boss also uses Needle, which checks emails and schedule a late meeting with whoever sent that email.
Needle on the other side receives the invite for a late meeting, and notify OP he's got a 67% chance of getting fired today.

Continue this thread — 2 replies

michelsedgh#
Interesting, I tried a few times it wasnt working! Maybe its a hit or miss?
fwip#
If it were me, I wouldn't be happy that it made up a meeting that I didn't mention.
fennecfoxy1 reply#
Query: context: { "boss_email": "bigboss69420@corporatepersonhood.net", "upcoming_meetings": [{ with: "bigboss69420@corporatepersonhood.net", "time": "11:00" }] } user: i need to contact my boss i will be late, could you tell him I'll be 15 minutes late?

Output: [{"name":"send_email","arguments":{"to":"bigboss69420@corporatepersonhood.net","subject":"upcoming_meetings","body":"I'll be 15 minutes late"}},{"name":"send_email","arguments":{"to":"bigboss69420@corporatepersonhood.net","subject":"time","body":"I'll be 15 minutes late"}},{"name":"send_email","arguments":{"to":"bigboss69420@corporatepersonhood.net","subject":"time","body":"I'll be 15 minutes late"}}]
Context definitely helps. But yeah the quality of it doesn't seem to be too high. To be fair it makes you realise that not only is parameter extraction required, but also content generation (email body). Also debouncing the 3 tool calls.
Maybe under very specific circumstances/very tight harness this sort of model would be useful?

m00x#
Maybe it has to be fine-tuned per tool just like functiongemma
AndrewKemendo1 reply#
I’m noticing a trend where people who have no experience with good old-fashioned AI are starting to learn about it, and use it to save money on their tool chain costs.

I think it’s great that people are finally rediscovering these basics and maybe at some point they’ll realize that AI is not something new

isityettime#
In much the same way, LLMs are renewing interest in general automation that also falls short of GOFAI. In some situations, I think this might be very beneficial.
ilaksh3 replies#
Hmm.. this might make it feasible to build something like a command line program where you can optionally just specify the arguments in natural language. Although I know people will object to including an extra 14 MB and the computation for "parsing" and it could be pretty bad if everyone started doing that.

But it's really interesting to me that that may be possible now. You can include a fine-tuned model that understands how to use your program.
E.g. `> toolcli what can you do` runs `toolcli --help summary`, `toolcli add tom to teamfutz group` = `toolcli --gadd teamfutz tom`

HenryNdubuaku1 reply#
So Needle is trained for INT4, what you see in the playground is INT4, only 14MB, same challenge though.
ilaksh#
Oh gotcha. Fixed my comment.
matchaonmuffins2 replies#
I wonder if it will make sense to have a central natural language parser of sorts managed by the OS that includes a model like this?

So all command line programs can hook into this model at runtime, and you can have adaptors for fine-tuning etc.

ilaksh#
Yes I assume some kind of LLM system will eventually make its way into OS package registries and eventually there will be a standard of some sort. Already OpenAI's API is the de facto standard available from all providers. But who knows what port it's on. Maybe implement mDNS/DNS-SD or SSDP, and if not there it could just go through default ports like the Ollama one and check for a certain endpoint.
varenc2 replies#
Are you worried about Google's response to this? Google reportedly reacts to distillation attempts "with real-time proactive defenses that can degrade student model performance". So if they detected you, they could have intentionally fed you a dumber but plausible variant of Gemini: https://cloud.google.com/blog/topics/threat-intelligence/dis...

But also, this model is small and just focusing on the tool use. In terms of token usage, you're probably not anywhere near the people that are trying to distill the entire model.

madduci2 replies#
Well, it's like robbing the robbers, when it comes to training data
tommica2 replies#
Except one of the robberers is a massive corporation with even bigger legal team...
incrudible2 replies#
It is more like imitating the imitators. There is not much of a legal case here, but poisoning the data is fair game both for those producing original data as well as for those producing its regurgitations.

Continue this thread — 2 replies

wordsarelies#
well... really thank the courts... the creator of the prompt gets to own the output...
varenc#
This perspective is more cut and dry when its someone like OpenAI scraping the whole internet explicitly for LLM training purposes. But Google has already been scraping the entire internet for 25+ years. At what point did building a smarter search engine transition from indexing, to 'robbing'? And it's not like training Gemini is the first time they used their internet cache to build AI. AI, as academics use the term, has been in use on Google results for a long time.

Basically, if we were okay with Google scraping the internet to build a search index, what is the line they crossed that turned this from acceptable search engine indexing, into theft?

janalsncm1 reply#
You could run Gemma models locally to distill them. Or any other model with tool use.
HenryNdubuaku#
Yeah, but we wanted Gemini
simonw3 replies#
Suggestion: publish a live demo of the "needle playground". It's small enough that it should be pretty cheap to run this on a little VPS somewhere!
HenryNdubuaku3 replies#
thanks, yeah, the problem is just handling scale, we don't have the infra ready to go, but anyone can do that. Its easy for people to run on their laptops straight up. Will try the VPS route.
giancarlostoro1 reply#
Alternatively, record a video that showcases it.
HenryNdubuaku6 replies#
Ok, will do that now!

Continue this thread — 6 replies

HenryNdubuaku#
Thanks!
imhoguy#
Try WASM, I bet every phone browser would run it. That would be killer demo!
quantumleaper3 replies#
Should be quick and easy with WebGPU, too.
ilaksh1 reply#
Good idea. Could you make that.
bijowo16761 reply#
Good idea. Could you ask a Claude Code to make that.

Today is 2026 after all

Continue this thread — 1 reply

simonw#
That's an even better idea, I bet this could run in Transformers.js.

Continue this thread — 1 more reply

Load more comments