Accelerating Mamba-2 with High-Performance Forward Pass Kernels in NVIDIA CUDA Tile
NVIDIA CUDA Tile (cuTile) is a Python based DSL and parallel programming model for NVIDIA GPUs that automatically leverages advanced hardware capabilities to...

NVIDIA CUDA Tile (cuTile) is a Python-based DSL and parallel programming model for NVIDIA GPUs that automatically leverages advanced hardware capabilities to deliver peak performance for tile-level GPU programming. By abstracting thread- and warp-level scheduling behind high-level, tile-centric primitives, cuTile enables you to write GPU kernels in Python while compiler optimizations automatically target advanced hardware features like Tensor Cores.
As an early adopter of cuTile, machine learning engineers at Jane Street implemented Mamba-2, a state-of-the-art sequence model, in cuTile and partnered with NVIDIA to optimize the kernels. Jane Street is a deeply technical global trading form, using deep learning to drive innovation in advanced quantitative research. This post walks you through the three custom kernels powering the Mamba-2 forward pass and the cuTile optimizations behind them.
Overview and prerequisites
To use cuTile, ensure your environment meets the requirements outlined in the cuTile Python Quickstart guide. Import the package as
Keep reading NVIDIA Technical Blog with Pro
This source is part of the Pro library. Unlock every premium source, AI translation and custom feeds.
Originally published on
NVIDIA Technical Blog
Keep reading





