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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynquant_core-0.2.0.tar.gz (241.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dynquant_core-0.2.0-py3-none-any.whl (292.8 kB view details)

Uploaded Python 3

File details

Details for the file dynquant_core-0.2.0.tar.gz.

File metadata

  • Download URL: dynquant_core-0.2.0.tar.gz
  • Upload date:
  • Size: 241.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dynquant_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 70ded9d745e342d5cf31cb3ef368e7de5cf57f46988609592993ddecce9c4324
MD5 a942a5f8664af2747413332d4fc655c0
BLAKE2b-256 00f564b2e0019b90e59ef2441620fbc0fa4a4bedaef96fb3766d92e1b2b574bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynquant_core-0.2.0.tar.gz:

Publisher: wheels.yml on kambojvikram/dynquant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dynquant_core-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dynquant_core-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 292.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dynquant_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1edebfc5d838a95a0e6f830db1a5d1d60c8c397ef23976ff935d4840632d3f6b
MD5 6417927f0e08cf590887003f3d2d64a4
BLAKE2b-256 b8e0214c6f86ffc574b7afa321ecdb910d9d93daf684f20229d4840abd2443a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynquant_core-0.2.0-py3-none-any.whl:

Publisher: wheels.yml on kambojvikram/dynquant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page