Views
No views yet
1optimum-cli export openvino -m openbmb/MiniCPM5-1B \
2 --task text-generation-with-past --weight-format int4 --trust-remote-code \
3 MiniCPM5-1B-int4-g128-ovenable_thinking=False is passed — a kwarg OpenVINO GenAI cannot pass. GenAI also
reads the template from openvino_tokenizer.xml rt_info, not from chat_template.jinja.
This repo ships the rt_info template patched to always emit the no-think prefix
(<think>\n\n</think>\n\n after the assistant header) — matching the model card's recommended
non-thinking usage."reasoning_effort": "high" or "enable_thinking": true in the request body; the
reasoning streams back separately as reasoning_content).pipe.get_tokenizer().set_chat_template(...) — replace the <think>\n\n</think>\n\n
prefix with <think>\n for thinking mode (verified to propagate to subsequent generates).add_generation_prompt block of the rt_info
chat_template in openvino_tokenizer.xml.1import openvino_genai as ov_genai
2
3pipe = ov_genai.LLMPipeline("MiniCPM5-1B-int4-g128-ov", "GPU", CACHE_DIR="./.ovcache")
4print(pipe.generate("Rewrite with type hints:\n```python\ndef add(a, b):\n return a + b\n```",
5 max_new_tokens=128))openbmb/MiniCPM5-1B (OpenBMB, Apache-2.0, released 2026-05)