Repository navigation
Conversation
e7c628a to
d615f9f
Compare
f0ebecd to
86bdfdc
Compare
86bdfdc to
f43238b
Compare
V4.1 consumer layers currently dequantize the same compressed KV on every attention call. Keep a separate workspace per compression ratio and reuse its compressed prefix within one forward, keyed by source layer and allocation address. Refresh on producer execution or allocation replacement, while updating SWA and top-k for every layer. Limit reuse to CP sparse BF16 prefill with compression ratios 1 and 2. Per-forward gather recreation invalidates the keys across batches and BCG replays. Add a GPU regression covering source changes, source re-execution, ratio interleaving, new batches, and workspace growth/shrink against forced dequantization. Validation: B200 TP4/EP4 with CP, BCG, MegaMoE and DSPARK; GPU regression passed; 16/16 long/short arithmetic outputs match baseline. Six-step traces reduce compressed dequant calls from 228 to 24. Three unchanged test.sh trials improve median output throughput by 3.20% at concurrency64 and 4.11% at96. Concurrency32 has overlapping timing ranges and a smaller median change.
This reverts commit 007f7c8.
f458a0d to
e44e29a
Compare
This comment has been minimized.
This comment has been minimized.
|
Required checks failed on e44e29a; this PR cannot be merged until they pass. PR title (run)
|
Motivation
Issue #39700. When using CP on deepseek v4.1, _forward_prepare_low_ratio_multi_stream will be disabled. This PR supports their compatibility.
Modifications
Developed based on #40548 and need #40548 to be merged first. The implementaion is similar with #39588.
Accuracy Tests
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ❌ Run #38354933523
Latest PR Test (Extra): ❌ Run #38354933180
Latest PR Test (AMD ROCm 10): ❌ Run #38354933330