We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb3ddd commit e8067fcCopy full SHA for e8067fc
comfy/model_patcher.py
@@ -319,7 +319,8 @@ def get_free_memory(self, device):
319
#than pays for CFG. So return everything both torch and Aimdo could give us
320
aimdo_mem = 0
321
if comfy.memory_management.aimdo_enabled:
322
- aimdo_mem = comfy_aimdo.model_vbar.vbars_analyze()
+ aimdo_device = device.index if getattr(device, "type", None) == "cuda" else None
323
+ aimdo_mem = comfy_aimdo.model_vbar.vbars_analyze(aimdo_device)
324
return comfy.model_management.get_free_memory(device) + aimdo_mem
325
326
def get_clone_model_override(self):
0 commit comments