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…
Runs a 0.3B Chinese and English chat model on phones and edge devices through the MNN runtime, as a 4-bit build of about 173 MB. For developers adding on-device assistants to mobile apps.
MNN-Pocket-0.3B-MNN 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
This is the MNN-format export of MNN-Pocket-0.3B, a chat model with about 300M parameters that reads and writes Chinese and English. It is built to run on a phone or an edge device instead of a server. The build holds 4-bit weights trained with quantization in mind, and the whole package weighs about 173 MB.
It suits mobile and embedded developers who want a small language model inside an app, with no server in the loop.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Mobile apps | Android and iOS developers | Add a small chat model that works without a server | An assistant that lives inside an app |
| Edge devices | Embedded engineers | Run text generation on hardware with little memory | Running the demo program on a CPU backend |
| Data handling | App developers | Pull fields out of text on the device | Extracting details from a short message |
| Research | Inference engineers | Study how a 4-bit, 300M model behaves on phone chips | Reading the card's speed and score results |
If you need strong math or long code reasoning, you can skip it, since the card says it is not the right fit.
| Use case | Who | What they get back |
|---|---|---|
| On-device assistant | App developers | Chat replies generated on the phone |
| Data extraction | Developers | Fields pulled out of text without a network call |
| Small agent pipelines | Agent builders | Light model steps that run locally |
pip install -U huggingface_hub hf download taobao-mnn/MNN-Pocket-0.3B-MNN
cd MNN mkdir build && cd build cmake .. -DMNN_LOW_MEMORY=true -DMNN_BUILD_LLM=true -DMNN_SUPPORT_TRANSFORMER_FUSE=true make -j
Write your prompt into a text file and run the demo program with the path to config.json. Settings live in config.json, so changing them needs no new export. A default build leaves the GPU backends off, so add -DMNN_METAL=ON or -DMNN_OPENCL=ON to the cmake line when you want one. The card recommends a temperature of 0.8, top_p of 0.8 and top_k of 20.
./llm_demo /path/to/MNN-Pocket-0.3B-MNN/config.json prompt.txt
| Tool | What it does |
|---|---|
| llm.mnn | Holds the compute graph |
| llm.mnn.weight | Holds the INT4 weights |
| llm_config.json | Holds the model layout and the ChatML-style chat template |
| tokenizer.mtok | Holds the MNN tokenizer |
| config.json | Sets the backend, thread count, precision, memory mode and sampler |
You write a question into prompt.txt and run llm_demo against config.json. The demo program then generates a reply with the model. The card does not show the output, so expect it in your terminal.
This model is small enough to run on a phone. MNN is the runtime that loads and runs these files. A good first try is to build the demo on a computer and run one short prompt before touching a mobile app.
Under the hood, it is a decoder-only transformer with 28 layers, a hidden size of 896 and 14 attention heads that share 2 key-value heads. The vocabulary has 65,536 entries, input and output embeddings are tied, and the context reaches 32K. The INT4 weights use a group size of 64.
Runs a 0.3B Chinese and English chat model on phones and edge devices through the MNN runtime, as a 4-bit build of about 173 MB. For developers adding on-device assistants to mobile apps.
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: This is the MNN-format export of MNN-Pocket-0.3B, a chat model with about 300M parameters that reads and writes Chinese and English. It is built to run on a phone or an edge device instead of a server. The build holds 4-bit weights trained with quantization in mind, and the whole package weighs about 173 MB.
Who it suits: It suits mobile and embedded developers who want a small language model inside an app, with no server in the loop.
Industry | Who uses it | How they use it | Example
Mobile apps | Android and iOS developers | Add a small chat model that works without a server | An assistant that lives inside an app
Edge devices | Embedded engineers | Run text generation on hardware with little memory | Running the demo program on a CPU backend
Data handling | App developers | Pull fields out of text on the device | Extracting details from a short message
Research | Inference engineers | Study how a 4-bit, 300M model behaves on phone chips | Reading the card's speed and score results
If you need strong math or long code reasoning, you can skip it, since the card says it is not the right fit.
Where to use it:
Use case | Who | What they get back
On-device assistant | App developers | Chat replies generated on the phone
Data extraction | Developers | Fields pulled out of text without a network call
Small agent pipelines | Agent builders | Light model steps that run locally
How to set it up:
pip install -U huggingface_hub
hf download taobao-mnn/MNN-Pocket-0.3B-MNN
cd MNN
mkdir build && cd build
cmake .. -DMNN_LOW_MEMORY=true -DMNN_BUILD_LLM=true -DMNN_SUPPORT_TRANSFORMER_FUSE=true
make -j
How to use it: Write your prompt into a text file and run the demo program with the path to config.json. Settings live in config.json, so changing them needs no new export. A default build leaves the GPU backends off, so add -DMNN_METAL=ON or -DMNN_OPENCL=ON to the cmake line when you want one. The card recommends a temperature of 0.8, top_p of 0.8 and top_k of 20.
./llm_demo /path/to/MNN-Pocket-0.3B-MNN/config.json prompt.txt
Tool | What it does
llm.mnn | Holds the compute graph
llm.mnn.weight | Holds the INT4 weights
llm_config.json | Holds the model layout and the ChatML-style chat template
tokenizer.mtok | Holds the MNN tokenizer
config.json | Sets the backend, thread count, precision, memory mode and sampler
Example: You write a question into prompt.txt and run llm_demo against config.json. The demo program then generates a reply with the model. The card does not show the output, so expect it in your terminal.
For newcomers and experts: This model is small enough to run on a phone. MNN is the runtime that loads and runs these files. A good first try is to build the demo on a computer and run one short prompt before touching a mobile app.
Under the hood, it is a decoder-only transformer with 28 layers, a hidden size of 896 and 14 attention heads that share 2 key-value heads. The vocabulary has 65,536 entries, input and output embeddings are tied, and the context reaches 32K. The INT4 weights use a group size of 64.
Prompt in a text file
MNN runtime reads config.json
INT4 model runs on CPU, Metal or OpenCL
Reply text comes out
Good to know:
Title: Decode speed at 512-token context, INT4
iPad Pro M5 on Metal: 466 tok/s
Snapdragon 8 Gen 5 on CPU: 251 tok/s
Title: Average score on the 11-benchmark suite
BF16: 50.00 points
INT4: 49.59 points
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download taobao-mnn/MNN-Pocket-0.3B-MNN
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 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-MNN This page | 1,303 | 6 | — | apache-2.0 | |
| MNN-Pocket-0.3BShares int4 · mnn-pocket · on-device | 3,397 | 197 | 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-BaseShares mnn-pocket · on-device · text-generation | 500 | 3 | 362M | apache-2.0 | |
| MNN-Pocket-0.3B-DecShares mnn-pocket · on-device | 0 | 4 | — | apache-2.0 | |
| Flint INT4Shares int4 · text-generation | 22,586 | 30 | — | apache-2.0 |
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.