Skip to content
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 45 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
fc3b3c0
exclude xpu
pangengzheng Jun 25, 2023
e291552
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Jul 24, 2023
7a13c0b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Aug 25, 2023
d81f305
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Sep 5, 2023
cd6e4fb
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Sep 5, 2023
9d27f27
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Sep 6, 2023
5037694
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Sep 13, 2023
ef695ee
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Sep 13, 2023
23aa6ff
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Sep 25, 2023
f7615b7
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Oct 16, 2023
6605dff
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Oct 19, 2023
767835d
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Oct 30, 2023
f756bc6
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Nov 8, 2023
2ffd709
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Nov 21, 2023
738f5d5
demo of running dygraph distributed save load
pangengzheng Nov 23, 2023
f3d4bb2
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Nov 24, 2023
7134583
support save cross mesh state_dict
pangengzheng Nov 24, 2023
9e2094a
polish
pangengzheng Nov 24, 2023
786a318
fix compute overlap bug
pangengzheng Nov 28, 2023
ef4f374
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Nov 28, 2023
058d5fe
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Nov 29, 2023
8f64e81
test save load in dp_mp unittest
pangengzheng Nov 29, 2023
250b1b7
fix get local file bug and test
pangengzheng Dec 1, 2023
bd9348f
delete useless files, and rename var
pangengzheng Dec 1, 2023
ecee68b
polish
pangengzheng Dec 1, 2023
a8491b9
format codes
pangengzheng Dec 1, 2023
867726d
merge develop
pangengzheng Dec 1, 2023
2bf30c5
test use_dist
pangengzheng Dec 4, 2023
b46042c
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Dec 4, 2023
160552c
fix test
pangengzheng Dec 4, 2023
c5394c5
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Dec 4, 2023
baf2b74
info to debug
pangengzheng Dec 4, 2023
968d611
fix test
pangengzheng Dec 5, 2023
170fd81
fix
pangengzheng Dec 5, 2023
e0d0690
fix coverage ci
pangengzheng Dec 5, 2023
18298b9
fix docstring codes
pangengzheng Dec 5, 2023
13b1d07
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Dec 5, 2023
1dcd0a7
rename and codestyle
pangengzheng Dec 6, 2023
00df8ba
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
pangengzheng Dec 6, 2023
c728400
get rid of use_dist argument
pangengzheng Dec 6, 2023
a3125c0
fix copyright
pangengzheng Dec 6, 2023
0543d1f
polish doc
pangengzheng Dec 6, 2023
e4c72cd
polish
pangengzheng Dec 6, 2023
0561180
polish
pangengzheng Dec 6, 2023
4df7f76
use tmp file path
pangengzheng Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/paddle/distributed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@

from . import rpc # noqa: F401

from .checkpoint.save_state_dict import save_state_dict
from .checkpoint.load_state_dict import load_state_dict

__all__ = [
"io",
"spawn",
Expand Down Expand Up @@ -157,5 +160,7 @@
"Shard",
"Replicate",
"Partial",
"save_state_dict",
"load_state_dict",
"shard_optimizer",
]
21 changes: 21 additions & 0 deletions python/paddle/distributed/checkpoint/__init__.py
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",
]
Comment on lines +18 to +21
Copy link
Contributor

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 and paddle.distributed.load_state_dict, there is no need to add them to this list. import above can be retained.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Loading