Downloads · 30 days
82
25% of all-time downloads
skjortan/MiniCPM5-1B-ONNX
MiniCPM5-1B-ONNX is a text generation model from skjortan. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as apache-2.0.
openbmb/MiniCPM5-1B exported to ONNX for in-browser inference with transformers.js on WebGPU.
Downloads · 30 days
82
25% of all-time downloads
All-time downloads
331
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx2.3 GB · 100%
From the Hugging Face model README
openbmb/MiniCPM5-1B exported to ONNX for in-browser inference with transformers.js on WebGPU.
onnx/model_q4f16.onnx — 4-bit MatMuls + fp16 (888 MB), ~30 tok/s on WebGPU. Use dtype: "q4f16".import { AutoTokenizer, AutoModelForCausalLM } from "@huggingface/transformers";
const tokenizer = await AutoTokenizer.from_pretrained("skjortan/MiniCPM5-1B-ONNX");
const model = await AutoModelForCausalLM.from_pretrained("skjortan/MiniCPM5-1B-ONNX",
{ device: "webgpu", dtype: "q4f16" });
Exported with optimum-cli export onnx --task text-generation-with-past, quantized with
onnxruntime MatMulNBitsQuantizer (block 32) and converted to fp16 after layernorm fusion.
Chat template (with enable_thinking switch and native XML tool calling) is inlined in
tokenizer_config.json. KV cache I/O is fp32 (transformers_js_config.kv_cache_dtype).
Built for local-web-llm-bot — a fully in-browser voice assistant (VAD + STT + LLM + TTS, all ONNX on WebGPU).