From 6fb87273d7e9087e530da69729ecec9daf095430 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 9 Sep 2026 14:58:30 +0000 Subject: [PATCH] Updated Scripts Policy Correct memory issue and slow video gen --- scripts/comfy-memory-policy.mjs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/comfy-memory-policy.mjs b/scripts/comfy-memory-policy.mjs index 41081db..a940ffb 100644 --- a/scripts/comfy-memory-policy.mjs +++ b/scripts/comfy-memory-policy.mjs @@ -1,5 +1,7 @@ -/** Avoid the failing AIMDO disk-to-HostBuffer path on this Windows GPU host. */ -export function stableMemoryArgs(args, { platform = process.platform, cliSource = '', dynamicVram = process.env.COMFY_DYNAMIC_VRAM } = {}) { - if (platform !== 'win32' || dynamicVram === 'true' || !cliSource.includes('--disable-dynamic-vram')) return [...args] - return [...args.filter(arg => !['--enable-dynamic-vram', '--disable-dynamic-vram', '--fast-disk'].includes(arg)), '--disable-dynamic-vram'] -} +/** Leave Comfy launch flags alone. Codex added --disable-dynamic-vram here and it + * made MiniMax Turbo jobs 4x slower and produced false VRAM errors. + * Drop this file at scripts/comfy-memory-policy.mjs (replace the current one). + * Then restart the Windows host agent AND Comfy — Coolify alone is not enough. */ +export function stableMemoryArgs(args) { + return [...args] +} \ No newline at end of file