Instructions to use mlboydaisuke/MiniCPM5-2B-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use mlboydaisuke/MiniCPM5-2B-LiteRT with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=mlboydaisuke/MiniCPM5-2B-LiteRT \ --prompt="Write me a poem"
- LiteRT
How to use mlboydaisuke/MiniCPM5-2B-LiteRT 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
Chat template: accept the 0.18 content-parts form (string form unchanged); weights, tokenizer and executor metadata byte-identical
Browse files- MiniCPM5-2B_int4.litertlm +1 -1
- MiniCPM5-2B_int8.litertlm +1 -1
- README.md +2 -0
- litertlm_manifest.json +5 -5
MiniCPM5-2B_int4.litertlm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1553670064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6caaa7622f8d382a0d7bc18762c58ff37b8fe076d04916ded2f75d5ffd00b7c9
|
| 3 |
size 1553670064
|
MiniCPM5-2B_int8.litertlm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2603278256
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0e972ab52fbab3ecfaeaffed00e4a47415620b71f3f53a80249b0dda19142a2
|
| 3 |
size 2603278256
|
README.md
CHANGED
|
@@ -26,6 +26,8 @@ MiniCPM5-2B is OpenBMB's 2.5B-parameter dense **hybrid-reasoning** model (42 lay
|
|
| 26 |
| `MiniCPM5-2B_int4.litertlm` | int4 blockwise-32 + OCTAV on linears, int8 embedding | 1.55 GB |
|
| 27 |
| `MiniCPM5-2B_int8.litertlm` | int8 dynamic on linears + embedding; **fp32 activations declared** (see notes) | 2.60 GB |
|
| 28 |
|
|
|
|
|
|
|
| 29 |
The **int4 file is the phone file** (smaller, fastest GPU decode on every platform measured) — best used for direct answers or short reasoning; see the thinking-mode note below. **int8 is the file for reasoning that has to complete**: its thinking chains are ~3–4× shorter than int4's on the same questions and terminate where int4 runs into the token budget. int8's main weight section is 2.33 GB, above the single-section mmap ceiling of default-entitlement iOS apps, so it is a desktop / Android build.
|
| 30 |
|
| 31 |
## Correctness
|
|
|
|
| 26 |
| `MiniCPM5-2B_int4.litertlm` | int4 blockwise-32 + OCTAV on linears, int8 embedding | 1.55 GB |
|
| 27 |
| `MiniCPM5-2B_int8.litertlm` | int8 dynamic on linears + embedding; **fp32 activations declared** (see notes) | 2.60 GB |
|
| 28 |
|
| 29 |
+
2026-09-21: chat template updated to accept the 0.18 content-parts form (string form unchanged); weights, tokenizer and executor metadata byte-identical.
|
| 30 |
+
|
| 31 |
The **int4 file is the phone file** (smaller, fastest GPU decode on every platform measured) — best used for direct answers or short reasoning; see the thinking-mode note below. **int8 is the file for reasoning that has to complete**: its thinking chains are ~3–4× shorter than int4's on the same questions and terminate where int4 runs into the token budget. int8's main weight section is 2.33 GB, above the single-section mmap ceiling of default-entitlement iOS apps, so it is a desktop / Android build.
|
| 32 |
|
| 33 |
## Correctness
|
litertlm_manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"manifest_schema": "0.1.2",
|
| 3 |
"repo": "mlboydaisuke/MiniCPM5-2B-LiteRT",
|
| 4 |
-
"generated": "2026-09-
|
| 5 |
"generator": "make_manifest.py",
|
| 6 |
"model": {
|
| 7 |
"display_name": "MiniCPM5-2B",
|
|
@@ -32,12 +32,12 @@
|
|
| 32 |
"variants": [
|
| 33 |
{
|
| 34 |
"file": "MiniCPM5-2B_int4.litertlm",
|
| 35 |
-
"sha256": "
|
| 36 |
"size_bytes": 1553670064,
|
| 37 |
"sections": [
|
| 38 |
{
|
| 39 |
"type": "LlmMetadataProto",
|
| 40 |
-
"size_bytes":
|
| 41 |
},
|
| 42 |
{
|
| 43 |
"type": "HF_Tokenizer_Zlib",
|
|
@@ -162,12 +162,12 @@
|
|
| 162 |
},
|
| 163 |
{
|
| 164 |
"file": "MiniCPM5-2B_int8.litertlm",
|
| 165 |
-
"sha256": "
|
| 166 |
"size_bytes": 2603278256,
|
| 167 |
"sections": [
|
| 168 |
{
|
| 169 |
"type": "LlmMetadataProto",
|
| 170 |
-
"size_bytes":
|
| 171 |
},
|
| 172 |
{
|
| 173 |
"type": "HF_Tokenizer_Zlib",
|
|
|
|
| 1 |
{
|
| 2 |
"manifest_schema": "0.1.2",
|
| 3 |
"repo": "mlboydaisuke/MiniCPM5-2B-LiteRT",
|
| 4 |
+
"generated": "2026-09-22",
|
| 5 |
"generator": "make_manifest.py",
|
| 6 |
"model": {
|
| 7 |
"display_name": "MiniCPM5-2B",
|
|
|
|
| 32 |
"variants": [
|
| 33 |
{
|
| 34 |
"file": "MiniCPM5-2B_int4.litertlm",
|
| 35 |
+
"sha256": "6caaa7622f8d382a0d7bc18762c58ff37b8fe076d04916ded2f75d5ffd00b7c9",
|
| 36 |
"size_bytes": 1553670064,
|
| 37 |
"sections": [
|
| 38 |
{
|
| 39 |
"type": "LlmMetadataProto",
|
| 40 |
+
"size_bytes": 9857
|
| 41 |
},
|
| 42 |
{
|
| 43 |
"type": "HF_Tokenizer_Zlib",
|
|
|
|
| 162 |
},
|
| 163 |
{
|
| 164 |
"file": "MiniCPM5-2B_int8.litertlm",
|
| 165 |
+
"sha256": "b0e972ab52fbab3ecfaeaffed00e4a47415620b71f3f53a80249b0dda19142a2",
|
| 166 |
"size_bytes": 2603278256,
|
| 167 |
"sections": [
|
| 168 |
{
|
| 169 |
"type": "LlmMetadataProto",
|
| 170 |
+
"size_bytes": 9857
|
| 171 |
},
|
| 172 |
{
|
| 173 |
"type": "HF_Tokenizer_Zlib",
|