From 27c5bcf362e81af8e135ee6eabf9d40db7f11dce Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 28 Feb 2026 18:33:45 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20total=5Fmem=20=E2=86=92=20total=5Fmemory?= =?UTF-8?q?=20attribute=20on=20CudaDeviceProperties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 1f5dc50..0255612 100644 --- a/nodes.py +++ b/nodes.py @@ -815,7 +815,7 @@ class VFIOptimizer: per_pair_vram_mb = max(per_pair_vram_bytes / (1024 ** 2), 1.0) # --- Compute settings --- - total_vram_mb = torch.cuda.get_device_properties(device).total_mem / (1024 ** 2) + total_vram_mb = torch.cuda.get_device_properties(device).total_memory / (1024 ** 2) min_free_mb = min_free_vram_gb * 1024 available_mb = total_vram_mb - min_free_mb - model_vram_mb