โ† AI Tools
MultimodalIntermediate

Needle

Needle, released by Cactus Compute on May 15, 2026, is an ultra-lightweight, function-calling-only small language model with 26 million parameters, designed to operate at ultra-high speeds in extremely resource-constrained on-device edge environments such as smartphones, smartwatches, and AR glasses. Just as the hardware controller of a smart device detects a sensor interrupt and instantly converts the signal with zero latency, Needle is a digital micro-assistant that maps the user's voice or text queries in real-time in a mobile environment and connects them to available API tools with a single forward pass.

Needle, released by Cactus Compute on May 15, 2026, is an ultra-lightweight, function-calling-only small language model with 26 million parameters, designed to operate at ultra-high speeds in extremely resource-constrained on-device edge environments such as smartphones, smartwatches, and AR glasses. Much like a smart device's hardware controller detects sensor interrupts and instantly converts signals with zero latency, Needle acts as a digital micro-router, mapping users' voice or text queries in real-time in a mobile environment and connecting them with available API tools in a single forward pass. It employs a unique, simplified attention network architecture that completely removes heavy multi-layer perceptron layers, achieving an extremely compact size while ensuring knowledge retrieval performance for single-query purposes.

Existing general-purpose small models still pack billions of parameters, making them slow to run on edge devices, consuming significant device memory and power during computation, and limiting battery life. To overcome these limitations, Needle adopts a bold architecture optimization that eliminates multi-layer perceptron layers and incorporates a precise distillation technique from Gemini 3.1, enabling it to demonstrate on-device response speeds that are tens of times faster than much larger general-purpose models, using only a 14MB, 4-bit quantized model. It exhibits speeds capable of processing thousands of tokens of context in real-time, even on the low-power processors of smartphones or smart glasses, and achieves unparalleled practicality by performing complete tool calls solely on the device, without complex pipeline detours or the latency of cloud servers.

This tool offers a highly innovative scenario for biotechnology researchers who need to use mobile tablets or wearable devices inside sterile laboratories where their hands are not free. For example, when a researcher performs pipetting or microscopy and instructs a wearable device in natural language, such as "Record the current humidifier temperature sensor value and check the comparison results of the gene expression sequence registered yesterday," Needle operates in the backend. Running on the embedded core within the device, Needle receives a list of local laboratory control functions and protein analysis API tool definitions as input and instantly generates a structured JSON message combined with the corresponding call parameter values with zero latency. This allows researchers to reliably operate a smart lab agent environment where they can intuitively control experimental equipment and analysis tools solely on the device, without the need for complex server operations or unstable network conditions.

๐Ÿ’ป System Requirements

๐Ÿง RAM

0 (Real-time inference possible without graphics memory, equipped with an edge CPU acceleration engine) / 2GB+ when using GPU acceleration

๐Ÿ’พStorage

Less than approximately 100MB (approximately 14MB for the 4-bit quantized model, approximately 52MB for the default checkpoint)

โšก Installation

4-1. Quick Start

git clone https://github.com/cactus-compute/needle.git && cd needle && source ./setup

4-2. Detailed Installation

Clone and navigate to the repository

git clone https://github.com/cactus-compute/needle.git cd needle

Execute the script to set up the virtual environment and install modules

source ./setup

Launch local web-based test playground

needle playground

from needle import SimpleAttentionNetwork, load_checkpoint, generate, get_tokenizer

Automatic Download of Weight Files and Model Initialization

params, config = load_checkpoint("checkpoints/needle.pkl") model = SimpleAttentionNetwork(config) tokenizer = get_tokenizer()

After entering the query and tool definitions, generate structured tool calls.

result = generate( model, params, tokenizer, query="Find homologues for sequence MGDVEK...", tools='[{"name": "protein_search", "description": "Run BLAST search for sequence", "parameters": {"type": "object", "properties": {"sequence": {"type": "string"}}, "required": ["sequence"]}}]' ) print(result)

๐Ÿงฌ Bio Use Cases

๐Ÿ”ฌ

Natural Language Bio Tool Binding for Wearable Devices

In an offline lab environment, recognize a researcher's natural language commands on mobile eyewear and map the parameters for invoking a gene reference tool (e.g., protein_search) within 0.1 seconds for voice-activated execution.

๐Ÿงฌ

On-Device Agent Router for Laboratory Equipment Control

Without cloud dependency, assign a list of local humidifier and cell culture incubator control APIs to Needle's context, achieving a 0.05-second response time for data control loops between devices.

๐Ÿ’Š

Patient Monitoring Smart Agent Module

Monitor real-time biosignal data thresholds and, within a single on-device chip, branch and trigger emergency contact dialing or record database logging functions without errors.

FAQ

What is Needle?

Needle, released by Cactus Compute on May 15, 2026, is an ultra-lightweight, function-calling-only small language model with 26 million parameters, designed to operate at ultra-high speeds in extremely resource-constrained on-device edge environments such as smartphones, smartwatches, and AR glasses. Much like a smart device's hardware controller detects sensor interrupts and instantly converts signals with zero latency, Needle acts as a digital micro-router, mapping users' voice or text queries in real-time in a mobile environment and connecting them with available API tools in a single forward pass. It employs a unique, simplified attention network architecture that completely removes heavy multi-layer perceptron layers, achieving an extremely compact size while ensuring knowledge retrieval performance for single-query purposes. Existing general-purpose small models still pack billions of parameters, making them slow to run on edge devices, consuming significant device memory and power during computation, and limiting battery life. To overcome these limitations, Needle adopts a bold architecture optimization that eliminates multi-layer perceptron layers and incorporates a precise distillation technique from Gemini 3.1, enabling it to demonstrate on-device response speeds that are tens of times faster than much larger general-purpose models, using only a 14MB, 4-bit quantized model. It exhibits speeds capable of processing thousands of tokens of context in real-time, even on the low-power processors of smartphones or smart glasses, and achieves unparalleled practicality by performing complete tool calls solely on the device, without complex pipeline detours or the latency of cloud servers. This tool offers a highly innovative scenario for biotechnology researchers who need to use mobile tablets or wearable devices inside sterile laboratories where their hands are not free. For example, when a researcher performs pipetting or microscopy and instructs a wearable device in natural language, such as "Record the current humidifier temperature sensor value and check the comparison results of the gene expression sequence registered yesterday," Needle operates in the backend. Running on the embedded core within the device, Needle receives a list of local laboratory control functions and protein analysis API tool definitions as input and instantly generates a structured JSON message combined with the corresponding call parameter values with zero latency. This allows researchers to reliably operate a smart lab agent environment where they can intuitively control experimental equipment and analysis tools solely on the device, without the need for complex server operations or unstable network conditions.

When should I use Needle?

Needle, released by Cactus Compute on May 15, 2026, is an ultra-lightweight, function-calling-only small language model with 26 million parameters, designed to operate at ultra-high speeds in extremely resource-constrained on-device edge environments such as smartphones, smartwatches, and AR glasses. Just as the hardware controller of a smart device detects a sensor interrupt and instantly converts the signal with zero latency, Needle is a digital micro-assistant that maps the user's voice or text queries in real-time in a mobile environment and connects them to available API tools with a single forward pass.

What is a biomedical use case for Needle?

Natural Language Bio Tool Binding for Wearable Devices: In an offline lab environment, recognize a researcher's natural language commands on mobile eyewear and map the parameters for invoking a gene reference tool (e.g., protein_search) within 0.1 seconds for voice-activated execution.

๐Ÿ“„ Official Docs๐Ÿ™ GitHub

๐Ÿ“ Update Notes

No update notes yet.

๐Ÿงช Related Code of Life

No related Code of Life posts yet.

BioPlayground

Reading, linking, and lawful quotation stay open; high-speed bulk collection and unauthorized redistribution do not.

Unless stated otherwise, content rights belong to BioPlayground or the relevant rights holder.