179 questions
No questions match those filters.
Walk me through how DDP works and what its limitations...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansDDP (Distributed Data Parallel) operates by replicating the model across all participating GPUs. Each GPU processes a unique slice of the data batch. After the local forward and backward passes, an AllReduce operation is performed to synchronize gradients across all workers. This operation typically costs 2|θ| bytes of communication. A critical limitation is the memory accounting: each parameter requires 16 bytes (in standard configurations), meaning memory usage is fixed per GPU regardless of the total GPU count, preventing the scaling of model size.