Repository navigation
Conversation
Signed-off-by: yihou <[email protected]>
|
Closing this proposal because the reason for the opt-in has been superseded by #47180 (merged as At current main I checked the merged implementation and completed 13 CPU probes against its unchanged helper and loader quantizer: both FP8 formats, scalar and one-element scales, unsupported per-channel scales, BF16/FP16/FP32 controls, and two actual Correction to the initial validation wording: the first probe assumed that a one-element FP32 vector scale also preserves BF16; PyTorch instead promotes that result to FP32. The final probe records this distinction and verifies the loader's actual scalar scale separately. This is CPU conversion coverage only, not distributed gather, GPU, or model-accuracy qualification. #47180 provides its own separately attributed hardware evidence. Keeping original BF16 weights is numerically different from dequantizing the FP8 weights, so this is not a claim that #47180 implements this flag verbatim. There is no isolated current-main evidence justifying that additional memory/precision option after #47180. Historical T10 measurements cannot establish an incremental benefit over this new baseline. We will not add a redundant option on that basis. The original patch and T10 archive remain preserved for reference. The trial rebase was stopped after discovering this change; the PR head is unchanged. No replacement PR is needed. The separate PD transport/enablement work remains #46824 and #46826. |
Problem and fix
On gfx950, GLM's BF16
kv_b_projis automatically converted to FP8. The replicated-Q preparation accepts BF16/FP16 weights, so that conversion prevents--dcp-replicate-q-projfrom preparing full-head Q weights and avoiding its per-layer Q all-gather.Add opt-in
SGLANG_DSA_DCP_KEEP_KV_B_BF16=1to retain BF16 only for GLM target weights on DCP ranks. Default behavior, DCP1 prefill, other architectures, non-BF16 weights and non-gfx95 paths stay on their existing policy. Rebased D22 (636cc68dd0) onto main8a455f1.Evidence
Historical isolated
benchrun T10, 34K context, recorded step-time reductions of 0.4/1.6/1.7/1.7 ms at N=8/16/24/32, at a cost of about 0.34 GB/GPU in weights. This is the archived combined DCP implementation, not a new benchmark of this main-based revision. No stack throughput is attributed to this flag. Historical serving throughput used simulated MTP acceptance and is not model-correctness evidence.Validation
CPU policy matrix: 1 passed, 72 subtests passed, covering platform, architecture, dtype, DCP width and flag state. This tests dispatch policy, not numerical equivalence or serving performance.
Draft blockers
CI States
Latest PR Test (Base): ❌ Run #40493973640
Latest PR Test (Extra): ❌ Run #40493973621
Latest PR Test (AMD ROCm 10): ❌ Run #40493973643
All applicable local pre-commit hooks and the new-head upstream lint passed. Upstream test execution is still gated by the maintainer-controlled
run-cilabel; latest PR title check passed.