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.2.dev240614

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

Total release size: 209.7 MB

Release files / torch_directml-0.2.2.dev240614-cp312-cp312-win_amd64.whl

Download URL torch_directml-0.2.2.dev240614-cp312-cp312-win_amd64.whl
Size 8.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
b414cf9b1845f98db6ff0f5b6991b374aebc43fdd10f70a664934a42d1f1f914
BLAKE2b-256 checksum
How to use checksums
7810f7ccbd76aae856ec540fcf01810090bfea26cc9aa2cc5963ff82a32fe506
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp312-cp312-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.2.dev240614-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
05369dc65852e8622f4caf1179d55a9442eb4fc2341db9812f8320081b91b9ee
BLAKE2b-256 checksum
How to use checksums
882934bc1dda32d6d8b9c6748f118e551f0dfb12d3631438934648fa9609b3fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp311-cp311-win_amd64.whl

Download URL torch_directml-0.2.2.dev240614-cp311-cp311-win_amd64.whl
Size 8.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
16fb186709ee97ec0ce1170a1e32ca67f58d8da10ea2c60b1e7ba73bfc3cab7c
BLAKE2b-256 checksum
How to use checksums
84dd0ec22349c2a84fd9b394c9a90f7062462eaf562dcee8dd0452face45739a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp311-cp311-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.2.dev240614-cp311-cp311-manylinux2010_x86_64.whl
Size 24.9 MB
Tags CPython 3.11 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
dac0d469ab34a1b1f34ead6d982e50e2cee1f1f33088a1e4ef7fd76ec3d2f5b2
BLAKE2b-256 checksum
How to use checksums
4d70b954bee508cb999a4f3e74765e7ffae9cc8650007e0d101f25c344828199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp310-cp310-win_amd64.whl

Download URL torch_directml-0.2.2.dev240614-cp310-cp310-win_amd64.whl
Size 8.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
dfbb5d705bd88d722ca6b0eba64b36196e074497eecdbc25892398514d832dda
BLAKE2b-256 checksum
How to use checksums
99afa250b28f96381bda1969b22b18100e24e1c305b4567585de2a335806aab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp310-cp310-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.2.dev240614-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
3d85e3363d2015ee3eb2fa1e767cb861a217347941456e54d1e5d29fd94505df
BLAKE2b-256 checksum
How to use checksums
94cf4f6d57c352a057b60446df5c584765f31106b59717b6d54907d9b29197e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp39-cp39-win_amd64.whl

Download URL torch_directml-0.2.2.dev240614-cp39-cp39-win_amd64.whl
Size 8.9 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
4d1936eda1a800477e2c9a929370ec7024af506263f3f97b9b87097a732d6a20
BLAKE2b-256 checksum
How to use checksums
d82b7c7c6865de9e23c70b58f84c5eb2254e0418d56099d29c27d955c8f97f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp39-cp39-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.2.dev240614-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
86ab25666f0e01050b542de8c938a5e64edc0723dac9e2dd43a7f00480e30ffe
BLAKE2b-256 checksum
How to use checksums
30f5f61447ac6d9b657d8e132f1bfd55d835d238385253e453db3ce1fdff1a08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp38-cp38-win_amd64.whl

Download URL torch_directml-0.2.2.dev240614-cp38-cp38-win_amd64.whl
Size 8.9 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
540ebcc27f863d2007c500a2ef6dce72a88cd14fe6a83d5d3dd4c8a36c075856
BLAKE2b-256 checksum
How to use checksums
9a695bc4ebeb5c49d48545b669dc2a7501a01e343e257238309c2f44e0d7e95e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / torch_directml-0.2.2.dev240614-cp38-cp38-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.2.dev240614-cp38-cp38-manylinux2010_x86_64.whl
Size 65.3 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
7f9b0a713b7c9dd88431371d2546455cd5cc51eaeb37d9c5c62879a4194a594f
BLAKE2b-256 checksum
How to use checksums
dd4dcc68f235cc6877ec697cb814443864b4ca7d4747badfde74c549573a029d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Security for torch-directml 0.2.2.dev240614

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