Instructions to use HanzoHuang/MiniCPM4-0.5B-RKLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- RKLLM
How to use HanzoHuang/MiniCPM4-0.5B-RKLLM with RKLLM:
# 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
|
Download README_zh-CN.md from HanzoHuang/MiniCPM4-0.5B-RKLLM: direct link, hf CLI and curl.
- Browser
- Download file 3.53 kB
-
https://huggingface.co/HanzoHuang/MiniCPM4-0.5B-RKLLM/resolve/main/README_zh-CN.md
- Command line
-
hf download hf://HanzoHuang/MiniCPM4-0.5B-RKLLM/README_zh-CN.md
-
curl -L -o README_zh-CN.md https://huggingface.co/HanzoHuang/MiniCPM4-0.5B-RKLLM/resolve/main/README_zh-CN.md
3.53 kB
metadata
license: apache-2.0
base_model: openbmb/MiniCPM4-0.5B
pipeline_tag: text-generation
library_name: rkllm
tags:
- rkllm
- rockchip
- rk3576
- rk3588
- minicpm4
English | 简体中文
🚀 使用 reComputer AI Lab 部署
通过 reComputer AI Lab,在 Rockchip RK3576 和 RK3588 设备上探索并部署 AI 模型。
⚡ 一条命令即可运行
安装 Docker 后,在 reComputer AI Lab 中选择模型和开发板,复制部署命令,并在设备终端中运行即可。
MiniCPM4-0.5B · RKLLM
- 最大上下文长度: 4096
在 Rockchip RK3576 和 RK3588 上进行文本生成,转换自 openbmb/MiniCPM4-0.5B。
- 转换工具包: RKLLM Toolkit 1.3.0。
- 输入 / 输出: 文本 → 文本。
- 许可证:
apache-2.0;条款及预期用途请参阅上游模型卡。
选择模型文件
请选择与开发板 SoC 完全匹配的文件。w4a16 使用 4 位权重和 16 位激活;w4a16_g128 的权重分组大小为 128。w8a8 使用 8 位权重和 8 位激活。下表列出的是下载大小,并非运行时总内存占用。
| 开发板 | 量化方式 | 大小 | 语言模型 |
|---|---|---|---|
| RK3576 | w4a16_g128 |
0.47 GiB | MiniCPM4-0.5B_RK3576_w4a16_g128.rkllm |
| RK3576 | w8a8 |
0.58 GiB | MiniCPM4-0.5B_RK3576_w8a8.rkllm |
| RK3588 | w8a8 |
0.57 GiB | MiniCPM4-0.5B_RK3588_w8a8.rkllm |
在开发板上运行
在匹配的 Rockchip 开发板上安装 Docker 后,以下示例将启动 RK3576 w4a16_g128 模型,并在端口 8001 提供 API:
sudo docker run --rm -d --name rkllm \
--privileged -v /dev:/dev -p 8001:8001 \
ghcr.io/hanzo-huang/rkllm-docker/llm/minicpm4-0.5b:rk3576-w4a16-g128
镜像已包含模型文件。API 请求、其他开发板版本和配置说明请参阅 rkllm-docker。
如需单独下载文件:
hf download HanzoHuang/MiniCPM4-0.5B-RKLLM \
RK3576/MiniCPM4-0.5B_RK3576_w4a16_g128.rkllm \
--local-dir ./models
这些文件是原生 RKLLM/RKNN 模型产物。集成到其他应用时,请使用兼容的 RKLLM 运行时及该模型对应的对话模板。
发布说明
此处未发布各配置在开发板上的基准测试。量化后的输出可能与原始模型不同,请使用自己的实际任务检查回答效果。检查运行时兼容性时,请参考上方列出的工具包版本。
SHA-256 校验和
34060c78f36ee6ac2a772d5353d32d700fe940ea48564f083b8665a85fdc499c RK3576/MiniCPM4-0.5B_RK3576_w4a16_g128.rkllm
10f2bfa298b5a79077fc52f339ead0446e9e834632226a8bfcc3d003d42a0ba8 RK3576/MiniCPM4-0.5B_RK3576_w8a8.rkllm
fef1e215dfa69391d2c5da53eb918020419a71e6b3539d9ef91d56d956b602ea RK3588/MiniCPM4-0.5B_RK3588_w8a8.rkllm
致谢
原始模型:openbmb/MiniCPM4-0.5B。转换工具:Rockchip RKLLM。
