AMD's Quark team has added online quantization to its inference tooling, letting serving engines quantize a model's weights at load time instead of running a separate offline export job. The feature is integrated into vLLM, ATOM, and SGLang through each engine's native extension points, and it targets scenarios where weights change frequently or where quick scheme exploration matters more than a polished final artifact.
Online quantization reads an ordinary high-precision checkpoint and quantizes each layer's weights inside the engine's weight-loading hook, just before serving starts. There is no quantization script, no calibration pass, and no new checkpoint written to disk. The tradeoff is that it uses plain round-to-nearest (RTN) only, with no accuracy-recovery algorithms like rotation, SmoothQuant, GPTQ, or AWQ, and it still reads the full-precision checkpoint, so peak host and device memory and load time are higher than loading an already-small offline checkpoint.
Use Cases and Implementation
The blog describes several scenarios where online quantization fits. In reinforcement learning rollouts, policy weights update every step, so exporting a fresh offline checkpoint each iteration is impractical; the rollout engine quantizes the updated weights in memory as it loads them. Requantization, converting an already-quantized checkpoint from one format to another, is another case: for example, serving an NVFP4 checkpoint as MXFP4 on AMD Instinct GPUs. The offline route would require dequantizing the whole checkpoint, requantizing, and re-exporting, which is disk-heavy for large MoE models. Online requantization does this layer-locally at load time, with no new checkpoint.
Fast quantization-scheme exploration is also a fit. On an MoE model, you might want experts in MXFP4 but attention, router, and shared experts in FP8 or full precision. Offline, each point in that search is a separate export run and a second disk copy. Online, each point is a config edit and a reload. Minor modifications to an already-quantized checkpoint, like quantizing one or two more layers or bumping a single module to a more aggressive format, also become config edits instead of TB-scale rewrites.
The implementation hooks into the serving engine's weight-loading lifecycle. The engine already iterates the checkpoint, maps parameter names, shards tensors across tensor-parallel ranks, and places them on device; online quantization inserts a quantize step at the end of each layer's load. This layerwise scheme keeps peak memory bounded: only one layer's high-precision weights are resident at a time, and the bf16 copy is dropped before the next layer loads. Quantization compute overlaps with the I/O of fetching the next layer, hiding most of the added startup latency. The quant math is byte-aligned with offline Quark, so an online-quantized layer runs on the identical kernel. Tensor-parallel correctness is handled by quantizing against the full un-sharded weight where the scale depends on it, then narrowing back to the local shard.
Engine Integration and Results
In vLLM, native online quantization support is limited: it does not support layer requantization yet, covers only a narrow set of quantization patterns (linear plus MoE), and has a limited config-parsing mechanism. The Quark team provides a vLLM plugin that exposes nearly all key Quark features, including arbitrary requantization, complete config parsing, and nearly arbitrary quantization schemes. The plugin shares the same quant math and kernels as Quark offline quantization.
ATOM, AMD's ROCm-native LLM inference engine built around AITER optimized kernels, has online quantization as a first-class native feature, exposed through a command-line option. It can serve standalone or as a plugin backend under vLLM and SGLang. The blog reports accuracy results for the Quark online quantization plugin on two models. On DeepSeek-R1 with tensor parallel degree 8, MXFP4 online quantization achieved 0.9573 accuracy on GSM8K, compared to 0.9568 offline and 0.9644 baseline, a 99.3% recovery. On Qwen3-235B-A22B-Instruct-2507 with TP 4, online MXFP4 hit 0.9454 versus 0.9393 offline and 0.9560 baseline, a 98.9% recovery. The blog states that online MXFP4 matches offline MXFP4 and stays within noise of the baseline, confirming the shared quant math.
Sources & references
AMD: Online Quantization: Smooth Path from One Checkpoint to Any Desired Serving Scenario ↗Source consulted: 2026-11-11



