Repository navigation
avoid host sync in DSpark prefill slot expansion - #40111
Conversation
|
/tag-and-rerun-ci |
|
ci finished, no nv failure. @HaiShaw @Duyi-Wang |
|
@amd-bot ci-status |
CI Status for PR #40111Merge verdict: All 8 executed CI failures across AMD/NPU/XPU/Xeon are unrelated to this PR — the changed function is never entered by any of them (two already have in-flight fix PRs). But PR CI never exercises this PR's changed code at all: the Caution This PR's changed code is not exercised by any PR-CI test. The edited block at Warning PR CI is incomplete. Changed files: Executed CI failure attribution: AMD: 2 failures (0 related) · Others: 6 failures (0 related). Plus 6 fast-fail cascade jobs, 2 label-gate failures, 4 roll-up AMD Executed Failures
Other Executed Failures
Cascades / gates not counted as independent failures: NPU Green: Details / what to do before mergeThe coverage gap is the only thing blocking a confident merge.
Generated by amd-bot using Claude Code CLI |
Motivation
torch.repeat_interleavecalculates its output size from GPU data, which introduces a host synchronization during DSpark prefill slot expansion. The required token count is already available frombatch.extend_lens. cc @Duyi-Wang @HaiShawModifications
Pass the known token count through
output_sizefor bothstate_slotandfinal_posexpansion, avoiding the synchronization without changing the generated values.Tests
baseline: InferenceX run 35328216206 dsv4 pro agentic bench
baseline+ pr: internal verified @Duyi-Wang
TTFT
TPOT
Throughput
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ✅ Run #35555910621⚠️ Not enabled -- add
Latest PR Test (Extra):
run-ci-extralabel to opt in.Latest PR Test (AMD ROCm 10): ❌ Run #35555910779