<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81" -->

---
title: Needle 2: The 45M Parameter Model That Runs Everywhere
description: Needle 2 is a tiny 45-million-parameter agentic LLM specialized for tool calling and structured extraction, small enough to fit in 14MB of disk space and run...
canonical: https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Needle 2: The 45M Parameter Model That Runs Everywhere | daily.dev
og:description: Needle 2 is a tiny 45-million-parameter agentic LLM specialized for tool calling and structured extraction, small enough to fit in 14MB of disk space and run...
og:url: https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81
og:image: https://api.daily.dev/og/posts/XkpFaIL81.png
og:image:alt: Needle 2: The 45M Parameter Model That Runs Everywhere
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Needle 2: The 45M Parameter Model That Runs Everywhere

**[NeuralNine](https://daily.dev/sources/neuralnine)** · 14 min read · 1 upvotes · 0 comments

## Summary

Needle 2 is a tiny 45-million-parameter agentic LLM specialized for tool calling and structured extraction, small enough to fit in 14MB of disk space and run on 28MB of RAM. The video demonstrates installing it via the cactus-needle Python package or a standalone binary, defining tools with a Python decorator or a tools.json file, and running it entirely locally on a computer. It then shows deploying the binary on an Android phone using Termux to control features like text-to-speech, vibration, battery status, and volume, all without internet access or API calls.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=0hgzLDHplYk>

## Questions this post answers

### What is Needle 2 and how small is it compared to other local LLMs?

Needle 2 is an open 45-million-parameter language model specialized for tool calling and structured extraction, designed to run on edge and mobile devices. It requires only 14MB of disk space for its full binary and 28MB of RAM to run, far smaller than typical small local models like a 0.5 billion parameter model or a 27 billion parameter model such as Qwen.

_Developers evaluating ultra-lightweight local models for tool calling can follow ongoing coverage of edge AI on daily.dev._

### How do I run a local LLM for tool calling on an Android phone without internet access?

Using Termux on Android, you can download the Needle 2 binary for the ARM64 architecture, make it executable, and pair it with a tools.json file describing available tools plus a Python script that routes tool calls to Termux's built-in APIs for text-to-speech, battery status, vibration, and volume control. The model runs fully offline with no API calls, deciding which tool to invoke based on the prompt and tool descriptions.

_Anyone building offline mobile AI agents can track practical edge-device tutorials like this on daily.dev._

### How do you define tools for the Needle 2 model without writing them directly in Python code?

Tools can be defined in a separate tools.json file listing each tool's name, description, and parameters, rather than using Python decorators in a script. The Needle binary reads this JSON to know what tools exist and their signatures, while a separate Python or shell script handles the actual execution logic when a tool call is decided, keeping tool definition and implementation decoupled.

_Developers structuring tool-calling agents for small models can find more workflow examples on daily.dev._

## Similar posts on daily.dev

- [Needle 2 - The 14 MB Agentic LLM for Tiny Devices](https://daily.dev/posts/needle-2---the-14-mb-agentic-llm-for-tiny-devices-eu1fgqsim) · Hacker News · 4 upvotes · 0 comments
- [A 29MB AI model is the most useful thing I've run on my Raspberry Pi 5, and it doesn't need an AI HAT](https://daily.dev/posts/a-29mb-ai-model-is-the-most-useful-thing-i-ve-run-on-my-raspberry-pi-5-and-it-doesn-t-need-an-ai-ha-x3o9l60dg) · XDA Developers · 9 upvotes · 0 comments
- [GitHub - cactus-compute/needle: 26m function call model that runs on incredibly small devices](https://daily.dev/posts/github---cactus-compute-needle-26m-function-call-model-that-runs-on-incredibly-small-devices-2dojpfpee) · Hacker News · 7 upvotes · 0 comments
- [The biggest local LLM on your machine is useless if it can't call a single tool, no matter how many parameters it has](https://daily.dev/posts/the-biggest-local-llm-on-your-machine-is-useless-if-it-can-t-call-a-single-tool-no-matter-how-many--uauiyyggz) · XDA Developers · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#llm](https://daily.dev/tags/llm), [#android](https://daily.dev/tags/android), [#local-ai](https://daily.dev/tags/local-ai)

[View this post on daily.dev](https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Needle 2: The 45M Parameter Model That Runs Everywhere","url":"https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81"},"datePublished":"2026-08-28T16:13:07.862Z","dateModified":"2026-09-14T09:14:36.641Z","description":"Needle 2 is a tiny 45-million-parameter agentic LLM specialized for tool calling and structured extraction, small enough to fit in 14MB of disk space and run...","image":"https://i.ytimg.com/vi/0hgzLDHplYk/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/0hgzLDHplYk/sddefault.jpg","isAccessibleForFree":true,"articleSection":"NeuralNine","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"NeuralNine","logo":"https://media.daily.dev/image/upload/s--bMYO07OB--/f_auto,q_auto/v1777800757/logos/neuralnine?_a=BAMAMiWQ0","url":"https://daily.dev/sources/neuralnine"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,llm,android,local-ai","timeRequired":"PT14M","video":{"@type":"VideoObject","name":"Needle 2: The 45M Parameter Model That Runs Everywhere","description":"Needle 2 is a tiny 45-million-parameter agentic LLM specialized for tool calling and structured extraction, small enough to fit in 14MB of disk space and run...","thumbnailUrl":"https://i.ytimg.com/vi/0hgzLDHplYk/sddefault.jpg","uploadDate":"2026-08-28T16:13:07.862Z","duration":"PT14M","url":"https://api.daily.dev/r/XkpFaIL81","embedUrl":"https://www.youtube.com/embed/0hgzLDHplYk"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"NeuralNine","item":"https://daily.dev/sources/neuralnine"},{"@type":"ListItem","position":3,"name":"Needle 2: The 45M Parameter Model That Runs Everywhere"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/needle-2-the-45m-parameter-model-that-runs-everywhere-xkpfail81#faq","mainEntity":[{"@type":"Question","name":"What is Needle 2 and how small is it compared to other local LLMs?","acceptedAnswer":{"@type":"Answer","text":"Needle 2 is an open 45-million-parameter language model specialized for tool calling and structured extraction, designed to run on edge and mobile devices. It requires only 14MB of disk space for its full binary and 28MB of RAM to run, far smaller than typical small local models like a 0.5 billion parameter model or a 27 billion parameter model such as Qwen. Developers evaluating ultra-lightweight local models for tool calling can follow ongoing coverage of edge AI on daily.dev."}},{"@type":"Question","name":"How do I run a local LLM for tool calling on an Android phone without internet access?","acceptedAnswer":{"@type":"Answer","text":"Using Termux on Android, you can download the Needle 2 binary for the ARM64 architecture, make it executable, and pair it with a tools.json file describing available tools plus a Python script that routes tool calls to Termux's built-in APIs for text-to-speech, battery status, vibration, and volume control. The model runs fully offline with no API calls, deciding which tool to invoke based on the prompt and tool descriptions. Anyone building offline mobile AI agents can track practical edge-device tutorials like this on daily.dev."}},{"@type":"Question","name":"How do you define tools for the Needle 2 model without writing them directly in Python code?","acceptedAnswer":{"@type":"Answer","text":"Tools can be defined in a separate tools.json file listing each tool's name, description, and parameters, rather than using Python decorators in a script. The Needle binary reads this JSON to know what tools exist and their signatures, while a separate Python or shell script handles the actual execution logic when a tool call is decided, keeping tool definition and implementation decoupled. Developers structuring tool-calling agents for small models can find more workflow examples on daily.dev."}}]}
```

