Skip to content

fix: distributed init logic in Gloo backend #244

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

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

Conversation

famouswizard
Copy link

Description:
Noticed a couple of issues while working with the distributed setup:

  • Switched to positional args in TCPStore(...) — named args caused a TypeError.
  • Removed hardcoded world_size=2; now reads from env variables.
  • Added dist.init_process_group(...) — this was missing and is required for proper Gloo initialization.
  • Replaced low-level ProcessGroupGloo(...) with init_process_group(...) — cleaner and safer.
  • Added dist.destroy_process_group() to ensure clean shutdown.

All tested — things now spin up as expected.

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.

1 participant