You need amds proprietary ROCM driver which supports stuff like ai. However i already had issues setting up anything ai on my desktop fedora system, steam deck uses an immutable fs and afaik it gets reset after every update. If doing it on a desktop pc is hard then doing it on the deck will be like walking on lego. Good luck soldier.
From every diffusion github ive seen, they all seem to have instructions for ubuntu, so that may be your easiest bet. Same with rocm, it seems easier to install on ubuntu than other distros. Especially fedora…