blog.rust.gay

Cerebras splits inference to stretch every megawatt

Cerebras says disaggregated inference is now in production. GPUs handle prompt processing, also called prefill, and Cerebras CS-3 systems handle output generation, also called decode. The company claims the split delivers five times more tokens per megawatt than a CS-3-only configuration, with no loss in token generation speed. The measurement comes from a shared GPT-OSS-120B endpoint on the Cerebras Inference Cloud on 14 November. It is a vendor benchmark, not an independent one, but the architectural idea is real and worth understanding.

The reason to care is not the specific multiplier. It is that inference has two phases with different hardware profiles, and most serving systems run both on the same accelerators because that is simpler. Prefill is compute-heavy and parallel: the model reads a long prompt and builds the key-value cache. Decode is memory-bandwidth-heavy and sequential: the model generates one token at a time, reading the model and the cache at every step. Putting both on the same chip is convenient, but it means each phase pays for hardware that is optimized for the other.

Prefill and decode are different jobs

A transformer inference request starts with a prompt. The prefill phase processes the whole prompt, computes attention, and fills the KV cache. It is a large matrix multiplication workload, and it benefits from high compute throughput and parallelism. The decode phase then generates tokens one by one. Each new token attends to the cached keys and values, so the model repeatedly reads the cache and the weights. That makes memory bandwidth the limiting factor, and latency matters because the user is waiting for each token.

On a GPU, prefill and decode share the same HBM and the same SMs. A serving stack can batch requests to improve utilization, but it cannot change the fundamental mismatch. A chip with enormous SRAM and memory bandwidth is great at decode. A GPU with high floating-point throughput is great at prefill. Splitting the phases lets each pool specialize, and it lets the decode pool avoid spending expensive wafer-scale capacity on prompt processing.

That is the logic behind disaggregated inference. It is not a new idea in serving systems; vLLM and other engines have explored prefill/decode separation. What Cerebras is claiming is that it has made the split work in production at scale, with its own hardware on the decode side and commodity GPUs on the prefill side.

What Cerebras actually built

The production deployment uses AMD Instinct GPUs to process prompts and Cerebras CS-3 systems to generate responses. Cerebras says moving prefill to GPUs lets the CS-3 systems devote their serving capacity to decode, which is what they are best at. The company measured the combination on a shared GPT-OSS-120B endpoint and normalized the result to its aggregated baseline.

The software stack has four parts. A disaggregated inference framework routes requests between prefill and decode pools and manages replica capacity and health. A prefill engine processes prompts using open-source engines such as vLLM or SGLang. A Cerebras decode engine generates responses on the wafer-scale systems. And KV Portal transfers intermediate model state, including the KV cache, between the prefill and decode engines over RDMA.

Partners can use the full stack or a decode-only SDK. The full stack is for teams that want time-to-market: Cerebras provides the routing, prefill, decode, and KV transfer. The SDK is for teams that want control: they bring their own inference framework and prefill engine, and plug in the Cerebras decode engine. Early-access partners include Amazon Web Services, Fireworks AI, Gimlet Labs, and General Compute. Cerebras says it is expanding access to more partners.

The 5x claim and its boundaries

The headline is five times more tokens per megawatt, measured on one model and one endpoint. That is a meaningful metric for a power-constrained business. Data centers are increasingly limited by electricity and cooling, not by floor space. If you can serve five times as many tokens with the same power budget, you can either lower cost or serve more demand. Cerebras frames it as a way to meet "insatiable demand for fast inference" without building five times as much capacity.

The caveats are important. The benchmark is a before-and-after comparison on Cerebras's own cloud, normalized to its own baseline. It uses GPT-OSS-120B, a specific open model. It does not say how the result changes with longer prompts, larger batches, different model architectures, or bursty traffic. It does not report tail latency or error rates. It does not include the power cost of the GPUs doing prefill, unless the "per megawatt" figure is defined to include the whole deployment; the blog does not give enough detail to verify that. The 5x is best read as a directional claim: disaggregation can improve power efficiency substantially when decode is the bottleneck.

The underlying hardware claims are even more vendor-specific. Cerebras says its wafer-scale chips have tens of gigabytes of SRAM and tens of petabytes per second of memory bandwidth, which it describes as 350 times the SRAM capacity and 5,400 times the memory bandwidth of a typical GB300 GPU. Those numbers explain why decode is a good fit: the model data stays on-chip, and the chip can read it much faster than a GPU can read HBM. They do not prove that the whole system is cheaper per token, because wafer-scale systems have their own manufacturing, power, and cooling costs.

Why this is an economic argument

