TECHNOLOGY

Why must SGLang CPU graph limits distinguish prefill tokens from decode batch size?

In this article
THE QUICK TAKE

Read CPU graph limits with their stage and units: prefill-token buckets and decode-batch buckets are different dimensions that require separate qualification.

This week’s Intel–RadixArk announcement makes SGLang’s CPU path relevant to a broader infrastructure review. Its current graph documentation distinguishes prefill and decode configuration. The practical trap is treating a similarly named limit as the same workload quantity in both stages, then sizing a service around that assumption.

Keep compilation and stage enablement separate

The CPU documentation distinguishes the global compilation switch from the configured graph backend of each stage, and labels full prefill capture experimental. Keep those facts separate when recording the launch configuration. A global switch does not establish that every stage uses the same execution path. This article describes documented existing behavior; the November partnership announcement does not itself date the introduction of these graph features.

Attach a unit to the bucket

The documented CPU prefill buckets use total tokens, while decode buckets use batch size. Write those units beside the configured values in the operating record. Our proposed request fixture includes few long prompts and more short prompts, so equal sequence counts do not hide different token work. A dimensionless number copied between stages can look reasonable while selecting a very different capture envelope.

Test boundaries with accepted outputs

Exercise representative shapes inside and around the chosen bucket limits. Record first-run preparation, warm execution, memory use and any fallback path. Compare correctness with the accepted noncandidate configuration before interpreting performance. These are proposed local tests, not reported Intel benchmark results. Keep the experimental prefill decision reversible and separate from the decode configuration so a problem in one stage does not require guessing which combined setting caused it.

Size the service from the qualified shape set

The resulting service record should include stage-specific backends, bucket units, tested prompt shapes and the observed preparation cost. Do not describe one maximum value as universal CPU graph capacity. The partnership news gives a reason to examine this path; the deployment decision follows the actual configuration and evidence. This is a concrete example of why runtime arguments need semantic units before they can inform a GPU or CPU service-capacity plan.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles