How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Atomic-Germ/MiniCPM5-2B-OpenNPU2")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Atomic-Germ/MiniCPM5-2B-OpenNPU2")
model = AutoModelForCausalLM.from_pretrained("Atomic-Germ/MiniCPM5-2B-OpenNPU2", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

MiniCPM5-2B-OpenNPU2-NPU2

OpenFlowLM Q4NX conversion of openbmb/MiniCPM5-2B for AMD XDNA NPU inference.

This repository contains a quantized Q4NX port of the model, compiled for the OpenFlowLM (OFLM) runtime. It is not a GGUF file.

Item Value
Source model openbmb/MiniCPM5-2B
Source GGUF MiniCPM5-2B.i1-Q4_1.gguf
Weights model.q4nx (1.81 GB)
Modality language
OFLM version 0.1.0
Converted 2026-09-14

Install and run

This repository works with oflm-add, a small installer that copies the model into the OpenFlowLM user directory and registers the tag. It never modifies the system OpenFlowLM install.

pip install oflm-add or uv tool install oflm-add

uv tool install oflm-add
oflm-add Atomic-Germ/MiniCPM5-2B-OpenNPU2-NPU2 --family qwen3.5 --xclbin-from MiniCPM5-2B-OpenNPU2-NPU2
OFLM_CONFIG_PATH="$HOME/.config/oflm/model_list.json" OFLM_XCLBIN_PATH="$HOME/.config/oflm" oflm run MiniCPM5-2B-OpenNPU2-NPU2

Files

File Description
model.q4nx Quantized weights (Q8_0 / Q4_1 / BF16)
config.json OFLM runtime configuration
tokenizer.json Tokenizer vocabulary
tokenizer_config.json Tokenizer configuration
chat_template.jinja Chat template

Source model card

See the original model card: openbmb/MiniCPM5-2B

Downloads last month
709
GGUF
Model size
3B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Atomic-Germ/MiniCPM5-2B-OpenNPU2

Quantized
(145)
this model