ZICQ
中 Log in / Sign up
Newsroom Compute & Architecture #SGLang #Intel Xeon #Intel GPU #MXFP4 #MoE Inference

SGLang Expands Intel Xeon and GPU Backends with Packed MXFP4 MoE Inference

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published: · 1 views

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:The SGLang community, RadixArk, and Intel have expanded the open-source serving framework’s architecture-specific backends for Intel Xeon CPUs and Intel GPUs. The Xeon path combines Intel AMX, W8A8 INT8 quantization, NUMA-aware affinity, and compiled graph execution, while the XPU path adds SYCL attention kernels, grouped MoE GEMM, FP8 and MXFP4 expert computation, EAGLE-style speculative decoding, and graph capture. For Xe2 and BMG devices, the MXFP4 path stores 32 packed expert weights in 16


The SGLang community, RadixArk, and Intel now provide Xeon CPU and Intel GPU/XPU serving through the same framework-level API, but the backends do not share a single universal kernel. The Xeon path is built around Intel AMX, W8A8 INT8 quantization, NUMA-aware affinity, and compiled CPU graphs. The XPU path uses SYCL kernels for attention and grouped MoE GEMM, alongside FP8 and MXFP4 expert computation, EAGLE-style speculative decoding, and graph capture.

One Interface, Specialized Execution Paths

SGLang preserves tensor and model semantics at the framework boundary while each backend separates compute kernels from execution management:

  • Compute kernels implement attention, projections, and expert GEMMs; the execution layer manages threads, buffers, tensor placement, and device dispatch.
  • Kernel efficiency depends not only on the operator but also on matrix shapes, layouts, and memory-access patterns generated by the surrounding runtime.
  • Intel’s upstream work covers both CPU and XPU paths, with operator tests, model-level validation, and continuous integration used to check correctness.

Support is validated per backend and configuration. A shared serving interface does not imply full CPU-GPU feature parity, and it does not automatically place each workload on the most appropriate device.

Xeon CPU Path: AMX Is Only the Compute Layer

Intel AMX accelerates matrix operations on supported Xeon processors, making it useful for dense projections and selected expert computations. Its benefit depends on matrix dimensions, batch size, and kernel tiling. AMX reduces arithmetic cost, but it does not remove the bandwidth bottleneck that often dominates small-batch autoregressive decoding.

Every generated token requires access to an expanding KV Cache. Considering only K/V traffic, the dominant term is approximately:

T_attn_decode ∝ O(N × H_kv × d_h × bytes(dtype))

where N is context length and H_kv is the number of KV heads. At long context lengths, reading the KV Cache can become the bottleneck before matrix multiplication. This is why theoretical AMX throughput alone cannot predict serving performance.

The CPU backend also provides two practical optimizations:

  • --quantization w8a8_int8 loads compatible checkpoints with 8-bit weights and activations, reducing operand storage relative to BF16. Quantization scales, model compatibility, and output quality still require per-model validation.
  • SGLang can group physical cores according to NUMA or L3 topology, while SGLANG_CPU_OMP_THREADS_BIND controls per-rank thread affinity. The benefit depends on where processes, weights, and KV Cache are placed. If execution threads run on a different NUMA node from the data, remote-memory traffic can outweigh kernel gains. Tensor-parallel ranks also add collective communication.

On AMX systems, --enable-torch-compile enables compiled CPU execution to reduce Python overhead. Decode graphs are bucketed by batch size, while optional prefill graphs use total-token buckets. The full prefill backend remains experimental and requires explicit enablement. Fixed-shape graphs reduce launch overhead, but model structure, context length, and concurrency affect bucket hit rates.

Intel GPU Path: From SYCL Kernels to Serving Graphs

The Intel GPU backend uses PyTorch’s XPU path and SYCL kernels, with separate attention implementations for prefill and decode:

  • The Flash Attention path uses tiled computation and online softmax to reduce repeated global-memory access. The MLA path is tailored to latent KV layouts. Prefill has larger query matrices and different cache-access patterns, so it cannot simply share the same scheduling as token-by-token decoding.
  • Grouped GEMM processes multiple experts with different token counts and organizes inputs and expert outputs on-device, avoiding Python loops that launch work for each expert separately. Actual gains still depend on expert load balance, group size, and occupancy.
  • FP8 and MXXFP4-style paths combine quantized weights, scale handling, and matching GEMM kernels. Availability depends on GPU architecture, checkpoint format, and execution path.
  • The EAGLE-style speculative path includes tree construction, target-model verification, and speculative-sampling kernels. Its benefit depends on candidate acceptance rates and the cost of drafting and verification, not merely on the number of generated tokens.
  • XPU graph capture and replay reduce repeated host-side kernel launches. Decode graphs are captured by batch size, while prefill graphs use token-length buckets and can support segmented prefill. These paths remain experimental and opt-in.

