Always put text encoder on GPU when dynamic vram on. (#16374)

This commit is contained in:
comfyanonymous
2026-09-16 22:27:39 -04:00
committed by GitHub
parent 4e779e5619
commit d39cdfdb03
+3 -1
View File
@@ -1219,7 +1219,9 @@ def text_encoder_offload_device():
def text_encoder_device():
if args.gpu_only:
return get_torch_device()
elif vram_state in (VRAMState.HIGH_VRAM, VRAMState.NORMAL_VRAM) or comfy.memory_management.aimdo_enabled:
if comfy.memory_management.aimdo_enabled:
return get_torch_device()
elif vram_state in (VRAMState.HIGH_VRAM, VRAMState.NORMAL_VRAM):
if should_use_fp16(prioritize_performance=False):
return get_torch_device()
else: