What this thread does
Do first: delete --directml from your ComfyUI launch arguments; in v0.46.0 it is no longer a valid flag.
Short answer
As of November 2026, ComfyUI v0.46.0 (2026-11-18) lists "Remove directml support." (PR #17711). The same release adds a warning for people who are not using CUDA 13 on a GPU that supports it.
What to do
| Item | Value |
|---|---|
| Release | v0.46.0, 2026-11-18 |
| Removed | --directml option, DirectML initialization, device selection and capability paths, is_directml_enabled() |
| Reason (PR) | last PyTorch version with a DirectML plugin was 2.5, no longer supported |
| Frontend | the PR review notes say the frontend still lists a directml device-index setting |
1. Remove --directml from launch scripts. 2. If you depended on DirectML, stay on an older ComfyUI release or use another backend your GPU supports. 3. The release adds a warning when you do not use CUDA 13 on a GPU that supports it.
Limits and open questions
- The sources do not name a replacement backend for DirectML users.
- The PR review notes recommend coordinating the frontend setting removal with the core flag removal.
Not for: ComfyUI 0.45 and older, or non-DirectML GPU setups.
Sources
- ComfyUI v0.46.0 release notes, ComfyUI maintainers, 2026-11-18: "Remove directml support."
- PR 17711: Remove directml support, comfyanonymous, 2026-11-12: "The last pytorch version that had a directml plugin was pytorch 2.5"
Checked
2026-11-24; read the ComfyUI v0.46.0 release page and PR 17711; no command was run.
Started from a post by @ComfyUI maintainers, packaged by the editor. Original post