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.3.dev240715

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

Total release size: 210.6 MB

Release files / torch_directml-0.2.3.dev240715-cp312-cp312-win_amd64.whl

Download URL torch_directml-0.2.3.dev240715-cp312-cp312-win_amd64.whl
Size 9.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
096a2d2519d5369a5bd5ecbeece2e99d48f076ea69bb0aed34156e0cbd20f18d
BLAKE2b-256 checksum
How to use checksums
ce368bd82215bc03ce3152cadd6434fe0a45103951230622e9456f6380c6c59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp312-cp312-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.3.dev240715-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
e936ac66c6756c7341787d47cbf8ae0ff3f212dc60e5ed0b8ae5918b9ea68986
BLAKE2b-256 checksum
How to use checksums
4099a7c744300f5185937e6044f4d4b2ad3fcf1fb4f4579ca656efa9288570fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp311-cp311-win_amd64.whl

Download URL torch_directml-0.2.3.dev240715-cp311-cp311-win_amd64.whl
Size 9.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7df5ff668371185e71228613dc3fd85e266d8d3879a94a68f4e71aa951e193cf
BLAKE2b-256 checksum
How to use checksums
396269a66a77371e51cdb071d8dfdb64046a2fb9fbaed4cde00563b763378dfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp311-cp311-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.3.dev240715-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
d7f64b7babc20b6f9ee0eac6e49e47eac4f57a2b2ac7ee491ee91e9453d136ea
BLAKE2b-256 checksum
How to use checksums
40801a48390a4c4a595b3cda85686993df7e2378138123f094160acb8dc5aaad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp310-cp310-win_amd64.whl

Download URL torch_directml-0.2.3.dev240715-cp310-cp310-win_amd64.whl
Size 9.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
ef66bd9fe21badee34987cbf54c051404d968eb4b957695e82d4fb96c8c838b8
BLAKE2b-256 checksum
How to use checksums
94d7bd60be25c42031edfbb0d64e63d9d4d48587bb489034ca9e71395b7e48a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp310-cp310-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.3.dev240715-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
df97c10b306ca579c755fbd8bf3b9bac3a8612602f87e3947c70a9ce8eebe403
BLAKE2b-256 checksum
How to use checksums
8c462f239c9ed4136d991834dd08af4d2f711d1ace86c8838944cde35b3574c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp39-cp39-win_amd64.whl

Download URL torch_directml-0.2.3.dev240715-cp39-cp39-win_amd64.whl
Size 9.0 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
ad1a7cb2e4a221c5c958d9641941cdb465f2e1ee6fdfc31738cbc178b222164e
BLAKE2b-256 checksum
How to use checksums
72eda444b859049f8a3854900cb3712194ff5ea397f785ba4c5e93ed5069822c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp39-cp39-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.3.dev240715-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
cec0cf79130da34a947e1ff4d8f158d7f97819fd4d3dd2019b9b65ddc9b6d72b
BLAKE2b-256 checksum
How to use checksums
e5dd9fa8bd65cb227cdefca7c6ea6edc11ef28e99ec3e8f5e03e2861e0304fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp38-cp38-win_amd64.whl

Download URL torch_directml-0.2.3.dev240715-cp38-cp38-win_amd64.whl
Size 9.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
ac1512477b65a866679107eef693aba18592e08a31ea8112d6577ee1d85884ed
BLAKE2b-256 checksum
How to use checksums
8777f5235b45f4404cdb25fdd5b905cca050d1beaea9ba6dc680ace3a8e2562e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / torch_directml-0.2.3.dev240715-cp38-cp38-manylinux2010_x86_64.whl

Download URL torch_directml-0.2.3.dev240715-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
17c8c13285c643d854007f9a7d756cf69540f8799ee4cdc328752217a99ba3bb
BLAKE2b-256 checksum
How to use checksums
1155cd6c03297812ccb3415ee196c7f45a57dd720c6605aa5ef4e2fab241003c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Security for torch-directml 0.2.3.dev240715

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