anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
A small English and Chinese instruction tuned language model of about 300M parameters, designed with the MNN stack for running on phones and tablets. Suits developers building on-device assistants.
MNN-Pocket-0.3B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download taobao-mnn/MNN-Pocket-0.3B
MNN-Pocket-0.3B comes from taobao-mnn and is the build of its MNN-Pocket family that is tuned to follow instructions in general use. The family is designed together with the MNN inference stack for running on devices. It has about 300M parameters, works in English and Chinese, and handles up to 32K tokens of context. The INT4 MNN build takes 173 MB.
Developers of on-device assistants, data extraction and light agent pipelines. The card does not recommend it for reasoning heavy work such as advanced maths or long code generation.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Mobile apps | App developers | Run an assistant on the phone or tablet itself | Reply to a short chat message on the device |
| Software | Data teams | Pull details out of short texts | Extract a name and a date from a message |
| Edge computing | Embedded teams | Use a small model inside a light agent pipeline | Route a request to the right tool |
| Research | Model tinkerers | Start from the Base build and fine tune it | Adapt it to a narrow task |
Skip it if you need strong reasoning, long code or advanced maths, since the card says small models fall short there.
| Use case | Who | What they get back |
|---|---|---|
| On-device assistant | App teams | Chat replies produced on the device |
| Data extraction | Developers | Short structured details pulled from text |
| Quick decisions | Developers | Fast answers from the Dec build, which answers each question in one forward pass |
pip install -U huggingface_hub hf download taobao-mnn/MNN-Pocket-0.3B
The model uses a ChatML style conversation format. The template ships in the repository as chat_template.jinja, and the card prefers apply_chat_template so the format stays right.
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("taobao-mnn/MNN-Pocket-0.3B")
text = tok.apply_chat_template(
[{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}],
add_generation_prompt=True, tokenize=False)| Tool | What it does |
|---|---|
| apply_chat_template | Builds the prompt in the model's chat format from your messages |
| chat_template.jinja | The template file that ships in the repository |
| llmexport | Exports the safetensors files to other precisions for MNN |
| hf download | Copies the repository files to your computer |
Run the snippet with the system message and the greeting shown. It returns the prompt text with the start and end markers around each turn, ready to pass to the model, which then writes the assistant reply.
If you are new to this, run the snippet above and print the text to see how a chat is laid out for the model. Then pass it to the model in your own code.
If you know the field, the model has 28 layers, a hidden size of 896 and grouped query attention with 14 heads and 2 key value heads. Embeddings are tied, the vocabulary has 65,536 entries and the INT4 build uses W4A16 quantization aware training.
A small English and Chinese instruction tuned language model of about 300M parameters, designed with the MNN stack for running on phones and tablets. Suits developers building on-device assistants.
Made by taobao-mnn on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: MNN-Pocket-0.3B comes from taobao-mnn and is the build of its MNN-Pocket family that is tuned to follow instructions in general use. The family is designed together with the MNN inference stack for running on devices. It has about 300M parameters, works in English and Chinese, and handles up to 32K tokens of context. The INT4 MNN build takes 173 MB.
Who it suits: Developers of on-device assistants, data extraction and light agent pipelines. The card does not recommend it for reasoning heavy work such as advanced maths or long code generation.
Industry | Who uses it | How they use it | Example
Mobile apps | App developers | Run an assistant on the phone or tablet itself | Reply to a short chat message on the device
Software | Data teams | Pull details out of short texts | Extract a name and a date from a message
Edge computing | Embedded teams | Use a small model inside a light agent pipeline | Route a request to the right tool
Research | Model tinkerers | Start from the Base build and fine tune it | Adapt it to a narrow task
Skip it if you need strong reasoning, long code or advanced maths, since the card says small models fall short there.
Where to use it:
Use case | Who | What they get back
On-device assistant | App teams | Chat replies produced on the device
Data extraction | Developers | Short structured details pulled from text
Quick decisions | Developers | Fast answers from the Dec build, which answers each question in one forward pass
How to set it up:
pip install -U huggingface_hub
hf download taobao-mnn/MNN-Pocket-0.3B
How to use it: The model uses a ChatML style conversation format. The template ships in the repository as chat_template.jinja, and the card prefers apply_chat_template so the format stays right.
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("taobao-mnn/MNN-Pocket-0.3B")
text = tok.apply_chat_template(
[{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}],
add_generation_prompt=True, tokenize=False)
Tool | What it does
apply_chat_template | Builds the prompt in the model's chat format from your messages
chat_template.jinja | The template file that ships in the repository
llmexport | Exports the safetensors files to other precisions for MNN
hf download | Copies the repository files to your computer
Example: Run the snippet with the system message and the greeting shown. It returns the prompt text with the start and end markers around each turn, ready to pass to the model, which then writes the assistant reply.
For newcomers and experts: If you are new to this, run the snippet above and print the text to see how a chat is laid out for the model. Then pass it to the model in your own code.
If you know the field, the model has 28 layers, a hidden size of 896 and grouped query attention with 14 heads and 2 key value heads. Embeddings are tied, the vocabulary has 65,536 entries and the INT4 build uses W4A16 quantization aware training.
You write chat messages
The chat template formats the prompt
The 0.3B model generates a reply
Your app shows or uses the reply
Title: Decode speed on iPad Pro M5 with Metal
Best case reported: 466 tokens/s
Real time target: 200 tokens/s
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download taobao-mnn/MNN-Pocket-0.3B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| MNN-Pocket-0.3B This page | 3,397 | 197 | 362M | apache-2.0 | |
| MNN-Pocket-0.3B-MNNShares int4 · mnn-pocket · on-device | 1,303 | 6 | — | apache-2.0 | |
| MNN-Pocket-0.3B-BaseShares mnn-pocket · on-device · qwen3 | 500 | 3 | 362M | apache-2.0 | |
| MNN-Pocket-0.3B-GGUFShares mnn-pocket · on-device · text-generation | 12,467 | 20 | 362M | apache-2.0 | |
| MNN-Pocket-0.3B-DecShares mnn-pocket · on-device · safetensors | 0 | 4 | — | apache-2.0 | |
| BotPsy-0.8BShares edge · on-device · transformers | 215 | 14 | 853M | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.