From a41cf6eb0a2a6b0503d7b49dcb4993165710de81 Mon Sep 17 00:00:00 2001 From: Michael Schlapa Date: Fri, 12 Jul 2024 17:44:01 +0200 Subject: [PATCH] AI stuff --- README.md | 1 + linux/stability_matrix.md | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 linux/stability_matrix.md diff --git a/README.md b/README.md index 74b963b..4612105 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ * [libvirt](./linux/libvirt.md) * [OneDrive](./linux/onedrive.md) * [Shell commands](./linux/shell_commands.md) + * [Stability matrix on Arch with AMDGPU](./linux/stability_matrix.md) * [udev](./linux/udev.md) * [Mail server](./mailserver/README.md) * [Sieve](./mailserver/sieve.md) diff --git a/linux/stability_matrix.md b/linux/stability_matrix.md new file mode 100644 index 0000000..c759feb --- /dev/null +++ b/linux/stability_matrix.md @@ -0,0 +1,38 @@ +# Stability Matrix on ArchLinux on AMDGPU + +## Install dependencies + +On ArchLinux `libcrypt.so` is already version 2, so you need to install `libxcrypt-compat`. +`rocblas` is a dependency for running Stable Diffusion. + +``` +yay -S libxcrypt-compat rocblas +``` + +## Fix PyTorch installation + +To use PyTorch on AMD you need to reinstall it with ROCm support. + +``` +./Data/Packages/Stable\ Diffusion\ WebUI/venv/bin/pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2 --upgrade --force-reinstall +``` + +## Make amdgpu.ids reachable + +``` +sudo mkdir -p /opt/amdgpu/share/libdrm/ +sudo ln -s /usr/share/libdrm/amdgpu.ids /opt/amdgpu/share/libdrm/amdgpu.ids +``` + +## Env variables in Stability Matrix + +``` +HSA_OVERRIDE_GFX_VERSION = 10.3.0 +``` + +## Additional start options + +``` +--medvram +--precision full --no-half +```