Skip to content

Add debugging instructions for "Reproducibility between runs" #1363

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

Merged
merged 7 commits into from
Jul 3, 2025

Conversation

wwwjn
Copy link
Contributor

@wwwjn wwwjn commented Jul 2, 2025

As titled. To avoid someone with the same issue as me to understand why we need "seed checkpoint"

@wwwjn wwwjn requested review from tianyu-l, fegin and wconstab as code owners July 2, 2025 00:52
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 2, 2025
- **Data Parallel (DP/FSDP):** All ranks use the same seed for model initialization
- **Tensor Parallel (TP):** All TP ranks use the same seed for consistent weight sharding
- **Pipeline Parallel (PP):** Each PP stage gets a different seed to ensure different dropout patterns
- **Sequence Parallel:** Maintains consistent seeding across sequence-sharded dimensions
Copy link
Contributor

Choose a reason for hiding this comment

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

what's this? CP?
If so, for parameters, dp_shard mesh and cp mesh together form the FSDP sharding group. So if dp_shard=2, cp=2, the parameter sharding are the same as dp_shard=4, cp=1.

@wwwjn wwwjn requested a review from tianyu-l July 2, 2025 18:36
Copy link
Contributor

@tianyu-l tianyu-l left a comment

Choose a reason for hiding this comment

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

please address remaining comments

@wwwjn wwwjn merged commit 4aa9fde into main Jul 3, 2025
6 of 7 checks passed
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 Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants