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.
Roadmap
torch-directml
is actively under development and we're always adding more operators. For a list of all the operators we support and their data type coverage, refer to the PyTorch DirectML Operator Roadmap in the DirectML repository wiki. If you require support for an operator that isn't in this list, see the Feedback section below on how to file an issue.
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.
Data Collection Notice
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
Specifically, in torch-directml, we are collecting the GPU device info and operators that fall back to CPU for improving operator coverage.
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 Distributions
File details
Details for the file torch_directml-0.1.13.1.dev230413-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: torch_directml-0.1.13.1.dev230413-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 750508deafb9b138e5d8d740adf5cec93b4119f22f711b598b6825d46895bf74 |
|
MD5 | aa1a4cc452e4f2f79c1a748c8ea68cd0 |
|
BLAKE2b-256 | 3bd2b6a3fab5034c716e866f8564a219a9de4b2e58b23d111058338190232857 |
File details
Details for the file torch_directml-0.1.13.1.dev230413-cp310-cp310-manylinux2010_x86_64.whl
.
File metadata
- Download URL: torch_directml-0.1.13.1.dev230413-cp310-cp310-manylinux2010_x86_64.whl
- Upload date:
- Size: 25.8 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 | 66114c5f87cc0011b2ce9914318e9c5a38cd3873248a9fdcfc1d40980fc44e26 |
|
MD5 | 22e600fbb5ca18cec613d5883b5bb328 |
|
BLAKE2b-256 | 1e01a2733d0a4d2af344dc2240ae73f47fc0f420296232c84a85cd98901677a6 |
File details
Details for the file torch_directml-0.1.13.1.dev230413-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: torch_directml-0.1.13.1.dev230413-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9808d51a206c12b2aadc3574e055305cfd652eca2f769325cf6d3449198760 |
|
MD5 | b58821dda31327315996319d02ecfc20 |
|
BLAKE2b-256 | 00b48ff47d9369bddd68d491f7f636719c3e87c44ccb0d873415f630b212c855 |
File details
Details for the file torch_directml-0.1.13.1.dev230413-cp39-cp39-manylinux2010_x86_64.whl
.
File metadata
- Download URL: torch_directml-0.1.13.1.dev230413-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 25.8 MB
- Tags: CPython 3.9, 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 | 6155855a01d86dd4e2b8b8d7c9c75ce543a2a9de244854873770dd52fcef785b |
|
MD5 | 5c24cb951cf77d13625257babff7f930 |
|
BLAKE2b-256 | d875095e9300228a66e7bdf592d6557d8e7bfa11d2482fc65aeedd468e2115af |
File details
Details for the file torch_directml-0.1.13.1.dev230413-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: torch_directml-0.1.13.1.dev230413-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac48d812b159dd3c30d75cc7d8cd11131ebed3ef6e449972665bc91e5dc854a |
|
MD5 | 775a3c42741c44b43a3e05cd4a930afa |
|
BLAKE2b-256 | 5ff8b8948a2e6513ba2b899956826e23c5cc5360d82b74c4a654a07fba05c1c1 |
File details
Details for the file torch_directml-0.1.13.1.dev230413-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: torch_directml-0.1.13.1.dev230413-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 61.3 MB
- Tags: CPython 3.8, 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 | a806451216cc08a250e20c7558f1eeb094723fba6bd5c9c50d2bd9caf5bec898 |
|
MD5 | 73e20a797a6d5ee2b36ba17f5641ebd0 |
|
BLAKE2b-256 | 53747de1793a735d2b56f9e3cfefb3322694f276ba0effca0da28bb6fb9e8caf |