cli_args: Default comfy to DynamicVram mode (#12658)

This commit is contained in:
rattus
2026-02-28 13:52:30 -08:00
committed by GitHub
parent 5f41584e96
commit 48bb0bd18a
2 changed files with 3 additions and 3 deletions

View File

@ -192,7 +192,7 @@ import hook_breaker_ac10a0
import comfy.memory_management
import comfy.model_patcher
if enables_dynamic_vram():
if enables_dynamic_vram() and comfy.model_management.is_nvidia():
if comfy.model_management.torch_version_numeric < (2, 8):
logging.warning("Unsupported Pytorch detected. DynamicVRAM support requires Pytorch version 2.8 or later. Falling back to legacy ModelPatcher. VRAM estimates may be unreliable especially on Windows")
elif comfy_aimdo.control.init_device(comfy.model_management.get_torch_device().index):