Skip to main content

🦆 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-ffi bindings, see quack/softmax_jax.py for 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.post20260829

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

Source distribution (sdist)

Source distribution for tokenspeed-quack 0.6.4.post20260829
File Size Uploaded Provenance Actions
tokenspeed_quack-0.6.4.post20260829.tar.gz 848.9 kB With provenance Details for tokenspeed_quack-0.6.4.post20260829.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tokenspeed-quack 0.6.4.post20260829
File Interpreter ABI Platform Actions
tokenspeed_quack-0.6.4.post20260829-py3-none-any.whl Python 3 none any Details for tokenspeed_quack-0.6.4.post20260829-py3-none-any.whl

Total release size: 1.6 MB

Release files / tokenspeed_quack-0.6.4.post20260829.tar.gz

Download URL tokenspeed_quack-0.6.4.post20260829.tar.gz
Size 848.9 kB
Tags Source
SHA-256 checksum
How to use checksums
897588ed465f09cca8d8f4ed79c84fc10493e645b53bbccbffd7eff69d418d87
BLAKE2b-256 checksum
How to use checksums
531ca11ab235ce01bef622d1439ba7861860d668d94af7d497e23d2f87dd7e8c
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 29, 2026.

Transparency log

Release files / tokenspeed_quack-0.6.4.post20260829-py3-none-any.whl

Download URL tokenspeed_quack-0.6.4.post20260829-py3-none-any.whl
Size 730.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc846ce2d72aa76661d5c7d3026331e0ccc50d4de4674765cfbac7cb19f0880a
BLAKE2b-256 checksum
How to use checksums
102675943cea6a4eb063e28ca04741cf2fcc6d3c810764e0ee731207c8cce59c
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 29, 2026.

Transparency log

Security for tokenspeed-quack 0.6.4.post20260829

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tokenspeed_quack-0.6.4.post20260829.tar.gz

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 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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