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.4.dev240815

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

Total release size: 210.7 MB

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

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

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

Download URL torch_directml-0.2.4.dev240815-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
5d32a484aa4e1bd64eb9cb03a2271b99f03842497a2995f4c19706be4db99ce2
BLAKE2b-256 checksum
How to use checksums
270395697ebaa88bed11c7969aca8fe67f922c3c0d3fa97178bdebeea4d82d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

Download URL torch_directml-0.2.4.dev240815-cp311-cp311-win_amd64.whl
Size 9.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
42388e0a7c0441b34ddc202f0fb4ec32dfec5d0145b7e8c725bb4feead14da07
BLAKE2b-256 checksum
How to use checksums
6bf01389fde6c4a88d6c7c88df412f2369a192f6028b17ee21cf2ab06b6b8a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

Download URL torch_directml-0.2.4.dev240815-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
cb10cacad7483197bdc940b58b42cd33fa4bf820c77505bcc967b773eed2ad16
BLAKE2b-256 checksum
How to use checksums
675019bfc99b88717f098d8f00f5971d36e3538d6c76a1c6f3cf66bee91faba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

Download URL torch_directml-0.2.4.dev240815-cp310-cp310-win_amd64.whl
Size 9.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
1786d0dc9569aa4515b9924050ee94e5e71d9613ed1269675e036de4ec56d874
BLAKE2b-256 checksum
How to use checksums
8684d209bd6c2daa956a0995ac4e71f616ecd23e8ce6560fbe94eecd8d368fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

Download URL torch_directml-0.2.4.dev240815-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
c88af74cb91bc45171fc1e72c0bd87f021a5b801c944370eb2c5fbfa8d59cf39
BLAKE2b-256 checksum
How to use checksums
982b924f5040cb3ff83475770b4c71f2c833f4168e724231f3e2ccf20b0339ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

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

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

Download URL torch_directml-0.2.4.dev240815-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
1f6c83b8bc527931101d0dd237e6c9de585aa28bf8ab671e1907e8e42d45baa0
BLAKE2b-256 checksum
How to use checksums
bd747844619ce6b27836dfa62b8e8495de2c8cfc95ecfdabf622a0b6a07a45bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

Download URL torch_directml-0.2.4.dev240815-cp38-cp38-win_amd64.whl
Size 9.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
5b2f1eece2b6479cb51a9ee4227ab86f6e31df6716041a89c287a4896fa996a1
BLAKE2b-256 checksum
How to use checksums
2bd5133ae6c66a4ad00422aca43a209c430ae77b7e748d69f483fe449ac75823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

Download URL torch_directml-0.2.4.dev240815-cp38-cp38-manylinux2010_x86_64.whl
Size 66.1 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
993d39f8473b04f7b4af49718f46d96bb7944c9ed2a8424f3a28fccea63aaa6b
BLAKE2b-256 checksum
How to use checksums
c9add111b167f67ceb85cbcc0a4e8efaeb3cfed0d1b269065f690130092adcaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for torch-directml 0.2.4.dev240815

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