Skip to content

Conversation

pengyanai
Copy link

@pengyanai pengyanai commented Aug 5, 2025

Copy link

pytorch-bot bot commented Aug 5, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/2901

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla 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 Aug 5, 2025
@pengyanai pengyanai marked this pull request as ready for review August 5, 2025 02:54
@nathan-az
Copy link
Collaborator

nathan-az commented Aug 15, 2025

I've done a similar thing on my personal branch. I recommend reading a new config option collective_timeout, defaulting to the standard 600 with users having the option to increase.

I also added a trivially small collective after the init (summing a random tensor on each rank) because I came across this comment. I'm not certain that I'm interpreting it correctly or that it's required, but it's trivially cheap. (Specific issue)

@pengyanai
Copy link
Author

@nathan-az Thanks for sharing your approach, Nathan. Adding a configurable collective_timeout option makes sense, and I agree that giving users flexibility is useful. Including a small collective operation after init also seems like a good safeguard, even if it's not strictly required. I'll look into the linked issues and comments—appreciate the reference!

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants