Skip to content

Selective averaging MPI4py implementation added.#470

Merged
josephdviviano merged 5 commits intomasterfrom
selective_averaging_master
Feb 16, 2026
Merged

Selective averaging MPI4py implementation added.#470
josephdviviano merged 5 commits intomasterfrom
selective_averaging_master

Conversation

@chirayuharyan
Copy link
Collaborator

@chirayuharyan chirayuharyan commented Feb 11, 2026

PR checklist:
-->

  • I've read the .github/CONTRIBUTING.md file
  • My code follows the typing guidelines
  • I've added appropriate tests
  • I've run pre-commit hooks locally

Description

This PR adds the selective averaging implementation originally written by Vasim @yuk12, with minor cleanup and refactoring.

To use the selective averaging implementation based on torch.distributed written by @younik, set --spawn-backend dist (choices: ["dist", "mpi"]).

Two MPI4PY-based selective averaging implementations are available. To select between them, use --mpi-sa-mode (choices: ["general", "fast"]).

Please let me know if there are any additional refactoring opportunities or improvements to consider.

Copy link
Collaborator

@josephdviviano josephdviviano left a comment

Choose a reason for hiding this comment

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

lgtm, thank you!

@josephdviviano josephdviviano merged commit 7eb7f50 into master Feb 16, 2026
2 of 4 checks passed
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