Instructions to use litert-community/MiniCPM5-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/MiniCPM5-1B with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,76 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- zh
|
| 6 |
+
base_model:
|
| 7 |
+
- openbmb/MiniCPM5-1B
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
library_name: litert
|
| 10 |
+
tags:
|
| 11 |
+
- minicpm
|
| 12 |
+
- minicpm5
|
| 13 |
+
- litert
|
| 14 |
+
- tflite
|
| 15 |
+
- on-device
|
| 16 |
+
- edge-ai
|
| 17 |
+
- upcoming
|
| 18 |
---
|
| 19 |
+
|
| 20 |
+
# MiniCPM5-1B (LiteRT)
|
| 21 |
+
|
| 22 |
+
> β³ **Upcoming** β The LiteRT (`.tflite`) build of MiniCPM5-1B is on the way.
|
| 23 |
+
> Model weights are not available in this repository **yet**. Please **follow** this repo to be notified when they land.
|
| 24 |
+
|
| 25 |
+
This repository will host the [**LiteRT**](https://ai.google.dev/edge/litert) (formerly TensorFlow Lite) version of **MiniCPM5-1B**, optimized for fully on-device inference on mobile and edge hardware.
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## What is MiniCPM?
|
| 30 |
+
|
| 31 |
+
**MiniCPM5-1B** is the first model in the **MiniCPM5** series from [OpenBMB](https://huggingface.co/openbmb). It is a dense **1B-parameter** Transformer built specifically for **on-device, local, and resource-constrained deployment**, while reaching **1B-class open-source SOTA** in its size class.
|
| 32 |
+
|
| 33 |
+
### Highlights
|
| 34 |
+
|
| 35 |
+
- π **1B-class open-source SOTA** β strongest in tool use, code generation, and difficult reasoning among comparable open models.
|
| 36 |
+
- π§ **Hybrid Reasoning** β a single checkpoint serves as both a fast assistant and a deliberate reasoner via a built-in `<think>` template (`enable_thinking`).
|
| 37 |
+
- π **Long context** β native **131,072**-token context length.
|
| 38 |
+
- π± **Built for the edge** β compact footprint designed for local assistants, coding agents, and tool-use workflows.
|
| 39 |
+
|
| 40 |
+
### Model Information
|
| 41 |
+
|
| 42 |
+
| Item | Value |
|
| 43 |
+
| --- | --- |
|
| 44 |
+
| Type | Causal Language Model |
|
| 45 |
+
| Architecture | Standard `LlamaForCausalLM` |
|
| 46 |
+
| Parameters | 1,080,632,832 (~1B) |
|
| 47 |
+
| Non-Embedding Parameters | 679,552,512 |
|
| 48 |
+
| Layers | 24 |
|
| 49 |
+
| Attention Heads (GQA) | 16 (Q) / 2 (KV) |
|
| 50 |
+
| Context Length | 131,072 |
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## Links
|
| 55 |
+
|
| 56 |
+
- π€ Original model (BF16): [openbmb/MiniCPM5-1B](https://huggingface.co/openbmb/MiniCPM5-1B)
|
| 57 |
+
- π¦ GitHub: [OpenBMB/MiniCPM](https://github.com/OpenBMB/MiniCPM)
|
| 58 |
+
- π οΈ LiteRT docs: [ai.google.dev/edge/litert](https://ai.google.dev/edge/litert)
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## License
|
| 63 |
+
|
| 64 |
+
Released under the **Apache-2.0 License**, consistent with the upstream [openbmb/MiniCPM5-1B](https://huggingface.co/openbmb/MiniCPM5-1B).
|
| 65 |
+
|
| 66 |
+
## Citation
|
| 67 |
+
|
| 68 |
+
```bibtex
|
| 69 |
+
@article{minicpm4,
|
| 70 |
+
title={MiniCPM4: Ultra-efficient LLMs on end devices},
|
| 71 |
+
author={MiniCPM, Team},
|
| 72 |
+
journal={arXiv preprint arXiv:2506.07900},
|
| 73 |
+
year={2025}
|
| 74 |
+
}
|
| 75 |
+
```
|
| 76 |
+
|