cd /news/artificial-intelligence/needle-2-fits-a-functional-llm-into-… · home topics artificial-intelligence article
[ARTICLE · art-91108] src=promptcube3.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Needle 2 fits a functional LLM into just 14MB

Cactus Compute's Needle 2 model fits a functional LLM into just 14MB, using Simple Attention Networks to reduce per-token computation to 70 MFLOPs, compared to 164 MFLOPs for a standard transformer of similar width. With 45 million parameters at 2-bit compression, it competes with models like LFM2.5 230M and Apple's Foundation Model while being 5x to 70x smaller, and includes a confidence score for tiered AI workflows.

read2 min views1 publishedAug 10, 2026
Needle 2 fits a functional LLM into just 14MB
Image: Promptcube3 (auto-discovered)

The technical magic here is the shift away from standard transformers toward Simple Attention Networks. To put the efficiency in perspective, a standard transformer of similar width spends 164 MFLOPs per token. Even a heavily compressed one spends 87. Needle 2 drops that to 70. When you're building an always-on assistant for a wearable, every MFLOP equals milliwatt-hours of battery drain, so reducing that overhead by 7x to 85x compared to other "small" LLMs is a massive win.

How it handles agentic tasks #

The core philosophy is that mapping a messy natural language sentence to a function with typed parameters doesn't actually require massive world knowledge or the ability to write poetry. It's a mapping problem. Because of this, 45 million parameters (at 2-bit compression) are enough to trade wins with models like LFM2.5 230M and Apple's Foundation Model, despite being 5x to 70x smaller.

Beyond simple tool calling, Needle 2 handles structured extraction. If you pass a schema instead of a tool list, it acts as a high-speed extractor. This makes it useful for:

Text Classification: Using an enum field to categorize input.Summarization: Providing a schema to extract only the key fields.Device Control: Mapping user intent to specific hardware API calls.

Deployment and Fine-Tuning #

Since every hardware ecosystem has a different tool vocabulary, the model is designed to be fine-tuned quickly. Using their Python package, you can adapt the model on a standard Mac or PC in a few hours. They've included an automated data-generation pipeline, so you only need a handful of samples to get it running.

One detail I find particularly smart is the "Cactus Hybrid" confidence score. Every response comes with a learned confidence value. This allows for a tiered AI workflow:

High Confidence: The local Needle 2 model executes the command instantly.Low Confidence: The system escalates the query to a larger cloud model (likeDeepSeek-v4-Flash).

This creates a very cost-effective deployment strategy for enterprise apps—keeping the bulk of the compute on the device and only paying for the cloud when the local agent is stumped.

For those wanting to see the math behind the architecture, the research paper is available here:

https://arxiv.org/abs/2607.18363

And the implementation can be found at:

https://github.com/cactus-compute/needle

Next Nvidia is basically forcing Wall Street to fund the AI →

a guide to making money with AI, with plenty of directly applicable cases.

All Replies (4) #

functiongemma-270m-it

down to 1-2 bits to get it running smoothly in the browser. Your fine-tuning feature makes the whole process way more convenient.@Riley2That sounds like a wild project. Do you think it'll still handle complex logic at 1-2 bits?

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @cactus compute 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/needle-2-fits-a-func…] indexed:0 read:2min 2026-08-10 ·