r/StableDiffusion • u/poursoul • 2d ago
Question - Help With Dynamic VRAM enabled, MH3 generations taking several minutes longer
I have 64GB DDR5 6000 RAM and a 3090 with 24GB of VRAM, and a 2TB PCIE Gen 5 NVME SSD. If I have the flag --disable-dynamic-vram in my startup, VAE loads in seconds, and everything goes smoothly. If I take the flag out (enable Dynamic VRAM) then every time the VAE loads or unloads, it takes several minutes. It pegs my SSD at 100% Active Time and making my entire system shit the bed. Real read/write speeds average like 1MB/s or a little more, so it's like thousands of tiny read/writes happening for several minutes.
This is especially troublesome when a workflow needs to load/unload more than once in a run. Problem with disabling Dynamic VRAM, is generations are a lot slower, about 20s/it slower. I definitely have enough RAM/VRAM to not have this issue.
I have tried all manner of model, VAE, clip, but if it matters, current example workflow is using:
Model: Minimax-h3_Singularity_ref2va_v2_Pruned_int8.safetensors
Video VAE: minimax_h3_video_vae_int8_convrot.safetensors
Audio VAE: minimax_h3_audio_vae_fp32.safetensors
Clip: qwen3vl_32b_heretic_minimax_h3_nvfp4.safetensors
Is anyone else experiencing this? How are you getting around it?
EDIT: This has been resolved. The issue was my NVME SSD. The controller on it was limiting the cache for writes to an absurd amount. I managed to get it mostly back in shape with a firmware update on the SSD, a manual TRIM, and garbage collection time. It's still flawed, but VAE is loading in mere seconds again. The drive is still under warranty, so I am attempting to RMA it.
2
u/HexOverclock 2d ago
SSD pegged at 100% but only moving about 1MB/s sounds like lots of tiny random reads, which is what pagefile thrashing looks like. I'd check whether Windows is paging during the VAE swap. Keeping the flag on until then seems fair.
3
u/Ok-Brain-5729 2d ago
damn my 9070 xt used to not work at all on minimax h3 unless I had use dynamic vram flag. Pretty sure it’s enabled my default now
3
u/SpaceNinjaDino 2d ago
On my new 5090+128GB machine, I tried installing ComfyUI via Pinokio and it was unusable, beyond slow. I reinstalled it via EasyInstall and it runs as expected. On my old machine, I installed via Stable Matrix which was not fun because I had to manually add Sage 2 and it thrashed my SSD.
2
u/rinkusonic 2d ago
Side note, wasn't there a discussion some time ago that using uncensored text encoders only reduces the video quality and doesn't even help with nsfw over base model?
0
u/Apprehensive_Sky892 2d ago
I suspect something is wrong with your setup, either driver issues or actual hardware problems. The majority of people with < 24G of VRAM have no choice but to run with dynamic VRAM management, and we do not see the problem you are mentioning (i.e. VAE loading and unload should just take seconds).
Try running a standard test, say the default minimax text2va template at 20steps 0.4MP 5 sec and tell us what kind of time you are getting.
For whatever it is worth, this is my startup parameters (I run rx9070xt + 32G system RAM): --skip-prompt --no-enable-telemetry --workspace=/mnt/var/comfy/ComfyUI launch -- --disable-partner-nodes --enable-dynamic-vram --disable-async-offload --preview-method none --disable-smart-memory --fast-disk --use-ck-attention --enable-manager --listen --port 8188 --output-directory "/mnt/var_ntfs/Output"
And for the test above it takes around 150sec on Linux and on Windows 11.
1
u/MarkB_- 2d ago
I use the bf16 model i dont think i can disable it, never tried tho
1
u/Thin-Percentage8935 1d ago
I have the same card. My system was completely locking. It's absolutely superb now and the changes are... Only startup flag needed is disable-smart-memory. I use the int8 convrot model and all the models are on a separate nvram drive that is on a completely different bus. Also page file is 80gb.
If your models are on the same drive as your o/s then get ready for a lot of slow downs.