refactor: optimize broadcast#850
Merged
Merged
Conversation
Collaborator
Code Review: PR #850 — refactor: optimize broadcastAuthor: Vinkle-hzt Summary优化 核心变更:
评价改动方向正确,减少 NCCL broadcast 调用次数对多 TP 场景有明显收益。代码结构清晰,pack/unpack 逻辑对称。 P2 Suggestions1. GPU pack 使用
|
…broadcast efficiency
Collaborator
🤖 Code Review (v2 incremental) — LGTMVerdict: LGTM ✅ 核心增量: 优化效果: 原实现每个 tensor 单独 broadcast(N 次 NCCL launch),改后 pack 到 1-2 个 buffer(CPU pinned + GPU),只需 2 次 broadcast。 实现正确性:
Automated review by CI Bot |
LLLLKKKK
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
packed tensors so we can launch less broadcast kernel