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

Update common utility function : distribute_buffer_sizes #96

Closed
wants to merge 4 commits into from

Conversation

namgyu-youn
Copy link
Contributor

@namgyu-youn namgyu-youn commented Mar 25, 2025

This is the rebased PR for #94 (already approved)

- Same logics were implemented for distributed_buffer_sizes, and it is uniformed
- Files : shampoo_hsdp_distributor.py, shampoo_ddp_distributor.py, shampoo_hybrid_shard_distributor.py
- It is moved to shampoo_utils.py for common function.
- Update shampoo_utils_test.py for testing distribute_buffer_sizes
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 25, 2025
@namgyu-youn namgyu-youn marked this pull request as draft March 25, 2025 18:05
@namgyu-youn namgyu-youn marked this pull request as ready for review March 25, 2025 18:21
@facebook-github-bot
Copy link
Contributor

@tsunghsienlee has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@tsunghsienlee tsunghsienlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to delete all _distribute_buffer_sizes(self) because no one is using it now.

@namgyu-youn
Copy link
Contributor Author

I think we need to delete all _distribute_buffer_sizes(self) because no one is using it now.

Yes that would be dead code. I will fix it.

@namgyu-youn namgyu-youn marked this pull request as draft March 25, 2025 18:50
- It is uniformed and moved into utils/shampoo_utils.py
@namgyu-youn namgyu-youn marked this pull request as ready for review March 25, 2025 18:53
@facebook-github-bot
Copy link
Contributor

@tsunghsienlee has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@tsunghsienlee merged this pull request in a09c04b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uniform common utility function : `_distribute_buffer_sizes
3 participants