r/comfyui • • 5d ago

Help Needed Help with model loading speeds

I am using comfyui on following specs - Ryzen 5 5600x, 32gb ddr4 3200 MHz, 500 gb nvme (boot drive), 1 tb nvme (dedicated to my local AI work, but this one is installed in pcie 2 slot using an adapter as my Motherboard has only one NVME slot), RX 7900XTX 24GB GPU. I was using a slower sata drive and due to its bandwidth limitations I was getting around 400 MBPS read speed when loading models on my gpu using comfyui. The new 1 tb NVME with adapter tops at 1600 MBPS and model loading speed in llama cpp has increased but on comfyui it remains same, stuck at 400 MBPS, which is frustrating as my workflow loads and unloads models a lot and this should potentially be 3x faster at least.

1 Upvotes

12 comments sorted by

2

u/yahbluez 5d ago

 The new 1 tb NVME with adapter tops at 1600 MBPS

That is very low, what adapter is in use? Maybe a better one will double that.

1

u/C-h_A_o-S 5d ago

MSI B450 Tomahawk Max II MoBo, only has 1 m.2 slot. I'm using the adapter in my extra pcie slot, running at PCIE 2, limited to 1600 MBPS.

2

u/yahbluez 5d ago

ok, that explains the limitation, but it is still faster than sata.

1

u/idimetrix 5d ago

If the speed didnt change at all with a 4x faster drive its probably not the drive. Check that comfy is actually loading from the new one (extra_model_paths.yaml, old symlinks). Then watch per core CPU while a model loads, if one core is pinned at 100% you're CPU bound and no SSD fixes that. Also 32gb with a workflow that swaps models constantly means nothing stays cached so every load is cold. More RAM might do more for you than the disk did.

1

u/C-h_A_o-S 5d ago

Yes, everything is being run from the new drive.

1

u/idimetrix 5d ago

ok so not the path then. next thing id look at is cpu, open task manager while a model loads and check per core usage. if one core is maxed out its the loader thats slow, not the disk. are the models safetensors or older ckpt?

1

u/C-h_A_o-S 5d ago

CPU at 21% utilization at max when loading

1

u/idimetrix 4d ago

21% total can still be one core pinned tho. on a 6 or 8 core cpu a single maxed thread only shows up as like 10-15% overall. right click the cpu graph in task manager, change it to logical processors and see if one of them sits near 100 during the load

1

u/rguerraf 5d ago

Enable dynamic vram and use fast disk
Update rocm to 10.0 and confyUI to the latest
Mbps is bits or bytes?

1

u/C-h_A_o-S 5d ago edited 5d ago

ROCM already at 10, dynamic vram already in use, ComfyUI already at latest. I mentioned MBPS as in Mega Bytes Per Sec, not Mega bits.

0

u/[deleted] 5d ago

[removed] — view removed comment

1

u/C-h_A_o-S 5d ago

Already checked in task manager.