Wiki: AMDGPU tip to prevent restarts on Linux #13275
waltercool
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Stable Diffusion works mostly fine for me using Navi22, but something it always bothered me are the random restarts when generating images.
Something I discovered after few months, is a solution for this.
Basically, if you don't have any cache for miopen, the computer needs to generate it, and seems like the computer gets into some lock or just a temperature thing.
My solution to prevent random restarts when generating is doing a couple of generations with forced low perfomance DPM. You may need few generations for every use case, txt2img, Hires, img2img, etc.
echo 'low' > /sys/module/amdgpu/drivers/pci\:amdgpu/0000\:03\:00.0/power_dpm_force_performance_level
Once you feel confident with the results, put it back to normal, once cache is there, you won't trigger any issue
echo 'auto' > /sys/module/amdgpu/drivers/pci\:amdgpu/0000\:03\:00.0/power_dpm_force_performance_level
Another tip to improve generation, is defaulting VAE to TAESD. It's quick and doesn't get stuck. It looks lot better than Tiled VAE extension.
I had to use --no-half-vae and --medvram to prevent freezes, but not anymore with those previous tips. Both SD and SDXL works very fine.
Beta Was this translation helpful? Give feedback.
All reactions