-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Distributed SaveLoad implementation for semi-auto strategy #59659
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
fc3b3c0
exclude xpu
pangengzheng e291552
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 7a13c0b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng d81f305
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng cd6e4fb
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 9d27f27
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 5037694
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng ef695ee
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 23aa6ff
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng f7615b7
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 6605dff
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 767835d
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng f756bc6
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 2ffd709
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 738f5d5
demo of running dygraph distributed save load
pangengzheng f3d4bb2
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 7134583
support save cross mesh state_dict
pangengzheng 9e2094a
polish
pangengzheng 786a318
fix compute overlap bug
pangengzheng ef4f374
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 058d5fe
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 8f64e81
test save load in dp_mp unittest
pangengzheng 250b1b7
fix get local file bug and test
pangengzheng bd9348f
delete useless files, and rename var
pangengzheng ecee68b
polish
pangengzheng a8491b9
format codes
pangengzheng 867726d
merge develop
pangengzheng 2bf30c5
test use_dist
pangengzheng b46042c
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 160552c
fix test
pangengzheng c5394c5
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng baf2b74
info to debug
pangengzheng 968d611
fix test
pangengzheng 170fd81
fix
pangengzheng e0d0690
fix coverage ci
pangengzheng 18298b9
fix docstring codes
pangengzheng 13b1d07
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng 1dcd0a7
rename and codestyle
pangengzheng 00df8ba
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng c728400
get rid of use_dist argument
pangengzheng a3125c0
fix copyright
pangengzheng 0543d1f
polish doc
pangengzheng e4c72cd
polish
pangengzheng 0561180
polish
pangengzheng 4df7f76
use tmp file path
pangengzheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from .save_state_dict import save_state_dict | ||
from .load_state_dict import load_state_dict | ||
|
||
__all__ = [ | ||
"save_state_dict", | ||
"load_state_dict", | ||
] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Only add API in list of __ all__ at recommended user path, as we recommend using
paddle.distributed.save_state_dict
andpaddle.distributed.load_state_dict
, there is no need to add them to this list.import
above can be retained.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.
ok