创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

Jane Street与NVIDIA发布Mamba-2 cuTile内核

AI 总结

Jane Street工程师与NVIDIA使用CUDA Tile(cuTile)实现了三个Mamba-2前向计算自定义内核。cuTile是面向NVIDIA GPU分块编程的Python DSL与并行编程模型。NVIDIA称,在单张NVIDIA B300 SXM6上的测试中,这些内核比采用Triton的开源实现快1.14倍至1.82倍。测试结果仅衡量内核性能;端到端训练性能还将取决于反向传播内核的实现。

深度见解

这项工作提供了Mamba-2前向计算内核的具体cuTile实现,并报告了相对Triton实现的可测性能提升;不过,结果仅限于内核级基准测试。

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 cuda.tile and expose it as ct throughout the kernel implementations featured in this post.

Sequence modeling computational trade-off

Sequence modeling architectures face a computational trade-off: traditional softmax attention trains rapidly using matrix multiplication accelerated by Tensor Cores, but at inference, compute and memory requirements increase linearly with sequence length. In contrast, recurrent neural networks (RNNs) suffer from slow, nonparallelizable training but require constant compute and fixed memory footprint regardless of sequence length.

#NVIDIA#Jane Street#CUDA Tile#Mamba-2#TileGym#B300 SXM6

原文约 12 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。