Skip to main content

A DirectML backend for hardware acceleration in PyTorch.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

torch_directml-0.2.4.dev240913-cp312-cp312-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.12 Windows x86-64

torch_directml-0.2.4.dev240913-cp312-cp312-manylinux2010_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.12+ x86-64

torch_directml-0.2.4.dev240913-cp311-cp311-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

torch_directml-0.2.4.dev240913-cp311-cp311-manylinux2010_x86_64.whl (25.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.12+ x86-64

torch_directml-0.2.4.dev240913-cp310-cp310-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

torch_directml-0.2.4.dev240913-cp310-cp310-manylinux2010_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

torch_directml-0.2.4.dev240913-cp39-cp39-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

torch_directml-0.2.4.dev240913-cp39-cp39-manylinux2010_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

torch_directml-0.2.4.dev240913-cp38-cp38-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

torch_directml-0.2.4.dev240913-cp38-cp38-manylinux2010_x86_64.whl (66.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

File details

Details for the file torch_directml-0.2.4.dev240913-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c43153e94c391cfba8f054491d25ab43b00d4e150fd304e7d9339b4d691fd943
MD5 b1a43f546f24ee6fc4d74a76f0e78cc1
BLAKE2b-256 f520e4170401ecb6cd439809b6ce67e8ce9a3d406261aa28a0da43ae705718df

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp312-cp312-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp312-cp312-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6590b684fc7c90396b714464009fb6589908c5abb59a878b1fe41f7e9fd9408b
MD5 c83a7f053a41342883febc356fd88ffa
BLAKE2b-256 134836b66e36b31fb89ecdca5f1e5dcf06221d53a378a5e8c71eb406b6ca0099

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7e6618a9c40fd82d3e041917d1421c14e50b0c2cd38a89da36157390e03982eb
MD5 1eee48ddad610cb8bc283e7b7fc8de14
BLAKE2b-256 0f812c3adcbef083006e141544cad7138ac93a9af75e6a92fdad97fab080a487

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp311-cp311-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp311-cp311-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 655261b1aff2c21493139345da20dfd1b6eab9f5c665088877eb7365f40efafd
MD5 bbc96b0b405513e525388442c19a43d2
BLAKE2b-256 f40f3995d61e7fade4b51b910b0d1f6b19936071286a9087955a7efcd9b53591

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9c8333b19c35f813b8671f3de43ef875a454a382c2fc4257b8ba5eb952422266
MD5 ff4f5814ad007bd36fe0eb72b8aaec63
BLAKE2b-256 c768ccb0b3caa4b5097a0184cfaea1ca7b4578f309f1c7875297ef492941341b

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp310-cp310-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp310-cp310-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1ad47803a339401507c9deee2d38385baf3b6a1893b9999c28856e15b7d464c6
MD5 a38c78c06f318f7e355fe43c9bc9900c
BLAKE2b-256 5130140bc5d5a879b705b7274bd87bdc3d612584bb5a37b93f853f9212732259

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 31e4c692cc96f5e5d2595f815541faa3a45fc9b91dd82475e01e054663b454f5
MD5 ad68a3ad2510620def5d06e746543551
BLAKE2b-256 c80656815db5657f1eafffb85d6924f8f168c807a3cecb8d591e7386e7f56ced

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c130ddb32f84d3e9d35a294a313401fa1eaa2964fc5e9f2050a34919d98d8a7a
MD5 bd37998640ef638d9ddad605ff59fc1b
BLAKE2b-256 b70f40acb98f03e898fbf913fa9692110b96157d18674311b46af9a680a39a34

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8659b4ef118e747135aa8d76bbdc55d679482bc0bbce6a088d2897671173addb
MD5 2047c0e54e30e05507fd569504a6619d
BLAKE2b-256 911023c13e24ee656e6936ed2eb0dd1adf1e58ea5495c764d3227cf1ef054853

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.4.dev240913-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240913-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 21c0b99b975fe740dc21fee40facaba8e9b9cbfdc75d46e607c9364413e7b991
MD5 da055089636f8d0d6e16929034f3f32b
BLAKE2b-256 435fec61b92ebd06bd13a5341429a315d5ad5d06f04c072f1d049a7c607311b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page