← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. 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.

  2. Quantization-aware training (QAT) is how you ship a lean 1-bit LLM without sacrificing accuracy — but it comes at a cost.

  3. 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.

  4. 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.

  5. 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.

  6. We spent time planning a careful optimization for a Triton sparse attention kernel running on a modern GPU.

  7. 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.

  8. We had a Triton sparse attention kernel running at ~88x speedup over a PyTorch baseline.

  9. GPU profiling taught us a painful lesson: a fix that looks obviously correct in isolation can be disastrously wrong in context.

  10. 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.