Selectively choose which parameters to offload #3536
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Try See here for details. |
Beta Was this translation helpful? Give feedback.
-
Use the following: https://deepspeed.readthedocs.io/en/latest/zero3.html#deepspeed.runtime.zero.config.DeepSpeedZeroConfig.model_persistence_threshold |
Beta Was this translation helpful? Give feedback.
Try
"stage3_param_persistence_threshold"
to ensure that parameters smaller than a threshold are not partitioned or offloaded.See here for details.