Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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!

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

Metadata

Release files for torch-directml 0.2.0.dev230426

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for torch-directml 0.2.0.dev230426
File
torch_directml-0.2.0.dev230426-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
torch_directml-0.2.0.dev230426-cp310-cp310-manylinux2010_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.12+ x86-64 Details
torch_directml-0.2.0.dev230426-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
torch_directml-0.2.0.dev230426-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details
torch_directml-0.2.0.dev230426-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
torch_directml-0.2.0.dev230426-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details

Total release size: 138.2 MB

Release files / torch_directml-0.2.0.dev230426-cp310-cp310-win_amd64.whl

Download URL torch_directml-0.2.0.dev230426-cp310-cp310-win_amd64.whl
Size 8.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
7b19ad71966ac6591c24e6876b63aa94cd2321b42df767cec4673fb4305c6a2e
BLAKE2b-256 checksum
How to use checksums
0c402bbccb83ea0c1caffd46ab487211c3401c0eaa895698fe968beb913e775e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / torch_directml-0.2.0.dev230426-cp310-cp310-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.0.dev230426-cp310-cp310-manylinux2010_x86_64.whl
Size 25.8 MB
Tags CPython 3.10 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
8976b6ae4c1b7bb6f770109106692cfc9ac9643808b0569ebee70e889bcfb8a7
BLAKE2b-256 checksum
How to use checksums
18cb3cc7c78d9d2b53d2ab823b5ba15f86e5b0240ba3d4f12cc71ccc16990d10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / torch_directml-0.2.0.dev230426-cp39-cp39-win_amd64.whl

Download URL torch_directml-0.2.0.dev230426-cp39-cp39-win_amd64.whl
Size 8.2 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
22614281fc0722d9318e6612558ffd55fabbe54940d66978d665c2fc124b4e4c
BLAKE2b-256 checksum
How to use checksums
c21de4ac92551964af81fd0be62086bc307e63a66d40ebdd9d02b0640efcc89f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / torch_directml-0.2.0.dev230426-cp39-cp39-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.0.dev230426-cp39-cp39-manylinux2010_x86_64.whl
Size 25.8 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
2289cbc8d60140a4ac846922895a6c38c38cdec39631975d62fb58b3b14de5cf
BLAKE2b-256 checksum
How to use checksums
aefcb82046993a8c2033a5b0023943696868d267c01c9eb2147ee7914d5e1970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / torch_directml-0.2.0.dev230426-cp38-cp38-win_amd64.whl

Download URL torch_directml-0.2.0.dev230426-cp38-cp38-win_amd64.whl
Size 8.2 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
cfb4d8ea7abb5aa4629f005f45c43a4916365c3f59362847abb86780b2b87aeb
BLAKE2b-256 checksum
How to use checksums
115ccd7b811318f3d9612b480208e632cdf3ddbae20a3a4b3e1dddff59f4ecf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / torch_directml-0.2.0.dev230426-cp38-cp38-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.0.dev230426-cp38-cp38-manylinux2010_x86_64.whl
Size 61.9 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
7e9fba00a680bfdefd062a12a6bacfb896862543b0c91606143dfb9d0259c5af
BLAKE2b-256 checksum
How to use checksums
c729d6ee506438ec8169e90b365608945e093a3a7a9db7cedc7a6cb7eacee8f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page