My laptop specs: MSI Bravo 15 B7E
- CPU: AMD Ryzen™ 5 7535HS Processor with AMD XDNA™ architecture 6 cores, Max Boost Clock 4.55 GHz
- GPU: AMD Radeon™ RX 6550M 4GB GDDR6
- RAM: 32GB DDR5-4800
- 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