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.

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.

Workflow

Developers will work on release branches daily and RI to main branch as needed.

Motivations why in this pattern.

  1. Avoid pushing identical changes twice into release and main.
  2. Avoid to be blocked by broken changes from pytorch master.

Examples of cutting branches:

  1. A new branch for pytorch-1.13 (e.g. [release/1.13+2]) will be cut from the last released branch release/1.13+ for new releases, and developers will stay on the new branch daily until that release is published.

  2. For new pytorch version 1.13.1, release/1.13.1 should be cut from main after all release workloads are RIed.

workflow

PyTorch homepage

Metadata

Release files for torch-directml 0.1.13.1.dev230119

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.1.13.1.dev230119
File
torch_directml-0.1.13.1.dev230119-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
torch_directml-0.1.13.1.dev230119-cp310-cp310-manylinux2010_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.12+ x86-64 Details
torch_directml-0.1.13.1.dev230119-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
torch_directml-0.1.13.1.dev230119-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details
torch_directml-0.1.13.1.dev230119-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
torch_directml-0.1.13.1.dev230119-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details

Total release size: 127.6 MB

Release files / torch_directml-0.1.13.1.dev230119-cp310-cp310-win_amd64.whl

Download URL torch_directml-0.1.13.1.dev230119-cp310-cp310-win_amd64.whl
Size 7.4 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
03e5bbb6ed9c5e6684f9bc8e4d6d0df0a06d452f7a587646d1a427e58e301abc
BLAKE2b-256 checksum
How to use checksums
51d8bf710054312398cd7dc2f7ea4941eedb4f38bc48725b47913d125969b5ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release files / torch_directml-0.1.13.1.dev230119-cp310-cp310-manylinux2010_x86_64.whl

Download URL torch_directml-0.1.13.1.dev230119-cp310-cp310-manylinux2010_x86_64.whl
Size 23.4 MB
Tags CPython 3.10 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
21675c5e64094b2d805853a0733de5e73ccdae850179360693ba7993e8c9df48
BLAKE2b-256 checksum
How to use checksums
cabffb8ca9a9b8911694351686da73ec6b179bbc18474ab676549bf50e4e41ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release files / torch_directml-0.1.13.1.dev230119-cp39-cp39-win_amd64.whl

Download URL torch_directml-0.1.13.1.dev230119-cp39-cp39-win_amd64.whl
Size 7.4 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
794cfc9de17c645a2d181d5c65026c750b02153d0bba861e7ee75dd24433077f
BLAKE2b-256 checksum
How to use checksums
f83adf74cafcda716d27d7e5034df02d7f46580daa081aa3c057dabd3fe18d94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release files / torch_directml-0.1.13.1.dev230119-cp39-cp39-manylinux2010_x86_64.whl

Download URL torch_directml-0.1.13.1.dev230119-cp39-cp39-manylinux2010_x86_64.whl
Size 23.4 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
e0bffa96725b23735fb9addcbe25fb1604ca6e6308412dbe6bd0727b64387e50
BLAKE2b-256 checksum
How to use checksums
165b56f835791ef04b8bcb2256d5e14b297f80c76987fb5a8129eda734079270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release files / torch_directml-0.1.13.1.dev230119-cp38-cp38-win_amd64.whl

Download URL torch_directml-0.1.13.1.dev230119-cp38-cp38-win_amd64.whl
Size 7.4 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
6d0b8262c857bd3b01170f32e29c5c5bb55178e147a1a9c49b920e461b453376
BLAKE2b-256 checksum
How to use checksums
4a8c64b6669a64ce469cf86f619d4d402796bb13858d29fe035d140f3d7631da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release files / torch_directml-0.1.13.1.dev230119-cp38-cp38-manylinux2010_x86_64.whl

Download URL torch_directml-0.1.13.1.dev230119-cp38-cp38-manylinux2010_x86_64.whl
Size 58.4 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
c5b83a661fb7e6ed9cc8cd3afc33bf47dd7251027874dfa30813d6a420d4dbd4
BLAKE2b-256 checksum
How to use checksums
4aca20696ce3baf695b697b3d17f304d35f2c3e9eeb0bc027851341bdc5c9199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15
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