- Clone ollama
git clone --recursive https://github.com/ollama/ollama.git
- go to directory
cd ollama
- Install dependencies
sudo pacman -S rocm-hip-sdk rocm-opencl-sdk clblast go
- Build ollama with env
AMDGPU_TARGET=gfx1030 ROCM_PATH=/opt/rocm CLBlast_DIR=/usr/lib/cmake/CLBlast go generate -tags rocm ./...
go build -tags rocm
- Now to run it
HSA_OVERRIDE_GFX_VERSION=10.3.0 ./ollama serve
Created
April 23, 2024 03:19
-
-
Save askareija/c1736f321963553a366447e4fa6e051d to your computer and use it in GitHub Desktop.
Install Ollama with AMD GPU (On Laptop) Arch Linux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment