Training-dynamics-driven mixed-precision LLM quantization: signals, scoring, allocation, packing. Pure Python.
Project description
dynquant-core
The pure-Python half of DynQuant: training-dynamics-driven mixed-precision LLM quantization.
Most users should pip install dynquant, which adds the prebuilt CUDA kernels.
Install dynquant-core directly when you want the quantization pipeline without
any binary dependency — CPU-only machines, Windows, macOS, ARM, and CI.
What is in here
dynquant.signals— the training-time hook and the stats file formatdynquant.graph— architecture-generic module role classificationdynquant.quant— group-wise n-bit packing and the quantizer driverdynquant.runtime— backend selection and the packedLineardynquant.cli— thedynquantcommand, includingdynquant doctor
Everything except inference speed works with no compiler and no GPU. The
reference (torch) backend dequantizes to compute, so it saves no memory and is
not fast — but it is the oracle the CUDA kernels are tested against, and it is
what makes quantizing a checkpoint possible on a laptop.
Install
pip install dynquant-core # quantize anywhere
pip install 'dynquant-core[hf]' # + transformers, accelerate
pip install 'dynquant-core[train]' # + peft, trl, datasets
pip install 'dynquant-core[dev]' # + pytest, ruff, mypy, docs
License
Apache-2.0.
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 Distribution
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
File details
Details for the file dynquant_core-0.1.0.tar.gz.
File metadata
- Download URL: dynquant_core-0.1.0.tar.gz
- Upload date:
- Size: 198.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c53f0f72fd72439bdc00ffc0d66c4a029a9800d60c2a77783b01c5340164dce7
|
|
| MD5 |
4f76eab09e39c8d706504091781f3a43
|
|
| BLAKE2b-256 |
3e806ed372335fe7db4fab15dede47e5c07687b6bec01c9f2a57101c96226c92
|
Provenance
The following attestation bundles were made for dynquant_core-0.1.0.tar.gz:
Publisher:
wheels.yml on kambojvikram/dynquant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dynquant_core-0.1.0.tar.gz -
Subject digest:
c53f0f72fd72439bdc00ffc0d66c4a029a9800d60c2a77783b01c5340164dce7 - Sigstore transparency entry: 2273236266
- Sigstore integration time:
-
Permalink:
kambojvikram/dynquant@ec4dc4866a98c9ac74ff636261481d7a2290eaea -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kambojvikram
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@ec4dc4866a98c9ac74ff636261481d7a2290eaea -
Trigger Event:
push
-
Statement type:
File details
Details for the file dynquant_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dynquant_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 237.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fddf0bb331f210b7d1371b313808f260be778a11ab73f761593e426cda1f73d
|
|
| MD5 |
19e18a5600b9941c610effb7772047a5
|
|
| BLAKE2b-256 |
233fca01f81364dd79a9091e7dfa88a0e0505e5e1ae7fc168c26c0ce5d41e280
|
Provenance
The following attestation bundles were made for dynquant_core-0.1.0-py3-none-any.whl:
Publisher:
wheels.yml on kambojvikram/dynquant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dynquant_core-0.1.0-py3-none-any.whl -
Subject digest:
0fddf0bb331f210b7d1371b313808f260be778a11ab73f761593e426cda1f73d - Sigstore transparency entry: 2273236276
- Sigstore integration time:
-
Permalink:
kambojvikram/dynquant@ec4dc4866a98c9ac74ff636261481d7a2290eaea -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kambojvikram
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@ec4dc4866a98c9ac74ff636261481d7a2290eaea -
Trigger Event:
push
-
Statement type: