Hello,
I’ve been trying to get Ollama running on my AMD GPU and I think I’ve finally managed it by installing ollama-linux-amd64-rocm.tgz
to my /usr
.
Before I submit a package request, have I goofed and this is in fact not needed?
Steps to Reproduce
Install ollama
from the official repositories.
Run ollama serve
and see it’s not using the AMD GPU.
ollama_no_rocm.txt (5.6 KB)
Install rocm-opencl
and rocm-smi
from the official repositories.
Reboot.
Run ollama serve
and see it still isn’t using the AMD GPU.
ollama_repo_rocm.txt (5.6 KB)
Remove rocm-opencl
and rocm-smi
.
Manually install the rocm bindings for ollama, as documented by ollama.
https://github.com/ollama/ollama/blob/4614fafae0ee58af5b9d04ec4b8c2eb3846274da/docs/linux.md#amd-gpu-install
curl -L https://ollama.com/download/ollama-linux-amd64-rocm.tgz | sudo tar -C /usr -xz
Reboot.
Run ollama serve
and see it now uses the AMD GPU.
ollama_manual_rocm.txt (5.2 KB)
My System
OpenMandriva Lx version: OpenMandriva Lx release 25.03 (ROME) Rolling for x86_64
Kernel version: 6.13.5-desktop-1omv2590
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz
GPU: AMD Radeon RX 6800 XT
GPU VBIOS version: 113-EXT48025-001
1 Like
I’ve submitted a package request.
opened 05:22PM - 09 Mar 25 UTC
new
package-request
The official repositories include `ollama`, but not their ROCm bindings for AMD … graphics cards.
| | |
|-|-|
| Official package name | ollama-linux-amd64-rocm |
|License (must be an OSI approved Open Source license) | MIT <br> <https://github.com/ollama/ollama/blob/main/LICENSE> |
| Download URL of latest release |<https://ollama.com/download/ollama-linux-amd64-rocm.tgz> <br> or <br> <https://github.com/ollama/ollama/releases/download/v0.5.13/ollama-linux-amd64-rocm.tgz> |
| Latest release date (must be recent) | 2025-03-04 03:11 <br> <https://github.com/ollama/ollama/releases/tag/v0.5.13> |
2 Likes
Very nice, I’m somewhat familiar with rocm and the software so I’m going to give it a shot, please be patient though its only my third package and amd rocm support is very spotty. Can you test on real hardware once I package it? I have an RX vega 56 which works on arch linux with ollama-rocm and an AMD APU on my laptop that I couldn’t get to work but maybe with some more effort I can do it.
system
(system)
Closed
April 13, 2025, 3:14pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.