Loading…
Topic
cuTile
1 post about cuTile. Every summary links to the original.
- 1 post
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Accelerating Mamba-2 with High-Performance Forward Pass Kernels in NVIDIA CUDA Tile
Mamba-2 is a sequence model that combines the efficient training of attention with the constant inference cost of RNNs through a recurrent update computable chunkwise via Tensor Cores. The forward pass is implemented in NVIDIA CUDA Tile (cuTile), a Python DSL for tile-level GPU programming. Three custom kernels are used: chunk_cumsum computes cumulative sums of decay terms, fwd_pass_state computes hidden states at chunk boundaries using a jump formula, and compute_out produces outputs for each chunk. Optimizations include latency hints for DRAM traffic, swap A/B to route fused operands to Tensor Memory, GMEM layout transposition for TMA, and an autotuner for block size and occupancy. Benchmarks on a B300 GPU show the cuTile kernels are 1.14x to 1.82x faster than a Triton reference implementation, with speedups growing with sequence length and state size.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.