Skip to content

fix diloco integration test #218

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 1 commit into from
Jun 17, 2025
Merged

fix diloco integration test #218

merged 1 commit into from
Jun 17, 2025

Conversation

tushar00jain
Copy link
Contributor

@tushar00jain tushar00jain commented Jun 16, 2025

Summary:

  • for diloco the model parameters, in the way they are saved by the test can be different across replicas
  • only the global parameters can be the same
  • fix the test to validate the global parameters are the same instead of the local model parameters

Test Plan:

$ pytest -v ./torchft/local_sgd_integ_test.py::LocalSGDIntegTest::test_diloco_recovery_0

Stack created with Sapling. Best reviewed with ReviewStack.

Summary:
- for diloco the model parameters, in the way they are saved by the test can be different across replicas
- only the global parameters can be the same
- fix the test to validate the global parameters are the same instead of the local model parameters

Test Plan:
```
$ pytest -v ./torchft/local_sgd_integ_test.py::LocalSGDIntegTest::test_diloco_recovery_0
```
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 16, 2025
@tushar00jain tushar00jain requested review from d4l3k and H-Huang June 16, 2025 22:28
Copy link
Member

@d4l3k d4l3k left a comment

Choose a reason for hiding this comment

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

LGTM

@d4l3k d4l3k merged commit e52ff39 into pytorch:main Jun 17, 2025
8 checks passed
@tushar00jain tushar00jain deleted the pr218 branch June 17, 2025 16:58
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