inference-efficiency · 2026-12-04 · Tier 1

Serving shorts: Hedra Megakernels on AMD, a from-scratch engine at 98% of vLLM, DeepInfra's prefill/decode split, XSP training-free DiT pruning

Serving shorts for 2026-12-04

  • Hedra Megakernels (via @rohanpaul_ai, @AnatoliKopadze): custom fused GPU programs run DeepSeek-V4.1-Flash at about 1,250-1,340 median output tokens/s on a single request on AMD GPUs, about 2x the fastest of 53 public OpenRouter routes in a Dec 1 comparison. The mechanism is the megakernel idea: merge many small kernel launches into one persistent program, so the GPU stops paying launch and memory round-trip overhead between tiny decode steps. Hedra says AI agents wrote much of the kernel code. Vendor numbers, single-request latency rather than throughput.
  • A one-person engine at 98% of vLLM (via @tvytlx): Eason Huang built an inference engine for Qwen3-0.6B on an RTX 3060, one git tag per optimization. KV cache cut per-step decode from 83.6 ms to 11.2 ms; continuous batching dropped median TTFT from 2.24 s to 57 ms; FlashAttention with ragged tensors took throughput from 222 to 577 tok/s; paged KV (16-token pages) doubled it to 1,315 tok/s without touching compute; prefix caching followed; then the CPU became the bottleneck, fixed with CUDA Graphs and overlapped scheduling (6.1 ms per token, 1,451 tok/s); torch.compile finished at 2,143 tok/s versus vLLM 2,176 and SGLang 2,187 on the same card. Caveat: in-process benchmark, no HTTP or tokenizer overhead. Teaching value: the biggest single jump came from memory management, not the attention kernel.
  • DeepInfra prefill/decode disaggregation (newsletter): DeepSeek Flash models now run prefill and decode on separate GPUs linked over InfiniBand, for 2-3x more throughput per GPU and steadier latency, at unchanged prices. Also: Tencent Hy4 (770B/49B active, 1M context) at $0.83 in / $2.50 out and Hy4 Flash (220B/12B active) at $0.07 / $0.28, cache reads about 1/20 of input; per-task sandboxes from $0.054/hour.
  • XSP, training-free structural pruning for diffusion transformers (2611.40797): low-rank AdaLN cuts those parameters 98.2%, dynamic programming picks heterogeneous FFN widths, and local least-squares reconstruction repairs pruned heads and FFNs with no gradient training. Up to 50% pruning; first on 3 of 5 benchmarks for Qwen-Image 1.0; MiniMax-H3-Image 33B pruned to 16B with negligible quality loss. arXiv
  • NVIDIA CUDA 13.5 Tile/SIMT interop (preview): tile kernels can call SIMT library device functions (cuFFTDx, NVSHMEM, Warp) without round-tripping through global memory; a distributed 3D FFT matches cuFFTMp on VR200 NVL72 up to 64 GPUs, and a fused surface-reconstruction kernel runs 1.5-2.8x faster. NVIDIA Developer

Relation to prior wiki

  • Megakernels and the CUDA Graphs step in the from-scratch engine both attack launch overhead, the same "instructions and launches, not FLOPs" bottleneck the 12-03 Hopper 4-bit KV kernel found.
  • The paged-KV doubling is the practitioner version of why quantization composes with paging and eviction does not (see kv-cache).
  • DeepInfra's split joins Trn3SR and NVIDIA KVPortal (12-02) in making prefill/decode disaggregation a vendor default; see Amazon silicon.
  • Concept pages: gpu-kernels, model-pruning-sparsity.

Raw: raw/twitter/feed/2026-12-04-morning-ranked.json, raw/gmail/2026-12-04-newsletters.md, raw/huggingface/2026-12-03-exceeding-structural-pruning-*.md, raw/labs/2026-12-04-103426-labs.md