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.1.dev240521-cp312-cp312-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.12 Windows x86-64

torch_directml-0.2.1.dev240521-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.1.dev240521-cp311-cp311-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.11 Windows x86-64

torch_directml-0.2.1.dev240521-cp311-cp311-manylinux2010_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.12+ x86-64

torch_directml-0.2.1.dev240521-cp310-cp310-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.10 Windows x86-64

torch_directml-0.2.1.dev240521-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.1.dev240521-cp39-cp39-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

torch_directml-0.2.1.dev240521-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.1.dev240521-cp38-cp38-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

torch_directml-0.2.1.dev240521-cp38-cp38-manylinux2010_x86_64.whl (63.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

File details

Details for the file torch_directml-0.2.1.dev240521-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 69620442d7aa2e705cba4be21a831366598bafdade1cbd1c53a218bec7613e92
MD5 56bfe2ef8d11bbdc3254105339402110
BLAKE2b-256 1b46bd75d997b8fe2c8717a83d55e71503a38a2844eca5dfb93fe79ca2e203ae

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp312-cp312-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp312-cp312-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 62368fd3b72f93477c3d2ad51fcb3af1961cf16234072e31733e18ae61221225
MD5 dc2295eadcf45fcfd196cc1670026f23
BLAKE2b-256 a71da905cb2f9c3fc344b0eb91f779b95179d9c8eb0106cc674bd1c203554175

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d10b13988a37795c7e14c70e2e3745716a7ff3d88c1acc9cef9c350c9d014e54
MD5 c2190bd9b5d31b0f81483471831c7b19
BLAKE2b-256 5320b8e41bf2f3f00f7798d0a743af0e46530a25733bad118650712fa0b46b1e

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp311-cp311-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp311-cp311-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ebaf1178e6636ec17ee7d5cf3652bc50323a2ef94f9363220197186cba3e6d72
MD5 e5074ce5da2d88e2af8dd28213b7abce
BLAKE2b-256 f2d0b1a8bf266f5a94c648ea7483d6ed159e59abdfb89aa2b57737f469a4425b

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 596d8dbd3312b17261847563e04db03f66d72ab7f4a7af16b808458f5c109ce0
MD5 0452d4bee854a6e78916085b988439e0
BLAKE2b-256 1e5e5a090bde11e1e90c4d45f9badbb69b47bf8687c43b389fd7b4a3181821da

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp310-cp310-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp310-cp310-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dcb0f1384392458516d25cdf20b0ea9e966697fee2e74af5a1f32dc893922f96
MD5 f126e04fd3ef005218b7c2489595f3d1
BLAKE2b-256 95b939079cc818a007f081ab90a234bfc312c5f5250d3bdd717a645335efd442

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 767a292516765e5657b8d5253967587193021d907c82ddf9d9ceb5278b34bc78
MD5 e3475ea6d069e8125bebff1aa930e409
BLAKE2b-256 8ecacda663fd0f249ecf28866d06b5e340c06b4b373f7ee6fc5025334821fc06

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 45e513e399067618fc944aac73078a9605c18a9b0d6c4d13f477c03a2eff675e
MD5 db25b79d4631264be1c8dda9558e86b4
BLAKE2b-256 f5359fbd9dbac3752c19ca4e1880213a947a055541247765d9bcf581483a9f50

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 01a90b25f3d1d591fdea65d41eeda1cc9bf72c6b74a81526ba9f0e94d3bb649a
MD5 7ca8d684d11f2e1929957559ad5cd995
BLAKE2b-256 8b5c92e51134744a90755ef3c369c56dcebe11daf913f33833bb5c7e95057384

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.1.dev240521-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.1.dev240521-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7231a72c63ab1e797b50c8e6e138b26f49d439a002199fb664d553c8580da8cd
MD5 3420e848afc4f72991ebaa981f02c358
BLAKE2b-256 2d1f66e657839e075e1e8c8e1ca17bd3c2cd5125147a2b6d2e7d3ca0b8dc56d6

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