We distilled Gemini 3.1 into a 26m parameter "
Simple Attention Network
" that you can even finetune locally on your Mac/PC.
In production, Needle runs on
Cactus
at 6000 toks/sec prefill and 1200 decode speed.
Weights are fully open on
Cactus-Compute/needle
, as well as the dataset generation.
git clone https://github.com/cactus-compute/needle.git
cd needle && source ./setup
needle playground
Opens a web UI at
http://127.0.0.1:7860
where you can test and finetune on your own tools. Weights are auto-downloaded.
Usage (Python)
from needle import load_checkpoint, generate, SimpleAttentionNetwork, get_tokenizer
params, config = load_checkpoint("checkpoints/needle.pkl")
model = SimpleAttentionNetwork(config)
tokenizer = get_tokenizer()
result = generate(
model, params, tokenizer,
query="What's the weather in San Francisco?",
tools='[{"name":"get_weather","parameters":{"location":"string"}}]',
stream=False,
)
print(result)
# [{"name":"get_weather","arguments":{"location":"San Francisco"}}]
Finetuning
Finetune on your own tools via the web UI or CLI:
# Web UI (generates data via Gemini, trains, evaluates, bundles result)
needle playground
# CLI (auto-downloads weights if not local)
needle finetune data.jsonl
@misc{ndubuaku2026needle,
title={Needle},
author={Henry Ndubuaku and Jakub Mroz and Karen Mosoyan and Roman Shemet and Parkirat Sandhu and Satyajit Kumar and Noah Cylich and Justin H. Lee},
year={2026},
url={https://github.com/cactus-compute/needle}
}
Runs of Cactus-Compute needle on huggingface.co
1.0K
Total runs
0
24-hour runs
0
3-day runs
-99
7-day runs
-362
30-day runs
More Information About needle huggingface.co Model
needle huggingface.co is an AI model on huggingface.co that provides needle's model effect (), which can be used instantly with this Cactus-Compute needle model. huggingface.co supports a free trial of the needle model, and also provides paid use of the needle. Support call needle model through api, including Node.js, Python, http.
needle huggingface.co is an online trial and call api platform, which integrates needle's modeling effects, including api services, and provides a free online trial of needle, you can try needle online for free by clicking the link below.
Cactus-Compute needle online free url in huggingface.co:
needle is an open source model from GitHub that offers a free installation service, and any user can find needle on GitHub to install. At the same time, huggingface.co provides the effect of needle install, users can directly use needle installed effect in huggingface.co for debugging and trial. It also supports api for free installation.