---
description: Explore Ultralytics' utilities for distributed training including DDP file generation, command setup, and cleanup. Improve multi-node training efficiency.
keywords: Ultralytics, distributed training, DDP, multi-node training, network port, DDP file generation, DDP command, training utilities
---

# Reference for `ultralytics/utils/dist.py`

!!! success "Improvements"

    This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/dist.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/dist.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing/) — thank you! 🙏

<br>

## ::: ultralytics.utils.dist.find_free_network_port

<br><br><hr><br>

## ::: ultralytics.utils.dist.generate_ddp_file

<br><br><hr><br>

## ::: ultralytics.utils.dist.generate_ddp_command

<br><br><hr><br>

## ::: ultralytics.utils.dist.ddp_cleanup

<br><br>
