Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

xslim-2.0.5-py3-none-any.whl (292.0 kB view details)

Uploaded Python 3

File details

Details for the file xslim-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: xslim-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 292.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for xslim-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f03aa988b23418b2f30e938b6ca201db6597db0fc3a0e258a783f48ee986a65c
MD5 d0d292d0677fbec4f3133e05c0af23ba
BLAKE2b-256 e62c603c85c14aa66de645fd07733056630ff03d6eeef5a1cdf3a86f5c9b76f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page