Running Ollama with AMD ROCm on the MS-S1-MAX
The MS-S1-MAX is a compact workstation with AMD Ryzen AI Max+ 395 and integrated Radeon graphics. Here’s how to run Ollama with GPU acceleration.
Prerequisites
Section titled “Prerequisites”- MS-S1-MAX or similar AMD GPU system
- Ubuntu 24.04 or later
- Docker installed
Installation
Section titled “Installation”1. Install ROCm
Section titled “1. Install ROCm”# Add ROCm repositorysudo apt updatesudo apt install -y rocm-dkms
# Add user to render and video groupssudo usermod -aG render,video $USER2. Install Ollama
Section titled “2. Install Ollama”# Pull Ollama Docker imagedocker pull ollama/ollama:latest
# Run with GPU supportdocker run -d \ --name ollama \ --device /dev/kfd \ --device /dev/dri \ -p 11434:11434 \ ollama/ollama:latest3. Pull a Model
Section titled “3. Pull a Model”docker exec -it ollama ollama pull llama3.2Performance
Section titled “Performance”| Model | TPS | Context |
|---|---|---|
| gpt-oss:20b | 42 | 128k |
| gpt-oss:120b | 25 | 128k |
Troubleshooting
Section titled “Troubleshooting”GPU Not Detected
Section titled “GPU Not Detected”# Check ROCm is workingrocminfo
# Check render permissionsls -la /dev/kfd /dev/driContainer Permission Issues
Section titled “Container Permission Issues”Make sure your user is in the render and video groups, then restart.
For more on AMD ROCm, see AMD’s ROCm documentation.