Skip to main content

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 format
  • dynquant.graph — architecture-generic module role classification
  • dynquant.quant — group-wise n-bit packing and the quantizer driver
  • dynquant.runtime — backend selection and the packed Linear
  • dynquant.cli — the dynquant command, including dynquant 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.

Release files for dynquant-core 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dynquant-core 0.5.3
File Size Uploaded
dynquant_core-0.5.3.tar.gz 421.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dynquant-core 0.5.3
File Interpreter ABI Platform
dynquant_core-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 914.4 kB

Release files / dynquant_core-0.5.3.tar.gz

Download URL dynquant_core-0.5.3.tar.gz
Size 421.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8f5f9c0c5b6fb290f11a4793e908ba5d2a68ec3ca0d396d04c543cfc8d27ffca
BLAKE2b-256 checksum
How to use checksums
3a4974cf2a22617bdae06fc4595f898a1363886ce7bfbf852268173a7f17dfd1
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

Release files / dynquant_core-0.5.3-py3-none-any.whl

Download URL dynquant_core-0.5.3-py3-none-any.whl
Size 493.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bb8b1567c45d2a763d160d4057d40d6209d0edbd16f644d1326d50796affd86
BLAKE2b-256 checksum
How to use checksums
95a7d7b5c0ba190c265933ce39d86f59216a09c1b2cc223d9309246c4ec721c8
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

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page