dynquant
Mixed-precision LLM quantization that decides bit-widths from your fine-tune's own training dynamics.
pip install dynquant
dynquant doctor
This distribution contains no code. It is the one name to install, and it pulls in:
dynquant-core— the Python half: signal collection hook, role classification, scoring, allocation, packing, CLI. Installs anywhere, no compiler required.dynquant-kernels— prebuilt CUDA kernels, where a wheel exists for your platform. Without them everything still works on the reference backend; you lose inference speed and the VRAM saving, not correctness.
Usage
Collect signals during the fine-tune you were going to run anyway:
from transformers import Trainer
from dynquant import DynQuantCallback
trainer = Trainer(model=model, ..., callbacks=[DynQuantCallback("stats/")])
trainer.train()
Allocate and pack:
dynquant quantize ./merged --stats stats/dynquant_stats.json --target 3.0 -o ./q3
Load through plain transformers:
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("./q3")
Full documentation: https://github.com/kambojvikram/dynquant
Extras
pip install 'dynquant[train]' # transformers, peft, trl, datasets
pip install 'dynquant[eval]' # lm-eval-harness
pip install 'dynquant[triton]' # portability fallback for ROCm / newer GPUs
pip install 'dynquant[kernels]' # force the compiled kernels (builds from sdist)
License
Apache-2.0.
Release files for dynquant 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dynquant-0.5.3.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dynquant-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / dynquant-0.5.3.tar.gz
| Download URL | dynquant-0.5.3.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd342f05094fbadc284f64180b99f2f20e13e34a8382ddc90f1ec88518a60fc1
|
|
BLAKE2b-256 checksum How to use checksums |
8016983128a9e3d04e7ae2e85ce8577fcb52584cd362d546eb2a0a0d8fcd36a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.
Transparency logRelease files / dynquant-0.5.3-py3-none-any.whl
| Download URL | dynquant-0.5.3-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1406651e5e3d73fab55745ac9a1ebe4335ef0bda9db5a706a547bd6bfccf35da
|
|
BLAKE2b-256 checksum How to use checksums |
ae50411f48444f42434a461be9024a91c0adf726c3cd9491f2843ba17d8b8ce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.
Transparency log