You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the server that multiple users are using.
When I run the code with deepspeed, it consumes every CPU core in high percentage and slows down other users' processes.
I want to limit the number of CPU cores when using deepspeed. How can I do this?
For example, I want something like:
CUDA_VISIBLE_DEVICES=0,1,2,3 VISIBLE_CPU_CORES=0-9 python main.py
or to set it in deepspeed configuration file like:
{
"zero_optimization": {
"stage": 3,
...
}
"num_workers": 10
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using the server that multiple users are using.
When I run the code with deepspeed, it consumes every CPU core in high percentage and slows down other users' processes.
I want to limit the number of CPU cores when using deepspeed. How can I do this?
For example, I want something like:
CUDA_VISIBLE_DEVICES=0,1,2,3 VISIBLE_CPU_CORES=0-9 python main.py
or to set it in deepspeed configuration file like:
{
"zero_optimization": {
"stage": 3,
...
}
"num_workers": 10
}
Beta Was this translation helpful? Give feedback.
All reactions