-
Notifications
You must be signed in to change notification settings - Fork 977
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
Fixup MS-AMP integration #3023
Fixup MS-AMP integration #3023
Conversation
if os.environ.get("ACCELERATE_USE_FSDP", "false") == "true" or isinstance( | ||
fsdp_plugin, FullyShardedDataParallelPlugin | ||
): | ||
if is_torch_version("<", FSDP_PYTORCH_VERSION): | ||
raise ValueError(f"FSDP requires PyTorch >= {FSDP_PYTORCH_VERSION}") | ||
# if os.environ.get("ACCELERATE_USE_FSDP", "false") == "true" or isinstance( | ||
# fsdp_plugin, FullyShardedDataParallelPlugin | ||
# ): | ||
# if is_torch_version("<", FSDP_PYTORCH_VERSION): | ||
# raise ValueError(f"FSDP requires PyTorch >= {FSDP_PYTORCH_VERSION}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I need to adjust for the FSDP version, as it doesn't quite work on the .dev
related additionals when using the docker image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relying on #3024 to fix
1c78d9e
to
4a37e5f
Compare
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Okay, let's wait until the MS-AMP PR is merged and then revisit this PR. |
Will be closing this PR and opening another. Game plan is to keep all but the FSDP support but I'll keep this here for transparency. |
What does this PR do?
Fixes up the MS-AMP integration to include:
Closes #2143
Closes #2971
Closes #2972
IMPORTANT:
pip install git+https://github.com/muellerzr/MS-AMP@muellerzr-make-optim-init-easier
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@BenjaminBossan @SunMarc