CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 00:05:55 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/"fe50698cc465526b669c831a228d22cd"
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=bakwSBtaArCPs1zzdUGKvzFmxxK%2Fy3I5vh4v5tJZX4pibf4%2FBjbOddAG%2BZKqElzM4KR5Rp%2Fo%2FIk1hXAXZ0G1EYsePvDsQBWtSvVIJcywAjhOQQkHPEPv61qf4Z9%2BG%2Fcf5WlOSy3VgB3suFhds1vIN%2BUAgxIveYf%2BrucUL4G0D9lXDY26Mjoall78116LX97S8AzNXYOUOvRrglo4Rd9%2FHSVdTOcK0lcpCK5XCbm3nO%2Br7vTWHKlzxaHoCMiavCXE2Rn6So43KzCE7%2F03wpywaQ%3D%3D--WDX%2FtsiwuuCtBzRs--7fsmeEa0ePOCKPxrXwBL3A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1287756375.1753574754; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 00:05:54 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 00:05:54 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 971A:29FD1F:986FA5:C8B47F:68856D62
support save load optimizer master_weights (#60027) · PaddlePaddle/Paddle@76ce9bb · GitHub
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/metadata.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/save_state_dict.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/utils.py
Copy file name to clipboardExpand all lines: python/paddle/optimizer/optimizer.py
Copy file name to clipboardExpand all lines: test/auto_parallel/CMakeLists.txt
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 76ce9bb
authored
support save load optimizer master_weights (#60027)
* exclude xpu
* dedup tensor in state_dict
* polish
* support flatten and unflatten state_dict
* test flatten
* rename test
* fix dedup tensor test
* fix test
* fix load state dict
* rename
* fix test
* support save load optimizer master weights
* add comment1 parent 65e2d93 commit 76ce9bbCopy full SHA for 76ce9bb
File tree
Expand file treeCollapse file tree
10 files changed
+416
-57
lines changedFilter options
- python/paddle
- distributed/checkpoint
- optimizer
- test/auto_parallel
Expand file treeCollapse file tree
10 files changed
+416
-57
lines changedpython/paddle/distributed/checkpoint/load_state_dict.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/load_state_dict.py+21-15Lines changed: 21 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
408 |
| - | |
409 |
| - | |
410 |
| - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
411 | 411 |
| |
412 | 412 |
| |
413 | 413 |
| |
| |||
423 | 423 |
| |
424 | 424 |
| |
425 | 425 |
| |
426 |
| - | |
| 426 | + | |
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
| |||
434 | 434 |
| |
435 | 435 |
| |
436 | 436 |
| |
437 |
| - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
438 | 440 |
| |
439 | 441 |
| |
440 |
| - | |
| 442 | + | |
441 | 443 |
| |
442 | 444 |
| |
443 |
| - | |
| 445 | + | |
444 | 446 |
| |
445 | 447 |
| |
446 |
| - | |
| 448 | + | |
447 | 449 |
| |
448 | 450 |
| |
449 | 451 |
| |
| |||
484 | 486 |
| |
485 | 487 |
| |
486 | 488 |
| |
487 |
| - | |
488 |
| - | |
| 489 | + | |
| 490 | + | |
489 | 491 |
| |
490 |
| - | |
| 492 | + | |
491 | 493 |
| |
492 | 494 |
| |
493 | 495 |
| |
494 |
| - | |
495 |
| - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
496 | 500 |
| |
497 | 501 |
| |
498 | 502 |
| |
| |||
513 | 517 |
| |
514 | 518 |
| |
515 | 519 |
| |
516 |
| - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
517 | 523 |
| |
518 | 524 |
| |
519 | 525 |
| |
| |||
530 | 536 |
| |
531 | 537 |
| |
532 | 538 |
| |
533 |
| - | |
| 539 | + | |
534 | 540 |
| |
535 | 541 |
|
python/paddle/distributed/checkpoint/metadata.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/metadata.py+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + |
python/paddle/distributed/checkpoint/save_state_dict.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/save_state_dict.py+45-12Lines changed: 45 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 | 16 |
| |
18 | 17 |
| |
19 | 18 |
| |
| |||
50 | 49 |
| |
51 | 50 |
| |
52 | 51 |
| |
53 |
| - | |
| 52 | + | |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
| |||
64 | 63 |
| |
65 | 64 |
| |
66 | 65 |
| |
67 |
| - | |
| 66 | + | |
68 | 67 |
| |
69 | 68 |
| |
70 | 69 |
| |
| |||
74 | 73 |
| |
75 | 74 |
| |
76 | 75 |
| |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
77 | 104 |
| |
78 | 105 |
| |
79 | 106 |
| |
| |||
107 | 134 |
| |
108 | 135 |
| |
109 | 136 |
| |
110 |
| - | |
111 |
| - | |
112 |
| - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
113 | 140 |
| |
114 | 141 |
| |
115 | 142 |
| |
| |||
134 | 161 |
| |
135 | 162 |
| |
136 | 163 |
| |
137 |
| - | |
| 164 | + | |
138 | 165 |
| |
139 | 166 |
| |
140 | 167 |
| |
141 | 168 |
| |
142 |
| - | |
| 169 | + | |
143 | 170 |
| |
144 | 171 |
| |
145 | 172 |
| |
| |||
178 | 205 |
| |
179 | 206 |
| |
180 | 207 |
| |
| 208 | + | |
181 | 209 |
| |
182 | 210 |
| |
183 | 211 |
| |
| |||
187 | 215 |
| |
188 | 216 |
| |
189 | 217 |
| |
| 218 | + | |
| 219 | + | |
| 220 | + | |
190 | 221 |
| |
191 | 222 |
| |
192 | 223 |
| |
| 224 | + | |
193 | 225 |
| |
194 | 226 |
| |
195 | 227 |
| |
196 | 228 |
| |
197 |
| - | |
198 |
| - | |
199 |
| - | |
| 229 | + | |
| 230 | + | |
200 | 231 |
| |
201 | 232 |
| |
202 | 233 |
| |
203 | 234 |
| |
204 |
| - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
205 | 238 |
|
python/paddle/distributed/checkpoint/utils.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/utils.py+43-1Lines changed: 43 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
67 | 109 |
|
python/paddle/optimizer/optimizer.py
Copy file name to clipboardExpand all lines: python/paddle/optimizer/optimizer.py+1-29Lines changed: 1 addition & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
406 | 406 |
| |
407 | 407 |
| |
408 | 408 |
| |
409 |
| - | |
410 |
| - | |
411 |
| - | |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 |
| - | |
417 |
| - | |
418 |
| - | |
419 |
| - | |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
424 |
| - | |
425 |
| - | |
426 |
| - | |
427 |
| - | |
428 |
| - | |
429 |
| - | |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
| 409 | + | |
438 | 410 |
| |
439 | 411 |
| |
440 | 412 |
| |
|
test/auto_parallel/CMakeLists.txt
Copy file name to clipboardExpand all lines: test/auto_parallel/CMakeLists.txt+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
| 197 | + | |
| 198 | + | |
| 199 | + | |
197 | 200 |
| |
198 | 201 |
| |
199 | 202 |
| |
|
test/auto_parallel/semi_auto_parallel_checkpoint_dedup_tensor.py
Copy file name to clipboard+68Lines changed: 68 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + |
You can’t perform that action at this time.
0 commit comments