Installation¶
Prerequisites¶
| Component | Details |
|---|---|
| Windows | Windows 11 24H2 or later (required for NPU support) |
| Hardware | Device with CPU, GPU, or NPU |
| Python | 3.11 |
| Package manager | uv |
| Version control | git |
No NPU?
You can follow most of these docs without NPU hardware. All winml-cli commands accept --device auto and fall back to CPU or DirectML automatically. The tutorials document explicit CPU fallback paths.
Install¶
uv python install 3.11 downloads and pins the exact Python version the project requires. uv pip install winml-cli installs the latest release from PyPI into a managed environment. No separate venv activation is needed.
Install from source (for development)
If you want to contribute or run the latest unreleased code:
Verify¶
Expected output (abbreviated):
+------------------------------------+
| winml-cli System Information |
+------------------------------------+
Environment
Python Version 3.11.x
OS Windows 11
Machine AMD64
ML Libraries
Library Version Status
torch 2.x.x OK
onnx 1.x.x OK
Available Devices (priority order)
#1 NPU ...
#2 GPU ...
#3 CPU ...
Available Execution Providers
QNNExecutionProvider -> NPU
DmlExecutionProvider -> GPU
CPUExecutionProvider -> CPU
This command enumerates available compute devices and execution providers on your machine. If an expected device or execution provider is missing, winml sys is the right place to diagnose it. See winml sys for the full flag reference and troubleshooting tips.
Next steps¶
- Quickstart — export your first model in 5 minutes.
- End-to-End Tour — full pipeline targeting whatever hardware you have (NPU / GPU / CPU).
- How winml-cli Works — the mental model.