Cactus Compute has released Needle 2, a 45-million-parameter model specifically engineered for on-device tool calling, device control, and structured data extraction. To achieve a compact 14MB binary size and a low 28MB RAM footprint, the architecture employs several specialized techniques: replacing standard feed-forward blocks with weightless, orthonormal Walsh-Hadamard transforms, utilizing Grouped Query Attention (GQA), and implementing engram key-value memory for contextual grounding. Unlike post-hoc quantization, Needle 2 uses "Cactus Quants" to perform 2-bit quantization during pretraining. The model ensures strict output adherence through byte-level grammar-constrained decoding, which compiles tool schemas into decoding constraints. While the model offers high throughput—reporting 300–700 tokens/sec on sub-$200 Android devices—it operates under significant constraints, including a fixed 256-token sliding window and a tool retrieval mechanism that limits available tools to a subset of five per turn. Notably, while the base model features a dual-signal calibrated confidence gate to ensure safe autonomous actions, this safety mechanism is disabled when using the supported LoRA fine-tuning pipeline, as the frozen confidence head becomes uncalibrated for the new weight distribution.

Read original