Menu

One GPU at 100%. The Other Three at 0%. No Error.
📰

One GPU at 100%. The Other Three at 0%. No Error.

DEV Community: pytorch·Francisco Booth·16 days ago
#FnrjImEQ
#devtopytorch#devto#dev#accelerate#config
Long article (516 words) — no AI summary yet.
Reading 0:00
15s threshold

You rent a 4-GPU pod. You launch your training job. Loss starts printing. Everything looks normal.

Then you run nvidia-smi and see one GPU pinned at 100% while the other three sit idle at 0%.

No exception. No warning. Accelerate is running and training is progressing. It is just executing on one GPU instead of four, at a quarter of the speed you are paying for.

What causes this

Accelerate uses a config file to decide how many processes to launch. If num_processes is set to 1, it launches one proces one GPU regardless of how many GPUs the pod has.

This is silent because Accelerate does not automatically use every available GPU.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.