MNN-Pocket-0.3B
Collection
MNN-Pocket-0.3B • 8 items • Updated • 7
English | 中文
The pre-trained base checkpoint of MNN-Pocket-0.3B, a ~300M-parameter compact LLM co-designed with the MNN inference stack for on-device deployment. It is the starting point for continued pre-training and fine-tuning; for chat / assistant use take the instruction-tuned MNN-Pocket-0.3B instead.
Find more details in the original model card: https://huggingface.co/taobao-mnn/MNN-Pocket-0.3B
iPhone 18 Pro Demo
| Property | Value |
|---|---|
| Checkpoint | Pre-trained base (no instruction tuning) |
| Parameters | ~300M |
| Architecture | Decoder-only transformer, 28 layers |
| Hidden size | 896 |
| Attention | 14 heads, GQA with 2 KV heads, head_dim 64 |
| FFN intermediate | 2560 (SiLU) |
| Context Length | 32K (40,960 position embeddings) |
| Vocabulary | 65,536 |
| Embeddings | tied input/output |
| Precision | bfloat16 |
| Languages | Chinese, English |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "taobao-mnn/MNN-Pocket-0.3B-Base"
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", dtype="bfloat16")
tokenizer = AutoTokenizer.from_pretrained(model_id)
# base checkpoint: plain text completion, no chat formatting
For fine-tuning, see the Fine-Tuning section of the main model card.
Apache License 2.0. See LICENSE.txt.