Skip to content
Trending storyDeveloping

Stanford CS336 Lecture 10 traces LLM inference optimizations to memory-bound decoding

1 article1 sourcesince Oct 18Last article 1h ago ·

Overview

AISummary of 1 article

Meng Shao describes Stanford CS336 Lecture 10, taught by Percy Liang, which links LLM inference optimizations to one constraint: autoregressive decoding is memory-bound and cannot be parallelized along the sequence.

The lecture treats every optimization as a way to reduce the bytes moved per decoding step.

According to the post, the lecture groups these fixes into three areas: architecture changes that trade accuracy for speed (GQA, MLA, CLA, quantization, pruning), lossless speculative decoding, and systems techniques such as continuous batching and paged attention. The lecture's formulas are derived and checked symbolically with sympy in an executable-notes format.

Written by AI from the articles below · updated Oct 18, 9:03 AM ET

Check the sources:

Article timeline

The articles in this story. Times are ET.

Oct 18
  1. meng shaoX
    Stanford CS336 lecture 10 maps LLM inference optimizations to memory-bound decoding

    AIStanford's CS336 lecture 10 on inference, taught by Percy Liang, traces LLM inference optimizations back to one constraint: autoregressive decoding is memory-bound and cannot be parallelized along the sequence. The lecture groups fixes into architecture changes that trade accuracy for speed (GQA, MLA, CLA, quantization, pruning), lossless speculative decoding, and systems techniques such as continuous batching and paged attention.

    Image from @shao__meng's post

Heat Trend

Not enough continuous observations to show a trend yet.