Maps to: UC Berkeley EE 290/194 Scalable AI, Fall 2026 Lecture 21, Decode-Specialized Hardware: Groq 3 LPX (guest lecture). Its slides were not public when these notes were written. The lecture is therefore built from public sources, and every hardware number below names its source:
- NVIDIA’s Groq 3 LPX product page: per-chip SRAM, SRAM bandwidth and scale-up bandwidth; rack totals; the claims “up to 35× higher throughput per megawatt” and “10× more revenue per watt”, with their footnotes;
- StorageReview, NVIDIA Groq 3 LPX: everything we know (GTC 2026): per-chip FP8 compute, the tray and rack layout, and the split of each decode step between Rubin GPUs (attention) and LPUs (FFN/MoE). Article-reported, not on NVIDIA’s page;
- Abts et al., Think Fast: A Tensor Streaming Processor (TSP) for Accelerating Deep Learning Workloads (ISCA 2020) and A Software-Defined Tensor Streaming Multiprocessor for Large-Scale Machine Learning (ISCA 2022): the architecture of Groq’s chips;
- Groq’s and secondary reports on the first-generation GroqChip (230 MB SRAM, 80 TB/s, 750 INT8 TOPS);
- NVIDIA’s Vera Rubin announcements (HBM4 capacity and bandwidth, as announced and as later reported revised).
Recommended reading: the two ISCA papers above; NVIDIA’s LPX page; Pope et al., Efficiently Scaling Transformer Inference (MLSys 2023), for the latency/throughput trade-off of partitioned decode.
Code:
code/lecture24/contains:
decode_hw.py: a catalogue with sources, plus the decode, pipeline and energy models;- four demos: decode is bandwidth (and latency), a model in SRAM, deterministic scheduling, attention–FFN disaggregation.
Reading time: ~2 hours for the prose; ~15 seconds to run all demos.
0. How to read this lecture
0.1 Learning goals
After this lecture you should be able to:
- Explain why decode is a memory-bandwidth problem first and a latency problem next, and why batching on GPUs raises throughput but never per-user speed.
- Describe an SRAM-only, compiler-scheduled chip (Groq’s tensor streaming processor) and what it trades: bandwidth and determinism for capacity.
- Do the arithmetic of a model in SRAM: chips to hold it, a layer pipeline across hundreds of chips, hop latency, and the KV cache that does not fit.
- Explain what determinism buys when hundreds of chips must synchronize every token.
- Analyze attention–FFN disaggregation (GPUs hold attention and the KV cache, LPUs hold the experts): where it wins, where it loses, and what is not public.
0.2 Prerequisites and scope
- Prerequisites:
- Lecture 2: the roofline;
- Lecture 22: prefill vs decode, the interactivity–throughput frontier;
- Lecture 23: disaggregated serving, expert parallelism, all-to-all.
- Scope: the hardware side of decode. Why a chip specialized for it exists, how it works, and how it pairs with GPUs.
- Not in scope:
- product benchmarking: no independent measurements of LPX existed when this was written;
- chip design details beyond the public papers.
0.3 Section → code map
| Section | Idea | Code in code/lecture24/ |
|---|---|---|
| §1 | decode is bandwidth, then latency | decode_hw.py, 01_decode_is_bandwidth.py |
| §2 | the tensor streaming processor | – (the ISCA papers) |
| §3 | a model in SRAM: capacity, pipelines, KV | 02_sram_pipeline.py |
| §4 | determinism at scale | 03_deterministic_scheduling.py |
| §5 | Groq 3 LPX and attention–FFN disaggregation | 04_attention_ffn_disaggregation.py |
0.4 What is modelled, what is published, what is unknown
Every number in this lecture is one of three kinds:
- published by a vendor: NVIDIA’s LPX page, NVIDIA’s Rubin announcements, Groq’s reports. Labelled with the source.
- article-reported: StorageReview’s GTC report, notably the 1.2 PFLOP/s FP8 per LPU. Used, and labelled.
- not published, and so a parameter that the demos sweep:
- chip-to-chip hop latency;
- the latency and bandwidth of the GPU↔LPU hand-off;
- chip and rack power;
- the energy per bit of each memory and link, for which we use illustrative textbook-order values.
All demo numbers are computed from these with stated models, standard library only.
1. Decode is a bandwidth problem, then a latency problem
1.1 The per-user ceiling
Generating one token means reading every weight the token uses once. With batch 1 nothing shares those reads, so a sequence can go at most bandwidth ÷ bytes per token. For Llama-3-70B at FP8 (71 GB of weights, 1K context), Demo 01 Part A gives the ceiling by bandwidth alone:
| platform | aggregate bandwidth | ceiling (tokens/s per user) | with 2 × 5 µs syncs per layer |
|---|---|---|---|
| 8 × H100 | 26.8 TB/s | 378 | 290 |
| 8 × B200 | 64 TB/s | 903 | 524 |
| Vera Rubin NVL72 (72 GPUs, as announced) | 1.58 PB/s | 22,347 | 1,184 |
| Groq 3 LPX rack (256 LPUs) | 40 PB/s | 564,323 | 1,247 |
The third column is the second half of the story. A token on many chips must synchronize: two all-reduces per layer with tensor parallelism, or a hop between pipelined chips. At an assumed 5 µs per synchronization point, 80 layers cost 0.8 ms per token whatever the bandwidth. Once bandwidth is abundant, the latency of every hop and collective is the limit.
Long context moves the bottleneck the other way. At 32K tokens one 70B sequence’s BF16 KV cache adds 10.5 GB to every step (+15% over the FP8 weights).
1.2 Batching buys throughput, not speed
On 8 H100s (Demo 01 Part B, Lecture 22’s step model):
| batch | tokens/s per user | tokens/s per GPU |
|---|---|---|
| 1 | 177 | 22 |
| 16 | 149 | 298 |
| 256 | 42 | 1,343 |
Throughput grows 60×; each user slows 4×. No batch makes one user faster than batch 1. GPUs maximize throughput by spending the per-user speed that HBM bandwidth allows.
1.3 Why per-user speed became the product
A reasoning model’s 10,000-token chain of thought takes 100 s at 100 tokens/s and 10 s at 1,000 (Demo 01 Part C). Agents chain many such calls; NVIDIA’s LPX page says agentic systems use up to 15× more tokens than traditional applications. Speed per user is what such products sell.
For a 70B model, 1,000 tokens/s per user needs 72 TB/s of effective weight bandwidth: 21 H100s’ worth of HBM streaming in parallel. The bandwidth is no problem for SRAM chips; the latency floor of §1.1 remains.
2. The tensor streaming processor
2.1 The design idea
Groq’s chip, introduced as the Tensor Streaming Processor (TSP) at ISCA 2020 and later renamed the LPU (Language Processing Unit), starts from the opposite end to a GPU:
- No HBM on the chip’s critical path. Weights and activations live in large on-chip SRAM: 230 MB on the first-generation chip, with up to 80 TB/s of on-die bandwidth (as reported by Groq).
- Functional slices instead of cores. The die is organized as slices of one kind each: memory (MEM), vector (VXM), matrix (MXM), switch/permute (SXM), and chip-to-chip links (C2C). Data streams across the slices in one direction while instructions flow in the other, so each slice operates on the stream as it passes.
- No caches, no branch prediction, no reordering, no arbitration. Nothing in the hardware makes timing data-dependent.
- The compiler schedules everything. Because every unit’s latency is fixed, the compiler knows when each operand arrives and when each unit finishes, to the cycle. That includes the chip-to-chip network: the ISCA 2022 paper describes a multiprocessor whose links are scheduled in software, with no dynamic routing.
The consequence is determinism: the same program takes exactly the same number of cycles every time, on one chip or many.
2.2 What it trades
| GPU (H100) | first-generation GroqChip | Groq 3 LPU | |
|---|---|---|---|
| on-chip/HBM capacity | 80 GB HBM | 230 MB SRAM | 500 MB SRAM |
| bandwidth of that memory | 3.35 TB/s | 80 TB/s | 150 TB/s |
| 8-bit compute | 1.98 PFLOP/s (FP8, dense) | 750 TOPS (INT8) | 1.2 PFLOP/s FP8 (article-reported) |
| FLOPs per byte of bandwidth | 591 | 9 | 8 |
| timing | dynamic | static | static |
The last numeric row is the essence. A GPU is built to be compute-bound at large batch: it needs hundreds of FLOPs per byte read. An SRAM chip is balanced at about 8, which means a handful of sequences per weight read: exactly the small batches that fast per-user decode implies (Demo 02 Part C). The price is capacity: about 160× less memory per chip.
2.3 From Groq to NVIDIA
NVIDIA’s Groq 3 LPU (the LP30 chip) and its LPX rack come out of NVIDIA’s licensing agreement with Groq, reported at about $20 billion. The chip is reportedly made by Samsung on a 4 nm process. The published numbers:
- per LPU: 500 MB of SRAM, 150 TB/s of SRAM bandwidth, 2.5 TB/s of scale-up bandwidth;
- per LPX rack (32 trays of 8 chips, by StorageReview’s account): 256 LPUs, 128 GB of SRAM, 40 PB/s aggregate SRAM bandwidth, 640 TB/s of scale-up bandwidth, and 12 TB of DDR5 for large models and workloads. NVIDIA’s own page does not reconcile its 40 PB/s with 256 × 150 TB/s = 38.4 PB/s.
3. A model in SRAM
3.1 Capacity: hundreds of chips
With 80% of each chip’s SRAM usable for weights (Demo 02 Part A):
| model, weights | first-gen GroqChips | Groq 3 LPUs | LPX racks |
|---|---|---|---|
| Llama-3-70B, 8-bit | 384 | 177 | 0.7 |
| Llama-3-70B, 4-bit | 192 | 89 | 0.3 |
| 1T MoE (Kimi-K2-like), 8-bit | 5,671 | 2,609 | 10.2 |
| 1T MoE, 4-bit | 2,836 | 1,305 | 5.1 |
SRAM buys bandwidth by giving up capacity. A trillion-parameter model needs a building of SRAM chips, unless only part of it lives there (§5).
3.2 The KV cache does not fit
One 32K-token Llama-3-70B sequence has a 10.5 GB KV cache in BF16. That is 21 LPUs’ worth of SRAM for one user; on a Rubin GPU it would be 3.6% of the HBM.
Long-context KV does not belong in SRAM, and an SRAM-only machine must keep every in-flight sequence’s cache on chip (Demo 02 Part C):
| context | KV per sequence | sequences that fit in the 17.7 GB left by the weights (177 LPUs) | system tokens/s |
|---|---|---|---|
| 1,000 | 0.33 GB | 54 | 96,277 |
| 8,000 | 2.62 GB | 6 | 10,697 |
| 32,000 | 10.5 GB | 1 | 1,783 |
KV capacity, not bandwidth, caps an SRAM-only machine’s throughput at long context. That is the limit that pairing with HBM GPUs removes.
3.3 The pipeline and its hops
Pipelined layer by layer over 177 LPUs, each chip streams its 0.4 GB of weights from SRAM in 2.7 µs. A token visits every chip once (Demo 02 Part B):
| hop latency (not published) | per-token latency | tokens/s per user | share in hops |
|---|---|---|---|
| 0 | 0.47 ms | 2,115 | 1% |
| 0.5 µs | 0.56 ms | 1,783 | 16% |
| 1 µs | 0.65 ms | 1,541 | 28% |
| 5 µs | 1.35 ms | 739 | 65% |
On such a machine, per-user speed is a question of interconnect latency. That is why the network is compiler-scheduled: no arbitration, retries or queues in the way.
3.4 Filling the pipeline
A pipeline is busy only with many micro-batches in flight. Because an LPU has ~8 FLOPs per byte, a stage turns compute-bound at about 4 sequences per micro-batch (Demo 02 Part C). Beyond that, each user slows (963 tokens/s at 4 sequences, 130 at 32) while per-chip throughput stays at ~4,250 tokens/s. It is the same frontier as a GPU’s, at a very different place.
4. Determinism at scale
4.1 One chip: a schedule known in advance
Demo 03 Part A schedules one decoder layer’s dataflow graph on four kinds of unit: memory streams, matrix, vector, chip-to-chip.
- The static schedule takes exactly 3,110 cycles, every time. The memory unit streams weights while the matrix unit computes, so the critical path is 67% of the summed operation latencies.
- Dynamic execution of the same graph, with 5% latency noise and a 5% chance of a 60% stall per operation (the cache misses and arbitration of dynamic hardware): 3,154 cycles at p50, 3,861 at p99, 4,542 at worst.
A static schedule needs no slack and can promise its latency.
4.2 Many chips: the barrier tax
When N chips must all finish a step before the next begins, the step lasts as long as the slowest chip (Demo 03 Part B, step time as a multiple of the mean):
| per-chip jitter (CV) | 8 chips, p50 | 72 chips, p50 | 576 chips, p50 | 576 chips, p99 |
|---|---|---|---|---|
| 2% | 1.028 | 1.048 | 1.062 | 1.086 |
| 5% | 1.069 | 1.123 | 1.162 | 1.227 |
| 10% | 1.143 | 1.256 | 1.346 | 1.503 |
The expected maximum of N noisy chips grows like √(log N): the more chips a decode step spans, the more determinism is worth. A deterministic machine is at 1.000 for every N.
4.3 Pipelines vs barriers
A token’s latency differs by how the chips are composed (Demo 03 Part C):
- through a 177-chip pipeline, stage times add and their noise averages out: p99 is 1.009× the ideal at 5% jitter;
- through 160 collectives across 72 GPUs (tensor parallelism over 80 layers), each step is a max: the token takes 1.125× at p50 and 1.264× at 10% jitter.
Many-chip decode is either a pipeline or a sequence of barriers, and on dynamic hardware the barriers cost a slack that a deterministic machine does not pay.
5. Groq 3 LPX next to GPUs: attention–FFN disaggregation
5.1 The split
NVIDIA presents LPX as a decode co-processor for Vera Rubin NVL72: “Rubin GPUs and LPUs boost decode by jointly computing every layer of the AI model for every output token.” StorageReview’s account of the GTC material gives the split:
- the GPUs hold attention and its KV cache in HBM, compute the attention for each token, and hand the activations to the LPUs;
- the LPUs compute the FFN / MoE experts from SRAM and hand the result back;
- this repeats for every layer of every token, orchestrated by Dynamo, with prefill on the GPUs.
This is attention–FFN disaggregation: Lecture 23’s prefill–decode disaggregation, one level finer. The rationale follows from §1–§3:
- attention’s KV cache grows with context and batch and needs HBM capacity;
- the experts’ weights are fixed and huge, and they are reread every step for a few tokens. They need bandwidth, which SRAM has.
5.2 Modelled on a trillion-parameter MoE (Demo 04)
The model is a Kimi-K2-like MoE: 1.04T parameters, 33B active, 61 layers, 384 experts of 44M parameters, top-8 plus a shared expert. One layer’s experts are 16.9 GB in FP8, so holding all experts in SRAM takes 43 LPUs per layer × 60 layers = 2,580 LPUs, 10.1 LPX racks (half at FP4). The decode rack is a large machine in its own right.
One layer of a decode step at batch 64 and 32K context:
| layout | attention (GPUs) | experts | all-to-all / hand-offs | layer |
|---|---|---|---|---|
| NVL72 alone | 9.5 µs | 14.1 µs (from HBM) | 10.1 µs | 33.8 µs |
| NVL72 + LPX | 9.5 µs | 2.8 µs (from SRAM) | 9.0 µs | 21.4 µs |
The frontier at 32K context:
| batch | NVL72 alone: tokens/s per user | NVL72 + LPX | system tokens/s, alone → with LPX |
|---|---|---|---|
| 8 | 662 | 856 | 5,294 → 6,845 |
| 64 | 485 | 768 | 31,069 → 49,141 |
| 256 | 372 | 502 | 95,302 → 128,603 |
| 1,024 | 232 | 200 | 237,578 → 204,459 |
- Small batches gain most. The gain is largest in interactive decode, where every step rereads the experts for a few tokens.
- Large batches lose. At batch 1,024 the LPX layout is slower. The 43 LPUs holding a layer’s experts have far less compute than 72 Rubins (8 vs ~800 FLOPs per byte), and large batches make the experts compute-bound. Each design wins at its end of the frontier.
5.3 Energy, and the “35× per megawatt” claim
Power is not published, so Demo 04 Part C estimates only the energy of moving data, with illustrative constants of the order found in the literature: on-chip SRAM 0.5 pJ/bit, HBM 3.5, chip-to-chip links 3.0. Per token:
- batch 8: 0.82 J on the NVL72 alone vs 0.33 J with LPX (2.5×);
- batch 1,024: 1.3×.
Reading expert weights from SRAM is far cheaper than from HBM, and it matters most when few tokens share each read.
NVIDIA’s claims, “up to 35× higher throughput per megawatt for trillion-parameter models” and “10× more revenue per watt”, cannot be checked from public data:
- the baseline, batch, latency target and power are not disclosed;
- the page’s footnotes describe pricing tiers by model and context (free Qwen-3 235B at 32K up to premium tiers with a 2T-parameter MoE at 400K context), say performance is projected, and that revenue is a projection from throughput per gigawatt and tiered pricing.
A plausible reading of “up to” is the high-interactivity end of the frontier: there GPUs must run at small batch, their throughput per watt collapses, and a design whose throughput holds up at high per-user speed wins by a large factor. Demo 04 shows the mechanism, not the number.
5.4 The link that decides it
The hand-off is two crossings per layer per token, and its latency and bandwidth are not published (Demo 04 Part D, batch 64):
| GPU↔LPU link per GPU, latency | tokens/s per user | share of the layer in hand-offs |
|---|---|---|
| 1.8 TB/s, 1 µs | 848 | 36% |
| 0.9 TB/s, 2 µs | 768 | 42% |
| 0.45 TB/s, 5 µs | 599 | 55% |
| 0.1 TB/s, 10 µs | 436 (NVL72 alone: 485) | 67% |
Attention–FFN disaggregation lives or dies by this link. That is why NVIDIA stresses latency “near zero” between the racks, and why the tray’s chips are connected all-to-all with 96 links each (StorageReview).
5.5 Other decode-oriented designs
The same physics drives other designs:
- wafer-scale chips with tens of GB of SRAM (Cerebras reports 44 GB and 21 PB/s on WSE-3);
- tiered SRAM/HBM/DDR accelerators;
- in-memory or near-memory compute;
- model-specific ASICs.
Each picks a different point on capacity, bandwidth, flexibility and determinism. The GPU’s answer is batching, HBM bandwidth growth (Rubin’s HBM4) and the serving techniques of Lectures 21–23. The decode-specialized answer is to leave the bandwidth-hungry, latency-critical part of each token to a machine built for it.
6. Summary
- Decode reads every weight per step. Per-user speed ≤ bandwidth ÷ bytes per token. Batching raises throughput and lowers per-user speed. Once bandwidth is abundant, per-hop and per-collective latency sets the limit.
- Groq’s LPU (the TSP) puts weights in on-chip SRAM, organizes the chip as streaming functional slices, removes every source of dynamic timing, and lets the compiler schedule every unit and link. It is deterministic: 150 TB/s per chip (Groq 3), ~8 FLOPs per byte, 500 MB.
- A model in SRAM takes hundreds to thousands of chips. A layer pipeline’s per-user speed depends on hop latency. Long-context KV does not fit in SRAM, which caps an SRAM-only machine’s throughput.
- Determinism matters at scale. Barriers across N dynamic chips cost the expected maximum of N noisy times (1.16× at 576 chips with 5% jitter); pipelines average the noise out.
- Attention–FFN disaggregation gives GPUs the capacity-hungry part (attention, KV) and LPUs the bandwidth-hungry part (experts). It wins at small batch and high interactivity and loses at very large batch, where LPU compute binds. It depends on a hand-off link whose numbers are not public.
- Vendor claims (“35× per MW”) rest on undisclosed baselines. The mechanisms can be modelled; the number cannot be checked.
7. Common pitfalls
- Comparing bandwidths without capacities. 150 TB/s per LPU comes with 500 MB; a model needs hundreds of them.
- Quoting aggregate bandwidth as per-user speed. Hops and collectives cap it long before (Demo 01 Part A).
- Forgetting the KV cache when sizing SRAM machines. It, not the weights, limits throughput at long context.
- Assuming the decode co-processor wins everywhere. At large batch its low compute per byte loses (Demo 04 Part B).
- Treating “up to 35×” as a measured, general speedup. It is a projection with undisclosed conditions.
- Ignoring tail effects of synchronization: the p50 of a 576-chip barrier is already above the mean of one chip.
8. Exercises
-
Ceiling arithmetic. A 405B dense model at FP8 on a Rubin NVL72 (72 × 22 TB/s): its bandwidth-only per-user ceiling? With 126 layers × 2 synchronizations at 5 µs?
Answer
Bandwidth-only: 1.58e15 / 405e9 = 3,900 tokens/s. Sync floor: 126 × 2 × 5 µs = 1.26 ms → 794 tokens/s at most; combined 1/(1/3,900 + 1.26e-3) = 660 tokens/s. Fewer synchronization points per layer (or cheaper ones) matter more than bandwidth at this scale. -
The ridge batch. A decode step does 2 FLOPs per weight per sequence. At what batch per weight read does an LPU (1.2 PFLOP/s, 150 TB/s, 8-bit weights) turn compute-bound? An H100 at FP8?
Answer
Each byte of weights (one 8-bit weight) costs 2 FLOPs per sequence. Compute-bound when 2B / 1.2e15 > 1 / 150e12, so B > 4. H100: 2B / 1.98e15 > 1 / 3.35e12, so B > 296. The LPU is balanced at ~4 sequences per micro-batch (Demo 02 Part C); the GPU at ~300. -
SRAM for KV. Llama-3-70B uses 320 KiB of BF16 KV per token. How many LPX racks of SRAM would 1,000 users at 8K context need, KV alone?
Answer
1,000 × 8,192 × 327,680 B = 2.68 TB; one rack has 128 GB → 21 racks for KV alone (10.5 with an FP8 cache). Hence KV stays in GPU HBM (20.7 TB per NVL72). -
The barrier tax. If each of 256 chips finishes a step in time X ~ Normal(μ, σ = 0.05 μ), estimate the expected step time. (The expected maximum of n standard normals is ≈ √(2 ln n) for large n.)
Answer
√(2 ln 256) = √11.1 = 3.33 (the exact value is ~2.8 for n = 256; the formula overestimates at moderate n). Step ≈ μ (1 + 0.05 × 2.8) ≈ 1.14 μ. Demo 03 found 1.148 with log-normal jitter. A 14% tax on every step, paid by every token. -
Hand-off budget. Attention–FFN disaggregation crosses the GPU↔LPU link twice per layer. For 61 layers at 2 µs per crossing, what is the per-token latency floor, and what per-user speed does it allow at most?
Answer
61 × 2 × 2 µs = 0.244 ms → at most 4,100 tokens/s from the hand-offs alone, before any compute or memory time. At 5 µs per crossing, 0.61 ms → 1,640 tokens/s. The hand-off latency must be a small fraction of the per-layer work (~10–20 µs here). -
Where would you put the shared expert? In Demo 04 the shared expert sits with the routed experts on the LPUs. Argue for and against keeping it on the GPUs.
Answer
For GPUs: every token uses it, so its weights are read every step regardless, and running it during or right after attention could overlap with the hand-off. For LPUs: it is weight-bandwidth-bound like the other experts and SRAM reads are cheaper (energy). With a fast link, LPUs; with a slow link or tight GPU memory headroom, hide it on GPUs behind attention.
9. The related assignment (concepts only)
No assignment targets decode hardware. Assignment 4’s serving analysis benefits from this lecture’s habits:
- compute bytes per token and the bandwidth ceiling before tuning anything;
- separate per-user speed from throughput;
- check whether a “faster” configuration moved along the frontier or moved the frontier.
10. Research directions
- Compilers for deterministic multichip systems: scheduling a model, its KV movements and its links across thousands of chips; recompiling for new models quickly.
- Partitioning a layer between heterogeneous devices: which operators go to HBM devices and which to SRAM devices, at which batch and context, and how to overlap the hand-offs.
- KV for SRAM machines: compression, offload to DDR tiers, or attention variants (sliding window, latent, linear) that make the cache small enough to live on chip.
- Measuring tokens per watt honestly: benchmark methodologies that fix per-user speed, context and quality, so claims like “35× per MW” become checkable.
- Speculative decoding on decode hardware: draft and verify on chips balanced for tiny batches (Lecture 21’s arithmetic on a different roofline).
11. Further reading
- Abts et al., ISCA 2020 and ISCA 2022 (the TSP and its software-defined multiprocessor).
- NVIDIA’s LPX page and the Vera Rubin platform pages; StorageReview’s GTC coverage (with its own caveats).
- Pope et al., MLSys 2023, for partitioning decode across many chips.
- Lecture 23’s DistServe and Dynamo references for the disaggregation software that orchestrates such hybrids.
12. Next lecture
Lecture 25, Fundamentals of Context Engineering, moves from serving to building on top of it. The context window is a budget: prompts, retrieved documents, memory, tool definitions and compression all compete for it. Prompt caching (Lectures 22–23) becomes an economic question. Part V turns the serving stack’s costs into application design decisions.
术语表 (Glossary, English → 中文)
| English | 中文 |
|---|---|
| decode-specialized hardware | 解码专用硬件 |
| SRAM / on-chip memory / HBM | 静态随机存储器 / 片上存储 / 高带宽显存 |
| per-user speed / interactivity / throughput | 单用户速度 / 交互性 / 吞吐量 |
| tensor streaming processor (TSP) / LPU | 张量流处理器 / 语言处理单元 |
| functional slice / stream | 功能切片 / 数据流 |
| deterministic execution / static schedule | 确定性执行 / 静态调度 |
| compiler-scheduled network | 编译器调度的互连网络 |
| arbitration / interlock / cache miss | 仲裁 / 互锁 / 缓存未命中 |
| layer pipeline / hop latency / micro-batch | 层流水线 / 跳延迟 / 微批 |
| synchronization barrier / jitter / tail | 同步屏障 / 抖动 / 尾部 |
| attention–FFN disaggregation / hand-off | 注意力–前馈分离 / 交接 |
| scale-up bandwidth / all-to-all tray | 纵向扩展带宽 / 全互连托盘 |
| energy per bit / tokens per joule | 每比特能耗 / 每焦耳词元数 |
| throughput per megawatt | 每兆瓦吞吐量 |
| vendor claim / projection | 厂商宣称 / 预测值 |