Pidoku

SRAM Machines: Groq and Cerebras

Module 7 Lesson 7.k 50 min Difficulty 4/5

Prerequisites 7.g, 4.d, 4.e


Before you start: words you need#

WordPlain meaning
SRAMThe fast memory built into a chip itself (registers, caches, shared memory). Tens of times faster than HBM, but each chip holds only megabytes to gigabytes of it.
HBMThe stacked DRAM beside a GPU die (4.e). Large (100–300 GB) but far slower than SRAM.
Per-user speedTokens per second one user sees on their own stream. Different from total throughput across all users.
WaferThe 300 mm silicon disc that chips are cut from. A normal GPU die is one small rectangle of it.
LPU“Language processing unit”, Groq’s name for its chip.
DeterministicThe chip does exactly the same thing in exactly the same number of clock cycles every run, because a compiler planned every step in advance.
DecodeGenerating output tokens one at a time, each step reading the weights (12.c).

1. What is it?#

An SRAM machine is an accelerator that keeps a model’s weights in on-chip SRAM instead of in HBM. Each chip holds only a little, so the model is spread across many chips (Groq) or across one whole silicon wafer (Cerebras). In exchange, every weight can be read tens of times faster than from HBM.

Two families matter in 2026:

  • Groq’s LPU, now also sold by NVIDIA as the Groq 3 LPX rack (256 LP30 chips), in full production since August 2026 as a decode companion to Vera Rubin.
  • Cerebras’s Wafer-Scale Engine, a chip the size of a whole wafer. Its newest system, the CS-4 (August 2026), puts three wafers in one rack.

Facts checked on 12 November 2026.

CEREBRAS WSE-3 · THE WHOLE WAFER IS THE CHIPdrawn to scale against an H100 die · checked 16 Oct 2026300 mm waferWSE-3, 46,225 mm²WSE-3 · 215 × 215 mm · 46,225 mm²H100 die, 814 mm²H100 die814 mm²57 H100 dies would fit in the WSE-3's area.Zoom: one tile of the core meshcoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBroutercoreSRAM48 KBrouterEvery core keeps its memory next to it. No HBM, no cachehierarchy: weights and activations live in on-wafer SRAM, andthe 2D mesh moves data a core at a time. Defective cores arerouted around, which is how a wafer-sized chip can yield. WSE-3H100Transistors4 trillion80 billionCores900,000132 SMsOn-chip memory44 GB SRAM50 MB L2 + 33 MB L1Memory bandwidth21 PB/s (SRAM)3.35 TB/s (HBM)Power, system~23 kW (CS-3)700 WThe catch: 44 GB is small for a big model. Larger models are splitacross several wafers, and training streams weights from externalmemory (MemoryX). Cerebras's 2027 CS-5 and later CS-6 add stacked DRAM.Sources: Cerebras WSE-3 product page and Hot Chips 2024/2026 talks. Wafer and die drawn at the same scale (1 mm = 1.55 px).
The WSE-3 and an H100 die at the same scale. Every core keeps its memory beside it; a 2D mesh carries data between cores.

2. Why does it matter?#

On a GPU, generating one token for one user means reading every weight from HBM. However many FLOPs the chip has, one user’s tokens per second cannot go above bandwidth ÷ model size (4.e). For a 70 GB model on a B200 (8 TB/s), that ceiling is about 114 tokens per second.

That ceiling now matters commercially:

  • Agents and reasoning models generate thousands of hidden tokens before the user sees an answer. At 100 tokens per second, a 5,000-token reasoning chain takes 50 seconds; at 2,000, it takes 2.5.
  • Voice and coding tools feel broken when the stream is slow.
  • NVIDIA’s own answer was to license Groq’s technology (December 2025, reported at $20 billion) and sell an LPU rack beside its GPUs. When the GPU leader adds a non-GPU decode chip, the per-user speed problem is real.

3. Simple analogy#

A GPU is a chef with a huge pantry down the corridor (HBM). For every dish (token), the chef walks to the pantry and back for every ingredient (weight). A faster chef does not help; the corridor sets the pace.

