Updated Scripts Policy

Correct memory issue and slow video gen
This commit is contained in:
2026-09-09 14:58:30 +00:00
parent badf59d914
commit 6fb87273d7
+6 -4
View File
@@ -1,5 +1,7 @@
/** Avoid the failing AIMDO disk-to-HostBuffer path on this Windows GPU host. */ /** Leave Comfy launch flags alone. Codex added --disable-dynamic-vram here and it
export function stableMemoryArgs(args, { platform = process.platform, cliSource = '', dynamicVram = process.env.COMFY_DYNAMIC_VRAM } = {}) { * made MiniMax Turbo jobs 4x slower and produced false VRAM errors.
if (platform !== 'win32' || dynamicVram === 'true' || !cliSource.includes('--disable-dynamic-vram')) return [...args] * Drop this file at scripts/comfy-memory-policy.mjs (replace the current one).
return [...args.filter(arg => !['--enable-dynamic-vram', '--disable-dynamic-vram', '--fast-disk'].includes(arg)), '--disable-dynamic-vram'] * Then restart the Windows host agent AND Comfy — Coolify alone is not enough. */
export function stableMemoryArgs(args) {
return [...args]
} }