Design a serving path where prefill runs on GPUs or Trainium and decode runs on an SRAM-based accelerator from another architecture, as in NVIDIA's pairing of Vera Rubin GPUs with Groq 3 LPX, or the Trainium plus Cerebras design AWS has announced. What crosses the boundary, how do you size each pool, and what happens to prefix caching and failure handling?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Why do it at all? Prefill is compute-bound and loves big matrix engines. Batch-1 decode is bound by memory bandwidth, and SRAM-based chips have far more on-chip bandwidth per user than HBM. So the pairing buys very high per-user tokens per second without giving up efficient prefill. The cost: SRAM capacity is small, so the model is sharded across many decode chips and KV space is scarce.
Full worked answer with diagram
Why do it at all? Prefill is compute-bound and loves big matrix engines. Batch-1 decode is bound by memory bandwidth, and SRAM-based chips have far more on-chip bandwidth per user than HBM. So the pairing buys very high per-user tokens per second without giving up efficient prefill. The cost: SRAM capacity is small, so the model is sharded across many decode chips and KV space is scarce.
What crosses the boundary depends on where you split.
- Handoff once. Prefill builds the KV cache and ships it to the decode tier, as in homogeneous disaggregation. Across architectures the KV layout, paging scheme and precision usually differ, so you need a conversion step or an agreed format, and its cost sits on TTFT. Send the request's sampling state with it: sampling parameters, stop sequences, structured-output grammar state, and LoRA or adapter identity.
- Split by operation. If attention and the KV cache stay on GPUs and the decode accelerator runs the rest of each layer, as NVIDIA describes for Rubin plus LPX, the KV never moves. Activations cross the link on every decode step instead, so link latency, not bandwidth, sets your floor, and the two tiers are coupled step by step.
Sizing. Size each pool from its own demand:
- Prefill: peak input tokens per second ÷ measured prefill throughput per unit at your TTFT SLO, with headroom for long prompts.
- Decode: concurrent streams × target tokens per second, against each unit's capacity at that speed and context mix.
Then accept that you cannot rebalance by switching roles, as SGLang now allows within one GPU pool. The chips are different, procurement cycles differ, and a traffic shift towards long-context agents can strand capacity on one side. Keep a degraded mode where the GPU pool also decodes, slower, so one tier can absorb the other's loss.
Prefix caching. The cache lives where the KV lives. Under the handoff split, prefix hits skip prefill compute but still pay the transfer. Multi-turn chat adds a subtlety: the next turn needs KV for tokens the decode tier generated. Ship it back, or recompute those output tokens on the prefill side, which is usually cheap next to the full history. Cache-aware routing now applies on both tiers.
Failure handling. If a decode unit dies mid-stream, resume by re-prefilling prompt plus generated-so-far on the GPU pool and continue, de-duplicating tokens to the client. Two vendors means two firmware and driver stacks, two observability systems, and two numerical implementations of the same model. Evaluate the cross-vendor path as its own model variant, because logits will not match bit for bit.
Worth sketching. Optional, but drawing both split points shows the interviewer you know the boundary is a design choice.
flowchart LR
R["Request"] --> P["GPU or Trainium prefill pool"]
P -->|"handoff: KV plus sampling state, once"| D["SRAM decode pool"]
P -->|"op split: activations every step"| D
D --> S["Streamed tokens"]
D -->|"decode failure: re-prefill prompt plus output"| P
D -->|"new turn: output KV back or recompute"| P
What a good answer covers
- Prefill is compute-bound and loves big matrix engines
- Batch-1 decode is bound by memory bandwidth, and SRAM-based chips have far more on-chip bandwidth per…
- So the pairing buys very high per-user tokens per second without giving up efficient prefill
- The cost: SRAM capacity is small, so the model is sharded across many decode chips and KV space is scarce
- What crosses the boundary depends on where you split
Key terms: Handoff once · Split by operation · Sizing · Prefix caching · Failure handling
In the glossary: HBM · Handoff · SLO · SGLang · Prefix caching · Observability
Interviewer follow-ups to expect
Estimate the per-step activation traffic for the operation-split design and say what link latency you can tolerate. How would you route a 400K-token prompt in this topology?
What would make you abandon the split and decode on GPUs?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep