A DirectML backend for hardware acceleration in PyTorch.
Project description
PyTorch with DirectML
DirectML acceleration for PyTorch is currently available for Public Preview. PyTorch with DirectML enables training and inference of complex machine learning models on a wide range of DirectX 12-compatible hardware.
DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning. DirectML provides GPU acceleration for common machine learning tasks across a broad range of supported hardware and drivers, including all DirectX 12-capable GPUs from vendors such as AMD, Intel, NVIDIA, and Qualcomm.
More information about DirectML can be found in Introduction to DirectML.
PyTorch on DirectML is supported on both the latest versions of Windows 10 and the Windows Subsystem for Linux, and is available for download as a PyPI package. For more information about getting started, see GPU accelerated ML training (docs.microsoft.com)
Samples
Refer to the Pytorch with DirectML Samples Repo for samples.
Feedback
We look forward to hearing from you!
-
For TensorFlow with DirectML issues, bugs, and feedback; or for general DirectML issues and feedback, please file an issue or contact us directly at askdirectml@microsoft.com.
-
For PyTorch with DirectML issues, bugs, and feedback; or for general DirectML issues and feedback, please file an issue or contact us directly at askdirectml@microsoft.com.
-
For Windows ML issues, please file a GitHub issue at microsoft/Windows-Machine-Learning or contact us directly at askwindowsml@microsoft.com.
-
For ONNX Runtime issues, please file an issue at microsoft/onnxruntime.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Workflow
Developers will work on release branches daily and RI to main branch as needed.
- main branch builds with the nightly-built pytorch
conda install pytorch torchvision cpuonly -c pytorch-nightly
- release branches build with the corresponding published pytorch
- both release/1.13 and release/1.13+ build with pytorch 1.13.
- coming release/1.13.1 should build with pytorch 1.13.1
Motivations why in this pattern.
- Avoid pushing identical changes twice into release and main.
- Avoid to be blocked by broken changes from pytorch master.
Examples of cutting branches:
-
A new branch for pytorch-1.13 (e.g. [release/1.13+2]) will be cut from the last released branch release/1.13+ for new releases, and developers will stay on the new branch daily until that release is published.
-
For new pytorch version 1.13.1, release/1.13.1 should be cut from main after all release workloads are RIed.
External Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file experimental_torch_directml-0.1.13.dev2012023125617-cp310-cp310-manylinux2010_x86_64.whl
.
File metadata
- Download URL: experimental_torch_directml-0.1.13.dev2012023125617-cp310-cp310-manylinux2010_x86_64.whl
- Upload date:
- Size: 23.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 972462c78f3f1eba431190a47f05a140416be3a17d06b5d037e6c1e43254c9e8 |
|
MD5 | 5cb587890b1bed29b39e1ae3a81b388e |
|
BLAKE2b-256 | 9eca445bfa2a85c669c686aec80c44636abf6e54734072ae01091c316fc5deea |