Selectively choose which parameters to offload #3536
Answered
by
tjruwase
taehyunzzz
asked this question in
Q&A
|
Is there a way to select which parameters I want to offload? For example I want to offload only the big model parameters like FFN to CPU memory and fetch them when needed, Does the current deepspeed allow such implementation? |
Answered by
tjruwase
May 15, 2023
Replies: 2 comments 3 replies
|
Try See here for details. |
3 replies
Answer selected by
taehyunzzz
|
Use the following: https://deepspeed.readthedocs.io/en/latest/zero3.html#deepspeed.runtime.zero.config.DeepSpeedZeroConfig.model_persistence_threshold |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Try
"stage3_param_persistence_threshold"to ensure that parameters smaller than a threshold are not partitioned or offloaded.See here for details.