|
| 1 | +--- |
| 2 | +layout: blog_detail |
| 3 | +title: 'PyTorch for AMD ROCm™ Platform now available as Python package' |
| 4 | +author: Niles Burbank – Director PM at AMD, Mayank Daga – Director, Deep Learning Software at AMD |
| 5 | +--- |
| 6 | + |
| 7 | +With the PyTorch 1.8 release, we are delighted to announce a new installation option for users of |
| 8 | +PyTorch on the ROCm™ open software platform. An installable Python package is now hosted on |
| 9 | +pytorch.org, along with instructions for local installation in the same simple, selectable format as |
| 10 | +PyTorch packages for CPU-only configurations and other GPU platforms. PyTorch on ROCm includes full |
| 11 | +capability for mixed-precision and large-scale training using AMD’s MIOpen & RCCL libraries. This |
| 12 | +provides a new option for data scientists, researchers, students, and others in the community to get |
| 13 | +started with accelerated PyTorch using AMD GPUs. |
| 14 | + |
| 15 | +<div class="text-center"> |
| 16 | + <img src="{{ site.url }}/assets/images/amd_rocm_blog.png" width="100%"> |
| 17 | +</div> |
| 18 | + |
| 19 | +## The ROCm Ecosystem |
| 20 | + |
| 21 | +ROCm is AMD’s open source software platform for GPU-accelerated high performance computing and |
| 22 | +machine learning. Since the original ROCm release in 2016, the ROCm platform has evolved to support |
| 23 | +additional libraries and tools, a wider set of Linux® distributions, and a range of new GPUs. This includes |
| 24 | +the AMD Instinct™ MI100, the first GPU based on AMD CDNA™ architecture. |
| 25 | + |
| 26 | +The ROCm ecosystem has an established history of support for PyTorch, which was initially implemented |
| 27 | +as a fork of the PyTorch project, and more recently through ROCm support in the upstream PyTorch |
| 28 | +code. PyTorch users can install PyTorch for ROCm using AMD’s public PyTorch docker image, and can of |
| 29 | +course build PyTorch for ROCm from source. With PyTorch 1.8, these existing installation options are |
| 30 | +now complemented by the availability of an installable Python package. |
| 31 | + |
| 32 | +The primary focus of ROCm has always been high performance computing at scale. The combined |
| 33 | +capabilities of ROCm and AMD’s Instinct family of data center GPUs are particularly suited to the |
| 34 | +challenges of HPC at data center scale. PyTorch is a natural fit for this environment, as HPC and ML |
| 35 | +workflows become more intertwined. |
| 36 | + |
| 37 | +### Getting started with PyTorch for ROCm |
| 38 | + |
| 39 | +The scope for this build of PyTorch is AMD GPUs with ROCm support, running on Linux. The GPUs |
| 40 | +supported by ROCm include all of AMD’s Instinct family of compute-focused data center GPUs, along |
| 41 | +with some other select GPUs. A current list of supported GPUs can be found in the [ROCm Github |
| 42 | +repository](https://github.com/RadeonOpenCompute/ROCm#supported-gpus). After confirming that the target system includes supported GPUs and the current 4.0.1 |
| 43 | +release of ROCm, installation of PyTorch follows the same simple Pip-based installation as any other |
| 44 | +Python package. As with PyTorch builds for other platforms, the configurator at [https://pytorch.org/getstarted/locally/](https://pytorch.org/getstarted/locally/) provides the specific command line to be run. |
| 45 | + |
| 46 | +PyTorch for ROCm is built from the upstream PyTorch repository, and is a full featured implementation. |
| 47 | +Notably, it includes support for distributed training across multiple GPUs and supports accelerated |
| 48 | +mixed precision training. |
| 49 | + |
| 50 | +### More information |
| 51 | + |
| 52 | +A list of ROCm supported GPUs and operating systems can be found at |
| 53 | +[https://github.com/RadeonOpenCompute/ROCm](https://github.com/RadeonOpenCompute/ROCm) |
| 54 | +General documentation on the ROCm platform is available at [https://rocmdocs.amd.com/en/latest/](https://rocmdocs.amd.com/en/latest/) |
| 55 | +ROCm Learning Center at [https://developer.amd.com/resources/rocm-resources/rocm-learning-center/](https://developer.amd.com/resources/rocm-resources/rocm-learning-center/) General information on AMD’s offerings for HPC and ML can be found at [https://amd.com/hpc](https://amd.com/hpc) |
| 56 | + |
| 57 | +### Feedback |
| 58 | +An engaged user base is a tremendously important part of the PyTorch ecosystem. We would be deeply |
| 59 | +appreciative of feedback on the PyTorch for ROCm experience in the [PyTorch discussion forum](https://discuss.pytorch.org/) and, where appropriate, reporting any issues via [Github](https://github.com/pytorch/pytorch). |
0 commit comments