Instructions to use litert-community/MiniCPM5-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/MiniCPM5-2B 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
Card: correctness, thinking control, conversion notes and manifest for the recommended files
#3
by mlboydaisuke - opened
Thanks for pulling the two CPU+GPU files into this repo and for the card update β this adds the details behind them, as asked in the Space thread.
What the PR adds to the README, keeping your structure and the OpenBMB sections as they are:
- Correctness β the 8-question gate on CPU and GPU (Mac, Galaxy S26 with full OpenCL delegation, iPhone 17 Pro), GSM8K n=100 with thinking off against the bf16 reference (92 / int8 91 / int4 86β87), and the thinking-mode caveat: int4's reasoning chains run ~4Γ longer than int8's and hit the budget; int8 is the file when the reasoning has to finish.
- Controlling thinking β the model thinks by default; how
enable_thinkingreaches the template (ThinkingConfig / extra context / CLI flags), the output budget it needs, and the sampling OpenBMB recommends. - Conversion notes β what makes these files run on both backends: the checkpoint's
chat_template.jinjaembedded verbatim with the thought channel declared; the int4 zero-scale fix (13 all-zero rows in layer 0's MLP β XNNPACK refuses scale 0, the GPU does not); the int8 file'sprefer_activation_type = "fp32"declaration (fp16 GPU activations let one gate question run 2000+ tokens without closing</think>). Tool versions and the reproduction command. - License β Changes from the original work β the Apache-2.0 attribution line for the converted files.
litertlm_manifest.jsonβ sha256, sizes, sections, verified backends and the measured rows for the two recommended files, for tooling that picks a file per device (same schema as the other litert-community LLM cards that carry one).
Two small edits to existing text: "compatable" β "compatible", and a GPU example line under Try It. Nothing changes in the model files or in the OpenBMB sections. If a different length or shape fits the org's cards better, tell me once and I'll rework it.
Yoursmiling changed pull request status to merged