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.

Metadata

Release files for torch-directml 0.2.4.dev240913

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.4.dev240913
File Actions
torch_directml-0.2.4.dev240913-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for torch_directml-0.2.4.dev240913-cp312-cp312-win_amd64.whl
torch_directml-0.2.4.dev240913-cp312-cp312-manylinux2010_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.12+ x86-64 Details for torch_directml-0.2.4.dev240913-cp312-cp312-manylinux2010_x86_64.whl
torch_directml-0.2.4.dev240913-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for torch_directml-0.2.4.dev240913-cp311-cp311-win_amd64.whl
torch_directml-0.2.4.dev240913-cp311-cp311-manylinux2010_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.12+ x86-64 Details for torch_directml-0.2.4.dev240913-cp311-cp311-manylinux2010_x86_64.whl
torch_directml-0.2.4.dev240913-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for torch_directml-0.2.4.dev240913-cp310-cp310-win_amd64.whl
torch_directml-0.2.4.dev240913-cp310-cp310-manylinux2010_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.12+ x86-64 Details for torch_directml-0.2.4.dev240913-cp310-cp310-manylinux2010_x86_64.whl
torch_directml-0.2.4.dev240913-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for torch_directml-0.2.4.dev240913-cp39-cp39-win_amd64.whl
torch_directml-0.2.4.dev240913-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details for torch_directml-0.2.4.dev240913-cp39-cp39-manylinux2010_x86_64.whl
torch_directml-0.2.4.dev240913-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for torch_directml-0.2.4.dev240913-cp38-cp38-win_amd64.whl
torch_directml-0.2.4.dev240913-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details for torch_directml-0.2.4.dev240913-cp38-cp38-manylinux2010_x86_64.whl

Total release size: 211.0 MB

Release files / torch_directml-0.2.4.dev240913-cp312-cp312-win_amd64.whl

Download URL torch_directml-0.2.4.dev240913-cp312-cp312-win_amd64.whl
Size 9.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c43153e94c391cfba8f054491d25ab43b00d4e150fd304e7d9339b4d691fd943
BLAKE2b-256 checksum
How to use checksums
f520e4170401ecb6cd439809b6ce67e8ce9a3d406261aa28a0da43ae705718df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp312-cp312-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.4.dev240913-cp312-cp312-manylinux2010_x86_64.whl
Size 24.9 MB
Tags CPython 3.12 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
6590b684fc7c90396b714464009fb6589908c5abb59a878b1fe41f7e9fd9408b
BLAKE2b-256 checksum
How to use checksums
134836b66e36b31fb89ecdca5f1e5dcf06221d53a378a5e8c71eb406b6ca0099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp311-cp311-win_amd64.whl

Download URL torch_directml-0.2.4.dev240913-cp311-cp311-win_amd64.whl
Size 9.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7e6618a9c40fd82d3e041917d1421c14e50b0c2cd38a89da36157390e03982eb
BLAKE2b-256 checksum
How to use checksums
0f812c3adcbef083006e141544cad7138ac93a9af75e6a92fdad97fab080a487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp311-cp311-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.4.dev240913-cp311-cp311-manylinux2010_x86_64.whl
Size 25.0 MB
Tags CPython 3.11 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
655261b1aff2c21493139345da20dfd1b6eab9f5c665088877eb7365f40efafd
BLAKE2b-256 checksum
How to use checksums
f40f3995d61e7fade4b51b910b0d1f6b19936071286a9087955a7efcd9b53591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp310-cp310-win_amd64.whl

Download URL torch_directml-0.2.4.dev240913-cp310-cp310-win_amd64.whl
Size 9.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9c8333b19c35f813b8671f3de43ef875a454a382c2fc4257b8ba5eb952422266
BLAKE2b-256 checksum
How to use checksums
c768ccb0b3caa4b5097a0184cfaea1ca7b4578f309f1c7875297ef492941341b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp310-cp310-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.4.dev240913-cp310-cp310-manylinux2010_x86_64.whl
Size 24.9 MB
Tags CPython 3.10 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
1ad47803a339401507c9deee2d38385baf3b6a1893b9999c28856e15b7d464c6
BLAKE2b-256 checksum
How to use checksums
5130140bc5d5a879b705b7274bd87bdc3d612584bb5a37b93f853f9212732259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp39-cp39-win_amd64.whl

Download URL torch_directml-0.2.4.dev240913-cp39-cp39-win_amd64.whl
Size 9.0 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
31e4c692cc96f5e5d2595f815541faa3a45fc9b91dd82475e01e054663b454f5
BLAKE2b-256 checksum
How to use checksums
c80656815db5657f1eafffb85d6924f8f168c807a3cecb8d591e7386e7f56ced
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp39-cp39-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.4.dev240913-cp39-cp39-manylinux2010_x86_64.whl
Size 24.9 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
c130ddb32f84d3e9d35a294a313401fa1eaa2964fc5e9f2050a34919d98d8a7a
BLAKE2b-256 checksum
How to use checksums
b70f40acb98f03e898fbf913fa9692110b96157d18674311b46af9a680a39a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp38-cp38-win_amd64.whl

Download URL torch_directml-0.2.4.dev240913-cp38-cp38-win_amd64.whl
Size 9.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
8659b4ef118e747135aa8d76bbdc55d679482bc0bbce6a088d2897671173addb
BLAKE2b-256 checksum
How to use checksums
911023c13e24ee656e6936ed2eb0dd1adf1e58ea5495c764d3227cf1ef054853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Release files / torch_directml-0.2.4.dev240913-cp38-cp38-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.4.dev240913-cp38-cp38-manylinux2010_x86_64.whl
Size 66.4 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
21c0b99b975fe740dc21fee40facaba8e9b9cbfdc75d46e607c9364413e7b991
BLAKE2b-256 checksum
How to use checksums
435fec61b92ebd06bd13a5341429a315d5ad5d06f04c072f1d049a7c607311b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.16

Security for torch-directml 0.2.4.dev240913

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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