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.dev240815-cp312-cp312-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.12 Windows x86-64

torch_directml-0.2.4.dev240815-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.dev240815-cp311-cp311-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

torch_directml-0.2.4.dev240815-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.4.dev240815-cp310-cp310-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

torch_directml-0.2.4.dev240815-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.dev240815-cp39-cp39-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

torch_directml-0.2.4.dev240815-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.dev240815-cp38-cp38-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

torch_directml-0.2.4.dev240815-cp38-cp38-manylinux2010_x86_64.whl (66.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8ae8bf8217477a538e3fb089086a1ba666af17dfa8aafedf22b6be8849b51227
MD5 ef295a5436546580cda75347a5c10370
BLAKE2b-256 99040072adfd65d8f047bd236c8fd6c3b5b0c95392e0271f3c1fa308e2e2b2a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp312-cp312-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5d32a484aa4e1bd64eb9cb03a2271b99f03842497a2995f4c19706be4db99ce2
MD5 5f223059530497a4a1880dcb3a1cd333
BLAKE2b-256 270395697ebaa88bed11c7969aca8fe67f922c3c0d3fa97178bdebeea4d82d6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42388e0a7c0441b34ddc202f0fb4ec32dfec5d0145b7e8c725bb4feead14da07
MD5 683985f14414f39062406c3626aeca04
BLAKE2b-256 6bf01389fde6c4a88d6c7c88df412f2369a192f6028b17ee21cf2ab06b6b8a81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp311-cp311-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cb10cacad7483197bdc940b58b42cd33fa4bf820c77505bcc967b773eed2ad16
MD5 b29b75cc1e6c153e4e53b7c7ffd2594c
BLAKE2b-256 675019bfc99b88717f098d8f00f5971d36e3538d6c76a1c6f3cf66bee91faba3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1786d0dc9569aa4515b9924050ee94e5e71d9613ed1269675e036de4ec56d874
MD5 bfc472ef803cba7eb149c5a703368834
BLAKE2b-256 8684d209bd6c2daa956a0995ac4e71f616ecd23e8ce6560fbe94eecd8d368fb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp310-cp310-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c88af74cb91bc45171fc1e72c0bd87f021a5b801c944370eb2c5fbfa8d59cf39
MD5 78cf77645783db38fc0137839b03bab8
BLAKE2b-256 982b924f5040cb3ff83475770b4c71f2c833f4168e724231f3e2ccf20b0339ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 133c4face4a11a25152ce14a7c75cb1a7f7045a5e325079d42a70061649bd547
MD5 ae482434d9fbe46ca7fab11667fc77ef
BLAKE2b-256 c16629447a3693196c65f069598b040ee97064facaa7f016639794d981138f66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1f6c83b8bc527931101d0dd237e6c9de585aa28bf8ab671e1907e8e42d45baa0
MD5 7bd3fdb38b717097e79bda6ce1241f12
BLAKE2b-256 bd747844619ce6b27836dfa62b8e8495de2c8cfc95ecfdabf622a0b6a07a45bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5b2f1eece2b6479cb51a9ee4227ab86f6e31df6716041a89c287a4896fa996a1
MD5 f9bfb22a1df5cf8b2717ad77cff52782
BLAKE2b-256 2bd5133ae6c66a4ad00422aca43a209c430ae77b7e748d69f483fe449ac75823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_directml-0.2.4.dev240815-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 993d39f8473b04f7b4af49718f46d96bb7944c9ed2a8424f3a28fccea63aaa6b
MD5 4113ef778dedb54564d371e87aef3a34
BLAKE2b-256 c9add111b167f67ceb85cbcc0a4e8efaeb3cfed0d1b269065f690130092adcaf

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