HanzoHuang commited on
Commit
f95bded
Β·
verified Β·
1 Parent(s): 96b2f1d

Document RKLLM artifacts and checksums

Browse files
Files changed (1) hide show
  1. README.md +24 -73
README.md CHANGED
@@ -1,9 +1,8 @@
1
  ---
2
- license: other
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 versions of Qwen2.5-3B-Instruct for Rockchip RK3576 and RK3588.
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
- - Model: Qwen2.5-3B-Instruct
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
- Refer to the [upstream model card](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct) for the original model’s capabilities and limitations.
31
 
32
- ## Supported Platforms
 
 
33
 
34
- | SoC | Quantization | Status |
35
- | ------ | ------------ | ------------------------ |
36
- | RK3576 | W4A16 | βœ… Tested |
37
- | RK3576 | W8A8 | βœ… Tested |
38
- | RK3588 | W8A8 | βœ… Supported (not tested) |
39
 
40
- RK3576 W4A16 and W8A8 have been tested. RK3588 W8A8 is supported as a target platform but has not been board-tested because no RK3588 board is available.
41
 
42
- ## Conversion
43
 
44
- - RKLLM Toolkit: 1.2.3
45
- - Target Platforms: RK3576, RK3588
 
 
 
46
 
47
- ## Available Variants
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
- sudo docker run --rm -it \
89
- --privileged \
90
- -p 8001:8001 \
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
- The second command requires downloading the selected `.rkllm` file first. Use the matching model variant and target platform.
99
 
100
- ## License
101
 
102
- The original Qwen2.5-3B-Instruct model is released under the Qwen Research License. Converted artifacts are derived from the original model and remain subject to the applicable upstream license terms.
103
 
104
  ## Acknowledgements
105
 
106
- Thanks to the Alibaba Cloud Qwen Team for releasing the original model and to Rockchip and RKLLM contributors for the deployment toolchain.
 
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.