Skip to main content

dynquant-kernels

Compiled CUDA kernels for DynQuant.

You almost certainly want pip install dynquant, which resolves this wheel for your platform. Install it directly only to force a specific variant.

What is in here

One shared object, exposed through the PyTorch dispatcher under the dynquant namespace (not pybind, so torch.compile can trace through it):

  • n-bit tile dequantization
  • decode GEMV, templated on bit-width — the memory-bound case that dominates serving
  • tensor-core prefill GEMM (cuBLASLt, then fused CUTLASS)
  • MoE grouped GEMM — one launch for all experts, not one per expert

Built with Thrust, CUB, cuBLASLt and CUTLASS. -use_fast_math is off by design: it implies denormals-to-zero, and a dequantized weight near the bottom of a 2-bit group's range is exactly the denormal case, so accuracy measured with it on is not reproducible.

Variants

The wheel version carries a PEP 440 local segment identifying what it was built against, the same scheme torch uses:

dynquant-kernels==0.1.0+cu124torch27

Compatibility with dynquant-core is enforced by an ABI number baked into the binary, checked at import. A mismatch refuses to load with an actionable message rather than returning wrong numbers — see csrc/include/dynquant/abi.h.

Diagnosing an install

This package never raises on import, so a broken binary degrades to the reference backend rather than taking down import dynquant. To find out what happened:

import dynquant_kernels

print(dynquant_kernels.report())

That works with dynquant-core absent, which is the point — it makes this wheel diagnosable on its own. dynquant doctor gives the same information in context.

Building from source

pip install --no-build-isolation -e packages/dynquant-kernels

Needs CMake ≥ 3.26, nvcc, and a C++17 compiler. --no-build-isolation is required: an isolated build resolves the newest torch, and an extension linked against a different libtorch than the one you run fails to import.

With no CUDA toolkit present the build still succeeds, producing a CPU-only extension — deliberately, so a cheap CI runner catches CMake and registration errors before a GPU runner is needed. Release builds set DYNQUANT_REQUIRE_CUDA=ON so that a toolkit which failed detection is a build failure, not a wheel advertising kernels it does not contain.

License

Apache-2.0.

Release files for dynquant-kernels 0.4.0

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-kernels 0.4.0
File Size Uploaded
dynquant_kernels-0.4.0.tar.gz 53.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for dynquant-kernels 0.4.0
File
dynquant_kernels-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
dynquant_kernels-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
dynquant_kernels-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details
dynquant_kernels-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details

Total release size: 70.2 MB

Release files / dynquant_kernels-0.4.0.tar.gz

Download URL dynquant_kernels-0.4.0.tar.gz
Size 53.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6a749c168d08c91087836b067027e822c7c9dad55cb2ae03a19b88e6883460e9
BLAKE2b-256 checksum
How to use checksums
a9990bcc175dcb7302e258e93eafeb5f195e805414f0017c80cfbe5d11806bd6
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 12, 2026.

Transparency log

Release files / dynquant_kernels-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL dynquant_kernels-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
Size 17.5 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5eac3f1016a5405521f30e41d77794f9faa58c3d460cd97ee8ff012bca408d13
BLAKE2b-256 checksum
How to use checksums
c2aeed61938a409d869d9be58006d5bc4d1529c998699368c0fbb718d19ffc8b
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 12, 2026.

Transparency log

Release files / dynquant_kernels-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL dynquant_kernels-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 17.5 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
2ed57cfb704cda51b127518cc522d0ed9d7174c44af51274d48e94eb62cc6a99
BLAKE2b-256 checksum
How to use checksums
2ce28e77ca226a8a0e2518b9ca6e96229617521f4fe9b70d110b0288ec040a46
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 12, 2026.

Transparency log

Release files / dynquant_kernels-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL dynquant_kernels-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
Size 17.5 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
e128856eb8d8242b365e6a0be9e762aab2329cd3c1f88b3991b98d455c0386b5
BLAKE2b-256 checksum
How to use checksums
f55d433bd5ea58b37965625a8c2b4d1eb56bd8a87fd1f98ca77a7e3b3acd0f66
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 12, 2026.

Transparency log

Release files / dynquant_kernels-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL dynquant_kernels-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
Size 17.5 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
c7e813689a79beff74d3d79259dba275fd4dbc9300cb3ae732b87a25173135c6
BLAKE2b-256 checksum
How to use checksums
11b4b75ece0b4b5cb9473b3a8a233172e9b392e4e8548bc41c071bf4447f557b
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 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.3

5 release files

0.5.2

5 release files

0.5.1

5 release files

0.5.0

5 release files

This release

0.4.0 This release

5 release files

0.2.0

5 release files

0.1.2

5 release files

0.1.1

5 release files

0.1.0

5 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