Towards Data Science

I Built a C++ Backend So My GPU Would Stop Eating Air

A comprehensive guide to optimizing LLM inference by eliminating padding overhead with hardware-aware sequence packing. The post I Built a C++ Backend So My GPU Would Stop Eating Air appeared first on Towards Data Science .

Towards Data Science
Sep 4

Disaggregation Is a Thousand-GPU Problem

The article discusses the conditions under which separating the prefill phase from the decode phase in large language model inference is beneficial. It explains that only when three specific criteria are met does this split pay off, and it recommends using chunked prefill as the default approach when operating below a certain GPU threshold.

By Mostafa Ibrahim
arXiv Machine Learning
Sep 14

Dissecting GPU Utilization for LLM Inference on Nvidia Hopper

The paper investigates how a single SM utilization metric can misrepresent the true workload of large language model (LLM) inference on Nvidia Hopper GPUs. By profiling vLLM with FlashAttention‑3 and cuBLASLt on an H100 NVL across various phases (cold prefill, warm prefill, and decode) and varying sequence length and batch size, the authors replace the single utilization figure with eight detailed counter‑validated views. These views, tied to specific Nsight Compute counters or formulas, reveal how factors such as fragment fill, occupancy limits, stall signatures, wave quantization, and kernel selection create utilization gaps across four production models and six per‑layer kernel roles.

By Mohammad Siavashi, Gerald Q. Maguire Jr., Dejan Kostic, Marco Chiesa
arXiv Machine Learning
Oct 23

Amplifying Latency and Cost of LLM Inference via Rowhammer Attack

The paper introduces LLVMhammer, a Rowhammer attack that induces a bit‑flip in Triton’s MLIR/LLVM compilation pipeline, causing the generation of a suboptimal GPU kernel that persists across inference runs. A single successful bit‑flip can increase LLM inference latency by 4–16 % on NVIDIA RTX 4090 and AMD RX 7900 XTX GPUs, and can also degrade output quality, lowering BERTScore to as low as 25 %. The attack is GPU‑vendor‑agnostic and demonstrates that memory corruption in the compiler can have lasting performance and security impacts on large‑language‑model inference.

By Mrityunjay Shukla, Shubham Roy, Biswabandan Panda
arXiv Machine Learning
Nov 5

GPUMAP: GPU-Accelerated Progressive Uniform Manifold Approximation and Projection

GPUMAP is a GPU-accelerated, progressive version of the Uniform Manifold Approximation and Projection (UMAP) algorithm designed for interactive dimensionality reduction. The authors reorganize UMAP’s core operations into a progressive pipeline, adding features such as operation queues, instance-wise local joins, and scheduling strategies. Leveraging GPU parallelism, GPUMAP enables interactive analysis of million-scale datasets on commodity hardware and is used to study how progressive projections evolve and how biased data streams affect projection quality and stability.

By Myeongwon Jung, Jaemin Jo
Towards Data Science
Jul 22

How To Build Your Own LLM Runtime From Scratch

If you have ever wanted to actually build an LLM inference runtime yourself — pack your own weights, own every barrier, capture your own CUDA graphs — this is what that journey looks like on an H100. A step-by-step tour of a small runtime called annotated-llm-runtime, and the three bugs that produced most of the annotations.

By Anubhab Banerjee