accelerate
Avoid duplicating memory for tied weights in `dispatch_model`, and in forward with offloading
#2330
Merged

Avoid duplicating memory for tied weights in `dispatch_model`, and in forward with offloading #2330

fxmarty merged 12 commits into main from fix-dispatch-model-tied-params-memory
fxmarty
wip
982e6056
HuggingFaceDocBuilderDev
fix
373a6bea
add test
641a22f8
cleanup
ec2d94f0
style
ae573266
style & tests pass
829d33af
fxmarty fxmarty changed the title WIP Avoid duplicating memory for tied weights in `dispatch_model` 2 years ago
fxmarty fxmarty marked this pull request as ready for review 2 years ago
fxmarty fxmarty requested a review from SunMarc SunMarc 2 years ago
fxmarty fxmarty requested a review from muellerzr muellerzr 2 years ago
fxmarty
fxmarty commented on 2024-01-12
fxmarty
fxmarty commented on 2024-01-12
SunMarc
SunMarc approved these changes on 2024-01-12
SunMarc
SunMarc commented on 2024-01-12
fxmarty
SunMarc
fxmarty
fxmarty commented on 2024-01-15
fix offload, submodules
f199f6ba
fxmarty fxmarty force pushed from 90ee1bcb to f199f6ba 2 years ago
cleanup
4b95a1d1
fxmarty
fxmarty
fxmarty commented on 2024-01-15
fxmarty
fxmarty commented on 2024-01-15
fxmarty fxmarty changed the title Avoid duplicating memory for tied weights in `dispatch_model` Avoid duplicating memory for tied weights in `dispatch_model`, and in forward with offloading 2 years ago
SunMarc
SunMarc approved these changes on 2024-01-15
fxmarty Update tests/test_big_modeling.py
2ea8986d
fxmarty Update tests/test_big_modeling.py
f9ecf75d
disk offloading do not reload tied parameters in memory
30631a65
fxmarty
fxmarty commented on 2024-01-16
fxmarty fxmarty requested a review from SunMarc SunMarc 2 years ago
fxmarty
SunMarc
SunMarc approved these changes on 2024-01-16
remove outdated comment
c1ea6f24
muellerzr
muellerzr approved these changes on 2024-01-16
fxmarty fxmarty merged 6719cb6d into main 2 years ago
fxmarty fxmarty deleted the fix-dispatch-model-tied-params-memory branch 2 years ago
muellerzr
fxmarty
fxmarty fxmarty restored the head branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone