Meet Needle 2: An Open 45M-Parameter Tool-Calling Model That Ships as a 14MB Binary and Runs a Full Session in 28MB of RAM
Cactus Compute has released Needle 2, an open 45M-parameter model for tool calling, device use, and structured extraction.The entire model ships as a single 14MB binary that runs a full session in about 28MB of RAM.
Weights are trained and deployed at CQ2-bit using Cactus Quants, and the model is sealed inside the company’s own C++ engine, so there is no runtime to install and no download at inference time.
Reported decode throughput is 500 tokens/sec on a Raspberry Pi 5, 400–1,500 tokens/sec on Meta Quest 3S and Apple Vision Pro, and 300–700 tokens/sec on sub-$200 phones.
The design premise is narrow and stated plainly by the team: mapping a messy sentence onto a typed function signature needs no world knowledge and no open-ended prose.That framing is why 45M parameters are enough here, and why the model targets hardware with no GPU and no NPU.Is it deployable?
Yes, Needle 2 ships as prebuilt binaries and a static library for macOS, Linux (x86-64, ARM64, ARMv7, RISC-V, MIPS32el), Windows, Android, iOS/watchOS/tvOS, and WebAssembly.Cactus says Pebble already runs Needle locally in the Index 01 app for offline voice actions.
Which companies: Any team shipping firmware or apps on constrained hardware.Seed-stage wearable and IoT startups, mid-market consumer-electronics OEMs, robotics teams, and large device makers needing an offline fallback.Cloud-first SaaS teams gain less.
Industries: smart home, wearables, low-end mobile, automotive in-cabin control, service robotics, retail kiosks and POS, routers and IP cameras, and regulated settings where audio cannot leave the device.
Applications: voice-to-action on screenless devices, offline appliance control, receipt and invoice field extraction, enum tagging, and local routing that escalates to the cloud only on low confidence.
Architecture: Simple Attention Network Needle 2 uses what Cactus team calls a Simple Attention Network.The recipe replaces the FFN with a Hadamard MLP, keeps GQA attention, adds engram key-value memory from hashed n-gram tables, and uses multi-lane hyper-connections.
The network is 27 layers and 512 wide.The underlying study is on arXiv as A Controlled Study of Attention-Only Transformers.Pretraining used a proprietary 115B-token corpus, with 38B tokens of post-training.The research team notes LFM2.5-230M was pretrained on 19 trillion tokens.
Needle 2 spends 70 MFLOPs per token, with 35M of 45M parameters matmul-active.LFM2.5 230M spends 460, FunctionGemma 270M spends 540, and Apple FM sits near 6,000.Engine, grammar, retrieval, and confidence Weights never decompress into RAM.
The 2-bit codes expand inside vector registers and fuse into integer dot products, so the arithmetic path stays int8.One binary probes the CPU at startup and selects a kernel tier: SDOT, NEON, AVX2, RISC-V vectors, wasm SIMD, or scalar.
A byte-level grammar compiled from your JSON schemas constrains every emitted token.Because the matcher knows which tokens are legal before logits exist, the engine skips up to 98% of the vocabulary projection on structural tokens.
Attention uses a 256-token sliding window, and the system turn plus tool declarations are pinned as KV sinks.Memory stays near 28MB regardless of conversation length.Declare five or fewer tools and they render directly.
Above five, a contrastive retrieval head embeds each schema once, scores the query per turn, and admits only the top five.Unselected tools are unreachable, not merely unlikely.
Every response carries a confidence value, the minimum of a calibrated post-hoc head and the decoding probability of the call tokens.Off-topic requests return the empty call [].The contract is a threshold: act above it, re-ask or escalate below it.
Evaluation Cactus team evaluates on five public function-calling benchmarks using ordered strict exact match, where names, call order, and every argument must match.Needle 2 runs end-to-end through the shipped engine at CQ2-bit with retrieval on; baselines run f16 under vLLM.
BenchmarkNeedle 2 (CQ2)LFM2.5 230MFunctionGemma 270MApple FMMobile Actions (961)63.769.164.057.6DroidCall (200)17.011.017.5—Seal-Tools in-domain (700)32.626.916.3—Seal-Tools OOD (654)28.717.015.6—BFCL v4 single-turn (3,641), overall42.660.846.161.7 Needle 2 leads both Seal-Tools splits and posts 98.
3 function-name accuracy on Mobile Actions.It trails on BFCL v4, which Cactus attributes to distribution: its corpus is consumer device actions, not general or enterprise APIs.Well-formed output rate across the 3,641 BFCL rows is 93.4.
The team states two asymmetries upfront: f16 baselines favor them, and task specialization favors Needle.Decode call Reset
> dim the living room to 30
forced by grammar value chosen by the model
Vocab rows scored · structural0%
Structural bytes forced0 <!-- 03 RETRIEVAL --> Above five tools, only five ever reach the model
Every schema is embedded once by a built-in contrastive head. Each turn scores the query and admits the top five; the grammar is then rebuilt over that subset. An unselected tool is unreachable.
"dim the living room" "text Ada I'm late" "set it to 21 and play jazz"
Declared catalogue — 12 tools Illustrative simulation of the documented top-5 mechanism, not live model output. <!-- 04 CONFIDENCE --> The failure mode is escalation, not wrong execution
confidence is the minimum of a calibrated post-hoc head and the decoding probability of the call tokens. You pick the threshold. Off-topic input returns the empty call [] before any score applies.
Threshold: 0.80 — act at or above, re-ask or route to a bigger model below. 0.94 is the value shown in the Cactus README response object; the rest are illustrative. <!-- 05 MEMORY -->
Related
相關文章

消息稱字節整合 AI 生產力:TRAE、釦子併入豆包,將推統一辦公品牌“豆包工作”
作者:沁滄(實習) 責編:沁滄 評論: 感謝網友 HH_KK 的線索投遞!8 月 24 日消息,據智能湧現消息,字節跳動對旗下的辦公 AI 產品完成了一輪團隊整合:TRAE、釦子(Coze)團隊將整體併入豆包體系,其中 TRAE Work、釦子將與豆包在工作場景的產品能力進行整合;TRAE IDE 及 CLI 將作為豆包品牌下的編程產品線持續發展。

AI 大模型周榜:國產 glm-5.3-max 首秀闖入綜合榜前 15,kimi-k3-max 衝進前十
本週AI大模型Arena排行榜出現新面孔,智譜AI的glm-5.3-max首次入榜即拿下綜合榜第13名。月之暗面的kimi-k3-max排名持續攀升,成功擠進綜合榜前十,位列第10名。兩款國產大模型雙雙寫下佳績,成為本週關注焦點。

DeepSeek Harness來了:AI開始製造AI了?
DeepSeek Harness 正式推出,這項新工具被視為 AI 發展的重要里程碑,可能讓 AI 系統具備自主開發或優化其他 AI 的能力。外界關注此技術是否象徵 AI 開始「製造」AI,並可能加速人工智慧的進化與應用。目前相關細節與實際影響仍待進一步觀察。
神秘“牛來”大模型上線即登頂 背後廠商至今未揭曉
近日,一款代號為Ox Alpha的匿名AI模型在OpenRouter悄然上線,短時間內調用量迅速攀升,成功衝至平臺榜首,並刷新了該平臺的單日模型用量紀錄。不過,儘管表現驚豔,Ox Alpha背後的開發主體至今仍未揭曉。

AI辦公助手,沒有葵花寶典:五款應用萬字實測報告
AGI-Signal2026.08.24 09:12 · 來自北京全文11936字單項冠軍各有其人。2026年上半年,AI辦公賽道發生了一個根本性變化,工具不再滿足於當“對話框”,而是試圖接管完整任務,寫一段文案、做完一份報告、生成一份PPT,甚至跨應用操作。
字節整合AI辦公產品,TRAE、釦子團隊併入豆包
其中,TRAE Work、釦子將與豆包的工作場景產品能力整合;TRAE IDE及CLI則作為豆包品牌下的編程產品線繼續發展。調整後,相關產品和運營團隊統一向豆包產品負責人趙祺彙報。(iFeng Tech)TRAE與釦子此前均隸屬於字節跳動產品研發和工程架構部,前者最初定位AI編程產品,後者則聚焦AI智能體開發平臺,並持續探索不同Agent方向。