Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce buffer copying by using one device to reduce and distribute #957

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Alex-Vasile
Copy link
Contributor

For tensor parallelization (TP) > 1, this reduces buffer copies from (TP-1)*TP copies down to (TP-1)*2. Setup work for future improvements. On its own, it only results in minor speedups since all devices have to wait for the reduction result.

@stbaione
Copy link
Contributor

Should we hold off on merging this until the sharding accuracy is stable again?

@Alex-Vasile Alex-Vasile force-pushed the all_reduce_change branch 2 times, most recently from e4ca7a4 to 9bceebf Compare February 18, 2025 17:10
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.

2 participants