Needle: Run a tiny 8 to 29 MB AI model on a phone or microcontroller
Added · Updated
Made by Cactus Compute, Inc.
View profile on GitHub (opens in a new tab)Needle is a small foundation model built specifically for devices too limited for a normal chatbot model — phones, wearables, smart-home hubs, robots and microcontrollers — packaged as a single binary as small as 8 to 29 megabytes.
It gives up general conversation ability in exchange for being very good at three narrow, useful jobs: picking the right function to call from a list your app provides and filling in its arguments correctly, pulling structured fields out of messy text (like a booking or an invoice), and turning a sentence into a searchable vector. The creator reports it beats models ten times its size on mobile tool-calling tasks.
What it does
The architecture (a "Laddered Simple Attention Network") swaps standard components for ones chosen to work well when heavily compressed: a specialized MLP layer, attention with a causal convolution added, and an "engram" memory that most of the model's parameters live in, which the creator says lets a 121-million-parameter model do the work of a 50-million-parameter one. A byte-level grammar compiled from your own function or data definitions constrains every token the model outputs, so tool calls and extracted fields are guaranteed to parse rather than occasionally coming back malformed, and every answer carries a calibrated confidence score.
You could use it to…
- Run reliable tool-calling AI on a phone, no internet needed
- Pull structured fields out of messy text, on-device
- Turn a sentence into a searchable vector locally
Can I use this?
You'll need A device to run the binary on, or the browser demo · Setup needed
Worth knowing Benchmark comparisons against larger models are the creator's own reported numbers rather than an independent test, and the model deliberately does not do open-ended chat, only the three tasks it was built for. Licensed under Apache License 2.0.
Why it's here
Not trending this week
Last seen on the GitHub trending list on 25 September 2026. It stays on BuildTube so you can still find it.
- 2 people have starred it on GitHub.
Numbers checked on 8 November 2026; not refreshed since.
Behind it
View model pageBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is Needle?
- The architecture (a "Laddered Simple Attention Network") swaps standard components for ones chosen to work well when heavily compressed: a specialized MLP layer, attention with a causal convolution added, and an "engram" memory that most of the model's parameters live in, which the creator says lets a 121-million-parameter model do the work of a 50-million-parameter one.
- What can I use Needle for?
- Run reliable tool-calling AI on a phone, no internet needed; Pull structured fields out of messy text, on-device; Turn a sentence into a searchable vector locally
- Can I run Needle on my computer?
- It runs on your own hardware with a model runtime.
- What do I need to use Needle?
- The model weights (on Hugging Face) and a compatible runtime for your target platform, or just a browser to try the interactive demo at cactuscompute.com/needle first.
- What license does Needle use?
- Licensed under Apache License 2.0.
More from this week
- kimi-k3-in-c Run a 2.78-trillion-parameter model on 8 GB of RAM
Get text answers from the huge Kimi K3 AI model using one CPU and no graphics card.
- Idol Turn one picture of an object into a 3D Gaussian splat
Idol turns one photo, render or generated image of an object into a 3D Gaussian splat file.
- P-H3-Image-Comfy Make and edit 8-megapixel images in ComfyUI
Turn short text requests into 8-megapixel images and edit pictures on your own graphics card.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-cactus-compute-needle/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-cactus-compute-needle/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="Needle on BuildTube"></iframe>