An SRAM machine is a long kitchen line of 150 cooks, each with a small shelf at arm’s length holding just the ingredients for their step. A dish moves down the line, and nobody walks anywhere. The line needs many more cooks, and the shelves are too small for a big banquet menu, but each dish comes out far sooner.


4. Tiny example#

One 70B model at FP8 (70 GB of weights), one user:

B200 GPU:       70 GB from HBM at 8 TB/s                 = 8.75 ms per token  → ~114 tok/s
Groq LP30 line: 156 chips, each reads 0.45 GB from SRAM
                at 150 TB/s                               = 3 µs per chip
                a token visits all 156 in turn            = 467 µs
                plus 155 chip-to-chip hops at ~0.6 µs     = 93 µs
                total                                     = 560 µs per token → ~1,800 tok/s

About 15 times the GPU, for one user. The price is 156 chips to hold a model that fits on one GPU.


5. Technical explanation#

Cerebras: the wafer is the chip#

A normal chip is one rectangle cut from a 300 mm wafer. Cerebras keeps nearly the whole wafer as one chip, the Wafer-Scale Engine (WSE):

  • WSE-3 (2024): 46,225 mm², 4 trillion transistors, about 900,000 cores, 44 GB of SRAM with about 21 PB/s of memory bandwidth, and about 125 PF of peak AI compute.
  • Each core sits next to its own 48 KB of SRAM and a small router. A 2D mesh moves data between neighbouring cores. There is no HBM and no cache hierarchy.
  • Yield. A wafer always has defects. Spare cores and spare mesh links let the design route around the bad ones: the same idea as the H100’s fused-off SMs (4.a), at a much larger scale.
  • Packaging. A wafer cannot sit in a normal socket, so power and coolant are delivered through the face of the wafer.

CS-4 (announced 18 August 2026) is Cerebras’s first multi-wafer system: three WSE-3 Turbo wafers (a refresh of WSE-3, not a new generation) in one rack, about 750 PF of AI compute and about 130 PB/s of total SRAM bandwidth. Cerebras claims more than 4,400 tokens per second per user on gpt-oss-120b and up to 30x “GPU solutions”; those are company benchmarks without a stated batch size, context length or competing GPU configuration. The roadmap targets about 10,000 tokens per second per user on mid-size open models with a 2027 system, and plans stacked DRAM on the wafer later: an admission that 44 GB per wafer is the constraint to fix.

Models larger than one wafer are split across several, layer by layer. For training, Cerebras streams weights from an external memory system (MemoryX) through the wafer and keeps only activations on chip.

Groq: many small chips, scheduled by a compiler#

Groq took the opposite physical route to the same goal:

  • Each LPU is a normal-sized chip with a large SRAM and no HBM. The LP30 in NVIDIA’s Groq 3 LPX has about 500 MB of SRAM (some reports say 512 MB) at about 150 TB/s.
  • A model is laid out across hundreds of chips. Each holds a slice of the layers, and activations (a few megabytes per token) flow from chip to chip.
  • The chips are deterministic: no caches, no out-of-order execution, no arbitration. The compiler schedules every unit and every chip-to-chip transfer, cycle by cycle, before the program runs. So run time is known in advance, and hundreds of chips stay in lock-step without the tail-latency surprises of a dynamic system.
  • An LPX rack holds 256 LP30s in 32 liquid-cooled trays of eight: about 128 GB of SRAM in total and roughly 315 PF of FP8.
