Instructions to use HanzoHuang/Qwen2.5-3B-Instruct-RKLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- RKLLM
How to use HanzoHuang/Qwen2.5-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
Document RKLLM artifacts and checksums
Browse files
README.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
-
license_name: qwen-research
|
| 4 |
base_model: Qwen/Qwen2.5-3B-Instruct
|
| 5 |
-
library_name: rkllm
|
| 6 |
pipeline_tag: text-generation
|
|
|
|
| 7 |
tags:
|
| 8 |
- rkllm
|
| 9 |
- rockchip
|
|
@@ -11,96 +10,48 @@ tags:
|
|
| 11 |
- rk3588
|
| 12 |
- qwen
|
| 13 |
- qwen2.5
|
| 14 |
-
|
| 15 |
---
|
| 16 |
|
| 17 |
# Qwen2.5-3B-Instruct-RKLLM
|
| 18 |
|
| 19 |
-
RKLLM-converted
|
| 20 |
-
|
| 21 |
-
`.rkllm` files require the Rockchip RKLLM runtime and cannot be loaded directly with Transformers, llama.cpp, or Ollama.
|
| 22 |
-
|
| 23 |
-
## Base Model
|
| 24 |
|
| 25 |
-
-
|
| 26 |
-
- Author: Alibaba Cloud Qwen Team
|
| 27 |
-
- Original Model: [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct)
|
| 28 |
-
- Original License: Qwen Research License
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
| ------ | ------------ | ------------------------ |
|
| 36 |
-
| RK3576 | W4A16 | β
Tested |
|
| 37 |
-
| RK3576 | W8A8 | β
Tested |
|
| 38 |
-
| RK3588 | W8A8 | β
Supported (not tested) |
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
-
-
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
| File | Quantization |
|
| 50 |
-
| ------------------------------------------------------------ | ------------ |
|
| 51 |
-
| [Qwen2.5-3B-Instruct_w4a16_RK3576.rkllm](RK3576/Qwen2.5-3B-Instruct_w4a16_RK3576.rkllm) | W4A16 |
|
| 52 |
-
| [Qwen2.5-3B-Instruct_w8a8_RK3576.rkllm](RK3576/Qwen2.5-3B-Instruct_w8a8_RK3576.rkllm) | W8A8 |
|
| 53 |
-
| [Qwen2.5-3B-Instruct_w8a8_RK3588.rkllm](RK3588/Qwen2.5-3B-Instruct_w8a8_RK3588.rkllm) | W8A8 |
|
| 54 |
-
|
| 55 |
-
## Repository Structure
|
| 56 |
-
|
| 57 |
-
```text
|
| 58 |
-
.
|
| 59 |
-
βββ Qwen2.5-3B-Instruct_data_quant.json
|
| 60 |
-
βββ RK3576
|
| 61 |
-
β βββ Qwen2.5-3B-Instruct_w4a16_RK3576.rkllm
|
| 62 |
-
β βββ Qwen2.5-3B-Instruct_w8a8_RK3576.rkllm
|
| 63 |
-
βββ RK3588
|
| 64 |
-
βββ Qwen2.5-3B-Instruct_w8a8_RK3588.rkllm
|
| 65 |
-
```
|
| 66 |
|
| 67 |
## Usage
|
| 68 |
|
| 69 |
-
Download the desired RKLLM model and deploy it with the RKLLM runtime on the matching Rockchip platform.
|
| 70 |
-
|
| 71 |
-
For faster deployment without setting up the environment manually, see [Hanzo-Huang/rkllm-docker](https://github.com/Hanzo-Huang/rkllm-docker).
|
| 72 |
-
|
| 73 |
-
### Docker Deployment
|
| 74 |
-
|
| 75 |
-
Use the model-specific image for the fastest RK3576 W4A16 deployment. The model is included in the image:
|
| 76 |
-
|
| 77 |
-
```bash
|
| 78 |
-
sudo docker run --rm -it \
|
| 79 |
-
--privileged \
|
| 80 |
-
-p 8001:8001 \
|
| 81 |
-
-v /dev:/dev \
|
| 82 |
-
ghcr.io/hanzo-huang/rkllm-docker/qwen2.5-3b-instruct:w4a16-rk3576
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
Alternatively, use the reusable environment image and mount a downloaded model:
|
| 86 |
-
|
| 87 |
```bash
|
| 88 |
-
|
| 89 |
-
--
|
| 90 |
-
-
|
| 91 |
-
-v /dev:/dev \
|
| 92 |
-
-v ./:/app/models:ro \
|
| 93 |
-
-e MODEL_PATH=/app/models/RK3576/Qwen2.5-3B-Instruct_w4a16_RK3576.rkllm \
|
| 94 |
-
-e TARGET_PLATFORM=rk3576 \
|
| 95 |
-
ghcr.io/hanzo-huang/rkllm-docker:env-latest
|
| 96 |
```
|
| 97 |
|
| 98 |
-
|
| 99 |
|
| 100 |
-
##
|
| 101 |
|
| 102 |
-
|
| 103 |
|
| 104 |
## Acknowledgements
|
| 105 |
|
| 106 |
-
Thanks to the
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
|
|
|
| 3 |
base_model: Qwen/Qwen2.5-3B-Instruct
|
|
|
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
+
library_name: rkllm
|
| 6 |
tags:
|
| 7 |
- rkllm
|
| 8 |
- rockchip
|
|
|
|
| 10 |
- rk3588
|
| 11 |
- qwen
|
| 12 |
- qwen2.5
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
# Qwen2.5-3B-Instruct-RKLLM
|
| 16 |
|
| 17 |
+
RKLLM-converted Qwen2.5-3B-Instruct language-model artifacts for Rockchip RK3576 and RK3588 NPUs.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
These hardware-specific `.rkllm` files require a compatible Rockchip RKLLM runtime. They are not Transformers checkpoints and cannot be loaded directly with Transformers, llama.cpp, or Ollama.
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
## Base model
|
| 22 |
|
| 23 |
+
- Upstream model: [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct)
|
| 24 |
+
- License: Qwen Research License
|
| 25 |
+
- Model type: LLM (text only)
|
| 26 |
|
| 27 |
+
Review the upstream license and usage restrictions before use or redistribution.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
## Conversion and variants
|
| 30 |
|
| 31 |
+
Converted with RKLLM Toolkit 1.2.3. Use a file built for the exact target SoC.
|
| 32 |
|
| 33 |
+
| Target | Quantization | File | SHA256 |
|
| 34 |
+
| --- | --- | --- | --- |
|
| 35 |
+
| RK3576 | W4A16 | [Qwen2.5-3B-Instruct_RK3576_w4a16.rkllm](RK3576/Qwen2.5-3B-Instruct_RK3576_w4a16.rkllm) | `5f2480e10a794848c8d4a5a21a61c015d96570f2a58e4543897b694b59576908` |
|
| 36 |
+
| RK3576 | W8A8 | [Qwen2.5-3B-Instruct_RK3576_w8a8.rkllm](RK3576/Qwen2.5-3B-Instruct_RK3576_w8a8.rkllm) | `5a14ed85f65d3c2890ef8e2b4ab9f094bf9b0992ddebd6f2b9ad8d3b539897b9` |
|
| 37 |
+
| RK3588 | W8A8 | [Qwen2.5-3B-Instruct_RK3588_w8a8.rkllm](RK3588/Qwen2.5-3B-Instruct_RK3588_w8a8.rkllm) | `054a4ac54ea7d483ac17431df5286eb6b2a81d351fbb44b55dc4491f71a7ea46` |
|
| 38 |
|
| 39 |
+
The repository also includes `Qwen2.5-3B-Instruct_data_quant.json`, used as calibration data during conversion.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## Usage
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
```bash
|
| 44 |
+
hf download HanzoHuang/Qwen2.5-3B-Instruct-RKLLM \
|
| 45 |
+
RK3576/Qwen2.5-3B-Instruct_RK3576_w4a16.rkllm \
|
| 46 |
+
--local-dir Qwen2.5-3B-Instruct-RKLLM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
```
|
| 48 |
|
| 49 |
+
Use the Qwen2.5 Instruct chat template with the RKLLM runtime. For Docker deployment, see [Hanzo-Huang/rkllm-docker](https://github.com/Hanzo-Huang/rkllm-docker).
|
| 50 |
|
| 51 |
+
## Limitations
|
| 52 |
|
| 53 |
+
These are target-specific converted artifacts. Validate quality and runtime compatibility on your Rockchip device.
|
| 54 |
|
| 55 |
## Acknowledgements
|
| 56 |
|
| 57 |
+
Thanks to the Qwen Team, Rockchip, and the RKLLM community.
|