If you run local AI apps on a Windows PC, you'll see two Microsoft names come up: DirectML and Windows ML. They're related, but Microsoft has changed which one it's focusing on. This explainer sets out what each is, how they use your hardware and what the change means for you. It's based on Microsoft's documentation.
The short version
DirectML | Windows ML | |
|---|---|---|
What it is | A low-level, DirectX 12-style API for machine learning | Microsoft's local AI inferencing framework for Windows, built on ONNX Runtime |
Hardware | Any DirectX 12-compatible GPU | NPUs, GPUs and CPUs, through execution providers |
Who uses it directly | Developers wanting fine control, such as game engines | App developers wanting the best hardware chosen automatically |
Status | Still supported, but new feature development has moved to Windows ML | Where Microsoft says new development is happening |
What DirectML is
Microsoft describes DirectML as a low-level hardware abstraction layer that lets you run machine learning workloads on any DirectX 12-compatible GPU. It arrived in Windows 10 version 1903. Developers can call it directly, in the style of Direct3D 12, or use it indirectly through ONNX Runtime, where DirectML is one execution provider alongside others such as CPU, CUDA and TensorRT.
Microsoft says DirectML's operators give developers a single, vendor-agnostic interface. Its DirectML page now notes that DirectML continues to be supported, but new feature development has moved to Windows ML for Windows-based ONNX Runtime deployments. Some apps are reacting: we covered ComfyUI dropping DirectML support.
What Windows ML is
Microsoft calls Windows ML the unified local AI inferencing framework for Windows. It's the Windows-supported and maintained copy of ONNX Runtime, so apps written for ONNX Runtime can use it. The key difference for PC owners is hardware access: Windows ML can reach NPUs, GPUs and CPUs through execution providers that Windows installs and keeps up to date, so an app doesn't have to bundle a separate build for each chip maker.




