XSlim is an offline quantization tools based on PPQ
Project description
XSlim
XSlim是SpacemiT推出的PTQ量化工具,集成了已经调整好的适配芯片的量化策略,使用Json配置文件调用统一接口实现模型量化
Quick Start
- Env Setup
pip install -r requirements.txt
- Python
import xslim
demo_json = dict()
demo_json_path = "./demo_json.json"
# 使用字典的方式
xslim.quantize_onnx_model(demo_json)
# 使用json文件的方式
xslim.quantize_onnx_model(demo_json_path)
- Shell
python -m xslim --config ./demo_json.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
xslim-2.0.7-py3-none-any.whl
(293.6 kB
view details)
File details
Details for the file xslim-2.0.7-py3-none-any.whl.
File metadata
- Download URL: xslim-2.0.7-py3-none-any.whl
- Upload date:
- Size: 293.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e9dc20b651839d68f54c54bc946582e003bd058ad511396872673ec1d05c3cd
|
|
| MD5 |
efafe1ecd204f3c2c076391a8c9be991
|
|
| BLAKE2b-256 |
c48a45562cc1d0590d68e6ba069faa2fc338dc54ce1a0d003ff86f66eda5be16
|