accelerate
Fix error when max_memory argument is in unexpected order
#1759
Merged

Fix error when max_memory argument is in unexpected order #1759

sgugger merged 8 commits into huggingface:main from ranchlai:max_memory
ranchlai
ranchlai sort the user-provided max_memory keys in gpu-cpu-disk order
f84ac36b
ranchlai fixed the bug by adding disk to main devices
394d937f
ranchlai ranchlai changed the title Max memory Fix error when max_memory argument is in unexpected order 3 years ago
HuggingFaceDocBuilderDev
ranchlai add checking for max_memory argument
54989c29
ranchlai ranchlai force pushed from 301c034a to 54989c29 3 years ago
muellerzr muellerzr requested a review from sgugger sgugger 3 years ago
sgugger
sgugger commented on 2023-07-24
ranchlai Update src/accelerate/utils/modeling.py
1c4b6920
ranchlai Update src/accelerate/utils/modeling.py
9b14ed4b
ranchlai Update src/accelerate/utils/modeling.py
98a9dd6b
ranchlai fix typo
630c82be
ranchlai
ranchlai fix typos
cbcbe240
sgugger
sgugger approved these changes on 2023-07-24
sgugger sgugger merged f3b7f9cf into main 3 years ago
sgugger

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone