LTX-2.3 generation speed dropped significantly after upgrading to the new ComfyUI version
** MOD NOTE: Please describe what disk and filesystem you are using if reporting this issue. **
I'm experiencing a massive slowdown with LTX-2.3 after updating to the latest ComfyUI Desktop version.
Previously on the older version, generating a 10-second video took around 8 minutes. However, after the update, the generation time has significantly increased to about 20 minutes for the exact same settings.
My Specs:
GPU: RTX 3060 (12GB VRAM)
RAM: 32GB
CPU: AMD Ryzen 7 5800X
I suspect it might be related to the new VRAM/RAM offloading behavior, CUDA cu130 compatibility issues, or VAE tiled decoding changes in the new version.
Has anyone else run into this issue, or does anyone know how to tweak the settings/arguments to get the old performance back? Any help would be greatly appreciated!
Similarly for me as well. But with Wan animate. Generating a video of 15 seconds at 720 x 1280 at 30 fps took one hour. Now, it takes 1:30.
GPU is RTX 5060 TI with 16 GB of VRAM. Windows 10, latest Nvidia drivers.... System RAM: 64 GB. Intel 11th generation CPU.
which part is slow? the steps? the first iteration? can we get the logs? If you have a screenshot or video of the memory visualizer we can see what it might be trying to do wrong or where its slow.
github.com/kijai/ComfyUI-MemoryVisualization
@rattus128 I am using the official workflow LTX-2.3 I2V,Whenever the (SamplerCustomAdvanced) node is encountered, it gets stuck for a very long time; in the old version, this step ran very quickly.
Here are some additional findings from testing on AMD hardware showing a similar performance regression on Windows 10.(ComfyUI master branch, commit 2cdaaf).
-
Test environment: [INFO] Total VRAM 16304 MB, total RAM 65231 MB [INFO] pytorch version: 2.12.0+rocm7.14.0a20260604 [INFO] AMD arch: gfx1201 [INFO] ROCm version: (7, 14) [INFO] Set vram state to: NORMAL_VRAM [INFO] Disabling smart memory management [INFO] Device: cuda:0 AMD Radeon RX 9070 : native [INFO] Using async weight offloading with 2 streams [INFO] Enabled pinned memory 26092.0 [INFO] Using sage attention aimdo: src-win/cuda-detour.c:38:INFO:aimdo_setup_hooks: installing 6 hooks aimdo: src-win/cuda-detour.c:28:DEBUG:install_hook_entries: hooks successfully installed aimdo: src-win/shmem-detect.c:80:INFO:comfy-aimdo WDDM adapter match: AMD Radeon RX 9070 runtime_luid=00000000:000132dc dxgi_luid=00000000:000132dc aimdo: src/control.c:241:INFO:comfy-aimdo inited for GPU: AMD Radeon RX 9070 (VRAM: 16304 MB) [INFO] DynamicVRAM support detected and enabled [INFO] Python version: 3.13.0 (main, Oct 16 2024, 00:33:24) [MSC v.1929 64 bit (AMD64)] [INFO] ComfyUI version: 0.24.0 [INFO] comfy-aimdo version: 0.4.9 [INFO] comfy-kitchen version: 0.2.10 [INFO] comfyui-frontend-package version: 1.45.15 [INFO] comfyui-workflow-templates version: 0.9.98 [INFO] comfyui-embedded-docs version: 0.5.2
-
Test workflows ltx2.3 ia2v offical workflow 1024*1024 25fps 5s
-
Environment variables: export HIP_VISIBLE_DEVICES=0 export TORCH_BLAS_PREFER_HIPBLASLT=1 export TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1 export USE_MEM_EFF_ATTENTION=1 export COMFYUI_ENABLE_MIOPEN=1 export MIOPEN_FIND_MODE=2 export PYTORCH_MIOPEN_SUGGEST_NHWC=1
-
Baseline (enabled pinned memory): uv run python ComfyUI/main.py --extra-model-paths-config extra_model_paths.yaml --listen --enable-triton-backend --use-sage-attention --auto-launch --enable-dynamic-vram --disable-smart-memory --fast-disk
- Treatment (disabled pinned memory): uv run python ComfyUI/main.py --extra-model-paths-config extra_model_paths.yaml --listen --enable-triton-backend --use-sage-attention --auto-launch --enable-dynamic-vram --disable-smart-memory --disable-pinned-memory --fast-disk
The result reflects the performance regression happened in first stage(8 steps) in ltx2.3(6.78s/it→10.67s/it), and that may be related to pinned memory being enabled or not, which was not an issue in previous versions.
I'm having a similar issue whereby I cannot complete previous workflows that worked fine since the update to v0.24.1 i keep getting OOM errors.
I use a simple text to image workflow (Flux1-dev-fp8) with two LORA's its a very simple workflow and i could generate images no problem at 1920x1080 or even higher on my 12GB RTX 3060 but now only 512x512 will complete on KSampler but it then fails on VAE Encode stage. Whats happened??
Is there anyway i can revert back? Perhaps i can keep this machine 'as is' and just never update it and build a newer machine if the system requirements are going to increase but i need my current machine to work s i cannot use anything now.
Though, oddly, WAN 2.2 seems to be completely uneffected and works exactly as it did.
Error log:
torch.OutOfMemoryError: Allocation on device This error means you ran out of memory on your GPU.
TIPS: If the workflow worked before you might have accidentally set the batch_size to a large number.
MOD NOTE: log truncated. This report does not match the OP and was already pasted elsewhere.
which part is slow? the steps? the first iteration? can we get the logs? If you have a screenshot or video of the memory visualizer we can see what it might be trying to do wrong or where its slow.
github.com/kijai/ComfyUI-MemoryVisualization
When comfyui starts and when the workflow begins running, I get no warnings and no errors. I use sage attention.
The Wan animate steps are running slower. Each sampler step is slower. I was using a bf16 safe tensor file. To regain the previous performance I had to switch to the equivalent Q8 gguf models.
On a similar note, Bernini, the official workflow, never finishes the first step with the suggested fp8 saf tensor files. To have it run, I had to use the - equivalent high and low gguf models.
Best regards, Marius.
@rattus128 I am using the official workflow LTX-2.3 I2V,Whenever the (SamplerCustomAdvanced) node is encountered, it gets stuck for a very long time; in the old version, this step ran very quickly.
You're not alone with that symptom.
Prior runs of the official T2V and I2V workflow would get through SamplerCustomAdvanced nodes - i.e., the generation and upscale passes - in less than 10 total minutes on an RTX-3090.
Now it's taking over 20 minutes per sampler node to even start seeing a progress bar, then more time to fully complete the processing. Overall flows that took less than 20 minutes are now taking over 40 minutes.
EDIT: I went back to a build from 2026-05-28 and also readjusted all the Python packages to match the environment at that time. It turns out xformers somehow got dropped during the recent update, but a number of other packages were also changed and many were added (presumably with other custom node updates).
Going back to that older environment snapshot saw the same LTX-2.3 T2V workflow which earlier took well over 30 minutes, now completes in 7 minutes for a 12 second video.
I was able to build something very close to @wei01127 system and I cant reproduce a slow-down.
RTX3060 (12GBVRAM), 32GB RAM, ryzen 5600XT PCIE 1.0 x4 NVME (bios downgraded) (disk unknown in report)
I dont have the video resolution so im assuming 1280x720x10s @25FPS LTX2.3 two stage template with upscaler.
Anyways here is the full logs:
Current master (5aa71b9b):
C:\Users\rattus\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --base-directory C:\Users\rattus\comfy-base
[INFO] setup plugin alembic.autogenerate.schemas
[INFO] setup plugin alembic.autogenerate.tables
[INFO] setup plugin alembic.autogenerate.types
[INFO] setup plugin alembic.autogenerate.constraints
[INFO] setup plugin alembic.autogenerate.defaults
[INFO] setup plugin alembic.autogenerate.comments
[INFO] Found comfy_kitchen backend triton: {'available': False, 'disabled': True, 'unavailable_reason': "ImportError: No module named 'triton'", 'capabilities': []}
[INFO] Found comfy_kitchen backend cuda: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'apply_rope_split_half', 'apply_rope_split_half1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'gemv_awq_w4a16', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'stochastic_rounding_fp8']}
[INFO] Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'apply_rope_split_half', 'apply_rope_split_half1', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'gemv_awq_w4a16', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'stochastic_rounding_fp8']}
[INFO] Checkpoint files will always be loaded safely.
[INFO] Total VRAM 12287 MB, total RAM 32691 MB
[INFO] pytorch version: 2.11.0+cu130
[INFO] Set vram state to: NORMAL_VRAM
[INFO] Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
[INFO] Using async weight offloading with 2 streams
[INFO] Enabled pinned memory 13076.0
[INFO] Using pytorch attention
aimdo: src-win/cuda-detour.c:38:INFO:aimdo_setup_hooks: installing 6 hooks
aimdo: src-win/cuda-detour.c:28:DEBUG:install_hook_entries: hooks successfully installed
aimdo: src-win/shmem-detect.c:80:INFO:comfy-aimdo WDDM adapter match: NVIDIA GeForce RTX 3060 runtime_luid=00000000:0000a104 dxgi_luid=00000000:0000a104
aimdo: src/control.c:241:INFO:comfy-aimdo inited for GPU: NVIDIA GeForce RTX 3060 (VRAM: 12287 MB)
[INFO] DynamicVRAM support detected and enabled
[INFO] Python version: 3.13.12 (tags/v3.13.12:1cbe481, Feb 3 2026, 18:22:25) [MSC v.1944 64 bit (AMD64)]
[INFO] ComfyUI version: 0.24.0
[INFO] comfy-aimdo version: 0.4.8
[INFO] comfy-kitchen version: 0.2.10
[INFO] comfyui-frontend-package version: 1.45.15
[INFO] comfyui-workflow-templates version: 0.9.98
[INFO] comfyui-embedded-docs version: 0.5.2
[INFO] comfy-kitchen version: 0.2.10
[INFO] comfy-aimdo version: 0.4.8
[INFO] [Prompt Server] web root: C:\Users\rattus\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
[INFO] Asset seeder disabled
[INFO] ComfyUI-GGUF: Allowing full torch compile
[INFO] ComfyUI-QuantOps: comfy-kitchen triton unavailable: ImportError: No module named 'triton'
[INFO] FP8 kernels: Triton not available, will use dequantize fallback
[INFO] ComfyUI-QuantOps: Registered TensorCoreMXFP8Layout
[INFO] ComfyUI-QuantOps: Registered layouts: ['BlockWiseINT8Layout', 'TensorWiseINT8Layout', 'RowWiseFP8Layout', 'BlockWiseFP8Layout', 'TensorCoreMXFP8Layout']
[INFO]
Import times for custom nodes:
[INFO] 0.0 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-MemoryVisualization
[INFO] 0.0 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-QuantOps
[INFO] 0.0 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-GGUF
[INFO] 0.3 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-LTXVideo
[INFO]
[INFO] Context impl SQLiteImpl.
[INFO] Will assume non-transactional DDL.
[INFO] Using RAM pressure cache.
[INFO] Starting server
[INFO] To see the GUI go to: http://127.0.0.1:8188
[INFO] got prompt
[INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.float32
[INFO] Found quantization metadata version 1
[INFO] Detected mixed precision quantization
[INFO] Using mixed precision operations
[INFO] Native ops: int8_tensorwise, int8_blockwise, float8_e4m3fn_blockwise, hybrid_mxfp8, float8_e4m3fn_rowwise , emulated ops: nvfp4, float8_e4m3fn, float8_e5m2, mxfp8
[INFO] model weight dtype torch.bfloat16, manual cast: torch.bfloat16
[INFO] model_type FLUX
[INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
[WARNING] no CLIP/text encoder weights in checkpoint, the text encoder model will not be loaded.
[INFO] CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
[INFO] Requested to load LTXAVTEModel_
[INFO] Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 400 weights: 1745 KB.
[INFO] Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 400 weights: 1745 KB.
[INFO] Requested to load LTXAV
[INFO] Model LTXAV prepared for dynamic VRAM loading. 23835MB Staged. 1660 patches attached. Force pre-loaded 2104 weights: 3308 KB.
100%|████████████████████████████████████████████████████████████████████████████████████| 8/8 [03:02<00:00, 22.80s/it]
[INFO] 0 models unloaded.
[INFO] Model LTXAV prepared for dynamic VRAM loading. 23835MB Staged. 1660 patches attached. Force pre-loaded 2104 weights: 3308 KB.
100%|███████████████████████████████████████████████████████████████████████████████████| 3/3 [06:17<00:00, 125.99s/it]
[INFO] Requested to load AudioVAE
[INFO] loaded completely; 693.46 MB loaded, full load: True
[INFO] Requested to load VideoVAE
[INFO] 0 models unloaded.
[INFO] Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached.
[INFO] Prompt executed in 00:11:28
Comparing to v0.22.0 (2026-05-20):
C:\Users\rattus\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --base-directory C:\Users\rattus\comfy-base
setup plugin alembic.autogenerate.schemas
setup plugin alembic.autogenerate.tables
setup plugin alembic.autogenerate.types
setup plugin alembic.autogenerate.constraints
setup plugin alembic.autogenerate.defaults
setup plugin alembic.autogenerate.comments
Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'apply_rope_split_half', 'apply_rope_split_half1', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'gemv_awq_w4a16', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'stochastic_rounding_fp8']}
Found comfy_kitchen backend cuda: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'apply_rope_split_half', 'apply_rope_split_half1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'gemv_awq_w4a16', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'stochastic_rounding_fp8']}
Found comfy_kitchen backend triton: {'available': False, 'disabled': True, 'unavailable_reason': "ImportError: No module named 'triton'", 'capabilities': []}
Checkpoint files will always be loaded safely.
Total VRAM 12287 MB, total RAM 32691 MB
pytorch version: 2.11.0+cu130
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
Using async weight offloading with 2 streams
Enabled pinned memory 13076.0
Using pytorch attention
aimdo: src-win/cuda-detour.c:38:INFO:aimdo_setup_hooks: installing 6 hooks
aimdo: src-win/cuda-detour.c:28:DEBUG:install_hook_entries: hooks successfully installed
aimdo: src-win/shmem-detect.c:80:INFO:comfy-aimdo WDDM adapter match: NVIDIA GeForce RTX 3060 runtime_luid=00000000:0000a104 dxgi_luid=00000000:0000a104
aimdo: src/control.c:152:INFO:comfy-aimdo inited for GPU: NVIDIA GeForce RTX 3060 (VRAM: 12287 MB)
DynamicVRAM support detected and enabled
Python version: 3.13.12 (tags/v3.13.12:1cbe481, Feb 3 2026, 18:22:25) [MSC v.1944 64 bit (AMD64)]
ComfyUI version: 0.22.0
comfy-aimdo version: 0.3.0
comfy-kitchen version: 0.2.10
comfyui-frontend-package version: 1.45.15
comfyui-workflow-templates version: 0.9.98
comfyui-embedded-docs version: 0.5.2
comfy-kitchen version: 0.2.10
comfy-aimdo version: 0.3.0
[Prompt Server] web root: C:\Users\rattus\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
Asset seeder disabled
ComfyUI-GGUF: Allowing full torch compile
ComfyUI-QuantOps: comfy-kitchen triton unavailable: ImportError: No module named 'triton'
FP8 kernels: Triton not available, will use dequantize fallback
ComfyUI-QuantOps: Registered TensorCoreMXFP8Layout
ComfyUI-QuantOps: Registered layouts: ['BlockWiseINT8Layout', 'TensorWiseINT8Layout', 'RowWiseFP8Layout', 'BlockWiseFP8Layout', 'TensorCoreMXFP8Layout']
Import times for custom nodes:
0.0 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-MemoryVisualization
0.0 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-QuantOps
0.0 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-GGUF
0.3 seconds: C:\Users\rattus\comfy-base\custom_nodes\ComfyUI-LTXVideo
Context impl SQLiteImpl.
Will assume non-transactional DDL.
Starting server
To see the GUI go to: http://127.0.0.1:8188
got prompt
VAE load device: cuda:0, offload device: cpu, dtype: torch.float32
Found quantization metadata version 1
Detected mixed precision quantization
Using mixed precision operations
Native ops: int8_blockwise, int8_tensorwise, hybrid_mxfp8, float8_e4m3fn_blockwise, float8_e4m3fn_rowwise , emulated ops: mxfp8, float8_e4m3fn, float8_e5m2, nvfp4
model weight dtype torch.bfloat16, manual cast: torch.bfloat16
model_type FLUX
VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
no CLIP/text encoder weights in checkpoint, the text encoder model will not be loaded.
CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
Requested to load LTXAVTEModel_
Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 290 weights: 1497 KB.
0 models unloaded.
Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 290 weights: 1497 KB.
Requested to load LTXAV
Model LTXAV prepared for dynamic VRAM loading. 23838MB Staged. 1660 patches attached. Force pre-loaded 1496 weights: 44 KB.
100%|████████████████████████████████████████████████████████████████████████████████████| 8/8 [03:03<00:00, 22.89s/it]
0 models unloaded.
Model LTXAV prepared for dynamic VRAM loading. 23838MB Staged. 1660 patches attached. Force pre-loaded 1496 weights: 44 KB.
100%|███████████████████████████████████████████████████████████████████████████████████| 3/3 [05:57<00:00, 119.23s/it]
Requested to load AudioVAE
loaded completely; 693.46 MB loaded, full load: True
Requested to load VideoVAE
0 models unloaded.
Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached.
Prompt executed in 00:12:31
Its a little faster with the latest stuff. @wei01127 if you can compare notes or send comparative logs that will help a lot.
@ooofest 20 mins before seeing the step counter is very wrong, but I dont have a reproducer. What is your filesystem etc for that model?
To see where its slow, I made this:
https://github.com/Comfy-Org/ComfyUI/pull/14371
If you can grab this change, run up to the delay and hit ctrl-C and paste I can see where you are frozen up.
same here; ltx gens definitely decreased after latest update, but it seems to happen randomly at least for me. Generations that used to take 300-400 seconds are now well over 900-1000 seconds.
@mjh02111964-netizen please see above for test data for comparisons, some possible follow up tests or post the usual logs.
Can anyone reporting this please list your disk, filesystem, OS and anything form of remoteness of your filesystem (e.g. removable media or NAS etc
Can anyone reporting this please list your disk, filesystem, OS and anything form of remoteness of your filesystem (e.g. removable media or NAS etc
I had the same slowdown problem after that i stopped downloading the latest pytorch packaged comfyui . i downloaded this version with cu126 .
ComfyUI_windows_portable_nvidia_cu126.7z
this version is from last update v0.24.0 . i didnt even ran a update because it might become slow after that . i had this severe slow down of ltx 2.3 generation i think its releted pytorch version .
This is ruins workflow for ltx 2.3 . it works fine for me . 720 p 5 second video takes almost 190 second . which is what i used to get when first released . i am using windows 22h2 version ,i have a 4060 8 gb vram and 32 gb ram .
LTX-2.3_-_I2V_T2V_Basic_GGUF.json
Dont know if this information will help you but apparently this process helped me to battle the slowdown of ltx 2.3 video generation and trust me i know the pain .
Updated to 0.24 ComfyDesktop today when prompted. Must've been on the portable version before because desktop icon and launcher are new to me. Immediately the generation speed was 2-5x longer, with massive inconsistencies between each run. Sometimes it did 2x my old speed, sometimes 5x longer. Likewise, loading any new LoRa had a similar increase in time. There were hangups on many different nodes, it wasn't a single area of the workflow causing trouble.
Stumbled around the internet looking for answers. Decided to turn OFF dynamic VRAM by adding --disable-dynamic-vram to the Startup Arguments for my ComfyUI sever, in the new launcher.
It worked, and everything went back to normal. The log stopped repeating some message about dynamic VRAM, which it was doing constantly before when generating.
i5 8600k 3.6GHz 32gb RAM 5070TI
Comfy is Installed on the local drive (SSD). Checkpoints, LoRas and output are on an external HDD, using a hard link to the correct folders in the install directory. Looking at the task manager the HDD was frequently spiking to 100% when it was generating. Normally it only spikes when a new model is loaded, but it was doing it near constantly with dynamic VRAM enabled.
I hope this helps somebody.
Updated to 0.24 ComfyDesktop today when prompted. Must've been on the portable version before because desktop icon and launcher are new to me. Immediately the generation speed was 2-5x longer, with massive inconsistencies between each run. Sometimes it did 2x my old speed, sometimes 5x longer. Likewise, loading any new LoRa had a similar increase in time. There were hangups on many different nodes, it wasn't a single area of the workflow causing trouble.
Stumbled around the internet looking for answers. Decided to turn OFF dynamic VRAM by adding --disable-dynamic-vram to the Startup Arguments for my ComfyUI sever, in the new launcher.
It worked, and everything went back to normal. The log stopped repeating some message about dynamic VRAM, which it was doing constantly before when generating.
What message? spam?
i5 8600k 3.6GHz 32gb RAM 5070TI
Comfy is Installed on the local drive (SSD). Checkpoints, LoRas and output are on an external HDD, using a hard link to the correct folders in the install directory.
You mean symlink? hard-links cant cross filesystems like that.
Looking at the task manager the HDD was frequently spiking to 100% when it was generating. Normally it only spikes when a new model is loaded, but it was doing it near constantly with dynamic VRAM enabled.
I hope this helps somebody.
Try with --cache-classic instead of --disable-dynamic-vram and let me know. If you can do a full comparative bug report with dyn vram and without with the task manager screenshots and the memory visualizer I might be able to fix it for everyone but im still in no-reproduce purgatory.
https://github.com/kijai/ComfyUI-MemoryVisualization
@mjh02111964-netizen please see above for test data for comparisons, some possible follow up tests or post the usual logs.
I don't normally post here and I'm still quite new to comfy in general so forgive me if I'm posting this incorrectly. I was just able to reproduce the issue on my own machine. I ran an ltx 2.3 i2v workflow using comfy v0.23.0 and then ran the same workflow/prompt after updating to 0.24.1. The first run took 459 seconds. I then updated to 0.24.1. After updating, the same prompt took 13mins,29sec (809 seconds.) Logs below (lemme know if I'm posting the wrong info or if more info needed.) Not sure if this is helpful at all at this point, but figured I'd post just in case.
GPU: RTX 5060 ti (16 GB) Ram: 48 GB CPU: Ryzen 7 5700X *Running on Fedora 44 (not sure if that matters)
v0.23.0: [INFO] got prompt [INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.float32 [INFO] CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16 [INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16 [INFO] Found quantization metadata version 1 [INFO] Detected mixed precision quantization [INFO] Using mixed precision operations [INFO] Native ops: mxfp8, float8_e5m2, nvfp4, float8_e4m3fn [INFO] model weight dtype torch.bfloat16, manual cast: torch.bfloat16 [INFO] model_type FLUX [INFO] Using sage attention mode: auto [INFO] Applying LTX2 Memory Efficient Sage Attention Patch to all transformer blocks, triton_kernels=True [INFO] [PromptRelay] Auto-generated LTXV latent: 608x800, 241 pixel frames (31 latent frames) [INFO] [PromptRelay] Global: tokens [0:1] (1 tokens) [INFO] [PromptRelay] Segment 0: tokens [1:34] (33 tokens) [INFO] Requested to load LTXAVTEModel_ [INFO] Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 400 weights: 1745 KB. [INFO] [PromptRelay] Latent: 31 frames, 475 tokens/frame, segments: [31] [INFO] [PromptRelay] Auto-generated empty audio latent. [INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16 [INFO] Applying LTX2 Attention Tuner Patch with custom scales to blocks: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], triton_kernels=True [INFO] 0 models unloaded. [INFO] Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 400 weights: 1745 KB. [INFO] Requested to load VideoVAE [INFO] 0 models unloaded. [INFO] Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached. [INFO] Requested to load LTXAV [INFO] 0 models unloaded. [INFO] Model LTXAV prepared for dynamic VRAM loading. 23859MB Staged. 1660 patches attached. Force pre-loaded 608 weights: 3303 KB. 0%| | 0/8 [00:00<?, ?it/s, Model Initializing ... ][INFO] [PromptRelay] Built penalty matrix (scaled): Lq=3840, Lk=1024, nonzero=20427/3932160 [INFO] [PromptRelay] Built penalty matrix (scaled): Lq=252, Lk=1024, nonzero=1353/258048 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [01:14<00:00, 9.36s/it] [INFO] 0 models unloaded. [INFO] Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached. [INFO] Requested to load LTXAV [INFO] 0 models unloaded. [INFO] Model LTXAV prepared for dynamic VRAM loading. 23859MB Staged. 1660 patches attached. Force pre-loaded 608 weights: 3303 KB. [INFO] Patching torch settings: torch.backends.cuda.matmul.allow_fp16_accumulation = True 0%| | 0/4 [00:00<?, ?it/s, Model Initializing ... ][INFO] [PromptRelay] Built penalty matrix (scaled): Lq=15360, Lk=1024, nonzero=81741/15728640 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [01:36<00:00, 24.04s/it] [INFO] Patching torch settings: torch.backends.cuda.matmul.allow_fp16_accumulation = False [INFO] Requested to load AudioVAE [INFO] loaded completely; 693.46 MB loaded, full load: True [INFO] 0 models unloaded. [INFO] Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached. [INFO] Prompt executed in 459.06 seconds
v0.24.1: [INFO] got prompt [INFO] [PromptRelay] Auto-generated LTXV latent: 608x800, 241 pixel frames (31 latent frames) [INFO] [PromptRelay] Global: tokens [0:1] (1 tokens) [INFO] [PromptRelay] Segment 0: tokens [1:34] (33 tokens) [INFO] Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 400 weights: 1745 KB. [INFO] [PromptRelay] Latent: 31 frames, 475 tokens/frame, segments: [31] [INFO] [PromptRelay] Auto-generated empty audio latent. [INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16 [INFO] Applying LTX2 Attention Tuner Patch with custom scales to blocks: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], triton_kernels=True [INFO] 0 models unloaded. [INFO] Model LTXAVTEModel_ prepared for dynamic VRAM loading. 25440MB Staged. 0 patches attached. Force pre-loaded 400 weights: 1745 KB. [INFO] Requested to load VideoVAE [INFO] 0 models unloaded. [INFO] Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached. [INFO] Requested to load LTXAV [INFO] 0 models unloaded. [INFO] Model LTXAV prepared for dynamic VRAM loading. 23859MB Staged. 1660 patches attached. Force pre-loaded 608 weights: 3303 KB. 0%| | 0/8 [00:00<?, ?it/s, Model Initializing ... ][INFO] [PromptRelay] Built penalty matrix (scaled): Lq=3840, Lk=1024, nonzero=20427/3932160 [INFO] [PromptRelay] Built penalty matrix (scaled): Lq=252, Lk=1024, nonzero=1353/258048 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [06:55<00:00, 51.91s/it] [INFO] 0 models unloaded. [INFO] Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached. [INFO] Requested to load LTXAV [INFO] 0 models unloaded. [INFO] Model LTXAV prepared for dynamic VRAM loading. 23859MB Staged. 1660 patches attached. Force pre-loaded 608 weights: 3303 KB. [INFO] Patching torch settings: torch.backends.cuda.matmul.allow_fp16_accumulation = True 0%| | 0/4 [00:00<?, ?it/s, Model Initializing ... ][INFO] [PromptRelay] Built penalty matrix (scaled): Lq=15360, Lk=1024, nonzero=81741/15728640 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [03:47<00:00, 56.83s/it] [INFO] Patching torch settings: torch.backends.cuda.matmul.allow_fp16_accumulation = False [INFO] Requested to load AudioVAE [INFO] loaded completely; 693.46 MB loaded, full load: True [INFO] 0 models unloaded. [INFO] Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached. [INFO] Prompt executed in 00:13:29
Thanks.
For the moment, I resolved the LTX Sampler Custom Advanced slow-down issue by replacing it with the 'LTX Tiled Sampler' (from the 10s-comfy-nodes) on its default settings.
The times are back to normal for my RTX3080 10GB
Although I am not entirely sure what broke for the Sampler Custom Advanced
Update: even this was prone to OOMs so I just rolled back ComfyUI to the previous version for now and all is functioning properly again.
I am using Stability Matrix so this was pretty effortless to do.
You may check the PyTorch version and try updating it to 2.10.0 + cu130, then the speed will be back to normal:
For my case, it works:
You can try to duplicate the environment and paste the following code into the terminal tag to update PyTorch: pip install torch==2.10.0 torchvision==0.25.0 torchaudio==2.10.0 --index-url https://download.pytorch.org/whl/cu130
Hopes it could help.
Unfortunately, still seeing this issue with the 0.26.0 update. Switching from torch 2.11 -> torch 2.10 didn't seem to help much. Seems like it's completely random.
I posted earlier that this symptom occurred in recent builds, but went away when I downleveled both ComfyUI and the corresponding packages in my venv.
CPU: AMD 5950X RAM: 64GB GPU: RTX-3090 (24GB) storage: ComfyUI is on HDD, model files are on SSD
Decided to test with the latest daily build and the extreme slowdown and increased memory symptoms are still present. Fortunately, this is repeatable on my system with the sample workflow attached as a .json file. Also attached are the "pip list" package levels in my venv for each ComfyUI build level used:
- 05/28 ( commit https://github.com/Comfy-Org/ComfyUI/commit/4af9a4722753f96066d30d6e16dc190905436392 )
- 06/23 ( commit https://github.com/Comfy-Org/ComfyUI/commit/833bfb572e8552d1cfe590b3b6445e96e7526f25 )
Using fresh starts of ComfyUI and running the attached workflow (published at Civitai):
05/28 build: 8.7 minutes to complete full I2V workflow.
06/23 build: 49.2 minutes for initial model load+patching, then stopped processing with below messages, likely due to running out of memory (and the UI slowed incredibly well before this event occurred):
[INFO] Patching torch settings: torch.backends.cuda.matmul.allow_fp16_accumulation = True 100%|█████████████████████████████████████████████████████████████████████████████████| 12/12 [49:21<00:00, 246.76s/it] [INFO] Patching torch settings: torch.backends.cuda.matmul.allow_fp16_accumulation = False [INFO] Requested to load AudioVAE [INFO] loaded completely; 693.46 MB loaded, full load: True [INFO] Requested to load VideoVAE [INFO] loaded completely; 1844.02 MB usable, 1384.94 MB loaded, full load: True Shape of the first 'weight' key (diffusion_model.adaln_single.emb.timestep_embedder.linear_1.lora_A.weight): torch.Size([1, 256]) Shape of the first 'weight' key (diffusion_model.adaln_single.emb.timestep_embedder.linear_1.lora_A.weight): torch.Size([1, 256]) [ERROR] !!! Exception during processing !!! CUDA error: invalid argument CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with
TORCH_USE_CUDA_DSAto enable device-side assertions.[ERROR] Traceback (most recent call last): File "execution.py", line 542, in execute output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "execution.py", line 341, in get_output_data return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "custom_nodes\ComfyUI-Lora-Manager\py\metadata_collector\metadata_hook.py", line 171, in async_map_node_over_list_with_metadata results = await original_map_node_over_list( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "execution.py", line 315, in async_map_node_over_list await process_inputs(input_dict, i) File "execution.py", line 303, in process_inputs result = f(**inputs) ^^^^^^^^^^^ File "comfy_api\internal_init.py", line 149, in wrapped_func return method(locked_class, **inputs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "comfy_api\latest_io.py", line 1900, in EXECUTE_NORMALIZED to_return = cls.execute(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "custom_nodes\ComfyUI-KJNodes\nodes\ltxv_nodes.py", line 542, in execute diffusion_model.audio_embeddings_connector.to(offload_device) File "venv\Lib\site-packages\torch\nn\modules\module.py", line 1355, in to return self._apply(convert) ^^^^^^^^^^^^^^^^^^^^ File "venv\Lib\site-packages\torch\nn\modules\module.py", line 915, in _apply module._apply(fn) File "venv\Lib\site-packages\torch\nn\modules\module.py", line 915, in _apply module._apply(fn) File "venv\Lib\site-packages\torch\nn\modules\module.py", line 915, in _apply module._apply(fn) [Previous line repeated 1 more time] File "comfy\ops.py", line 1271, in _apply return _quantized_apply(self, fn, recurse) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "comfy\ops.py", line 1017, in _quantized_apply p = fn(param) ^^^^^^^^^ File "venv\Lib\site-packages\torch\nn\modules\module.py", line 1341, in convert return t.to( ^^^^^ RuntimeError: CUDA error: invalid argument CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with
TORCH_USE_CUDA_DSAto enable device-side assertions.[INFO] Prompt executed in 00:59:49 [WARNING] Tried to unpin tensor not pinned by ComfyUI [WARNING] Tried to unpin tensor not pinned by ComfyUI . . .
I was able to repeat the above results multiple times. Currently running on the 05/28 commit level again - various commit levels I've tried since then show similar high memory/extra long runtime symptoms for LTX 2.3 I2V.