🦆 QuACK: A Quirky Assortment of CuTe Kernels 🦆
Kernels are written in the CuTe-DSL.
Installation
# For CUDA 12.9:
pip install tokenspeed-quack
# For CUDA 13.x:
pip install 'tokenspeed-quack[cu13]' --extra-index-url https://download.pytorch.org/whl/cu130
# Do not use uv for CUDA 13.x installs yet: it can race/install
# nvidia-cutlass-dsl[cu13] in the wrong order (NVIDIA/cutlass#3259):
# https://github.com/NVIDIA/cutlass/issues/3259
# Optional: install NVIDIA matmul heuristics for better untuned GEMM configs
pip install 'tokenspeed-quack[heuristics]'
# Optional: JAX bindings (pulls in jax and jax-tvm-ffi)
pip install 'tokenspeed-quack[jax]'
Requirements
- H100, B200/B300, or RTX 50 GPU
- CUDA toolkit 12.9+
- Python 3.12
Kernels 🐥
- 🦆 RMSNorm forward + backward
- 🦆 Softmax forward + backward
- 🦆 Cross entropy forward + backward
- 🦆 Layernorm forward + backward
- 🦆 Hopper gemm + epilogue
- 🦆 Blackwell gemm + epilogue
- 🦆 Blackwell GeForce gemm + epilogue
Usage
from quack import rmsnorm, softmax, cross_entropy
JAX bindings are also available for some kernels (see docs/jax.md):
from quack.softmax_jax import softmax
Documentations
- JAX interface — optional
jax+jax-tvm-ffibindings, seequack/softmax_jax.pyfor an example.
[2025-07-10] We have a comprehensive blogpost on how to get memory-bound kernels to speed-of-light, right in the comfort of Python thanks to the CuTe-DSL.
Performance
See our blogpost for the details.
Development
To set up the development environment:
pip install -e '.[dev]'
pre-commit install
# For CUDA 13.x:
pip install 'tokenspeed-quack[dev,cu13]' --extra-index-url https://download.pytorch.org/whl/cu130
# Do not use uv for CUDA 13.x installs yet; use pip instead.
# See https://github.com/NVIDIA/cutlass/issues/3259
Metadata
Release files for tokenspeed-quack 0.6.4.post20260923
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tokenspeed_quack-0.6.4.post20260923.tar.gz | 848.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tokenspeed_quack-0.6.4.post20260923-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / tokenspeed_quack-0.6.4.post20260923.tar.gz
| Download URL | tokenspeed_quack-0.6.4.post20260923.tar.gz |
|---|---|
| Size | 848.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3665abaf9b7d82af729c168b045b2ae906410d8bfbb98fd06dd986278427cf8
|
|
BLAKE2b-256 checksum How to use checksums |
cc97b5888f671f55f85669cc971fc24706511816e29c10afef9c94d4c7867386
|
| 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 Sep 23, 2026.
Transparency logRelease files / tokenspeed_quack-0.6.4.post20260923-py3-none-any.whl
| Download URL | tokenspeed_quack-0.6.4.post20260923-py3-none-any.whl |
|---|---|
| Size | 730.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a14851249455c5333051172b0ec5fcbf14e711897e64a0966332bd3bd8f71683
|
|
BLAKE2b-256 checksum How to use checksums |
f390be793da40f050376b3c0bec0b37bb412206727d84644a1a39cafdf83d92e
|
| 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 Sep 23, 2026.
Transparency log