Instructions to use HanzoHuang/Llama-3.2-3B-Instruct-RKLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- RKLLM
How to use HanzoHuang/Llama-3.2-3B-Instruct-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
Add Simplified Chinese README and language navigation
Browse filesFiles changed (2)
- README.md+2
- README_zh-CN.mdAdded+91
11 unmodified lines12131415161711 unmodified lines- llama-3.2---## 🚀 Deploy with reComputer AI LabExplore and deploy AI models on Rockchip **RK3576** and **RK3588** devices with **reComputer AI Lab**.11 unmodified lines121314151617181911 unmodified lines- llama-3.2---**English** | [简体中文](README_zh-CN.md)## 🚀 Deploy with reComputer AI LabExplore and deploy AI models on Rockchip **RK3576** and **RK3588** devices with **reComputer AI Lab**.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091---license: llama3.2base_model: meta-llama/Llama-3.2-3B-Instructpipeline_tag: text-generationlibrary_name: rkllmtags:- rkllm- rockchip- rk3576- rk3588- llama- llama-3.2---
[English](README.md) | **简体中文**
## 🚀 使用 reComputer AI Lab 部署
通过 **reComputer AI Lab**,在 Rockchip **RK3576** 和 **RK3588** 设备上探索并部署 AI 模型。
[](https://sensecraft.seeed.cc/ai-lab/zh/models?device=rk3588)
### ⚡ 一条命令即可运行
安装 Docker 后,在 reComputer AI Lab 中选择模型和开发板,复制部署命令,并在设备终端中运行即可。
**[探索模型与部署指南 →](https://sensecraft.seeed.cc/ai-lab/zh/models?device=rk3588)**
---
# Llama-3.2-3B-Instruct · RKLLM
* 最大上下文长度: 4096
在 Rockchip RK3576 和 RK3588 上进行文本生成,转换自 [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)。
- **转换工具包:** RKLLM Toolkit 1.3.0。- **输入 / 输出:** 文本 → 文本。- **许可证:** `llama3.2`;条款及预期用途请参阅[上游模型卡](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)。
## 选择模型文件
请选择与开发板 SoC 完全匹配的文件。`w4a16` 使用 4 位权重和 16 位激活;`w4a16_g128` 的权重分组大小为 128。`w8a8` 使用 8 位权重和 8 位激活。下表列出的是下载大小,并非运行时总内存占用。
| 开发板 | 量化方式 | 大小 | 语言模型 || --- | --- | --- | --- || RK3576 | `w4a16_g128` | 2.64 GiB | [Llama-3.2-3B-Instruct_RK3576_w4a16_g128.rkllm](RK3576/Llama-3.2-3B-Instruct_RK3576_w4a16_g128.rkllm) || RK3576 | `w8a8` | 3.78 GiB | [Llama-3.2-3B-Instruct_RK3576_w8a8.rkllm](RK3576/Llama-3.2-3B-Instruct_RK3576_w8a8.rkllm) || RK3588 | `w8a8` | 3.76 GiB | [Llama-3.2-3B-Instruct_RK3588_w8a8.rkllm](RK3588/Llama-3.2-3B-Instruct_RK3588_w8a8.rkllm) |
## 在开发板上运行
在匹配的 Rockchip 开发板上安装 Docker 后,以下示例将启动 **RK3576 w4a16_g128** 模型,并在端口 8001 提供 API:
```bashsudo docker run --rm -d --name rkllm \ --privileged -v /dev:/dev -p 8001:8001 \ ghcr.io/hanzo-huang/rkllm-docker/llm/llama-3.2-3b-instruct:rk3576-w4a16-g128```
镜像已包含模型文件。API 请求、其他开发板版本和配置说明请参阅 [rkllm-docker](https://github.com/Hanzo-Huang/rkllm-docker#readme)。
如需单独下载文件:
```bashhf download HanzoHuang/Llama-3.2-3B-Instruct-RKLLM \ RK3576/Llama-3.2-3B-Instruct_RK3576_w4a16_g128.rkllm \ --local-dir ./models```
这些文件是原生 RKLLM/RKNN 模型产物。集成到其他应用时,请使用兼容的 RKLLM 运行时及该模型对应的对话模板。
## 发布说明
此处未发布各配置在开发板上的基准测试。量化后的输出可能与原始模型不同,请使用自己的实际任务检查回答效果。检查运行时兼容性时,请参考上方列出的工具包版本。
<details><summary>SHA-256 校验和</summary>
```text211ddffb27a2e429917639ce319a96fcc878b493433ebca3d0c28666a188750e RK3576/Llama-3.2-3B-Instruct_RK3576_w4a16_g128.rkllm117fa31e1f7d483d02513ddb073f1818b62ea48affc474f1e562e733179e50e9 RK3576/Llama-3.2-3B-Instruct_RK3576_w8a8.rkllm5373bb69394504fd7df55087a3431ccacb6af6df52781940ff11307ab409d535 RK3588/Llama-3.2-3B-Instruct_RK3588_w8a8.rkllm```
</details>
## 致谢
原始模型:[meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)。转换工具:[Rockchip RKLLM](https://github.com/airockchip/rknn-llm)。README.md+2
README_zh-CN.mdAdded+91