Skip to content

[GitHub Trending] cactus-compute/needle

7.1 relevance
Score Breakdown
technical depth
8
novelty
9
actionability
5
community
6
strategic
7
personal
6

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Tiny foundation model for edge devices, novel but not directly in reader's wheelhouse.

AI/ML github.com
Summary

Needle 2 is a 45M-parameter open-source model for tool calling and structured extraction, compressed into a single 14MB binary that runs in ~28MB of RAM. Built on the Simple Attention Network architecture with Hadamard MLP, GQA attention, and engram key-value memory, it uses CQ2-bit quantization and a byte-level grammar compiled from user schemas to constrain token generation. The model supports confidence-gated responses, tool retrieval from large catalogs, and bounded memory via a 256-token sliding window with KV sinks, enabling deterministic JSON output without network calls after initial download.

Author

cactus-compute