Kernels are written in the CuTe-DSL.
pip install quack-kernels
# Optional: install NVIDIA matmul heuristics for better untuned GEMM configs
pip install 'quack-kernels[heuristics]'
# Optional: JAX bindings (pulls in jax and jax-tvm-ffi)
pip install 'quack-kernels[jax]'QuACK supports CUDA 13 only. CUDA 12 is not supported.
The [cu13] extra is accepted for backward compatibility but adds no dependencies.
- H100, B200/B300, or RTX 50 GPU
- CUDA toolkit 13.x
- Python 3.12
- 🦆 RMSNorm forward + backward
- 🦆 Softmax forward + backward
- 🦆 Cross entropy forward + backward
- 🦆 Layernorm forward + backward
- 🦆 Hopper gemm + epilogue
- 🦆 Blackwell gemm + epilogue
- 🦆 Blackwell GeForce gemm + epilogue
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
- 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.
See our blogpost for the details.
To set up the development environment:
pip install -e '.[dev]'
pre-commit install