User Guide¶
This guide gets you started with DTorch in two steps: first understand the core concepts of the distributed tensor (DTensor), then learn how to write distributed programs with the DTorch Python API.
Recommended Reading Order¶
- DTensor Overview — Learn how
DeviceMeshandPlacementsdescribe the distribution of a tensor across devices. This is the foundation of all of DTorch's distributed capabilities; read this first. - Python API Overview — Starting from single-GPU PyTorch code, just declare
device_meshandplacementsto scale up to a multi-GPU distributed program. - Module Parallel — How
Linearandnn.Modulecombine to implement DP / TP / CP. - Llama Parallel Example — Using the Llama model as an example, showing the complete implementation and testing of DP + TP + PP + CP.