# How do I make an Azure ML training job run correctly across GPUs or nodes?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Implement machine learning model lifecycle and operations
Updated: 2026-11-25T04:35:29.02656+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-azure-ml-distributed-training-launch.html

## Also asked as

- 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?

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

* [Distributed GPU training guide (SDK v2) - Azure Machine Learning](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-train-distributed-gpu?view=azureml-api-2)
* [CLI (v2) command job YAML schema - Azure Machine Learning | Microsoft Learn](https://learn.microsoft.com/en-us/azure/machine-learning/reference-yaml-job-command?view=azureml-api-2)

Source: [AI-300: Building Reproducible and Distributed Training Pipelines](https://learningpathx.com/news/ai-300-building-reproducible-and-distributed-training-pipelines.html)
