Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
In a previous session we tackled a 3x QAT training slowdown in a BitNet b1.58 BitLinear layer by wrapping the entire quantization pipeline in a custom torch.autograd.Function.
-
Quantization-aware training (QAT) is how you ship a lean 1-bit LLM without sacrificing accuracy — but it comes at a cost.
-
CUDA graphs are a powerful tool for reducing dispatch overhead: capture a kernel launch once, then replay it cheaply by updating only the pointer arguments that change.
-
The Problem After getting our CuTeDSL sparse attention kernel to compile and produce correct outputs (all 23 workloads passing), the initial numbers were disappointing: 9.6x speedup at 118us latency, versus the Triton baseline at 84x and ~29us.
-
We were porting a high-performance sparse attention kernel from Triton (~84x speedup, ~29us latency) to CuTeDSL, NVIDIA’s Python DSL for writing CUTLASS-style GPU kernels.
-
We spent time planning a careful optimization for a Triton sparse attention kernel running on a modern GPU.
-
The Problem Our Triton split-K sparse attention kernel fuses attention over 2048 sparse KV cache entries per token, processing 16 heads with D_ckv=512 on an NVIDIA B200 GPU.
-
We had a Triton sparse attention kernel running at ~88x speedup over a PyTorch baseline.
-
GPU profiling taught us a painful lesson: a fix that looks obviously correct in isolation can be disastrously wrong in context.
-
We were optimizing an FP8 attention indexer pipeline that runs a per-batch loop: for each item in a batch, compute a matrix multiply, apply relu + weighted multiply, reduce with sum(dim=0), then select the top-K indices.