Skip to content

Commit

Permalink
Update RK3562/RK3566/RK3568/RK3576/RK3588/RV1103B/RV1103/RV1106/RK211…
Browse files Browse the repository at this point in the history
…8 NPU SDK to V2.3.0

Signed-off-by: Randall Zhuo <[email protected]>
  • Loading branch information
Randall Zhuo committed Nov 11, 2024
1 parent 7efa763 commit a8dd54d
Show file tree
Hide file tree
Showing 95 changed files with 257 additions and 47 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## v2.3.0

- RKNN-Toolkit2 support ARM64 architecture
- RKNN-Toolkit-Lite2 support installation via pip
- Add support for W4A16 symmetric quantization (RK3576)
- Operator optimization, such as LayerNorm, LSTM, Transpose, MatMul, etc.

## v2.2.0

- Support installation via pip
Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Note:
- Python 3.10
- Python 3.11
- Python 3.12
- Latest version:v2.2.0
- Latest version:v2.3.0



Expand All @@ -64,11 +64,16 @@ https://github.com/airockchip/rknn-llm

# CHANGELOG

## v2.2.0
- Support installation via pip
- Optimize transformer model performance
- Support Python 3.12
- Operator optimization, such as softmax, hardmax, MatMul, etc.
## v2.3.0
- RKNN-Toolkit2 support ARM64 architecture

- RKNN-Toolkit-Lite2 support installation via pip

- Add support for W4A16 symmetric quantization (RK3576)

- Operator optimization, such as LayerNorm, LSTM, Transpose, MatMul, etc.



for older version, please refer [CHANGELOG](CHANGELOG.md)

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
4 changes: 4 additions & 0 deletions rknn-toolkit-lite2/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-11-06
版本: v2.3.0
1. whl包标准化(manylinux)

2024-09-14
版本: v2.2.0
1. 修复已知BUG。
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified rknn-toolkit-lite2/examples/resnet18/resnet18_for_rk3562.rknn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified rknn-toolkit-lite2/examples/resnet18/resnet18_for_rk3588.rknn
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions rknn-toolkit2/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
2024-11-4:
版本: v2.3.0:
更新内容:
1. 更新依赖库版本
2. 增加arm64的支持
3. 优化大模型转换性能
4. 修复matmul/sdpa/norm/softmax/where/transpose等OP问题
5. 修复pytroch/caffe/fp16等模型加载问题

2024-9-18:
版本: v2.2.2b0:
更新内容:
1. 增加rk3576 w4a16对称量化支持
2. 优化sdpa/matmul的支持

2024-9-2:
版本: v2.2.0:
更新内容:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN pip3 config set install.trusted-host pypi.tuna.tsinghua.edu.cn

RUN python3 --version
RUN pip3 --version
COPY rknn_toolkit2-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl rknn_toolkit2-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
COPY rknn_toolkit2-2.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl rknn_toolkit2-2.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
RUN pip3 install torch==1.10.1
RUN pip3 install rknn_toolkit2-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
RUN pip3 install rknn_toolkit2-2.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
RUN pip3 cache purge
Binary file not shown.
19 changes: 19 additions & 0 deletions rknn-toolkit2/packages/arm64/arm64_requirements_cp310.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# if install failed, please change the pip source to 'https://mirror.baidu.com/pypi/simple'

# base deps
protobuf==3.20.3

# utils
psutil>=5.9.0
ruamel.yaml>=0.17.21
scipy>=1.9.3
tqdm>=4.64.1
opencv-python>=4.5.5.64
fast-histogram>=0.11
numpy<=1.26.4

# base
onnx==1.14.1
onnxoptimizer==0.3.8
onnxruntime==1.16.0
torch>=1.13.1,<=2.2.0
20 changes: 20 additions & 0 deletions rknn-toolkit2/packages/arm64/arm64_requirements_cp311.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# if install failed, please change the pip source to 'https://mirror.baidu.com/pypi/simple'

# base deps
protobuf==3.20.3

# utils
psutil>=5.9.0
ruamel.yaml>=0.17.21
scipy>=1.9.3
tqdm>=4.64.1
opencv-python>=4.5.5.64
fast-histogram>=0.11
Pillow>=10.0.1
numpy<=1.26.4

# base
onnx==1.14.1
onnxoptimizer==0.3.8
onnxruntime==1.16.0
torch>=1.13.1,<=2.2.0
19 changes: 19 additions & 0 deletions rknn-toolkit2/packages/arm64/arm64_requirements_cp312.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# if install failed, please change the pip source to 'https://mirror.baidu.com/pypi/simple'

# base deps
protobuf>=4.21.0,<=4.25.4

# utils
psutil>=5.9.0
ruamel.yaml>=0.17.21
scipy>=1.9.3
tqdm>=4.64.1
opencv-python>=4.5.5.64
fast-histogram>=0.11
Pillow>=10.0.1
numpy<=1.26.4

# base
onnx==1.16.1
onnxruntime==1.17.0
torch>=1.13.1,<=2.2.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ numpy<=1.26.4

# base
onnx==1.10.0
onnxoptimizer==0.2.7
onnxruntime==1.10.0
torch>=1.10.1,<=2.1.0
# tensorflow>=1.12.0,<=2.6.2
torch>=1.10.2,<=2.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ numpy<=1.26.4

# base
onnx==1.14.1
onnxoptimizer==0.2.7
onnxruntime==1.14.1
torch>=1.10.1,<=2.1.0
# tensorflow>=1.13.1,<=2.8.1
torch>=1.10.1,<=2.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ numpy<=1.26.4

# base
onnx==1.14.1
onnxoptimizer==0.2.7
onnxruntime==1.16.0
torch>=1.10.1,<=2.1.0
# tensorflow>=2.5.0,<=2.14.0
torch>=1.10.1,<=2.2.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ numpy<=1.26.4

# base
onnx==1.14.1
onnxoptimizer==0.2.7
onnxruntime==1.16.0
torch>=1.10.1,<=2.1.0
# tensorflow>=2.2.0,<=2.13.1
torch>=1.10.1,<=2.2.0
7 changes: 7 additions & 0 deletions rknn-toolkit2/packages/arm64/md5sum.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ee6e5fa85324185cbeb529f7c4e43c94 rknn_toolkit2-2.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
b859f3224ddc30982ba8526bb94f5c3b rknn_toolkit2-2.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
d542270b1105e2e66b52c09677a00ca7 rknn_toolkit2-2.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
164f930f6877726f0707ba7e543610ec rknn_toolkit2-2.3.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
2b302df3c235c45465f3e0bab610d86e rknn_toolkit2-2.3.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
5e59aa17bc5a7764b06f3077209ad0fb rknn_toolkit2-2.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
6e58d6f4dea578e0c3f12fc9b6835678 rknn_toolkit2-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Loading

0 comments on commit a8dd54d

Please sign in to comment.