Skip to content

[Qwen3.5_dev] Cherry-pick fix for custom all-reduce - #4547

Merged
yixionghuo merged 2 commits into
ROCm:Qwen3.5_devfrom
apinge:fix_all_reduce
Aug 6, 2026
Merged

[Qwen3.5_dev] Cherry-pick fix for custom all-reduce#4547
yixionghuo merged 2 commits into
ROCm:Qwen3.5_devfrom
apinge:fix_all_reduce

Conversation

@apinge

@apinge apinge commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Motivation

Cherry pick 2 PRs from main branch to prevent race condition.

Technical Details

Test Plan

Test Result

Submission Checklist

zovonoir and others added 2 commits August 4, 2026 07:40
Without this barrier, a fast rank can exit the kernel while a slow rank
is still reading peer input via IPC. The fast rank's caller can then
overwrite the input slot (e.g. PyTorch graph_pool reuse in a captured
CUDA graph), causing the slow rank to read garbage and produce NaN / Inf
in the AR output.

All other AR kernels in this file already call end_sync before exit.
Co-authored-by: ColorsWind <14761584+ColorsWind@users.noreply.github.com>
@apinge
apinge marked this pull request as ready for review August 6, 2026 02:06
@zufayu
zufayu requested a review from yzhou103 August 6, 2026 02:34
@yixionghuo
yixionghuo merged commit ca45f4b into ROCm:Qwen3.5_dev Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants