Show HN: Needle2:面向手机、可穿戴设备、智能家居和机器人的 14MB 智能体 LLM
Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash

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

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

Cactus Compute 发布了 **Needle 2**,这是一个 14MB 大小的“小语言模型”(LLM),专为树莓派、VR 头显、微控制器和入门级智能手机等资源受限的边缘设备而设计。 **主要特性:** * **高效性:** Needle 2 采用 2-bit 压缩,拥有 45M 参数,仅需 28MB 内存。在执行工具调用和结构化数据提取时,其功耗远低于标准大语言模型(MFLOPs 降低了 7 到 85 倍)。 * **用途:** 它并非用于通用对话,而是专门用于将自然语言输入映射为结构化的“工具调用”(例如控制物联网设备)。 * **置信度评分:** 该模型为每个输出提供内置的置信度评分。用户可以设定阈值:若模型置信度高,则自动执行操作;若置信度不足,可配置为将任务转交给云端的大模型处理。 * **微调:** 为确保特定任务的准确性,用户可通过提供的 Python 软件包在 Mac 或 PC 上几分钟内完成本地微调。 开发者将其定位为缺乏 GPU 和高端处理能力的庞大物联网生态系统的解决方案,旨在为设备端智能自动化提供专门的执行层。
来自 Cactus Compute 的 Henry Ndubuaku 发布了 **Needle 3**,这是一系列超紧凑型自动化模型(2500 万至 1.21 亿参数),大小仅为 8MB 至 29MB。 **主要特性:** * **用途明确:** 专为工具调用和结构化 JSON 输出而优化,而非对话聊天。 * **架构:** 使用“Monarch Hadamard”多层感知机(MLP)以实现高效计算,并采用“智能梯级”(Intelligence Laddering)技术,使子网络能够部署在从树莓派到手表及浏览器(WASM)等各种硬件上。 * **性能:** 声称在特定任务上可与 DeepSeek V4 Flash 等大型模型相媲美,并支持七种语言。 * **控制:** 包含校准后的置信度分数和基于正则表达式的“触发器”,以处理假阴性结果。 **社区反馈:** Hacker News 上的讨论对这些营销宣传持高度批评态度。用户反映模型存在严重的“幻觉”和逻辑错误(例如将“我想小便”解读为一种音乐流派,或将“把我们全烧死”解读为关灯)。尽管开发者称赞了其小巧架构的高效性,但他们强调该模型缺乏通用推理能力,需要极其精确的工具定义和微调才能使用。大多数人认为,目前的 Needle 更像是一个功能单一的“开瓶器”,而非万能的“瑞士军刀”。
相关文章

原文

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