accelerate
Initial FSDP2 support
#3394
Merged

Initial FSDP2 support #3394

muellerzr merged 89 commits into huggingface:main from S1ro1:dev/fsdp2
S1ro1
S1ro1 Feat: initial conversion tool draft
2cfe2db7
S1ro1 Feat: add value mapping to conversion tool
d055eab2
S1ro1 Refactor: move from os to pathlib
23ea666f
S1ro1 Feat: add first tests
7deaaaad
S1ro1 Feat: more tests
d506b951
HuggingFaceDocBuilderDev
S1ro1 Feat: minor fixes + dataclass conversions
3eab2262
S1ro1 Feat: more remapping
269c2173
S1ro1 Fix: namespace has no attribute version + style
ba5372cc
S1ro1 Fix: offload params behavior
b16131bd
S1ro1 Feat: add option to only rename keys in the config file to
b0cc66b3
S1ro1 Fix: wrong attr name
8bc5cb34
S1ro1 Merge branch 'main' into dev/fsdp2
c31cc550
muellerzr
muellerzr commented on 2025-02-12
S1ro1 Fix: partially resolve comments
bc70ec2b
S1ro1 Feat: work on config command + minor fixes to reflect changes
00dafc45
S1ro1 Refactor: style + quality
7a92dac0
kmehant
S1ro1 Feat: fsdp2 initial work
b724f9cd
S1ro1 Feat: some cleanups and first running fsdp2
7cd25879
S1ro1 Fix: version checks + mixed precision policy
d920e94c
S1ro1 Refactor: style + quality
3cc7c205
S1ro1 Remove obsolete todos
432b4ff0
S1ro1 Feat: grad norm clipping
bb839851
S1ro1 Fix: tests + rename attrs
7759d799
S1ro1 Refactor: style + quality
f8bfa04d
S1ro1 Fix: None object is not iterable
47a12b97
S1ro1 Fix: default cpu_offload for fsdp2
030fa5df
S1ro1 Fix: cpu offload now behaves correctly
c5526aaa
S1ro1 Feat: apply_activation_checkpointing
4984c8ad
S1ro1
S1ro1 Fix: append to models
914e55f5
S1ro1 Feat: start on concept guide
1304284c
S1ro1 Merge branch 'main' into dev/fsdp2
f9061f6d
S1ro1 wip: concept guide
c596c127
S1ro1 Fix: toctree
d55bab7a
S1ro1 cleanup of the concept guide
8494f7bc
S1ro1 Fix: minor fixes + mp
f298b5eb
S1ro1 Fix: quality + | to union
4e4b6643
S1ro1 Feat: backwards compatibility + args cleanup
30961c91
S1ro1 Fix: style + quality
314df772
muellerzr
muellerzr commented on 2025-03-11
S1ro1 Feat: enable dropping refs when getting named params
5238cb27
S1ro1 Merge branch 'main' into dev/fsdp2
e104c100
S1ro1 Fix: memory footprint with fsdp2
8347b917
S1ro1 Feat: cpu ram efficient loading
70f48825
S1ro1 Fix: mp
c5975983
muellerzr
muellerzr commented on 2025-03-17
S1ro1 Fix: not warn about sync_modules if fsdp version is 1
fa732959
S1ro1 Refactor: minor changes
ee1267a1
S1ro1 Small fixes + refactors
021e153e
salmanmohammadi
salmanmohammadi commented on 2025-03-18
S1ro1 Feat: docs + cleanup
04a5ffbd
S1ro1 Feat: saving works (not sure about optim)
d9fba399
S1ro1 More loading/saving work
0696c961
S1ro1 Feat: disable local_state_dict for fsdp2
0d0abde7
cyr0930
cyr0930 commented on 2025-03-21
cyr0930
cyr0930 commented on 2025-03-21
S1ro1 Fix: fsdp2 convergence
1fe97f62
S1ro1 Merge branch 'main' into dev/fsdp2
ab4e58dd
S1ro1 Feat: working comparison script
d6edd8cd
S1ro1 Feat: memory tracking fsdp2
8a480385
S1ro1 Feat: memory visualizer
a563493b
S1ro1 Feat: more work on benchmark
a8d127bd
S1ro1 Fix: raise error if model+optimizer arent prepared together
55605558
S1ro1 Minor fixes
ab5a6cf6
S1ro1 Style
31ce351a
S1ro1 More warnings
b619589c
S1ro1 Fix: reshard_after_forward vs sharding_strategy conflict
4dab060d
S1ro1 Refactor: clean up accelerator
c7ef53da
S1ro1 Feat: more testing in fsdp2 benchmark
8fadfbf9
S1ro1 Fix: memory visualizer
79d5cf71
S1ro1 Untested: support load/save_state
d633c125
S1ro1 Feat: concept guide improvements
8a4de4d4
S1ro1 Refactor: concept guide
4881bbf3
S1ro1 Feat: benchmark works
9fd8fd51
S1ro1 Feat: more work on fsdp2 benchmark
0d53cadd
S1ro1 Fix: note syntax
9251dcd6
S1ro1 Fix: small fixes + make original tests work
25f15c78
muellerzr
muellerzr commented on 2025-03-25
S1ro1 Fix: grad scaling
4dfb12c2
muellerzr
muellerzr commented on 2025-03-25
muellerzr
muellerzr approved these changes on 2025-03-25
S1ro1 Feat: reshard after forward tests
d0244e2c
muellerzr
muellerzr commented on 2025-03-25
S1ro1 Feat: backward prefetch tests
d2891a2d
stevhliu
stevhliu commented on 2025-03-25
S1ro1 Feat: tests for fsdp2
f99e980d
S1ro1 Refactor: minor fixes
5619feaa
S1ro1 Feat: fsdp_utils docstrings
3fba7e21
S1ro1 Feat: autodoc fsdp.md
6df64832
S1ro1 Docs: get_module_children_bottom_up
d24aa9d4
S1ro1 Fix: remove unused images
050488d1
S1ro1 Refactor: benchmark cleanup
e9845716
S1ro1 Fix: docs
ccf3d426
S1ro1 Feat: final doc changes
124a56fd
S1ro1 Fix: torch.distributed has no attribute tensor
5bb4f306
S1ro1 Fix: style
0f71c8c6
SunMarc
S1ro1 Feat: tests include version in failures
0a2791ba
S1ro1 S1ro1 changed the title WIP: Initial FSDP2 support Initial FSDP2 support 1 year ago
S1ro1 S1ro1 marked this pull request as ready for review 1 year ago
S1ro1 Fix: benchmark force model to load in fp32
9f37abd6
SunMarc
SunMarc commented on 2025-03-26
S1ro1 Fix: rename runs
a7333d1b
S1ro1 Feat: last minor fixes
4d4f829b
S1ro1 Feat: new benchmark images
7ad58a15
muellerzr muellerzr merged d7c741a6 into main 1 year ago
kmehant
kmehant commented on 2025-03-27
kmehant
kmehant commented on 2025-03-27
kmehant
kmehant commented on 2025-03-27

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone