stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

My cpu is not Fully used

Open AymanLyesri opened this issue 1 year ago • 1 comments

Hi, am a new stable diffusion user, using this technologie has help me a lot understanding how image generation works.

One thing i dont understand is that when i use CPU ONLY it only uses 50% of my cpu capabilities, i need like 30 min to generate a 512x512 image with 75 steps and 7.5 guidance scale, and i think its a ridiculous amount of time for one image.

CPU : AMD ryzen 3400G

RAM : 16gb

GPU : Radeon RX vega 11 grafics

VRAM : 2gb

I hope somebody tells me if thats normal, is there a way to generate an image using 100% of my CPU,

Could i use the vram of my GPU to minimise the amount of time needed.

Capture

AymanLyesri avatar Oct 08 '22 10:10 AymanLyesri

I read that PyTorch supports OpenMP, that way it should be significantly faster with multi-core CPUs. Try to enable that.

michaeljanich avatar Oct 09 '22 12:10 michaeljanich

This seems like a bottleneck by RAM speeds. An external GPU wont face this bottleneck, vRAM is fast enough to deliver all the data thats needed, but i suspect your RAM isnt fast enough to supply all data.

Night-Chan avatar Nov 08 '22 12:11 Night-Chan

I have the same issue (much later). However if I run two instances on different ports, then the CPU gets maxed.

image

PS. My RAM is running at 2400Mhz - CPU is i7-7700K

Paul-Williams avatar Aug 24 '23 22:08 Paul-Williams