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.1.13.1.dev230301

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.1.13.1.dev230301
File
torch_directml-0.1.13.1.dev230301-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
torch_directml-0.1.13.1.dev230301-cp310-cp310-manylinux2010_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.12+ x86-64 Details
torch_directml-0.1.13.1.dev230301-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
torch_directml-0.1.13.1.dev230301-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details
torch_directml-0.1.13.1.dev230301-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
torch_directml-0.1.13.1.dev230301-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details

Total release size: 127.7 MB

Release files / torch_directml-0.1.13.1.dev230301-cp310-cp310-win_amd64.whl

Download URL torch_directml-0.1.13.1.dev230301-cp310-cp310-win_amd64.whl
Size 7.4 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
e9dcbbd2e9461572eca6852d50683d20e21669d274f38d90da2213f0b0527049
BLAKE2b-256 checksum
How to use checksums
118348b83587533d76d766935046ecf440738d26ec3826b1a4ce1dcb33d144a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Release files / torch_directml-0.1.13.1.dev230301-cp310-cp310-manylinux2010_x86_64.whl

Download URL torch_directml-0.1.13.1.dev230301-cp310-cp310-manylinux2010_x86_64.whl
Size 23.5 MB
Tags CPython 3.10 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
6cd0d6f1f2a4d5f72a8834d76d40410a6bf40719ccdd61c65e98e43cc6d90a2f
BLAKE2b-256 checksum
How to use checksums
5a7c38b0b4ced3983b6c0cec438c5848f736d3d17a711e7fa0ff914ed1e3a48a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Release files / torch_directml-0.1.13.1.dev230301-cp39-cp39-win_amd64.whl

Download URL torch_directml-0.1.13.1.dev230301-cp39-cp39-win_amd64.whl
Size 7.4 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
49ccdd7e2a10599b38cfd488a068d4d8023b25946742a23706800909f11a70c1
BLAKE2b-256 checksum
How to use checksums
7da43f14c9f44843a8991b106989236570230682c78fd112614c1aa4b6ffd5fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Release files / torch_directml-0.1.13.1.dev230301-cp39-cp39-manylinux2010_x86_64.whl

Download URL torch_directml-0.1.13.1.dev230301-cp39-cp39-manylinux2010_x86_64.whl
Size 23.4 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
8ba61e754a121b405fe6c1da0e42e3b6bc791e92869be9c09cda0e4128cb1085
BLAKE2b-256 checksum
How to use checksums
bb4d28a07aab50c34c341a00db9d860fb59afb83fc892c3f2fbbb8a45d08e824
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Release files / torch_directml-0.1.13.1.dev230301-cp38-cp38-win_amd64.whl

Download URL torch_directml-0.1.13.1.dev230301-cp38-cp38-win_amd64.whl
Size 7.4 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
9f67f01278b3784514291ffac6c8e02a53b8a2dc845a4f9d4ff8e4716a036ce2
BLAKE2b-256 checksum
How to use checksums
5f431a945962de003eab317f05fd31960dc640e6bb11fc6c3be61b08f25c8a83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Release files / torch_directml-0.1.13.1.dev230301-cp38-cp38-manylinux2010_x86_64.whl

Download URL torch_directml-0.1.13.1.dev230301-cp38-cp38-manylinux2010_x86_64.whl
Size 58.5 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
f71301954ebe43ef347f536bfa9491184c0b69685ce7679357e340034eb20479
BLAKE2b-256 checksum
How to use checksums
f187c660e21db4022a2fd8eca855bbe5b30e6fee573b02974baa589f284449ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9
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