WHY SRAM MACHINES DECODE FASTER · GPU VS LPUNVIDIA Groq 3 LPX · LP30 chip · checked 16 Oct 2026GPU: every token re-reads the weights from HBMHBMall weights+ KV cache288 GBSMscompute is idlemost of each stepat batch 1~22 TB/s70B model at FP8 = 70 GB read per token→ at most ~300 tokens/s for one user on Rubin,~110 on B200, whatever the FLOPs.LPU: weights stay put in SRAM, across many chipsLPU 0layers0-9MXMLPU 1layers10-19MXMLPU 2layers20-29MXMLPU 3layers30-39MXMLPU 4layers40-49MXMLPU 5layers50-59MXMLPU 6layers60-69MXMLPU 7layers70-79MXMactivations → (a few MB per token, not the weights)Each chip reads its slice of weights from 500 MB of on-chip SRAMat ~150 TB/s. Only small activations travel between chips.70 GB at FP8 needs ~140 chips: about half an LPX rack.Deterministic: the compiler schedules every cycle in advanceMEM readMXM (matmul)VXM (vector)SXM (shift)chip-to-chipclock → no caches, no arbitration, no out-of-order: run time is known before the program runs.SRAM / CHIP500 MBLP30SRAM BANDWIDTH150 TB/sper chipLPX RACK256 LPUs128 GB SRAM, 40 PB/sSCALE-UP640 TB/sper rackRACK DRAM12 TB DDR5for larger modelsThe trade: per-user speed for capacity. 128 GB of SRAM per rack holds one mid-size model; a GPU rack holds 20 TB of HBM.NVIDIA sells LPX beside Rubin racks: GPUs do prefill and big batches; LPUs do the latency-critical decode.Sources: NVIDIA Groq 3 LPX product page; GTC 2026 coverage (The Register, Tom's Hardware). Schedule strip is illustrative.
Why SRAM machines decode faster, and why their run time is known before the program runs.

NVIDIA positions LPX as a decode accelerator next to Vera Rubin NVL72. The GPUs run prefill, hold the large KV caches and serve big batches; the LPUs generate the latency-critical tokens. This is prefill/decode disaggregation (14.j) across two kinds of chip. NVIDIA announced full production on 24 August 2026, with Nebius as the first cloud to offer it; supply-chain reports put Foxconn as lead rack builder. GroqCloud continues as a separate service. The first LP30 lacks NVFP4 and NVLink; NVIDIA has said later parts will add them.

The others#

  • SambaNova (SN40L) uses three memory tiers in one system: hundreds of MB of SRAM, 64 GB of HBM and up to 1.5 TB of DDR per socket. It can hold many models and switch between them quickly, with the hot one in fast memory.
  • d-Matrix and similar designs compute inside SRAM arrays (“in-memory compute”), aimed at low-cost, low-latency inference.
  • Convergence. Mainstream inference chips are adding SRAM too: Google’s TPU 8i has 384 MB and Microsoft’s Maia 200 has 272 MB (7.i, 7.j).

When SRAM machines win, and when they do not#

SituationBetter choice
Per-user speed is the product (coding agents, voice, reasoning chains)SRAM machine
Very long contexts with huge KV cachesGPU or TPU: the cache needs HBM-scale capacity
Very large models (1T+ parameters) at low trafficGPU rack: thousands of SRAM chips would sit mostly idle
Cheapest cost per token at high batchUsually GPU or TPU: batching spreads each weight read over many users
TrainingGPU or TPU (Cerebras trains, but it is a niche)

6. Under the hood#

Chips needed, and the per-user decode ceiling, for a 70B model at FP8 on a GPU, on LPUs and on wafers. For the SRAM machines the ceiling is the time to stream each chip’s slice in turn plus the chip-to-chip hops, not HBM bandwidth.

Go
// sram.go — per-user speed: HBM bandwidth vs SRAM spread across chips.
package main

import (
	"fmt"
	"math"
)

func main() {
	const modelGB = 70.0 // 70B parameters at FP8

	// GPU: every token reads all the weights from HBM.
	for _, g := range []struct {
		name string
		tbs  float64
	}{{"B200", 8}, {"Rubin", 22}} {
		fmt.Printf("%-16s    1 chip    ≤ %6.0f tok/s per user\n", g.name, g.tbs*1000/modelGB)
	}

	// SRAM machines: weights spread over n chips; a token visits every chip in turn.
	type sram struct {
		name      string
		chipGB    float64 // SRAM per chip
		chipTBs   float64 // SRAM bandwidth per chip
		hopMicros float64 // chip-to-chip latency per hop (assumed)
	}
	for _, s := range []sram{
		{"Groq LP30", 0.5, 150, 0.6},
		{"Cerebras WSE-3", 44, 21000, 5},
	} {
		chips := math.Ceil(modelGB / (s.chipGB * 0.9))  // keep 10% for activations and code
		perChip := modelGB / chips / (s.chipTBs * 1000) // seconds to read one chip's slice
		tokenTime := chips*perChip + (chips-1)*s.hopMicros*1e-6
		fmt.Printf("%-16s %4.0f chips    ≤ %6.0f tok/s per user  (memory %3.0f µs, hops %3.0f µs)\n",
			s.name, chips, 1/tokenTime, chips*perChip*1e6, (chips-1)*s.hopMicros)
	}
}

Output:

B200                1 chip    ≤    114 tok/s per user
Rubin               1 chip    ≤    314 tok/s per user
Groq LP30         156 chips    ≤   1787 tok/s per user  (memory 467 µs, hops  93 µs)
Cerebras WSE-3      2 chips    ≤ 120000 tok/s per user  (memory   3 µs, hops   5 µs)

How to read it:

  • GPUs stop at a few hundred tokens per second per user, whatever their FLOPs. Rubin’s HBM4 raises the ceiling 2.75x; it does not remove it.
  • LPUs: each chip reads its slice in 3 µs, but a token visits 156 chips in a row. The walk down the chain plus the hops sets the ceiling, still about 15x a B200.
  • Wafers: the memory and hop terms almost vanish, so the 120,000 the program prints is meaningless. Something this model ignores takes over: compute, the on-wafer pipeline and software overheads. Cerebras’s real numbers are thousands of tokens per second, not hundreds of thousands.
  • The hop latencies are assumptions. Real systems also pipeline many users through the chain at once, which is how they reach useful total throughput.

7. Performance implications#

  • Per-user speed is where SRAM machines lead: often 5–20x a GPU on models that fit.
  • Total throughput per dollar is where they struggle. A GPU at batch 64 reads each weight once for 64 users; an SRAM machine already reads fast, so it gains less from batching while costing many chips.
  • KV cache competes with weights for the same small SRAM. Long contexts and many concurrent users push the cache off chip (to DDR, or to a GPU in a disaggregated setup), and the advantage shrinks.
  • Determinism gives tight latency distributions: p99 close to p50, which matters for voice and for agent loops that chain many calls.

8. Production implications#

  • How you buy it. Mostly as an API (GroqCloud, Cerebras Cloud), or as LPX racks from NVIDIA partners and clouds. Few teams own wafers.
  • Model support. You get the models the vendor has compiled and tuned. Check your exact model, precision and context length; custom fine-tunes may not be offered.
  • Where it fits. The likely 2026–2027 pattern is a mixed fleet: GPUs for prefill, long context and bulk traffic; an SRAM tier for the premium “fast” endpoint.
  • Benchmarks. Vendor speed claims rarely state batch size, context length or the GPU setup they compare against. Measure your own prompt mix at your own concurrency.

9. Common mistakes#

  1. Comparing per-user speed with total throughput. A 3,000 tok/s single stream and a GPU serving 20,000 tok/s across 200 users answer different questions.
  2. Forgetting the KV cache. It needs memory too, and it is what SRAM lacks.
  3. Treating “x times faster than GPUs” as a spec. Without the configuration behind it, it is marketing.
  4. Assuming any model runs. Each model is compiled and laid out across chips by the vendor.
  5. Dismissing SRAM machines as a niche. NVIDIA now sells one.

10. Hands-on exercise#

  1. Run sram.go. Halve the LP30 hop latency, then double it. How sensitive is per-user speed?
  2. Change the model to 400B at FP8. How many LP30s and how many wafers does it take? Does one LPX rack (128 GB of SRAM) hold it?
  3. Add a 20 GB KV cache that must also live on chip. How many extra LP30s does that take, and how much does per-user speed fall?
  4. Pick a public endpoint from GroqCloud or Cerebras Cloud and one GPU-based provider. Send the same 2,000-token prompt to both and measure time to first token and tokens per second.

11. Interview questions#

  1. Why can no amount of extra FLOPs raise a GPU’s single-user decode speed above bandwidth ÷ model size?
  2. How does Cerebras make a wafer-sized chip yield?
  3. What does “deterministic, compiler-scheduled” mean on an LPU, and what does it buy you?
  4. Why does NVIDIA pair LPX racks with Vera Rubin rather than replace GPUs with them?
  5. Give two workloads where an SRAM machine is the wrong choice, and why.

12. Further reading#

Checked on 12 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in