Skip to main content

AutoAWQ Kernels implements the AWQ kernels.

Project description

AutoAWQ Kernels

AutoAWQ Kernels is a new package that is split up from the main repository in order to avoid compilation times.

Requirements

  • Windows: Must use WSL2.

  • NVIDIA:

    • GPU: Must be compute capability 7.5 or higher.
    • CUDA Toolkit: Must be 11.8 or higher.
  • AMD:

Install

Install from PyPi

The package is available on PyPi with CUDA 12.4.1 wheels:

pip install autoawq-kernels

Build from source

To build the kernels from source, you first need to setup an environment containing the necessary dependencies.

Build Requirements

  • Python>=3.8.0
  • Numpy
  • Wheel
  • PyTorch
  • ROCm: You need to install the following packages rocsparse-dev hipsparse-dev rocthrust-dev rocblas-dev hipblas-dev.

Building process

pip install git+https://github.com/casper-hansen/AutoAWQ_kernels.git

Notes on environment variables:

  • TORCH_VERSION: By default, we build using the current version of torch by torch.__version__. You can override it with TORCH_VERSION.
    • CUDA_VERSION or ROCM_VERSION can also be used to build for a specific version of CUDA or ROCm.
  • CC and CXX: You can specify which build system to use for the C code, e.g. CC=g++-13 CXX=g++-13 pip install -e .
  • COMPUTE_CAPABILITIES: You can specify specific compute capabilities to compile for: COMPUTE_CAPABILITIES="75,80,86,87,89,90" pip install -e .

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 Distributions

autoawq_kernels-0.0.8-cp312-cp312-win_amd64.whl (2.8 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

autoawq_kernels-0.0.8-cp311-cp311-win_amd64.whl (2.8 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

autoawq_kernels-0.0.8-cp310-cp310-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

autoawq_kernels-0.0.8-cp39-cp39-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

autoawq_kernels-0.0.8-cp38-cp38-win_amd64.whl (2.8 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

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