Views
No views yet
.litertlm files for the LiteRT-LM runtime.| File | Context cache | Quantization | Backend target | Status |
|---|---|---|---|---|
MiniCPM5-1B.litertlm | 4096 | dynamic_wi8_afp32 | CPU/GPU | Host CPU smoke-tested. |
MiniCPM5-1B-c32k.litertlm | 32768 | dynamic_wi8_afp32 | CPU/GPU | Long-context export (32k cache). Host-packaged with mobile template. |
MiniCPM5-1B-c64k.litertlm | 65536 | dynamic_wi8_afp32 | CPU/GPU | Long-context export (64k cache). Host-packaged with mobile template. |
MiniCPM5-1B-web.litertlm | 2048 | dynamic_wi8_afp32 | CPU/GPU | Host CPU, Android CPU/GPU, and Android emulator seven-turn chat smoke-tested. |
MiniCPM5-1B-qualcomm-sm8750.litertlm | 2048 | dynamic_wi8_afp32 | Qualcomm SM8750 NPU AOT | Generated and loaded by the NPU runtime, but not inference-passing on the stock Redmagic shell because QNN cannot reserve the required PD memory. |
MiniCPM5-1B-qualcomm-sm8750-c1024.litertlm | 1024 | dynamic_wi8_afp32 | Qualcomm SM8750 NPU AOT | Reduced-cache AOT attempt. Also loads, but still fails QNN context creation from stock shell. |
chat_template.jinja | n/a | n/a | n/a | Mobile-safe ChatML template. Replaces the source template's Python string methods that fail in Android LiteRT-LM template evaluation. |
conversion_manifest.json | n/a | n/a | n/a | Toolchain versions, hashes, and conversion details. |
.litertlm files include a compressed Hugging Face tokenizer, LLM
metadata, a quantized prefill/decode TFLite model, and a quantized external
embedder. The Qualcomm files replace the prefill/decode model with an SM8750
AOT-compiled NPU model and keep the same external embedder packaging..litertlm containers with a minimal
mobile-compatible ChatML template embedded in LLM metadata. This fixes Android
template failures such as unknown method: string has no method named strip.uv tool install litert-lm1litert-lm run \
2 --from-huggingface-repo Tdamre/MiniCPM5-1B-litert-lm \
3 MiniCPM5-1B.litertlm \
4 --backend=cpu \
5 --prompt="What is 2+2?"1litert-lm run \
2 --from-huggingface-repo Tdamre/MiniCPM5-1B-litert-lm \
3 MiniCPM5-1B-web.litertlm \
4 --backend=cpu \
5 --prompt="What is 2+2?"1litert-lm run \
2 --from-huggingface-repo Tdamre/MiniCPM5-1B-litert-lm \
3 MiniCPM5-1B-c32k.litertlm \
4 --backend=cpu \
5 --prompt="What is 2+2?"1litert-lm run \
2 --from-huggingface-repo Tdamre/MiniCPM5-1B-litert-lm \
3 MiniCPM5-1B-c64k.litertlm \
4 --backend=cpu \
5 --prompt="What is 2+2?"1Nubia Redmagic 10 Pro / NX789J
2Android 16, API 36
3SoC: Qualcomm SM8750
4GPU: Adreno 830
5ABI: arm64-v8a1LiteRT-LM v0.12.0 source build
2Bazel 7.6.1 via Bazelisk
3Android NDK r28b
4Target: //runtime/engine:litert_lm_main --config=android_arm64What is 2+2? Answer with just the number.| Artifact | Backend | Result | Notes |
|---|---|---|---|
MiniCPM5-1B-web.litertlm | Android CPU/XNNPACK | Returned 4. | Init 1877.13 ms, TTFT 0.38 s, prefill 61.13 tok/s, decode 50.77 tok/s. |
MiniCPM5-1B-web.litertlm | Android GPU/OpenCL | Returned 4. | LiteRT GPU loaded, all model subgraphs delegated to LITERT_CL. Init 8485.10 ms, TTFT 0.18 s, prefill 143.54 tok/s, decode 44.03 tok/s. |
MiniCPM5-1B-web.litertlm | Android emulator API 35 CPU/XNNPACK | Returned final 6 for reggin. | x86_64 LiteRT-LM Android runner, Pixel-style emulator, repaired embedded template. |
MiniCPM5-1B-web.litertlm | Android emulator API 35 CPU/XNNPACK | Seven-turn chat completed. | Same Conversation instance; final turn confirmed BLUE-IRIS and 17, and the reggin turn returned 6. |
MiniCPM5-1B-qualcomm-sm8750.litertlm | Qualcomm NPU/Dispatch/QNN | Not inference-passing. | Dispatch and QNN load, V79 HTP skel is selected, context binaries match QNN SDK 2.44.0, then QNN fails context creation with context-size estimate 9260401152 bytes. |
MiniCPM5-1B-qualcomm-sm8750-c1024.litertlm | Qualcomm NPU/Dispatch/QNN | Not inference-passing. | Reduced-cache variant lowers the context-size estimate to 5909219840 bytes, but QNN still reports no available PD for context creation. |
openbmb/MiniCPM5-1B@4e9de7a0778dc1c362e983e6858f0e77542cbdca1litert-torch export_hf \
2 model-cache/openbmb-MiniCPM5-1B \
3 <output_dir> \
4 --keep_temporary_files=True \
5 --prefill_lengths=128,1024 \
6 --cache_length=<2048-or-4096-or-32768-or-65536> \
7 --externalize_embedder=True \
8 --quantization_recipe=dynamic_wi8_afp32ai_edge_litert.aot targeting
SocManufacturer.QUALCOMM and SocModel.SM8750, then repackaged the compiled
TFLite model into the .litertlm container with backend_constraint=npu.1Python 3.12.12
2litert-torch 0.9.1
3litert-lm 0.12.0
4ai-edge-litert 2.1.5
5ai-edge-litert-sdk-qualcomm 2.1.5
6ai-edge-quantizer 0.7.0
7torch 2.12.0+cu130
8transformers 5.9.0
9QNN SDK/runtime 2.44.0 from the Qualcomm LiteRT SDK wheel.task was not uploaded. The current MediaPipe GenAI bundler
documents SentencePiece tokenizer.model support, while MiniCPM5-1B ships an HF
tokenizer.json and no tokenizer.model; uploading an unverified .task would
be misleading.