santa hat
deerdeer nosedeer glow
Sign In

How to run SHARK on ROCM on Any Linux distro

0
Sep 20, 2023
tool guide

Ensure you've taken my guides to running ROCM on your corresponding distro first.

now, we are going to go to start by

git clone https://github.com/nod-ai/SHARK.git

cd SHARK

in setup_venv.sh hange line 17 (third line without #)

PYTHON="$(which python3)"

to

PYTHON="python3.11"

if you are on any form of arch linux or if you are running python 3.11, if not, keep as is

source shark.venv/bin/activate

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2

then after that finishes, we will go to webui.sh and edit that with editor of your choice, just like setup_venv.sh and what we want to change is line 59

venv_dir="venv"

to

venv_dir="$dir/shark.venv"

with $dir being the directory to shark.venv in shark git clone

then we can run webui.sh after saving and let it install everything, if you get any errors regarding files, the same problems are fixed the same as the install guide for my other guides on linux, (mainly speaking the qxc or whatever file that needs to be deleted then rerun the file)

afterwards first gen is decent speed, then really fast.

for any questions refer to: https://discord.gg/GPHwBQEj3Q

0