From 9aec99ed8af0c502841755be0323beeef8b34d54 Mon Sep 17 00:00:00 2001 From: ReinerBforartists Date: Fri, 27 Feb 2026 20:32:33 +0100 Subject: [PATCH] AMD/ROCm - Fix VAE_KL_MEM_RATIO overestimation for modern ROCm - Added comment --- comfy/sd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/sd.py b/comfy/sd.py index 2e4fe46f0..8cfa82be3 100644 --- a/comfy/sd.py +++ b/comfy/sd.py @@ -440,7 +440,7 @@ class VAE: sd = diffusers_convert.convert_vae_state_dict(sd) if model_management.is_amd(): - VAE_KL_MEM_RATIO = 1.3 + VAE_KL_MEM_RATIO = 1.3 # Conservative margin for modern ROCm 7.x, reduced from 2.73 (see PR #12685) else: VAE_KL_MEM_RATIO = 1.0