CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 15:54:30 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/PaddlePaddle/Paddle.git
etag: W/"f4f56876e8273a72a2d15e36560ea96e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=14y9z%2F7vTU6qFKvxtDOeOENqWMXMFCZSI3ZT6cZZCC1UqG91YOglHPLc%2BmWvThKFXdFOOrjgrkEE1qvad6hRW31x5boE4e10y8PW5q7Fx7k%2BsH%2F7t3JVRS8HEe8bwJdigKTVlao6ubFhpfiMfaXUS7kE4nZofyJNvtdQ47BO2Fz29qhV8GgFXRzUM48TUrp2Q6R9M5CfSP8liM7wybblqfjfIxK03lI2pbWxIKLrAJciluzZWMQQVCmdDsc%2B2V7DtnHtHHCX5GRQXxm9dyFn2g%3D%3D--XGWB4nvpKBxgl%2BZU--%2F%2BheD3arosIAuxm8QjVZHg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2117730776.1753631669; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 15:54:29 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 15:54:29 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9938:2F5ED7:F97579:147D1ED:68864BB5
Set DistModel state_dict keys to structure_names (#60478) · PaddlePaddle/Paddle@57feb0a · GitHub
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/api.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/load_state_dict.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/save_state_dict.py
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/semi_auto_load_state_dict.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 57feb0a
authored
Set DistModel state_dict keys to structure_names (#60478)
* exclude xpu
* check structure name mapping
* test pp
* polish
* support dynamic save static load
* support dygraph save static load
* polish
* polish
* use structured_name as key in DistModel state_dict
* polish
* polish
* fix checkpoint path conflict
* test get_rank_to_files
* static save dynamic load test1 parent 116c892 commit 57feb0aCopy full SHA for 57feb0a
File tree
Expand file treeCollapse file tree
11 files changed
+414
-41
lines changedFilter options
- python/paddle/distributed
- auto_parallel
- checkpoint
- test/auto_parallel
- hybrid_strategy
Expand file treeCollapse file tree
11 files changed
+414
-41
lines changedpython/paddle/distributed/auto_parallel/api.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/api.py+21-1Lines changed: 21 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1015 | 1015 |
| |
1016 | 1016 |
| |
1017 | 1017 |
| |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1018 | 1024 |
| |
1019 | 1025 |
| |
1020 | 1026 |
| |
| |||
1257 | 1263 |
| |
1258 | 1264 |
| |
1259 | 1265 |
| |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1260 | 1275 |
| |
1261 | 1276 |
| |
1262 | 1277 |
| |
| |||
1331 | 1346 |
| |
1332 | 1347 |
| |
1333 | 1348 |
| |
1334 |
| - | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1335 | 1355 |
| |
1336 | 1356 |
| |
1337 | 1357 |
| |
|
python/paddle/distributed/checkpoint/load_state_dict.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/load_state_dict.py+39-23Lines changed: 39 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 |
| |
42 | 48 |
| |
43 | 49 |
| |
44 | 50 |
| |
45 | 51 |
| |
46 | 52 |
| |
47 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
48 | 70 |
| |
49 | 71 |
| |
50 | 72 |
| |
| |||
62 | 84 |
| |
63 | 85 |
| |
64 | 86 |
| |
65 |
| - | |
| 87 | + | |
| 88 | + | |
66 | 89 |
| |
67 | 90 |
| |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 | 91 |
| |
72 | 92 |
| |
73 | 93 |
| |
| |||
101 | 121 |
| |
102 | 122 |
| |
103 | 123 |
| |
104 |
| - | |
| 124 | + | |
105 | 125 |
| |
106 | 126 |
| |
107 | 127 |
| |
108 | 128 |
| |
109 | 129 |
| |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
110 | 134 |
| |
111 | 135 |
| |
112 | 136 |
| |
| |||
196 | 220 |
| |
197 | 221 |
| |
198 | 222 |
| |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
| 223 | + | |
206 | 224 |
| |
207 | 225 |
| |
208 | 226 |
| |
| |||
277 | 295 |
| |
278 | 296 |
| |
279 | 297 |
| |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 | 298 |
| |
| 299 | + | |
288 | 300 |
| |
289 | 301 |
| |
290 | 302 |
| |
| |||
410 | 422 |
| |
411 | 423 |
| |
412 | 424 |
| |
413 |
| - | |
| 425 | + | |
414 | 426 |
| |
415 | 427 |
| |
416 | 428 |
| |
| |||
422 | 434 |
| |
423 | 435 |
| |
424 | 436 |
| |
425 |
| - | |
| 437 | + | |
426 | 438 |
| |
427 | 439 |
| |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
428 | 444 |
| |
429 | 445 |
| |
430 | 446 |
| |
|
python/paddle/distributed/checkpoint/save_state_dict.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/save_state_dict.py+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
| 142 | + | |
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
| 191 | + | |
| 192 | + | |
191 | 193 |
| |
192 | 194 |
| |
193 | 195 |
| |
| |||
203 | 205 |
| |
204 | 206 |
| |
205 | 207 |
| |
| 208 | + | |
206 | 209 |
| |
207 | 210 |
| |
208 | 211 |
| |
|
test/auto_parallel/hybrid_strategy/load_state_dict.py renamed to test/auto_parallel/hybrid_strategy/semi_auto_load_state_dict.py
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/semi_auto_load_state_dict.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
|
You can’t perform that action at this time.
0 commit comments