skip to content

Distributed Training Infrastructure

DDP, FSDP and DeepSpeed spread one training job over many GPUs, NCCL carries the gradients, and schedulers keep the job placed and alive. GPU-owning teams probe it from layout to hang.

on this pageshow

explore

questions

page 2 of 2

In PyTorch 2.14, what do torch.optim.AdamW's foreach and fused flags change, and which implementation runs when you set neither?

level: middleimportance: nice to knowfreq 7%

basics

~20 s

AdamW can run as a per-parameter for-loop, a foreach multi-tensor version or a fused kernel. With both flags None on CUDA, PyTorch 2.14 picks foreach; fused=True must be passed explicitly and is the fastest of the three.

open as a page

In Ray Train 2.59, how do ScalingConfig and FailureConfig decide how many workers a TorchTrainer runs and how many failures it survives?

level: middleimportance: nice to knowfreq 7%

basics

~20 s

ScalingConfig sets the worker group: num_workers (an int, or a (min, max) tuple for elastic runs), use_gpu and resources_per_worker. FailureConfig(max_failures), default 0, sets how many failures Ray Train recovers from by restarting every worker from the latest reported checkpoint.

open as a page

With PyTorch 2.14's NCCL process group, a job dies on a watchdog timeout after ten minutes; how do you find the rank that diverged?

level: seniorimportance: nice to knowfreq 5%

basics

~20 s

Read the flight recorder: PyTorch 2.14 records each rank's recent NCCL collectives and dumps them on a watchdog timeout. Comparing the last sequence number and operation across ranks shows the rank that issued a different or missing collective.

open as a page

For a 70B decoder's 128K-token training phase, how do DeepSpeed-Ulysses and Megatron-Core context parallelism split attention, and what caps each one's degree?

level: seniorimportance: nice to knowfreq 3%

basics

~20 s

DeepSpeed-Ulysses all-to-alls Q, K and V from sequence shards to head shards, so key-value heads cap its degree. Megatron-Core context parallelism keeps sequence shards and passes KV chunks around a ring, capped by overlap and by sequence length divisibility.

open as a page

On a Kubernetes GPU cluster wired in racks and blocks, how do Kueue topology-aware scheduling and Volcano network-topology scheduling keep a multi-node training job's pods close together?

level: seniorimportance: nice to knowfreq 5%

basics

~20 s

Kueue reads a Topology of node-label levels through a ResourceFlavor and, given podset-required-topology or podset-preferred-topology on the pod template, admits a job only where its pods fit one rack or block. Volcano models switches as HyperNode tiers and honours a job's networkTopology.

open as a page

Before a 256-GPU pretraining cluster is built, how would you decide whether the program standardizes on FSDP2, DeepSpeed or Megatron-Core?

level: principalimportance: nice to knowfreq 4%

basics

~20 s

Decide on conditions, not brand: whether sharded data parallelism alone fits the model, whether the roadmap needs tensor, pipeline, context or expert parallelism, how the interconnect is shaped, and whether the team can rewrite model code into Megatron-Core's layers.

open as a page

showing 31–36 of 36