feat(ci): offer a ROCm 10 image variant next to ROCm 7.2
Is your feature request related to a problem? Please describe.
LocalAI's AMD images are built from a single variant today: hipblas-jobs in .github/workflows/image.yml uses rocm/dev-ubuntu-24.04:7.2.1 with the tag suffix -gpu-hipblas. Users on ROCm 10.x have to build every backend themselves.
ROCm 10 ships from AMD's new package repository (stable.repo.amd.com/rocm/core), and several package names changed. For example, the BLAS development package is amdrocm-blas-dev instead of hipblas-dev. Images built on 7.2 therefore cannot simply be reused on a ROCm 10 host.
We run LocalAI on ROCm 10.1 in production on Strix Halo (gfx1151) and on a Radeon 780M (gfx1103). For that we maintain our own build of the main image and all backends on a ROCm 10.1 base.
Describe the solution you'd like
A second, additional AMD variant next to the existing one, for example tagged -gpu-hipblas-rocm10:
- a matrix entry with a ROCm 10.1 base;
- the Dockerfile differences that the new package names require;
- the existing ROCm 7.2 variant stays exactly as it is.
We would prepare the PR and keep the variant working when ROCm 10 point releases come out.
Describe alternatives you've considered
- Keep building everything downstream. This is what we do today, and it means rebuilding every backend for every upstream change.
- Replace 7.2 with 10.1. We don't propose this, because it would drop users who are still on 7.x.
Additional context
We know this doubles the AMD jobs in your CI. Before we prepare a PR, we would like to know whether you want a ROCm 10 variant at all, and if so, how you would like it named and scoped. For example, it could cover only the hipblas backends and the main image at first.
Related: #10978 (our earlier ROCm 7.14 / TheRock proposal, closed because it was overtaken by the 7.2.1 bump).
Assisted-by: Claude Code:claude-opus-5-5
To add the main motivation, since it was missing above.
1. Consumer architectures. ROCm 10 officially covers consumer AMD targets that the 7.2 line does not list.
- The ROCm 10.1.0 compatibility matrix lists these targets:
- Ryzen APUs gfx1150 (Radeon 890M), gfx1151 (Ryzen AI Max+ 395 / Radeon 8060S), gfx1152 and gfx1153 (Radeon 860M / 840M), and gfx1103 (Radeon 780M);
- gfx1102 (RX 7600), next to RDNA3/RDNA4 discrete cards.
- The ROCm 7.2.1 compatibility matrix lists gfx950, gfx1201, gfx1200, gfx1101, gfx1100, gfx1030, gfx942, gfx90a and gfx908. It has no Ryzen APU target and no gfx1102. For Radeon and Ryzen it refers to a separate "Use ROCm on Radeon and Ryzen" page, which I have not checked.
2. Datacenter. The Instinct targets are the same in both matrices: gfx950, gfx942, gfx90a and gfx908. What changes is the stack on top. The 10.1.0 release notes add:
- KVM/SR-IOV virtualization configurations for MI355X, MI350X, MI350P, MI325X, MI300X and MI210;
- Composable Kernel work on MoE GEMM, FP8 block-scale GEMM and microscaling/FP4 GEMM.
3. Newer models. The release notes don't name new model architectures. 10.1 is the stack for PyTorch 2.14, vLLM 0.29 and SGLang 0.5.18. It also brings attention (FMHA) improvements on gfx11/gfx12 and fixes for paged-KV prefill. Newer model support tends to arrive through exactly these framework and kernel versions.
So a ROCm 10 variant would help in two places. Consumer devices (laptops, mini PCs, Strix Halo boxes) get official coverage, and those are exactly the machines where building every backend yourself is hardest. Everyone else gets the current framework and kernel stack.
Assisted-by: Claude Code:claude-opus-5-5
Measured data for the llama.cpp backend, plus a clearer ask and what we offer to do.
Measurement (one variable). Strix Halo (gfx1151), same LocalAI build, same model file and settings (gemma-4-26B-A4B, Q4 GGUF, all layers on the GPU, 131072 context, q8_0 KV cache, flash attention). Only the llama.cpp backend differs: upstream quay.io/go-skynet/local-ai-backends:master-gpu-rocm-hipblas-llama-cpp (ROCm 7.x) against our build on ROCm 10.1. Three alternating rounds, fixed length of 256 tokens:
| ROCm 10.1 (ours) | ROCm 7.2 (upstream image) | |
|---|---|---|
| single request | 55.0 tok/s (54.7–55.3) | 54.8 tok/s (54.1–55.3) |
| 4 parallel requests, aggregate | 135.5 tok/s (129.4–140.9) | 139.9 tok/s (138.3–142.3) |
Quality on the same prompts: classification 40/60 vs 39/60, coding 8/8 vs 8/8.
So, to be upfront: for llama.cpp on gfx1151 the 7.2 image already performs on par. Speed is not the argument.
Why we still ask to move up to ROCm 10.1. It is about support, not throughput:
- ROCm 10.1 is the release AMD's current documentation points to (rocm.docs.amd.com/en/latest → 10.1.0).
- Its compatibility matrix officially lists the consumer targets that people actually run LocalAI on at home and in small offices:
- Ryzen AI Max (gfx1151, Radeon 8060S/8050S/8040S);
- Ryzen AI 300/400 (gfx1150, gfx1152, gfx1153: Radeon 890M/880M/860M/840M/820M);
- Ryzen 200 (gfx1103, Radeon 780M/760M/740M);
- RX 7600 (gfx1102), next to RDNA3/RDNA4.
- The 7.2.1 compatibility matrix lists none of these APUs (for Radeon and Ryzen it refers to a separate page). They run today because llama.cpp builds for these targets; the Python backends (PyTorch, vLLM, SGLang) follow the officially supported stack.
Our wish is that LocalAI eventually builds its AMD images on ROCm 10.x. As a low-risk first step we suggest the additional -gpu-hipblas-rocm10 variant from the issue, with 7.2 left exactly as it is. The default can switch later, once the variant has proven itself.
What we would do. We know this is extra work for you, so we offer to carry as much of it as we can:
- prepare the PR (matrix entry, Dockerfile changes for the new package names);
- keep the variant green on ROCm 10 point releases;
- test every release on real gfx1151 and gfx1103 hardware and post the results here or in the PR;
- help with issues from APU users.
Not measured yet: prompt processing separately, larger dense models, long contexts under load, and the Python backends. We can measure those the same way if it helps the decision.
Assisted-by: Claude Code:claude-opus-5-5
I'd actually suggest to bump rocm to 10 if covers the hardware supported in 7.x. I'm not sure yet as I didn't have compared the hardware list, but bumping to latest is something we are def. interested into.
Thanks for approving #13164! On the hardware question, I compared AMD's official compatibility matrices:
- ROCm 7.2.x (docs-7.2.2 matrix) lists 9 Linux targets: gfx950, gfx942, gfx90a, gfx908, gfx1201, gfx1200, gfx1101, gfx1100, gfx1030.
- ROCm 10.1.0 (current matrix) lists all 9 of those, plus gfx1102 and the APU family gfx1151, gfx1150, gfx1152, gfx1153 and gfx1103. At product level, every Radeon card in the 7.2.1 Radeon/Ryzen matrix is also listed for 10.1.
So, as far as AMD's own lists go, 10.1 is a superset of 7.2 – nothing drops out, and Strix Halo (gfx1151) and the Radeon 780M (gfx1103) become officially supported. One thing to check for the base image: the supported OS point releases moved (e.g. Ubuntu 24.04.4 → 24.04.5, Ubuntu 26.04 added).
We run 10.1 in production on gfx1151 and gfx1103 with LocalAI's llama.cpp and Python backends. From that, the bump needs more than the package list: the libomp.so link and the llama.cpp /opt/rocm/llvm clang path differ in the 10.x layout, Dockerfile.audio-cpp has its own package list, and the Python backends pull ROCm via their PyTorch wheels. Happy to do the legwork – a PR that moves the hipblas default to 10.1 with those fixes, validated on our hardware, if that works for you.
Sources: 7.2.2 matrix · 10.1.0 matrix · Radeon/Ryzen Linux matrix
Thanks for checking, then would make sense to go with rocm 10 directly