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

fix data splitting #59

Closed
wants to merge 1 commit into from
Closed

fix data splitting #59

wants to merge 1 commit into from

Conversation

samsja
Copy link
Member

@samsja samsja commented Oct 8, 2024

No description provided.

@samsja samsja force-pushed the fix-data-splitting branch from 6c0c85c to 9ca847d Compare October 8, 2024 19:01
Comment on lines +118 to +119
world_size=world_info.world_size * world_info.global_world_size,
rank=world_info.rank + world_info.global_rank * world_info.global_world_size,
Copy link
Member

Choose a reason for hiding this comment

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

Not really a bug. You now need to set data.data_rank and data.data_world_size in order for the splitting between diloco workers. My bad for not putting it in the README :(

Copy link
Member Author

Choose a reason for hiding this comment

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

gotcha forget about it

@samsja samsja closed this Oct 8, 2024
samsja pushed a commit that referenced this pull request Jan 10, 2025
Summary:
Follow-up fix to facebookresearch/optimizers#57.

Pull Request resolved: facebookresearch/optimizers#59

Reviewed By: gajjanag

Differential Revision: D66828698

Pulled By: tsunghsienlee

fbshipit-source-id: bca4c322403ddfbe8cb45c35cd076b5d567b4b35
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