Downloads · 30 days
42
46% of all-time downloads
yunfengwang/MiniCPM5-2B-MNN-4bit
MiniCPM5-2B-MNN-4bit is a text generation model from yunfengwang. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
openbmb/MiniCPM5-2B 转换并量化为 MNN 4bit(weight-only,quantbit=4,quantblock=128,对称量化),用于端侧 / Apple Silicon Metal 推理。架构为标准 LlamaForCausalLM。
Downloads · 30 days
42
46% of all-time downloads
All-time downloads
92
Public
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.weight1.2 GB · 68%
From the Hugging Face model README
openbmb/MiniCPM5-2B 转换并量化为 MNN 4bit(weight-only,quant_bit=4,quant_block=128,对称量化),用于端侧 / Apple Silicon Metal 推理。架构为标准 LlamaForCausalLM。
| 文件 | 说明 |
|---|---|
llm.mnn | 计算图 |
llm.mnn.weight | 4bit 量化权重(~1.16 GB) |
embeddings_bf16.bin | bf16 词嵌入(~535 MB) |
tokenizer.mtok | 分词器 |
config.json | 运行配置(默认 CPU 后端) |
config_metal.json | Apple GPU(Metal)后端配置 |
llm_config.json | 模型结构 / chat template |
用 MNN 的 llm_demo 运行(需 MNN_BUILD_LLM=ON + MNN_METAL=ON 编译):
# Apple Silicon 上走 Metal GPU
./llm_demo config_metal.json
# 或 CPU
./llm_demo config.json
cd MNN/transformers/llm/export
python llmexport.py --path <MiniCPM5-2B> --export mnn \
--quant_bit 4 --quant_block 128 --sym \
--mnnconvert <path>/MNNConvert --dst_path .
llm_bench -a metal):~4742 t/sllm_demo Metal):~155 t/s