MXFP4 MoE: Storage Compression Without Native FP4 Arithmetic

On Xe2 and BMG, the MXFP4 path keeps expert weights compressed in device memory. The grouped GEMM loads packed tiles, unpacks them, applies the scales, and converts them to BF16 inside the kernel. It therefore avoids materializing a complete BF16 copy of the expert weights.

The raw storage accounting is straightforward:

  • 32 MXFP4 weights occupy 16 bytes.
  • The block adds one byte for its scale.
  • The same 32 weights in BF16 require 64 bytes.

The raw payload therefore falls from 64B to 17B, or 26.6% of the BF16 size, equivalent to 3.76× compression. This is an un-padded expert-weight block comparison, not total model memory. KV Cache, activations, routing state, communication buffers, and operator workspaces still consume memory.

The path uses W4A16: weights are stored at 4 bits while activations remain BF16. Weight tiles are converted back to BF16 inside the compute kernel. This reduces weight-capacity and memory-traffic pressure, not matrix-multiplication FLOPs, and it does not mean the hardware is executing native FP4 arithmetic. The trade-offs include in-kernel conversion, scale handling, tighter tile constraints, and potentially lower effective occupancy.

The documented GPT-OSS-20B example applies MXFP4 only to MoE expert weights; attention, routing, embeddings, and the output head remain BF16. The path targets Xe2/BMG devices, including Arc B-Series and Arc Pro B-Series. Expert parallelism has not yet been validated, and other devices or checkpoints require separate qualification.

Engineering Trade-offs and Measured Evidence

The clearest quantitative result is the 17B versus 64B raw-storage comparison for each 32-weight block. The post explicitly notes that this is not a model-memory or throughput measurement. The available material does not provide TTFT, TPOT, concurrent throughput, peak memory, power consumption, speculative acceptance rates, or same-host comparisons against CUDA, CPU-only execution, and other quantization formats. It therefore does not establish a definitive performance lead for the Intel paths.

EPD heterogeneous inference is presented as an area for further exploration rather than a fully qualified production topology. A deployment evaluation should separate prefill from decode and record at least:

  • TTFT, TPOT, and total throughput at fixed model, prompt length, output length, and concurrency.
  • Independent memory consumption for weights, KV Cache, activations, and workspaces.
  • CPU cross-NUMA traffic, GPU kernel time, graph-bucket hit rate, and host overhead.
  • MoE expert balance, speculative acceptance rate, and post-quantization quality regression.
  • Cost per token, system power, and tail latency rather than peak tokens/s alone.

Developer Deployment Guidance

  1. Validate CPU topology first: Confirm that the processor, system, and kernel expose the required AMX instructions, then verify checkpoint compatibility with --quantization w8a8_int8.
  2. Tune affinity together with data placement: Set SGLANG_CPU_OMP_THREADS_BIND per rank and check the NUMA placement of weights, KV Cache, and threads. Binding threads without addressing data locality is insufficient.
  3. Enable graph execution in stages: Start with --enable-torch-compile on the decode path, then test experimental prefill graphs separately. Record compilation, warm-up, and bucket-transition costs across batch sizes and context lengths.
  4. Treat GPU support as an architecture allowlist: The MXFP4 example applies to validated Xe2/BMG configurations. Check the exact GPU, checkpoint format, and model before enabling FP8, MXFP4, MLA, speculative decoding, or graph execution.
  5. Do not enable expert parallelism prematurely: The MXFP4 path has not completed expert-parallel validation. Establish single-device or otherwise qualified parallelism baselines first.
  6. Choose production settings through same-host A/B tests: Compare BF16, W8A8, FP8, and MXFP4 with identical models, precision, concurrency, context, and output lengths. Include quality regression, memory, power, and p99 latency in the production gate.

Source: LMSYS / SGLang Blog (2026-11-27)

— END —

Tags: #SGLang #Intel Xeon #Intel GPU #MXFP4 #MoE Inference

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…