Study FAQ
How do I make an Azure ML training job run correctly across GPUs or nodes?
Also asked as 2
- What must match between Azure Machine Learning launch settings and distributed training code?
- How can I verify the launch contract for distributed Azure ML training?
Answer
Set the job's node count and processes per node to match a distributed-aware training implementation. In PyTorch, Azure Machine Learning can supply launch variables such as WORLD_SIZE, RANK, LOCAL_RANK, MASTER_ADDR and MASTER_PORT. The application still needs to initialize and coordinate the process group. TensorFlow's distributed strategy uses its own documented setup, including TF_CONFIG where applicable.
For two nodes with two processes per node, check that four workers initialize, each uses the intended device, and data and updates are coordinated. Define how to aggregate model-level metrics and who writes the final artifact. Run a small correctness check first. After increasing scale, inspect worker logs and artifact integrity and measure throughput to identify communication or input bottlenecks.
Microsoft Learn
Full explanation
AI-300: Building Reproducible and Distributed Training Pipelines
Study guide · AI-300
Read the full explanation