PCIe dual-GPU cuts 512K cold prefill from 232s to 66s: unpacking SGLang 3.54x speedup and its four boundaries

Start with something that does not read like good news. Per machine intelligence coverage on 2026-11-27, DeepSeek began showing a usage-limit message to free users in mid-November. The same day, Agnes released a technical report on specializing SGLang: on a commodity PCIe dual-GPU server, the same 512K-token cold input dropped from 231.71 seconds to 65.54 seconds, 3.54x, production-pool output throughput rose 73 percent, and time-to-first-token P90 fell from 2.42s to 1.26s (machine intelligence, 2026-11-27; AgnesAI-Labs/Inference-Framework-Specialization technical report v2, 2026-11-13).

Put together, the two are interesting. One side is capacity so tight that traffic gets throttled; the other squeezes 73 percent more out of the same cards in software. I am not here to repeat the phrase unlock idle capacity. I want to know what the 3.54x is made of, and when it has nothing to do with you.

One request, four segments to fix

The report targets a 64-layer hybrid-attention model: 16 Full-Attention layers using a KV cache, 48 GDN layers keeping recurrent state. PCIe interconnect, constrained memory, long context. The changes spread across a request lifecycle, each attacking a different wait:

  • Slow prefill to FP4 attention. QK and PV matrix multiplies move to a 4-bit path, 3.09x in a 512K component test. Cost: 1K-2K short inputs see P50 latency rise about 3 percent, and a LongBench v2 subset slips from 64.50 to 63.50 percent accuracy.
  • Idle GPUs during cross-card communication to MBO, microbatch overlap. Split a batch into A and B; while A transfers, the GPU computes B. With 8192 tokens and no prefix hit, communication-wait share fell from 46.7 to 13.2 percent, step time from 559ms to 425ms.
  • Memory that cannot hold more requests to NVFP4 KV cache plus BOLE. The former compresses KV from FP8 to 4-bit with block scaling, about 62.5 percent of the original bytes per KV token. The latter stores only the initial recurrent state plus lightweight per-step deltas during speculative decoding, rebuilding after verification; at 16 slots, peak memory per GPU fell from 29.9GiB to 23.2GiB.
  • Waiting for weights during decode to GPU L2 prefetch. Before cross-card sync completes, the next layer's weights are usually already known, so they are moved from HBM into L2 early. A small-batch operator adaptation, zero-padding 2/4/8-row matrices to 16 to hit a faster kernel, 19.8us to 4.21us, stayed in component research and did not enter integrated config.

Worth copying is the decomposition. Do not say inference is slow. Ask which segment is slow: prefill is compute and kernel efficiency, decode is bandwidth and fetch, with cross-card communication and memory capacity in between. Local savings only count once they show up on the full request.

Runnable: balance your KV ledger before chasing 3.54x

Do not rewrite the engine first. Use this standard-library script to compute how many tokens your memory budget can hold and what 4-bit actually saves. It models only Full-Attention layers storing KV and GDN layers not storing it, matching this hybrid structure. Save as kv_budget.py and run.

GB = 1024 ** 3

FULL_LAYERS = 16   # 16 Full-Attention layers store KV, 48 GDN layers do not
KV_HEADS = 8
HEAD_DIM = 128

def kv_bytes_per_token(bytes_per_elem):
    return 2 * FULL_LAYERS * KV_HEADS * HEAD_DIM * bytes_per_elem

def capacity_tokens(mem_gib, bytes_per_elem):
    return int(mem_gib * GB / kv_bytes_per_token(bytes_per_elem))

for name, bpe in [("FP8", 1), ("NVFP4(4bit)", 0.5)]:
    cap = capacity_tokens(60.0, bpe)
    print(name, "bytes per KV token =", kv_bytes_per_token(bpe),
          "| tokens in 60GiB =", format(cap, ","))
print("theoretical 4bit multiple = 2.0x")
print("reported KV capacity 530400 -> 927000, multiple =",
      round(927000 / 530400, 3), "x")

The theoretical multiple is 2.0x; the reported one is 1.748x. The gap is exactly block-scaling metadata and secondary-cache usage, which is why the report says 62.5 percent rather than 50 percent. Plan capacity with the measured number, never the theoretical one.

Runnable: the MBO saving and the TPOT exchange

The second block puts two component tests on one ledger. MBO cut communication wait from 46.7 to 13.2 percent, step time 559ms to 425ms. BOLE raised slots from 16 to 32: throughput rose, but TPOT P50 went from 9.87ms to 14.95ms. Save as tradeoff.py and run.

def pct(part, whole):
    return round(100.0 * part / whole, 1)

before_wait = pct(261, 559)     # baseline wait share
after_wait = pct(56, 425)       # wait left after MBO, 425-369
print("MBO wait share:", before_wait, "% ->", after_wait, "%")
print("wait in ms     : 261ms -> 56ms, saved", 261 - 56, "ms")
print("step time      : 559ms -> 425ms, drop", pct(559 - 425, 559), "%")
print()
tpot_16, tpot_32 = 9.87, 14.95
print("BOLE slots 16 -> 32, TPOT P50:", tpot_16, "->", tpot_32, "ms")
print("per-token pace slower by:", pct(tpot_32 - tpot_16, tpot_16), "%")
print("verdict: fine for batch jobs; retest for real-time chat")

What prints out is a clear exchange rate: the MBO step is close to a free win, while BOLE slots trade per-token rhythm for total throughput. Both signals live in the same report. Reading them apart is how you avoid fooling yourself with one flattering average.

Four boundaries worth more than the number

The rare honesty in this report is its own evidence boundary. Translated into four judgments:

  1. Single configuration. Every figure comes from one hardware, model and workload combination. Component gains are neither additive nor transferable. Switch to H100 with NVLink, or a dense model, and the result no longer applies.
  2. Concurrency is a confounder. The integrated comparison also changes the active-request limit from 8 to 16. So part of the 73 percent is just twice as many requests in flight. Not fraud, but do not read it as a pure kernel win.
  3. Quality acceptance is unfinished. The report states that independent quality acceptance for the integrated configuration remains outstanding; short inputs regress, and the small-batch combination fell from 94.77 to 94.28 percent on a GSM8K replay, below the non-inferiority bar, so it was left out. Publishing the failures is good practice, but you still need your own acceptance run.
  4. Throughput and latency fight. BOLE raised slots from 16 to 32; high-concurrency throughput kept rising while TPOT P50 went from 9.87ms to 14.95ms. Batch jobs track total output, real-time chat tracks first-token and per-token rhythm. Size accordingly.

My advice: treat the report as an optimization map, not a benchmark score. Run the KV ledger first to see whether your bottleneck is capacity or compute, then decide whether to touch the FP4 path. If you do, put short-input P50 and task accuracy into regression. The only two negative results in the report are both in those dimensions.

Sources: machine intelligence, 2026-11-27, Agnes Cracks the Compute Bottleneck Without Adding GPUs; AgnesAI-Labs/Inference-Framework-Specialization technical report v2 (2026-11-13) and its GitHub README. The KV ledger script is an original implementation.

Further reading

Feedback

This site is front-end only — no backend, no accounts — so feedback goes to GitHub Issues, Discussions, or email.

Paste it into the issue or email to help track it down — it never includes anything you typed

Also:Browse existing issues · Email feedback (no GitHub account needed):278975598@qq.com