To Infinity and Beyond: ThunderKittens Now on NVIDIA Vera Rubin NVL72!
ThunderKittens adds support for five Vera Rubin GEMM features: a doubled 64-byte K step in tcgen05.mma, 576-column exclusive tensor memory, 328 KiB oversized shared memory, a B-side collector buffer, and early A-operand release via tcgen05.commit.sync_restrict. Blackwell NVFP4 and FP8 kernels run unchanged on Rubin but reach only about 42-44% of roofline, because the tensor cores now consume operands faster than the old kernels can supply them. Switching to 2x1 tiling, which shares the B chunk and fits its scale factors in the extra tensor memory, and deepening the shared-memory pipeline to 5 stages lifts a 16k NVFP4 GEMM to about 22.2 PFLOPS. Early A release gives 13.5-22% speedups on very large GEMMs, and the B collector and L2 eviction hints add small gains, making the kernels competitive with cuBLASLt and CuTeDSL on pre-release hardware.
Related posts
- Custom Kernels for All from Codex and Claude
Hugging Face mediumAdeptHugging Face packaged CUDA kernel expertise (GPU architecture guides for H100/A100/T4, diffusers and transformers integration patterns, vectorized kernel templates, benchmark scripts) into an agent skill that lets Claude and Codex generate complete kernel-builder projects with PyTorch bindings. Agent-written RMSNorm kernels averaged 1.88x over PyTorch for LTX-Video and 1.94x for Qwen3-8B on H100 in BF16, with Qwen3 speedups growing from 1.58x at 128 tokens to 2.47x at 8192. End to end, LTX-Video gained only 6% (1.43x with torch.compile), consistent with RMSNorm taking about 5% of compute. The post also walks through building all PyTorch/CUDA variants with Nix and publishing to the Kernel Hub for one-line loading via get_kernel.
- We reverse-engineered Flash Attention 4
Modal hardMaster
Flash Attention 4, Tri Dao's attention kernel for Nvidia Blackwell GPUs, reportedly runs about 20% faster than cuDNN's closed-source attention kernels. Its main change is a far more complex warp-specialized asynchronous pipeline: Load, MMA, Softmax, Correction and Epilogue warps hand tiles through shared and Tensor Memory, synchronized by producer/consumer barriers. Two math tricks add to the gain. A cubic polynomial exponential runs on CUDA Cores to avoid queueing on the scarce Special Function Units, and a smarter online softmax rescales only when the running max changes enough to matter, reportedly cutting rescaling work by 10x. The authors read the released source and argue that programmer-managed asynchrony is pushing GPU programming toward tile-based DSLs such as CuTe, CUTLASS, Gluon and CuTile.
- FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scaling
Together AI hardMasterFlashAttention-4 is an attention kernel co-designed for Blackwell GPUs, where tensor core throughput grew much faster than the exponential (SFU) units and shared memory bandwidth. A feeds-and-speeds analysis shows the forward pass is bottlenecked by softmax exponentials and the backward pass by shared memory traffic, not by MMA speed. The forward pass addresses this with ping-pong Q tiles, a dedicated correction warpgroup, conditional online-softmax rescaling, and exp2 computed partly in software through Cody-Waite range reduction and a cubic polynomial on FMA units. The backward pass keeps intermediates in tensor memory, uses 2-CTA MMA with a DSMEM exchange of dS to cut shared memory traffic and halve dQ atomics, and adds an LPT tile scheduler and a deterministic mode. On B200 with BF16 it reaches up to 1605 TFLOPs/s (71% utilization), up to 1.3× faster than cuDNN 9.13 and 2.7× faster than Triton, and is written in CuTe-DSL.
- Creating custom kernels for the AMD MI300
Hugging Face hardMasterHugging Face and AMD wrote three open-source fused kernels for serving Llama 3.1 405B in FP8 with vLLM on an 8x MI300X node: residual add + RMS norm + FP8 quantization, SwiGLU + FP8 conversion, and a skinny GEMM for decode-sized batches. The write-up walks through the MI300X hierarchy (threads, 64-thread warps, compute units, XCDs, L2 and infinity cache), then uses vLLM profiling to show that GEMMs and all-reduce communications dominate decode latency. RMS norm and SwiGLU still account for about 15% of latency, which made them worth fusing. The basic fused RMS norm kernel alone is about 10x faster than PyTorch, and memory-access optimizations push it further; the kernels and benchmarks are available in the hf-rocm-kernels repo.
- Arm & ExecuTorch 0.7: Bringing Generative AI to the masses
Hugging Face easyNoviceExecuTorch 0.7 beta enables Arm KleidiAI by default through XNNPack, bringing optimized Int4 matrix multiplication to Arm CPUs with no code changes. New kernels use the Armv8.2 SDOT instruction, which computes four int32 dot products from groups of int8 elements and is present in roughly 72% of devices. That lets quantized Llama 3.2 1B run on older Android phones and the Raspberry Pi 5, not just flagships with I8MM. On a Galaxy S24+, the earlier I8MM-based kernels reached over 350 tokens/s prefill and 40 tokens/s decode, about 20% faster prefill than non-KleidiAI kernels.