Needle: Cactus Compute's 26M-Parameter Model Brings AI Agents to Your Phone

Cactus Compute's open-source Needle model runs tool-calling AI agents in a 14MB footprint on phones and wearables, no cloud or API fees required.

Needle: Cactus Compute's 26M-Parameter Model Brings AI Agents to Your Phone

By Hadidiz Flow Team • July 16, 2026 • AI

The AI Model Small Enough to Fit in a Watch

Most of the AI industry is racing toward bigger models. This week, a small team called Cactus Compute went the other direction — and Hacker News noticed. Their new release, Needle, is a 26-million-parameter model that handles tool calling (the skill that lets an AI agent actually do things, not just talk) and runs entirely on a phone, smartwatch, or other low-power device. No cloud, no API key, no per-call fee. The Show HN post landed on the Hacker News front page with hundreds of upvotes and a lively technical discussion — a reminder that "smaller and smarter" is becoming as newsworthy as "bigger and better" in AI right now.

What Needle Actually Is

Needle is distilled from Google's Gemini 3.1 Flash Lite, but it isn't a shrunk-down general chatbot. It's purpose-built for one job: tool calling — matching a user's request to the right function, pulling out the right arguments, and returning clean JSON so an app or agent can execute it. Cactus Compute's insight was that this task is closer to retrieval-and-assembly than open-ended reasoning, so the model doesn't need the huge feed-forward layers that make LLMs expensive to run. Their architecture — a "Simple Attention Network" with the MLP layers stripped out entirely — gets the job done with a fraction of the parameters.

The numbers back it up. Quantized to INT4, Needle's footprint is about 14 MB. It runs at roughly 6,000 tokens/second on prefill and 1,200 tokens/second on decode on consumer hardware — fast enough to feel instant on a phone. In head-to-head tests on single-shot function calling, Needle reportedly outperforms other small models like FunctionGemma-270M, Qwen-0.6B, and Granite-350M, all of which are 10x or more its size.

Why It Matters for Anyone Building With AI

The practical implication is bigger than the benchmark numbers: it's now realistic to ship an AI agent that lives entirely on a user's device, with no round trip to a cloud API. For a smart-home app, a fitness wearable, an offline-first tool, or anything where latency, privacy, or connectivity is a concern, that's a meaningful shift. It also removes the recurring cost problem — once the model is on the device, there's no per-call bill, because there's no API to call.

Needle is released under the MIT license, which is about as permissive as it gets: commercial use, modification, fine-tuning, and redistribution are all fair game. The weights are on Hugging Face, the full training and data-generation pipeline is open on GitHub, and Cactus Compute even shipped a local playground where developers can fine-tune the model on their own tool schemas through a web UI — no registration or API keys required to get started.

It's also a useful data point on where training costs are heading. Cactus Compute says pretraining ran for 27 hours on 16 TPU v6e chips across 200 billion tokens, while the tool-calling fine-tune — using a 2-billion-token synthetic dataset generated by Gemini across 15 categories like timers, messaging, navigation, and smart-home control — took just 45 minutes. That's a training bill within reach of a small team, not just a frontier lab.

How to Actually Use It

Getting hands-on with Needle doesn't require much setup:

  • Grab the weights from Hugging Face and run the model locally — no account or API key needed.
  • Clone the pipeline from github.com/cactus-compute/needle if you want to see (or modify) how the training and data generation work.
  • Fine-tune on your own tools using Cactus Compute's local playground, pointing it at your app's specific function schemas rather than the generic assistant tasks it ships with.
  • Deploy on-device — the whole point of a 14 MB INT4 model is that it belongs on the same hardware as the app calling it, not behind a cloud endpoint.

Who Should Pay Attention

This isn't a replacement for a general-purpose assistant model — it's a specialist. If you're building or advising on AI agents for mobile apps, wearables, IoT, or any offline-capable product, Needle is worth a look as a lightweight tool-calling layer that doesn't require negotiating API rate limits or per-token pricing. For AI agencies and automation builders evaluating where on-device inference is heading, it's also a useful signal: the gap between "runs in a datacenter" and "runs in your pocket" for agentic AI is closing faster than most roadmaps assumed a year ago.

Key Takeaways

  • Needle is a 26M-parameter, MIT-licensed model from Cactus Compute, distilled from Gemini 3.1 Flash Lite specifically for tool/function calling.
  • It quantizes to a 14 MB footprint and runs on phones, smartwatches, and other consumer devices — no cloud API required.
  • It reportedly outperforms other small models 10x its size (FunctionGemma-270M, Qwen-0.6B, Granite-350M) on single-shot function calling.
  • The full training pipeline, weights, and a fine-tuning playground are open and available without registration.
  • It's a strong signal that on-device AI agents — not just cloud-hosted ones — are becoming practical for real products, a trend worth watching for anyone building agentic workflows.
Work with us

Want to build something like this?

RAG assistants on your documents, AI agents that act in your tools, and LLM features inside your product.

Weekly newsletter

No spam. Just the latest news and tips, interesting articles, and exclusive interviews in your inbox every week.

Read our privacy policy
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Read more from our blog
We transform your idea into an App Professionally Quickly

Our cutting-edge features simplify collaboration and creativity, making your workflow intuitive and efficient. Transform your vision into reality effortlessly with Hadidiz Flow.