Dynamic Vram: the massive memory optimization is now enabled by default. #12699
Replies: 21 comments 33 replies
|
https://www.youtube.com/post/Ugkx-WQaQ1Z0P7KFpOyEX3IUiAzQ42AA9i8x |
|
is it possible to to disable it ? its make thing so slow on my rtx5070ti 12 vram with flux2. klein9b but ltx2 is going really better. |
|
Will this allow me to finally train SDXL/Anima LoRAs on 16GB AMD maybe and not have to use --cpu-vae? Training is super inefficient on AMD, ComfyUI training just didn't work when I tried it last and sd-scripts just OOMs even through I should have enough. Might post pone my GPU upgrade if so when supported on AMD and Comfy training werks well |
|
what is the price paid for the optimization? speed? more writes to disk/pagefile? |
|
Btw, only Nvidia and AMD GPU were mentioned 🤔 No Intel XPU support? |
|
The comfy-aimdo page states that only Windows 11+ is supported. What about Windows 10? Will it not be supported at all, or will it be fully functional? |
|
cu128不可以吗? |
|
This Dynamic Vram feature breaks TensorRT nodes such as ComfyUI_TensorRT and ComfyUI-Rife-Tensorrt.
Launching ComfyUI with |
|
This is causing problems for me on a 4090 using klein9b. I keep getting out of memory errors now... before it was working perfectly. I have installed everything cleanly. EDIT: the moment after posting this comfy was stuck doing a vae encode for klein 9b, I decided to simply close terminal like everyone does... Bluescreen. |
|
Great work. Writing the model to pagefile makes sense if it's modified, otherwise it's better to just dump the model and read it again in case of low RAM+VRAM. Good for lifespan of SSDs. |
|
Getting this error intermittently since activating this update when using LTX-2: 00000002B5B7E000 Had blue screens twice when it's happened, and its happened maybe 4-5 times now since yesterday, always at the end at the vaedecode/save video. happens often after a batch of videos often I think though only sometimes, not sure what but got this from eventlog for one of the BSOD: Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: python.exe (26416) consumed 44263952384 bytes, Cubase.exe (14952) consumed 2299682816 bytes, and waterfox.exe (31192) consumed 1212239872 bytes. Never had this issue with the previous RAM management tbh but this is appealing due to being able to spare the SSD/Paging file abuse? |
|
After this update, processing has become much slower. Is there a way to disable dynamic vram on the desktop version? |
|
had to look this up, this broke my entire comfy workflow with multigpu... but still pretty sure sage attention and multigpu is broke. |
|
Had to disable this on my 5090 and 4090 ComfyUI Servers. It causes a slowdown of more than 2x in our examples. From 2 second per image to average of 4.4 seconds We are using https://github.com/ltdrdata/ComfyUI-Impact-Pack and https://github.com/jags111/efficiency-nodes-comfyui RAM is 64GB and above It seems like it is constantly loading (parts of) the model again. Any caching that was working before is not effective anymore |
|
please make it possible to disable this thing who seems to broke a lot of comfYUI setup ( especially when loading large models ) |
|
Please add a disable option on Desktop Version. |
|
Been very happy with this on my RTX 5060ti under Windows. On iGPU it was always reported to ComfyUI that my entire system RAM is also available as video RAM. So, I had to use 'reserve-ram' before to let it reserve 12gb of 'video ram'. Basically giving me a good 16+ gb of video RAM while not starving my system RAM. I now start ComfyUI with So, not only do I need this to keep ComfyUI some what usable on my system, there seems to be a problem where it doesn't respect |
|
This is terrible with my 4090 using weights stored on HDD. I have 500-1000s delay for each generation. If I use the --disable-dynamic-vram for the same workflow I get down to 400s first generation, then 120s for second generation which is expected for that workflow. So the ability to disable this "feature" is essential to my workflow. Otherwise in this specific configuration it's unusable for video generation. |




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Update: Dynamic Vram is now in stable ComfyUI.
Like everyone else we have also been very annoyed by the recent hike in RAM prices. Hopefully this will offer some relief.
Dynamic vram is the new ComfyUI memory optimization that should massively reduce ram usage and generally speed things up on Nvidia hardware on Windows and Linux. WSL may never be supported.
At the moment I am writing this it is only enabled by default in the latest git version so you will need to update to this and update your requirements if you want to try it out. If you are on portable you can do: update/update_comfyui.bat to update to the latest git version. Using latest pytorch 2.10 cu130 is recommended for best performance. If you are on desktop just wait a few days and it might be in the next stable version.
What you should notice:
Next steps:
We will very likely be posting a more detailed blog post in the very near future. For now if you want more technical explanation see: https://github.com/Comfy-Org/comfy-aimdo and #11845
If you notice any issues related to this please open an issue with a detailed report (full logs, workflow, your hardware and operating system) and we will fix it. For performance issues make sure to compare the total workflow execution time and not the it/s.
All reactions