AI Infra Interviews logo

all reduce

AI infra interview questions tagged all reduce, across every topic.

9 questions · 6 unlocked for you

Concepts behind "all reduce"

Review the concepts used in these questions.

Foundational
🕸️ Distributed Training
Data Parallelism and DDPReplicas combine gradients from different data. Follow a two-worker update, fix unequal-token weighting, and see why queued gradient buckets can leave more than one reduction exposed.
Foundational
🕸️ Distributed Training
Collective Communication PrimitivesFollow small vectors through all-reduce, reduce-scatter, all-gather and all-to-all. Separate the result each worker needs from the algorithm-specific byte count and measured completion time.
Foundational
🔌 Networking & Storage
NCCL and Collective AlgorithmsNCCL implements GPU collectives using algorithms, protocols and channels over available hardware paths. Learn what each choice changes, how to read bandwidth results, and which evidence separates a communication problem from late application work.
Foundational
🔌 Networking & Storage
Debugging a Slow All-ReduceInterpret NCCL algbw and busbw, then isolate a slow collective with controlled tests. Distinguish rank delays, GPU-memory paths and shared-fabric limits without guessing from bandwidth ratios.
Advanced
🕸️ Distributed Training🔒 Premium
Tensor ParallelismTensor parallelism splits operations within a layer across GPUs. Derive the column/row matrix split, count training and inference collectives, and choose a group size from memory, latency and actual interconnect performance.
Advanced
🧮 Napkin Math & Capacity🔒 Premium
Communication Volume EstimatesEstimate communication by naming the tensor, collective, group and synchronization schedule. Work through per-rank ring bytes, conditional sharding costs, activation exchanges and routing imbalance before converting traffic into exposed time.