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.6-py3-none-any.whl (292.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xslim-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 292.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for xslim-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 460fecc1a80d4a65565e5407685f4a0e7532f34d7c8e0dce983cfbb58d69509d
MD5 3a44fea24cc57ad433505ad33a7c73be
BLAKE2b-256 3df02ee0c50a9ea6f2cd4e1f39b35de97e354d6ebfe3b5bfd5d9af1d03fd54d2

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