Linux on AMD Ryzen AI Max¶
Ragon can run the model on a machine with an AMD Ryzen AI Max+ 395 processor and its Radeon 8060S graphics
(gfx1151) under Ubuntu 24.04. This page covers what the machine needs, the graphics memory setting that
decides how much of the model the GPU can hold, the checks, and the problems you may meet.
The node uses the same services as a DGX Spark node: the model server, the sidecars, Forgejo for your
repositories, and the monitor. The difference is the GPU. The model server runs in a container
(ragon-serve-hip) that carries its own AMD runtime, so you do not install ROCm on the host.
Supported hardware and system¶
| Item | Requirement |
|---|---|
| Processor and graphics | AMD Ryzen AI Max+ 395 with Radeon 8060S (gfx1151, PCI ID 1002:1586) |
| Memory | 64 GB (entry tier) or 128 GB (full tier), unified between the CPU and the GPU |
| Operating system | Ubuntu 24.04 LTS, x86-64 |
| Kernel | 6.18.4 or newer, the Ubuntu 24.04 HWE kernel 6.17.0-19 or newer, or the OEM kernel 6.14.0-1018 or newer |
| Firmware | linux-firmware from the Ubuntu archive, kept up to date |
| Container engine | Docker Engine |
The installer checks the kernel before it downloads anything and refuses a kernel below these floors. The
floors are the ones AMD's KFD driver fixes for gfx1151 need.
You do not install ROCm on the host. The AMD runtime ships inside the ragon-serve-hip image, so
updating the host's ROCm packages is not needed for Ragon.
Device access and groups¶
The node reaches the GPU through /dev/kfd and /dev/dri/renderD*. Your user needs the video and
render groups:
sudo usermod -aG video,render "$USER"
Log out and log back in before you continue. A group change does not apply to a session that was already
open. Until you do, the GPU is not reachable: the model server fails with Permission denied on /dev/kfd.
Graphics memory setting¶
On this platform the GPU's memory is set in the firmware, not by Linux. Linux shows the system RAM it has
left, and the firmware keeps the rest for the GPU. The part kept for the GPU is the graphics memory
carve-out. Linux reports it as mem_info_vram_total in /sys/class/drm/card*/device/.
Your machine's firmware (BIOS or UEFI setup) names the setting one of these ways, depending on the vendor:
UMA Frame Buffer SizeiGPU MemoryVariable Graphics Memory
Choose the value by the size of your machine:
| Machine | Setting | Why |
|---|---|---|
| 128 GB | 64 GB | The model and its sessions fit in the GPU's own memory, which runs at full speed. |
| 64 GB | 36 to 40 GB | The same reason, on the smaller machine. |
| Any | Not Auto |
The factory Auto setting gives the GPU 0.5 to 4 GB. |
The installer refuses the factory Auto setting. It adds the carve-out and the GTT window, the part of
system memory the driver can also map for the GPU, and refuses the node when the GPU can use less than
43 GiB. When the total is between 43 and 86 GiB it still installs, and warns that fewer than four
sessions will run.
Why the installer refuses a small carve-out: without enough reserved memory the model runs from system RAM that the GPU borrows. That path works, but it is significantly slower for prefill and for loading the model, and it leaves less RAM for the rest of the node. Ragon does not offer it as an install mode.
Ragon never changes firmware settings, the boot loader, or kernel parameters, and it never reboots the machine. You make the firmware change yourself: enter the setup screen, set the value above, save, and boot. The installer only reads the values.
Check the memory¶
Linux MemTotal leaves the carve-out out. A 128 GB machine with a 64 GB carve-out shows about 62 GB in
free. That is correct, not a fault.
free -g # system RAM Linux can use
for card in /sys/class/drm/card*/device; do
[ "$(cat "$card/vendor" 2>/dev/null)" = "0x1002" ] || continue
echo "$card carve-out: $(( $(cat "$card/mem_info_vram_total") / 1073741824 )) GiB, GTT window: $(( $(cat "$card/mem_info_gtt_total") / 1073741824 )) GiB"
done
sh scripts/fit/fit.sh # the same facts in words, from a checkout
If fit.sh and the installer disagree with your firmware setting, the installer's numbers are the ones
that count for the install.
Troubleshooting¶
GPU memory still held by a dead process; reboot needed¶
The node checks the GPU before it starts a model. If no ragon-serve process or container is running and
the driver still reports more than 8 GiB used in mem_info_vram_used or mem_info_gtt_used, the start
stops with this message. A process that died without releasing its memory has left the GPU memory allocated.
Only a reboot returns it.
docker ps --filter name=ragon-serve # should print nothing
cat /sys/class/drm/card*/device/mem_info_vram_used
cat /sys/class/drm/card*/device/mem_info_gtt_used
sudo reboot
After the reboot, start the node again. The model server comes back by itself when Docker restarts.
The installer refuses the kernel¶
The installer prints the kernel it found and the floors above. Install the Ubuntu HWE kernel, reboot, and run the installer again:
sudo apt install linux-generic-hwe-24.04
sudo reboot
The installer refuses the memory¶
The message names the usable GiB and the 43 GiB minimum, and asks you to raise the firmware's VRAM setting.
Follow the graphics memory setting section, reboot, and run the installer again.
With --role node it stops; without a role it installs the client instead and tells you to run again.
Permission denied on /dev/kfd¶
Your user is missing the video or render group, or the session predates the change. Check with id,
then log out and log back in.