All writing
    Engineering··6 min read

    Shipped, and the discipline behind it: production on AMD MI350X

    What it takes to trust a serving-layer change in production — a correctness-first gate, capture-replay bisection, statistical validation, and one-flag fault isolation — on a live 8×MI350X deployment.

    Kimi-K2.7-Code · 8× AMD MI350X (gfx950) · SGLang · TP = 8

    1.80×Capacity (realized)3.31M vs 1.84M, one grep
    1.000Needle recallNIAH, majority-of-3
    τ ≈ 0.96–0.98At concurrencyat or under stock
    = stockFlag offreproduces stock exactly

    Correctness is the gate; speed is a report.

    Yantrion's original production home is a live SGLang deployment on eight AMD MI350X GPUs (gfx950, tensor-parallel across all eight). Shipping a change into that path is a different problem from proving a kernel in a notebook, because the failure mode that matters most is silent: a change that improves latency while quietly corrupting an answer. A latency win is easy to measure and easy to celebrate; a corrupted state can pass every timing check and still be wrong. So the governing rule of the production discipline is stated as a principle, not a preference: every change is gated on a downstream task metric, and never on latency alone.

    accept(change) ⟺ Atask(change) ≥ Atask(stock)

    A change ships only if it holds task accuracy at or above stock — latency is reported, never the gate.

    A_task downstream task accuracy · change candidate build · stock reference server

    The task metrics are chosen to be complementary. Long-context retrieval (needle-in-a-haystack, NIAH) tests whether a fact buried deep in a long context still surfaces. Multi-step reasoning (GSM8K) tests whether chained inference holds. Both are held at parity on every shipped configuration, across multiple production models. The capacity result on this stack is read directly from the engine's startup log: 3.31M resident tokens against a stock 1.84M, a factor of 1.80× realized at iso-accuracy after fixed overhead — a single auditable number a skeptic can reproduce with one grep.

    The fidelity-versus-task trap.

    There is a subtle methodological hazard here worth naming, because getting it wrong is the classic way a serving optimization ships broken. It is tempting to gate on an internal fidelity or proxy score — some cheap internal measure of how faithful a change is — because such scores are fast to compute and correlate with quality most of the time. The trap is that they correlate only most of the time. A high internal similarity score can coexist with a failed task: the needle is found, but a digit in the answer is wrong. The only measure that discriminates the good change from the bad one is the downstream task result itself. This is why the accept condition above is written on A_task and nothing else — we never substitute a proxy for the task.

    Capture-replay bisection: debugging as measurement.

    When a task metric does regress, the method for localizing the cause is capture-replay bisection, and it is worth describing as a general methodology because it is what makes hard, nondeterministic serving bugs tractable. Capture the real inputs flowing through the live serving path. Replay them offline against an independent reference. Diff the two in stages, narrowing the interval until the discrepancy localizes. The power of the method is that it turns a vague “the server is a little wrong sometimes” into a reproducible offline comparison with a definite answer. It cracked the hardest accuracy regression on this stack — root-caused by replaying captured production inputs against the reference and bisecting the staged diff until the responsible stage was isolated, then fixed and re-gated to parity.

    Capture-replay bisection

    1Capturereal inputs from the live path
    2Replayrun against an fp32 reference
    3Staged diffcompare stage by stage
    4Localizenarrow to the responsible stage
    5Gate + shiptask metric ≥ stock, then ship

    Staged diff narrows the interval — repeat until localized. Debug by measurement, not by assumption.

    Real serving inputs are captured, replayed against an independent reference, staged-diffed, and localized — turning a nondeterministic production regression into a reproducible offline comparison.

    Statistical rigor for a nondeterministic server.

    Production LLM serving is not deterministic — mixture-of-experts routing makes run-to-run outputs vary — so an accuracy number from a single run is a noisy estimate, and a gate built on a noisy estimate flaps. The response is to treat each task metric as a statistical functional and to stabilize it. Retrieval is taken as the majority of three independent runs, which suppresses single-run routing noise; the reasoning benchmark serves as a larger, stable anchor. This is ordinary statistical hygiene applied to a serving gate: measure the functional, not a lucky sample.

    ANIAH = majority { run₁ , run₂ , run₃ }

    Retrieval accuracy is the majority verdict over three runs, suppressing routing nondeterminism.

    Underneath the statistical gate sits the anchor that makes the whole thing cheap to trust — and it is the same property that makes adoption safe: flag-off exactness, where off reproduces stock output exactly. It doubles as a free, always-available correctness oracle, which we lean on constantly.

    One flag: reversible adoption and one-flag fault isolation.

    With the layer disabled, the serving path is the reference server exactly — stock pool, stock weights, stock kernels, nothing of Yantrion's compiled or launched, and it reproduces stock output exactly. This has two consequences that matter to an operator. First, adoption is reversible: flag-off is your exact current baseline, so the downside of trying the layer is bounded to turning the flag back off. Second, it makes the system bisectable at the coarsest possible granularity — a single flag cleanly partitions “is this Yantrion or the base server?” — which collapses the first and most expensive step of any production incident to one toggle.

    output( flag = off ) ≡ output( stock ) (reproduces stock output exactly)

    Disabling the layer reproduces the reference server exactly, so any regression isolates to one flag.

    One-flag fault isolation

    Yantrion flag
    Flag offstock pool · stock weights · stock kernelsoutput ≡ stock (reproduced exactly)
    Flag onalgorithm-aware kernels · reduced footprint bρ×-larger pool, iso-accuracy

    Adoption downside bounded to “flip it off” · a regression isolates to one flag.

    The layer hangs off a single switch; off reproduces stock output exactly, so adoption is reversible and any regression is bisected in one toggle.

    Generalization without architecture change, and the honest cost.

    A production technique earns trust partly by not being overfit. New models are brought onto this stack by swapping the model and re-fitting a calibration once — no architecture change to the serving integration. Multiple production models have been added this way, each re-passing the same NIAH-plus-GSM8K gate. On the latency side the disclosure is plain: at production concurrency (CONC 32–128) the per-step latency ratio τ is roughly 0.96–0.98 — at or slightly under stock — and the only measurable tax appears at trivial single-user batch, which is not the regime a capacity technique is for. As concurrency rises the per-step cost amortizes, so the tax is smallest exactly where the capacity is most needed.

    Reproducibility across stacks and vendors

    SGLang
    AMD MI350X
    shipped1.80× realized · reasoning at parity
    vLLM
    NVIDIA GB10
    plugin3.45× · τ ≈ 1.07
    TensorRT-LLM
    NVIDIA GB10
    validated3.43× · flag-off = stock path

    Same method · same integration contract · same gates — 3 stacks × 2 vendors, cross-stack reproduction.

    The same method, integration contract, and validation discipline reproduce across three serving stacks and two GPU vendors — cross-stack reproduction, not one result repeated.

    Prove it on your workload.

    Flag off is your exact current server; flag on is the same server with far more headroom. Measure it on your own stack.

    contact@yantrion.com
    More writing
    Yantrion

    From algorithm to production performance.

    AI inference algorithms — 1.8–3.4× more resident capacity on the GPUs you already own.

    Our mission

    Writing kernels, solving hard problems, and a love of the math underneath — grateful that NVIDIA aligns with it.

    Member of the NVIDIA Inception Program

    © 2026 Yantrion, Inc. All rights reserved.

    Built at the metal — SGLang, vLLM & TensorRT-LLM.