Show HN: Needle2:面向手机、可穿戴设备、智能家居和机器人的 14MB 智能体 LLM
Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots

原始链接: https://cactuscompute.com/needle

Needle 是一项创新的 AI 解决方案,旨在为低成本硬件(200 美元以下)——如物联网设备、微控制器和入门级智能手机——提供高效的端侧智能。通过专注于特定任务(将自然语言映射为函数调用以及提取结构化数据),Needle 用 45M 参数的紧凑型架构取代了庞大的通用模型。 主要功能包括: * **端侧优先的效率:** 利用无损 2-bit 量化,整个模型可放入一个 14MB 且无依赖的 C++ 二进制文件中,确保无需 GPU 或 NPU 即可本地运行。 * **精度与语法:** 通过利用字节级语法来强制执行结构化输出,模型能够可靠地执行函数调用,而不是生成开放式文本。 * **基于置信度的扩展:** Needle 提供置信度评分,使设备能够本地处理常规任务,并在需要时将复杂查询无缝升级至云端。 * **用户友好的微调:** 模型体量极小,可在个人电脑上几分钟内完成本地微调,使开发者能够针对特定的设备工具集自定义 AI。 总之,Needle 提供了一种私密、即时且免费的方式,让普通硬件无需传统前沿模型所需的资源投入,即可变身为响应迅速的智能代理。

Cactus Compute 发布了 **Needle 2**,这是一款为极端边缘设备优化的 14MB 智能代理 LLM,适用于入门级智能手机、可穿戴设备、树莓派(Raspberry Pi)及微控制器等设备。 Needle 2 基于 4500 万参数的“简单注意力网络”(Simple Attention Networks)架构构建,在保持高性能的同时,其 MFLOPs(每秒百万次浮点运算)消耗量比标准小型 Transformer 模型低 7 到 85 倍。该模型运行速度极快,根据硬件不同,每秒可处理 300 到 1,500 个 token,且运行内存占用仅为 28MB。 该模型专为工具调用和结构化数据提取而设计,侧重于将输入映射为类型化参数,而非进行开放式文本生成,这使其在物联网(IoT)和机器人领域具有极高的效率。开发人员可以在标准硬件上,在几分钟内完成针对特定任务的模型微调。此外,Needle 2 引入了“Cactus Hybrid”置信度评分机制,使系统能够在本地处理常规任务,同时将复杂请求升级到云端大型模型。该项目旨在为全球 200 亿台缺乏传统大模型所需高端 GPU 或 NPU 的联网物联网设备带来智能化能力。
相关文章

原文

Bringing On-Device AI to <$200 Devices: Edge AI has lately meant Macs and PCs, but the edge is mostly cheap hardware: over 21 billion connected IoT devices against roughly 1.5 billion PCs, and in emerging markets most phones ship under $200. Count budget phones, Raspberry Pis, microcontrollers, wearables, small robots like Reachy Mini, and connected home devices, and roughly four in five edge devices cost under $200. That is the hardware Needle targets: no GPU, no NPU, a few hundred MB of RAM.

Function Call & Device Use: Turning on a light does not need a frontier model. A watch, a home, a robot: each already exposes its abilities as functions with typed parameters, so the only hard part is mapping a messy sentence onto them: which function, with which values. Framed that way, the problem needs no world knowledge and no open-ended prose, which is why 45M parameters suffice where chat needs billions. That smaller formulation is the bet everything else follows from.

Extraction & Structured Outputs: The schema is the interface, and the same formulation covers documents: a schema plus a paragraph returns typed fields, an enum field is a classifier, an array field collects a list in one call. We enforce this with a contract, not a convention: every turn is answered with a call envelope, the empty call is the refusal, and a byte-level grammar compiled from the declared schemas constrains every token. The grammar carries the syntax, so all 45M parameters go to choosing functions and grounding arguments in the user's words.

Edge-Cloud Collaboration: No small model covers everything, so Needle says so instead of guessing: every response carries a learned confidence score, and off-topic requests return the empty call. Above your threshold, act; below it, re-ask or escalate to the cloud. Most device requests are routine control, so escalation stays rare and the default path stays private, instant, and free.

Lossless 2bit Quantization: Small models break under post-hoc quantization, so we never quantize post-hoc: Needle 2 trains against Cactus Quants from pretrain through post-train, weights, activations, and KV cache alike. The 2bit model you deploy is the model that was trained. That is what fits 45M parameters into 14MB with nothing lost on our battery.

Co-designed Model & Inference: Every architectural choice was benchmarked on the target hardware before it earned its parameters, and the deliverable is the pair, not the weights: a single dependency-free C++ binary that probes the CPU at startup and picks its kernels, with the model, tokenizer, and grammar compiler sealed inside. One artifact runs from Cortex-M to x86 to WebAssembly. There is nothing to install and nothing to download.

Fine-tune on your Mac/PC: Every product has its own tool vocabulary, and a 45M model is small enough to retrain where it runs: the repo and python package tune and test on your own computer in minutes to a few hours. Ship a Needle that speaks your device's tools, not a generic assistant.

联系我们 contact @ memedata.com