Install Stable Diffusion on Ubuntu for Polaris GPUs(GFX803)

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • I just saw that ROCm is now available for Ubuntu 20.04. I'm already compiling the binaries for GFX803, and I'll soon make a video for this latest version.
    In this video, I show how to install Stable diffusion on Ubuntu for Polaris GPUs (e.g. RX 580, RX 570...).
    All files and commands are in this github: github.com/Lin...

КОМЕНТАРІ • 43

  • @pavlokukovskyi6105
    @pavlokukovskyi6105 22 дні тому

    Hello! Very informative and useful video, it helped me a lot, thank you for the instructions. Is it possible to make the same video for Fooocus with Ubuntu 22.04?

  • @jokerphoenix3788
    @jokerphoenix3788 26 днів тому +1

    Wouldn't MESA already have the rx580 driver automatically?

    • @LinuxMadeEZ
      @LinuxMadeEZ  26 днів тому

      As far as I know, you need amdgpu-pro to use ROCm.

  • @pavlokukovskyi6105
    @pavlokukovskyi6105 4 дні тому +1

    I'm sorry, but according to this instruction, what you did, the system constantly reboots after starting the generation, what could be the reason? Video card RX 470 8 GB

    • @LinuxMadeEZ
      @LinuxMadeEZ  4 дні тому +1

      This type of task demands a lot from the GPU. Check if your GPU is at an acceptable temperature. I recommend, after the system reboot, running the command "sudo journalctl -b -1" to see the logs from the previous boot and possibly the reason for the reboot.

    • @pavlokukovskyi6105
      @pavlokukovskyi6105 4 дні тому

      @@LinuxMadeEZ I did all this even before I wrote to you, this is some kind of error due to the connection between my video card and the amd rx 470 +Intel Xeon processor causing errors in the hve kernel

    • @pavlokukovskyi6105
      @pavlokukovskyi6105 4 дні тому +1

      @@LinuxMadeEZ this error is not even stored in the log, so I am asking you, maybe you have encountered such a problem? If I find a solution, I will write it in the comments, maybe someone else will need it. And thank you for the good content. And do you plan to make a similar video for arch similar systems?

    • @LinuxMadeEZ
      @LinuxMadeEZ  4 дні тому +1

      What generation is your Xeon? If your CPU does not have the AVX2 instruction set (Intel Ivy Bridge and older), PyTorch will not work. You will need a specific build with AVX2 disabled in the compilation. Regarding Arch, the problem is that there are no official repositories and the available ROCm is already in version 6, which removed the GFX803 arch from the binaries. An alternative would be to install it through Docker.

    • @pavlokukovskyi6105
      @pavlokukovskyi6105 3 дні тому

      @@LinuxMadeEZ This is how I understood it, it will be necessary to compile pytorch from raw materials without AVX2 support. Thanks for the help, I will try.And how will the experiments be at the expense of Windows and ZLUDA, if everything is so bad with Arch?

  • @MohamedTarek-lz3hi
    @MohamedTarek-lz3hi 27 днів тому +1

    I'm using fedora, which video should I refer back to ?

    • @LinuxMadeEZ
      @LinuxMadeEZ  27 днів тому

      The closest guide would be the Alma Linux one, but Fedora is not officially supported, so there are no official ROCm repositories for it. As far as I know, it is possible to install ROCm-HIP, but only on Fedora 39 (pending for Fedora 38). If you are really interested, I strongly recommend using one of the supported distros (RHEL 9, Ubuntu 22.04, or SUSE 15).

    • @MohamedTarek-lz3hi
      @MohamedTarek-lz3hi 27 днів тому +1

      @@LinuxMadeEZ Thank you but I'm not changing my distro for this. but I like how you're engaging with people and genuienly looking to help others. I'm subbed for future vids.

  • @thevuduong5883
    @thevuduong5883 26 днів тому +1

    i have rx 580 8gb please guide me to install it on windows 11

    • @LinuxMadeEZ
      @LinuxMadeEZ  26 днів тому

      Sure, in a few days, I'll release the video.

    • @LinuxMadeEZ
      @LinuxMadeEZ  22 дні тому

      Your video is out. hope it helps

  • @garneku
    @garneku Місяць тому +1

    I've done everything like in your guide and still "Torch is not able to use GPU"
    Ubuntu 22.04, Radeon RX 570 4 GB.
    The only difference that I was able to spot is that after typing "dkms status" I had:
    "amdgpu/6.7.0-1781449.22.04, 6.5.0-45-generic, x86_64: installed"
    While in yours video you have "6.5.0-41-generic". The rest is the same.

    • @LinuxMadeEZ
      @LinuxMadeEZ  Місяць тому

      Go to the bin folder of your venv and type in the terminal "./python3", then type "import torch", and finally "torch.cuda.get_device_name(0)". What is the output of this last command?

    • @garneku
      @garneku Місяць тому

      @@LinuxMadeEZ "Runtime error: No HIP GPUs are available"

    • @LinuxMadeEZ
      @LinuxMadeEZ  Місяць тому

      If you run the command "/opt/rocm-5.7.3/bin/rocminfo" in the terminal, does the output show your GPU?

    • @garneku
      @garneku Місяць тому

      @@LinuxMadeEZ Nope. It only outputs Agent 1: Intel Core i7-6700k
      Device type: CPU.

    • @LinuxMadeEZ
      @LinuxMadeEZ  Місяць тому

      Search for the exact model and brand of your GPU on the TechPowerUp website. On that website, go to the GPU notes section. Check what it says in the "Graphics/Compute" option.

  • @jonathans815
    @jonathans815 Місяць тому

    In Ubuntu generates images faster than Almalinux??

    • @LinuxMadeEZ
      @LinuxMadeEZ  Місяць тому

      No, from what I tested, it is the same speed.

  • @leozinhojunior2879
    @leozinhojunior2879 7 днів тому

    Where do I find these 3 files to download? Torch ,torchvideo ,torchaudio

    • @LinuxMadeEZ
      @LinuxMadeEZ  7 днів тому

      Video description, in the github link.

    • @leozinhojunior2879
      @leozinhojunior2879 4 дні тому

      @@LinuxMadeEZ the files I refer to are from step 6, these 3 files in the pytorch installation! (torch-2.3.0) (torchvision-0.18) (torchaudio-2.3.1) are not on github

    • @leozinhojunior2879
      @leozinhojunior2879 День тому

      @@LinuxMadeEZ I've already looked at the link you left on GitHub, but these 3 torch files aren't there for download.

    • @LinuxMadeEZ
      @LinuxMadeEZ  6 годин тому

      you need to access the "releases" tab, here is the direct link: github.com/LinuxMadeEZ/PyTorch-Ubuntu-GFX803/releases