AMD GPUs (even NAVI22 and lower) working in Linux #756
Replies: 3 comments 7 replies
-
WOO AMD! |
Beta Was this translation helpful? Give feedback.
-
ok, no need for docker at all. Steps to reproduce a working environment with Ubuntu 20.04:
Working so far? Good!
|
Beta Was this translation helpful? Give feedback.
-
I got this running on Manjaro 21.2 with my RX 6700 XT. I didn't find any newer instructions elsewhere and since there are different packages involved, I thought I'd make a post for getting it running on Manjaro/Arch so everything is in one place. Mainly just the packages and dependencies are different:
I had a rough time following the install guide, but I did manage to get Steamlit to work. RealESRGAN locks up my 6700 XT for reasons I don't understand yet, but everything else works as expected. |
Beta Was this translation helpful? Give feedback.
-
So, after some hard work, I got this running.
https://www.youtube.com/watch?v=d_CgaHyA_n4 helped a lot to get the base understanding, what went wrong in my previous attempts
I will try to get a version running on Ubuntu 20.04 without the docker stuff, but if you follow the video, you'll get a more or less working version.
Changes:
pip3 install --force-reinstall torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/rocm5.2
inside (ldm), once the script is finished (in the video, this is done outside of the venv. Conda needs to be initialized for bash before, but it will tell you what to do, if you runconda activate
)HSA_OVERRIDE_GFX_VERSION=10.3.0
and (optionally) exportPYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6,max_split_size_mb:128
(add them to /etc/environment) if you want to use an "unsupported" GPU. If you have NAVI21 or better, this is not necessaryBeta Was this translation helpful? Give feedback.
All reactions