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

Uploaded CPython 3.12 Windows x86-64

torch_directml-0.2.3.dev240715-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.3.dev240715-cp311-cp311-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

torch_directml-0.2.3.dev240715-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.3.dev240715-cp310-cp310-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

torch_directml-0.2.3.dev240715-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.3.dev240715-cp39-cp39-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

torch_directml-0.2.3.dev240715-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.3.dev240715-cp38-cp38-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

torch_directml-0.2.3.dev240715-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.3.dev240715-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 096a2d2519d5369a5bd5ecbeece2e99d48f076ea69bb0aed34156e0cbd20f18d
MD5 c09054b0121caf90a36f6cf4c2b3da3d
BLAKE2b-256 ce368bd82215bc03ce3152cadd6434fe0a45103951230622e9456f6380c6c59e

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp312-cp312-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp312-cp312-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e936ac66c6756c7341787d47cbf8ae0ff3f212dc60e5ed0b8ae5918b9ea68986
MD5 afd55d1953d362fff1f04d3a36ef5519
BLAKE2b-256 4099a7c744300f5185937e6044f4d4b2ad3fcf1fb4f4579ca656efa9288570fd

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7df5ff668371185e71228613dc3fd85e266d8d3879a94a68f4e71aa951e193cf
MD5 b2eaef9ec49d0dbe33c7a749c720253e
BLAKE2b-256 396269a66a77371e51cdb071d8dfdb64046a2fb9fbaed4cde00563b763378dfc

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp311-cp311-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp311-cp311-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d7f64b7babc20b6f9ee0eac6e49e47eac4f57a2b2ac7ee491ee91e9453d136ea
MD5 d3f57cb13f895a042067f3422d4c98a4
BLAKE2b-256 40801a48390a4c4a595b3cda85686993df7e2378138123f094160acb8dc5aaad

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef66bd9fe21badee34987cbf54c051404d968eb4b957695e82d4fb96c8c838b8
MD5 1365b0c8883af470566ea391a9270f45
BLAKE2b-256 94d7bd60be25c42031edfbb0d64e63d9d4d48587bb489034ca9e71395b7e48a7

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp310-cp310-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp310-cp310-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 df97c10b306ca579c755fbd8bf3b9bac3a8612602f87e3947c70a9ce8eebe403
MD5 407880e029934855284ed02dbbab3d3e
BLAKE2b-256 8c462f239c9ed4136d991834dd08af4d2f711d1ace86c8838944cde35b3574c6

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ad1a7cb2e4a221c5c958d9641941cdb465f2e1ee6fdfc31738cbc178b222164e
MD5 5bacc779baa607f9864b6ea8311bef98
BLAKE2b-256 72eda444b859049f8a3854900cb3712194ff5ea397f785ba4c5e93ed5069822c

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cec0cf79130da34a947e1ff4d8f158d7f97819fd4d3dd2019b9b65ddc9b6d72b
MD5 e4ea2356cba3ddedcaf56dcd02769f0a
BLAKE2b-256 e5dd9fa8bd65cb227cdefca7c6ea6edc11ef28e99ec3e8f5e03e2861e0304fc9

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ac1512477b65a866679107eef693aba18592e08a31ea8112d6577ee1d85884ed
MD5 4c39adc6542df3c484f477b92110039e
BLAKE2b-256 8777f5235b45f4404cdb25fdd5b905cca050d1beaea9ba6dc680ace3a8e2562e

See more details on using hashes here.

File details

Details for the file torch_directml-0.2.3.dev240715-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for torch_directml-0.2.3.dev240715-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 17c8c13285c643d854007f9a7d756cf69540f8799ee4cdc328752217a99ba3bb
MD5 aa72d21698e5f08fb86e5d274c7e6f46
BLAKE2b-256 1155cd6c03297812ccb3415ee196c7f45a57dd720c6605aa5ef4e2fab241003c

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