The most interesting part of the announcement is not the hardware. It is the business model. Cerebras is not trying to sell a chip that does everything. It is selling decode capacity, and it is willing to pair that capacity with GPUs from AMD for the part of the workload where GPUs are good enough. That is a more mature pitch than "our chip beats GPUs at everything." It acknowledges that inference is a pipeline, and that the best pipeline may use different hardware at different stages.

The economics also explain the focus on tokens per megawatt. Cerebras mentions CS-4, scaled manufacturing, and a planned 700MW of data center capacity. It plans to deploy disaggregated inference across hundreds of megawatts in its cloud and partner deployments by the end of 2027. Those are large numbers. If the 5x claim holds even partially, disaggregation is the difference between needing 500MW and needing 100MW for the same decode throughput. That is the kind of difference that gets a capacity plan approved.

There is a competitive angle too. GPUs are general-purpose and widely available. Wafer-scale systems are specialized and supply-constrained. By using GPUs for prefill, Cerebras can reserve its scarce systems for the phase where they have the biggest advantage. That is a sensible allocation strategy, and it makes the system easier to adopt for customers who already have GPU capacity for prefill.

The scheduler is the hard part

Splitting prefill and decode turns a single serving problem into a queueing problem. The router has to decide when a prompt is ready to move, which decode replica should receive it, and how long to wait for capacity. If the prefill pool runs ahead of the decode pool, the KV cache piles up in transit and memory pressure moves from the accelerator to the network and the host. If the decode pool runs ahead, the expensive wafer-scale systems sit idle while prompts wait.

The KV cache makes this harder than ordinary request routing. A long prompt can produce a cache that is large enough to dominate the transfer time. The router cannot simply send the request and forget it; it has to reserve space on the decode side, stream the cache over RDMA, and confirm that the decode engine has what it needs before releasing the prefill resources. That is a distributed transaction with a timeout, and every timeout is a request that may need to be retried or failed.

Batching adds another dimension. Prefill wants large batches to keep the compute units busy. Decode wants a batch size that keeps latency low for each user. The two pools may want different batch sizes, different scheduling policies, and different admission control. A disaggregated system has to coordinate those choices without letting one pool's optimization starve the other. That is where a lot of the engineering effort goes, and it is why the software stack is more than a pair of engines connected by a network.

The failure modes are also different. In a single pool, a slow request competes with other requests on the same accelerator. In a disaggregated system, a slow KV transfer can hold a decode slot open, a failed transfer can leave a prefill slot occupied, and a health check that marks a decode replica unavailable can cause a thundering herd on the remaining replicas. None of these problems is unsolvable, but they are the kind of problems that show up under production load rather than in a benchmark.

The limits

Disaggregation is not free. Moving the KV cache between prefill and decode pools over RDMA adds a network hop, a serialization format, and a new failure domain. If the decode pool is slow to accept a request, the prefill pool may stall. If a KV transfer fails, the request has to be retried. The routing layer has to track replica health and capacity, and it has to decide when to batch, when to queue, and when to reject. None of that is impossible, but it is operational complexity that a single-pool deployment does not have.

The decode-only SDK is an admission that customers may not want Cerebras's entire stack. That is good for adoption, but it also means the integration surface is larger. A partner can bring vLLM or SGLang for prefill and a different scheduler, and Cerebras has to make its decode engine work with that. The more combinations the company supports, the harder it is to guarantee performance.

The other limit is model coverage. The production result is for GPT-OSS-120B. Cerebras says its systems fit more concurrent requests and model layers on-chip, but the economics depend on the model fitting and on the decode workload being memory-bound in the way the benchmark assumes. A mixture-of-experts model with a large number of active parameters, or a model with a very long context, may behave differently. The company will need to publish results across more models before buyers can generalize.

What to watch

The first thing to watch is independent measurement. Cerebras's 5x claim is specific enough to be tested: same model, same endpoint, same power boundary, before and after disaggregation. If outside operators can reproduce even a 2-3x improvement, the architecture will get attention. If the gain depends on a particular traffic pattern or a particular definition of "per megawatt," buyers will discount it.

The second is partner deployments. AWS, Fireworks AI, Gimlet Labs, and General Compute are early-access partners, not proof of production scale. Watch for a partner to publish a real workload, with latency and cost, not just a logo. The third is the roadmap: hundreds of megawatts by the end of 2027 is a big commitment. If Cerebras can execute, disaggregation becomes a standard part of the inference stack. If it cannot, the architecture may remain a niche optimization for one vendor's cloud.

For now, the useful takeaway is conceptual. Inference is not one workload. Prefill and decode have different bottlenecks, and the hardware that wins one phase may not win the other. Cerebras is betting that separating them is worth the network complexity. The 5x number is the sales pitch; the architecture is the part worth stealing.

Sources


← back to posts