Back to directory

needle

A tiny, 8-to-29-megabyte foundation model for tool calling, structured data extraction and text embedding, designed to run directly on phones, wearables, robots, cars and microcontrollers.

needle

needle is a tiny foundation model, packaged as a single 8-to-29-megabyte binary, built for mobiles, wearables, robots, smart-home devices, cars and microcontrollers. It trades away general chat ability in exchange for tool-calling accuracy the project reports beats models ten times its size, and extraction quality that matches models two to three times larger.

Given the functions an app exposes, it picks the right ones and fills in every argument from what the user said, returning an empty list rather than guessing when no available tool covers the request. For structured extraction, a caller declares a target shape and hands over unstructured text, such as an invoice or a booking confirmation, and gets back typed fields, with a decode grammar that guarantees the output always parses; the same underlying approach generalizes to classification. The same model can also return a text embedding for a sentence, so an app can search, match and route locally.

Its architecture lets every depth from 2 to 20 layers act as a deployable model, and each response includes a calibrated confidence score from a dedicated learned head. It installs with pip, and its weights and per-platform engines are published on Hugging Face.

More in Models

See all 405
  • mini-AGI

    github.com

    A continual learning language model that trains from scratch on a single 8 GB VRAM GPU, assembling its own architecture and adapting its size to the hardware and data available rather than shipping as a fixed pretrained model.

  • An open-source contrastive-embedding pipeline that maps technical CVE vulnerability descriptions to formal cybersecurity compliance controls in NIST SP 800-53 and CMMC, published with its model generation, fine-tuning and evaluation code.

  • peekaboolean

    github.com

    A small vision-language model, fine-tuned with LoRA on a 500-million-parameter backbone, that answers typed multiple-choice, ordinal-score and yes/no questions about an image with calibrated probabilities, in about 400 milliseconds on a laptop.