Dao-AILab/quack

A Quirky Assortment of CuTe Kernels

What it solves

QuACK provides a collection of high-performance GPU kernels for common deep learning operations, allowing developers to achieve "speed-of-light" performance for memory-bound kernels directly from Python using the CuTe-DSL.

How it works

The project implements various mathematical operations (kernels) using the CuTe-DSL, a domain-specific language for NVIDIA GPUs. It supports modern NVIDIA hardware including H100, B200/B300, and RTX 50 GPUs, and provides optional bindings for JAX.

Who it’s for

It is designed for researchers and engineers working with high-end NVIDIA GPUs who need optimized GPU kernels for operations like normalization and matrix multiplication (GEMM) without writing low-level CUDA C++.

Highlights

  • Optimized kernels for RMSNorm, Softmax, Cross Entropy, and LayerNorm (both forward and backward passes).
  • Specialized GEMM and epilogue implementations for Hopper and Blackwell architectures.
  • Integration with JAX via optional bindings.
  • Support for the latest CUDA toolkit (12.9+) and Python 3.12.

Related

  • Project
  • Project
  • Project
  • Project
  • Project