# Running modern llama.cpp LLMs on 3× AMD Instinct MI50/MI60 (gfx906) under Proxmox LXC ## ROCm 6.2.4, multi-GPU tensor parallelism, Qwen3.8-27B Q8_0, long-context stress testing, and the fixes that made it stable **Test period:** July–August 2026 **Current production candidate:** Qwen3.8-27B Q8_0 **Runtime:** llama.cpp, HIP/ROCm, RCCL **Virtualization:** Proxmox VE LXC **GPU architecture:** `gfx906:sramecc+:xnack-` This is a practical record of getting three older AMD Instinct MI50/MI60-class cards to run current GGUF models reliably with llama.cpp. I am publishing it because the useful information for gfx906 is scattered across ROCm documentation, llama.cpp issues, Reddit posts, and trial-and-error. The cards are old, the software path is no longer a normal supported configuration, and small details matter. The final setup is good enough for my local multi-agent system, but this is **not** a claim of official AMD support. It is a reproducible engineering setup that works on my hardware. --- ## Acknowledgement I am still very new to this field. I only started working seriously with local LLMs, ROCm and multi-GPU inference a couple of months ago, and I am still learning as I go. I used ChatGPT extensively to help me structure the setup, organize the troubleshooting process, design the tests and compare results. All commands, configuration changes and measurements documented in this repository were executed and verified locally by me. I do not claim to be a specialist in ROCm, llama.cpp, GPU compute or machine-learning infrastructure. I am publishing this work because it may help other people experimenting with older `gfx906` hardware, and because feedback and corrections from people with more experience are very welcome. --- # 1. Hardware My host is a Dell PowerEdge R740 running Proxmox VE. Relevant hardware: ```text Server: Dell PowerEdge R740 System RAM: 512 GB GPUs: 3 × AMD Instinct MI50/MI60-class GPU architecture: gfx906:sramecc+:xnack- VRAM per GPU: ~16 GB llama.cpp reported: 16,368 MiB per GPU Aggregate VRAM: 49,104 MiB Wave size: 64 VMM: no ``` The cards are exposed to LXC containers rather than passed through to full VMs. My worker architecture deliberately allows **only one full-GPU LLM worker at a time**. Every large worker sees all three cards, so allowing two workers to load simultaneously can exhaust VRAM and makes performance diagnosis meaningless. That rule turned out to be important. At one point I was debugging a very slow model and found a second `llama-server` process from another LXC occupying the same GPU pool. Killing that worker immediately removed one major source of confusion. --- # 2. LXC GPU access The relevant Proxmox LXC configuration is the usual `/dev/dri` plus `/dev/kfd` mapping. On my host, the working rules were: ```text lxc.cgroup2.devices.allow: c 226:* rwm lxc.cgroup2.devices.allow: c 509:* rwm lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir lxc.mount.entry: /dev/kfd dev/kfd none bind,optional,create=file ``` **Do not copy `509` blindly.** It was the `/dev/kfd` major on my host at the time. Check your own host: ```bash ls -l /dev/kfd /dev/dri/renderD* stat -c '%t %T' /dev/kfd ``` This caused one of the more misleading failures in the project. I initially thought ROCm 6.2.4 had a broken hipBLAS installation because `hipblasCreate()` failed. The real problem was that `/dev/kfd` was bind-mounted into the container but the cgroup rule allowed the wrong character-device major (`510` instead of `509`). After correcting the cgroup rule and restarting the container, HIP enumerated all three GPUs and `hipblasCreate()` succeeded. The lesson is simple: before rebuilding ROCm libraries, verify the device node, its real major/minor number, LXC cgroup permissions, bind mounts, and `rocminfo`. --- # 3. Storage and worker layout Models live on the Proxmox host: ```text /llm-pool/models ``` and are mounted read-only in each worker: ```text /models ``` Each worker has its own LXC and normally exposes an OpenAI-compatible llama.cpp server on port `8080`. The large-worker scheduling invariant is: ```text number_of_active_full_GPU_LLM_workers <= 1 ``` A stopped worker consumes storage, but no meaningful VRAM. --- # 4. The ROCm version story ## 4.1 Why I tried ROCm 7 first I initially wanted a modern ROCm userspace with a current llama.cpp build. ROCm 7 could see the cards and compile HIP code for `gfx906`, and some workloads worked. That made it tempting to assume that the old cards only needed their missing architecture files restored. AMD's own ROCm 6.0 release notes are important context here: MI50, Radeon Pro VII and Radeon VII (`gfx906`) entered maintenance mode in ROCm 6.0, and ROCm 5.7 was the final release in a fully supported state. So everything I did with ROCm 7 on gfx906 should be read as an unsupported compatibility experiment. Official AMD reference: https://rocm.docs.amd.com/en/docs-6.0.0/about/release-notes.html --- ## 4.2 The community hint that got the experiment moving A key hint came from the LocalLLaMA community. The Reddit guide by **u/legit_split_**, *“ROCm 7.0 Install for Mi50 32GB | Ubuntu 24.04 LTS”*, explains that ROCm 7 is missing the gfx906 rocBLAS/Tensile tensor files and suggests taking the `gfx906` files from an older rocBLAS package and copying them into the ROCm 7 library directory. Their concrete example used rocBLAS 6.4.3: ```text rocblas-6.4.3-3-x86_64.pkg/opt/rocm/lib/rocblas/library ``` and copied the files containing `gfx906` to: ```text /opt/rocm/lib/rocblas/library ``` That guide was the important clue. Credit belongs there. Source: https://www.reddit.com/r/LocalLLaMA/comments/1o99s2u/rocm_70_install_for_mi50_32gb_ubuntu_2404_lts/ I used the same general idea during my experiments: restore the architecture-specific gfx906 rocBLAS/Tensile assets from an older donor package that still carried them. One detail I want to state carefully for anyone reproducing this: AMD calls ROCm 5.7 the last **fully supported** gfx906 release, while later maintenance releases still contained useful gfx906 assets. My preserved shell notes do not contain a donor-package checksum that lets me make a bit-for-bit claim about the exact donor used in every intermediate container. If you reproduce this, record the exact donor package version and hashes. In my final ROCm 6.2.4 environment I also made sure the required gfx906 rocBLAS/Tensile assets were present, using the same donor-library approach rather than assuming the package tree was complete. A good reproducibility record is: ```bash find /opt/rocm/lib/rocblas/library -type f -printf '%P %s\n' | sort > rocblas-library-manifest.txt sha256sum /opt/rocm/lib/libhipblas.so* /opt/rocm/lib/librocblas.so* > blas-library-sha256.txt ``` --- # 5. Why ROCm 7 was not my production solution ROCm 7 was not completely broken. That distinction matters. Some workloads ran. GPT-OSS, for example, could load and execute. HIP saw all three cards. llama.cpp built and launched. The problem appeared with Qwen-family workloads. Qwen3.6 and Qwen-Coder repeatedly failed in a batched GEMM path with a llama.cpp error reported as: ```text ROCm error: CUBLAS_STATUS_INTERNAL_ERROR ``` The actual backend call was `hipblasGemmBatchedEx()`. Using rocBLAS logging reduced the failure to a reproducible mixed-precision batched GEMM approximately equivalent to: ```text rocblas_gemm_batched_ex,T,N,256,16,256,1, A=f16_r, lda=512, B=f16_r, ldb=256, beta=0, C=f32_r, ldc=256, D=f32_r, ldd=256, batch_count=16, compute=f32_r, atomics_not_allowed ``` In plain terms: ```text A: FP16 B: FP16 accumulation/output: FP32 batch count: 16 m/n/k: 256 / 16 / 256 A transposed B not transposed atomics disallowed ``` The failure was repeatable even when GPU offload was reduced and Flash Attention was disabled. The important conclusion was **not** “ROCm 7 cannot run gfx906”. It clearly could run some workloads. The narrower conclusion was: > My ROCm 7 + gfx906 configuration had a repeatable failure in the hipBLAS/rocBLAS/Tensile path used by this Qwen batched GEMM. I did not identify the exact defective source line. Possible explanations included incompatible legacy Tensile metadata, missing solution selection, an ABI/data-layout mismatch, or a gfx906-specific fallback path. I did not prove which one was responsible, so I do not present any of those as fact. At that point I stopped trying to make a mixed unsupported ROCm 7 stack into a production system. --- # 6. ROCm 6.2.4 baseline I rebuilt the worker environment around ROCm 6.2.4. The working HIP compiler reported: ```text HIP version: 6.2.41134-65d174c3e AMD clang version 18.0.0git roc-6.2.4 ``` The relevant linked libraries included: ```text libhipblas.so.2 librocblas.so.4 libamdhip64.so.6 librocsolver.so.0 librocsparse.so.1 libhsa-runtime64.so.1 ``` After correcting the LXC `/dev/kfd` cgroup issue, a standalone hipBLAS smoke test succeeded: ```text hipGetDeviceCount=3 hipblasCreate status=0 SUCCESS ``` I then ran a standalone reproducer for the same class of batched GEMM that had failed on ROCm 7. It passed on GPU 0, GPU 1 and GPU 2. That was much stronger evidence than “the model loads”. --- # 7. llama.cpp build The current working build in the LXC is under: ```text /root/llama.cpp/build-hip-rccl/ ``` The server binary is: ```text /root/llama.cpp/build-hip-rccl/bin/llama-server ``` The build fingerprint I recorded during the current work is around: ```text git/commit: 2da6686 build: b1-2da6686 ``` I compiled for HIP and gfx906, and enabled RCCL for tensor-parallel reductions. A representative build configuration is: ```bash cd /root/llama.cpp cmake -S . -B build-hip-rccl \ -DCMAKE_BUILD_TYPE=Release \ -DGGML_HIP=ON \ -DAMDGPU_TARGETS=gfx906 \ -DGGML_HIP_RCCL=ON \ -DLLAMA_BUILD_SERVER=ON cmake --build build-hip-rccl -j"$(nproc)" ``` Check the actual CMake output on your build. RCCL support is not universally faster on every ROCm system. Current llama.cpp multi-GPU documentation describes `--split-mode tensor` as experimental, says Flash Attention is required for tensor mode, says quantized KV is not supported with tensor mode, and explicitly states that `--fit` is not supported with tensor split. Reference: https://github.com/ggml-org/llama.cpp/blob/master/docs/multi-gpu.md --- # 8. From layer split to tensor split The original worker stack used layer splitting. The later `llm-general` experiments showed that tensor split was materially better for the current dense Qwen workload on these three cards. The production-style tensor configuration is: ```bash --split-mode tensor --fit off --flash-attn on --cache-type-k f16 --cache-type-v f16 ``` I use all three GPUs and let tensor mode split evenly across them. RCCL is enabled in the build. --- # 9. The `--fit` failure with tensor split This was a very concrete failure. With tensor mode and the default automatic fit behavior, `llama-server` repeatedly logged: ```text common_fit_params: failed to fit params to free device memory: llama_params_fit is not implemented for SPLIT_MODE_TENSOR, abort ``` The process died, systemd restarted it after 10 seconds, and the cycle repeated. The fix was simply: ```bash --fit off ``` After that, the same server loaded and ran normally. This is now also documented upstream in llama.cpp's multi-GPU guide. --- # 10. Previous general-worker baseline Before Qwen3.8, my general worker used a Qwen3.6 27B-family Q6_K model. With tensor split and the corrected runtime settings, I saw roughly: ```text ~29–31 tokens/s decode ``` on short prompts. That established a useful reference before evaluating Qwen3.8. --- # 11. Qwen3.8-27B Q8_0 benchmarks This section is separate because Qwen3.8 was the model I actually wanted to evaluate as the new model for my supervisor/orchestration workload. Official model: https://huggingface.co/Qwen/Qwen3.8-27B The official model card states a native context length of 262,144 tokens. GGUF used: https://huggingface.co/unsloth/Qwen3.8-27B-GGUF File: ```text Qwen3.8-27B-Q8_0.gguf ``` I used Q8_0 deliberately. The objective was to see whether the 27B dense model could run at high quantization quality and long context on 3 × 16 GB gfx906 cards. --- ## 11.1 128k configuration Manual test server: ```bash /root/llama.cpp/build-hip-rccl/bin/llama-server \ -m /models/Qwen3.8-27B-Q8_0.gguf \ -c 131072 \ -ngl 999 \ --host 127.0.0.1 \ --port 8081 \ --alias qwen38-test \ --threads 8 \ --parallel 1 \ --cont-batching \ --split-mode tensor \ --fit off \ --batch-size 512 \ --ubatch-size 256 \ --flash-attn on \ --cache-type-k f16 \ --cache-type-v f16 \ --no-ui ``` ROCm reported approximately: ```text VRAM used: 38,135,365,632 bytes ≈ 35.5 GiB ``` A longer supervisor-style test produced: ```text prompt tokens: 93 completion tokens: 502 finish reason: stop prompt: 64.67 tok/s decode: 30.05 tok/s ``` The output quality was also sensible: it correctly described delegation contracts, validation, contradiction checks, independent review, and accept/revise/reject criteria. --- ## 11.2 Repeated 128k short test Five identical requests: ```text Run prompt tok/s decode tok/s 1 43.65 29.21 2 51.70 29.32 3 50.70 30.65 4 49.67 31.09 5 51.12 31.21 ``` That was stable enough to continue. --- ## 11.3 262k configuration I then changed only the configured context: ```bash -c 262144 ``` The model still fit. ROCm showed approximately: ```text VRAM used: 46,926,626,816 bytes ≈ 43.7 GiB ``` That is tight on a ~49 GiB aggregate pool, so no other GPU worker can be resident at the same time. The repeated short benchmark at a configured 262k context was: ```text Run prompt tok/s decode tok/s 1 80.17 29.55 2 52.47 29.43 3 51.42 31.24 4 51.94 31.28 5 51.54 31.19 ``` Important result: > Configuring 262k did not materially reduce short-context decode throughput. The remaining question was what happened when the context was actually occupied. --- ## 11.4 Long-context staircase test with graphs enabled I generated synthetic but repeatable technical text and progressively increased the prompt. The first part of the run produced: ```text Target Actual prompt Prompt tok/s Decode tok/s Wall time 8k 7,913 260.56 18.38 32.0 s 16k 15,770 254.85 20.01 63.0 s 32k 31,480 235.13 17.68 69.9 s 64k 62,902 208.70 18.61 153.3 s 96k 94,323 181.76 17.94 176.4 s 128k 125,745 160.81 14.89 199.4 s ``` Further into the run, the important decode measurements were approximately: ```text Actual occupied context Decode tok/s ~157k 10.70 ~189k 10.64 ~220k 9.91 ~236k 8.95 ``` A decline in decode speed at very large occupied context is not surprising. The surprising part came after the long-context request. --- ## 11.5 The persistent post-stress slowdown Immediately after the ~236k test, I sent a tiny request: ```text Reply only with OK. ``` It returned: ```text prompt tokens: 57 prompt: 11.47 tok/s decode: 8.74 tok/s ``` That was almost exactly the speed of the huge-context request even though the new request was tiny. I queried llama.cpp's slot endpoint: ```bash curl -s http://127.0.0.1:8081/slots | jq ``` It showed: ```text n_ctx: 262144 n_prompt_tokens: 83 n_prompt_tokens_processed: 15 n_prompt_tokens_cache: 0 is_processing: false ``` So this did not look like a normal “the server is still decoding against a 236k active prompt” situation. I tried the slot erase API, but the server had not been started with `--slot-save-path`, so erase was unavailable: ```text This server does not support slots action. Start it with --slot-save-path ``` I then restarted **only `llama-server`**, not the LXC and not the host. The first tiny request after restart gave: ```text prompt: 80.06 tok/s decode: 23.41 tok/s ``` and five repeated requests settled to: ```text Run prompt tok/s decode tok/s 1 24.90 22.35 2 31.00 22.46 3 31.57 30.69 4 32.27 30.72 5 32.12 30.55 ``` That established an important fact: > The degraded state was process-local. Restarting `llama-server` was enough to restore normal performance. No LXC reboot was required. --- # 12. The mitigation: disable HIP/CUDA graphs The next suspect was graph caching/runtime state in llama.cpp's CUDA/HIP backend. llama.cpp uses the CUDA backend code path translated through HIP for ROCm, so the environment variable is still named: ```text GGML_CUDA_DISABLE_GRAPHS ``` I added a systemd drop-in: ```bash mkdir -p /etc/systemd/system/llama-worker.service.d cat >/etc/systemd/system/llama-worker.service.d/10-disable-graphs.conf <<'EOF' [Service] Environment=GGML_CUDA_DISABLE_GRAPHS=1 EOF systemctl daemon-reload systemctl restart llama-worker.service ``` Verify: ```bash systemctl show llama-worker.service -p Environment ``` Expected: ```text Environment=ROCR_VISIBLE_DEVICES=0,1,2 HIP_VISIBLE_DEVICES=0,1,2 GGML_CUDA_DISABLE_GRAPHS=1 ``` A useful upstream discussion mentioning the same environment-variable workaround is: https://github.com/ggml-org/llama.cpp/discussions/19708 I am careful here: my test proves that disabling graphs fixes **my reproducible post-long-context slowdown on this ROCm/gfx906 setup**. It does not prove that every ROCm slowdown has the same root cause. --- # 13. Performance cost with graphs disabled Before disabling graphs, steady-state short decode was roughly: ```text 30.95–31.02 tok/s ``` With graphs disabled: ```text Run prompt tok/s decode tok/s 1 29.47 29.93 2 26.12 30.07 3 26.09 30.14 4 26.05 30.05 5 26.12 30.11 ``` The cost was only about 3% on decode. For a long-running agent, that is a very easy trade. --- # 14. 216k stress test with graphs disabled I then ran a single large stress request against the production server with graphs disabled. Actual prompt: ```text 216,033 tokens ``` Result: ```text prompt throughput: 187.75 tok/s decode throughput: 18.24 tok/s wall time: ~1153 s ``` This test shape is not identical to the earlier staircase, so I do not treat the raw long-context speed as an apples-to-apples benchmark against the graphs-enabled run. The important test was what happened **after** the stress request. Five tiny requests immediately afterward: ```text Run prompt tok/s decode tok/s 1 17.03 29.82 2 24.66 29.95 3 24.14 29.84 4 25.48 30.03 5 24.49 29.81 ``` That is the result that convinced me to keep graphs disabled. Before: ```text huge context -> tiny request stays at ~8.7 tok/s ``` After: ```text 216k context -> tiny request immediately returns to ~30 tok/s ``` No process restart required. --- # 15. Current Qwen3.8 production command The current general-worker configuration is based on: ```bash /root/llama.cpp/build-hip-rccl/bin/llama-server \ -m /models/Qwen3.8-27B-Q8_0.gguf \ -c 262144 \ -ngl 999 \ --host 0.0.0.0 \ --port 8080 \ --alias local/general \ --threads 8 \ --parallel 1 \ --cont-batching \ --split-mode tensor \ --fit off \ --batch-size 512 \ --ubatch-size 256 \ --flash-attn on \ --cache-type-k f16 \ --cache-type-v f16 \ --no-ui ``` with the systemd environment: ```ini [Service] Environment=GGML_CUDA_DISABLE_GRAPHS=1 ``` The important parts are not just the model and context size. For this setup: ```text --split-mode tensor --fit off --flash-attn on --cache-type-k f16 --cache-type-v f16 GGML_CUDA_DISABLE_GRAPHS=1 ``` belong together as the currently validated baseline. --- # 16. Why I still keep the 262k context The configured 262k context uses a lot of VRAM, but short-context speed is essentially the same as at 128k. That gives the agent emergency headroom. I do **not** intend to let normal agent sessions grow to 262k routinely. A better architecture is to checkpoint/compact much earlier and treat 262k as capacity rather than a target. For my orchestration layer, a practical starting policy is roughly: ```text normal operation: <80k warning / checkpoint: ~80k handoff / compaction: ~100k avoid routine use: >120k 262k: emergency headroom ``` Those are orchestration-policy choices, not llama.cpp hard limits. --- # 17. Health checking An HTTP 200 response is not enough. During the original problem, the server was technically alive while generating at around 1–9 tok/s. A useful worker health check should include a tiny inference probe and throughput measurement. For this Qwen3.8 baseline: ```text healthy warmed-up decode: ~30 tok/s ``` A practical policy could be: ```text >= 25 tok/s healthy 15–25 tok/s warm-up / warning; probe again < 15 tok/s degraded ``` If two tiny probes stay degraded: ```bash systemctl restart llama-worker.service ``` Then probe again. This health-check automation is the next infrastructure step; the performance thresholds above are based on the measurements in this post. --- # 18. Simple benchmark command I used the OpenAI-compatible endpoint so I was measuring the same server path used by the agent. Example: ```bash for i in {1..5}; do echo "=== RUN $i ===" curl -sS http://127.0.0.1:8080/v1/chat/completions \ -H 'Content-Type: application/json' \ -d '{ "model":"local/general", "messages":[{"role":"user","content":"Reply only with OK."}], "max_tokens":32, "temperature":0 }' | jq '{ prompt_tps:.timings.prompt_per_second, decode_tps:.timings.predicted_per_second }' done ``` Do not overinterpret run 1. On this machine, the first one or two requests can be slower before the process settles. --- # 19. Long-context stress script This is the style of script I used to generate a reproducible synthetic prompt. ```python import json import time import urllib.request URL = "http://127.0.0.1:8080/v1/chat/completions" unit = ( "The supervisor reviews delegated technical work for correctness, " "evidence, assumptions, constraints, reproducibility, safety, " "dependencies, contradictions, and unresolved risks. " ) target_tokens = 220_000 chars_per_token = 6.242 chars = int(target_tokens * chars_per_token) context = (unit * ((chars // len(unit)) + 1))[:chars] payload = { "model": "local/general", "messages": [{ "role": "user", "content": context + "\n\nReply with exactly: CONTEXT_OK" }], "max_tokens": 32, "temperature": 0, } req = urllib.request.Request( URL, data=json.dumps(payload).encode(), headers={"Content-Type": "application/json"}, ) start = time.time() with urllib.request.urlopen(req, timeout=1800) as r: result = json.load(r) elapsed = time.time() - start print(json.dumps({ "prompt_tokens": result["usage"]["prompt_tokens"], "completion_tokens": result["usage"]["completion_tokens"], "prompt_tps": result["timings"]["prompt_per_second"], "decode_tps": result["timings"]["predicted_per_second"], "wall_seconds": elapsed, "finish_reason": result["choices"][0]["finish_reason"], }, indent=2)) ``` The `chars_per_token` value is only a calibration shortcut for this repetitive test string. Calibrate it for your own text if you want exact target lengths. --- # 20. Diagnostic commands I now use first On the Proxmox host: ```bash pct list ls -l /dev/kfd /dev/dri/renderD* fuser -v /dev/kfd for d in /dev/dri/renderD*; do fuser -v "$d" done ``` Inside the worker: ```bash /opt/rocm/bin/rocminfo | grep -E 'Name:|gfx906' /opt/rocm/bin/hipconfig --version ldd /root/llama.cpp/build-hip-rccl/bin/llama-server \ | grep -Ei 'hip|roc|blas|hsa|not found' systemctl status llama-worker.service --no-pager -l journalctl -u llama-worker.service -n 200 --no-pager curl -sS http://127.0.0.1:8080/health curl -sS http://127.0.0.1:8080/v1/models | jq ``` For VRAM/process checks: ```bash rocm-smi --showuse --showmemuse --showpids ``` and: ```bash p=$(pgrep -n llama-server) grep -E 'VmSize|VmRSS|RssAnon|RssFile' /proc/$p/status ``` --- # 21. Things that looked like ROCm bugs but were not This project had several failure modes that looked similar from a distance. ## Wrong LXC KFD permission Symptom: ```text hipblasCreate fails ``` Actual cause: ```text /dev/kfd bind-mounted, but wrong cgroup character-device major allowed ``` Fix: derive the real major on the host and correct the LXC rule. --- ## Second worker consuming VRAM Symptom: ```text VRAM unexpectedly full model extremely slow or fails to load ``` Actual cause: another LXC still had its own `llama-server` resident on the same physical GPUs. Fix: enforce one full-GPU worker at a time and check `rocm-smi --showpids`. --- ## Tensor mode restart loop Symptom: ```text llama-worker.service repeatedly restarts common_fit_params fails ``` Actual cause: `--fit` defaults to on, but automatic fit is not supported with tensor split. Fix: ```text --fit off ``` --- ## Long-context process stays slow after the long request is over Symptom: ```text ~30 tok/s before stress ~9 tok/s at huge context ~9 tok/s even on a new tiny request afterward ``` Fix that worked on my setup: ```text GGML_CUDA_DISABLE_GRAPHS=1 ``` After that, a 216k-token stress request was followed immediately by ~30 tok/s tiny requests. --- # 22. Reproducibility cautions There are a few things I would record more aggressively if starting over: 1. exact ROCm package versions; 2. exact donor package used for every copied gfx906 rocBLAS/Tensile file; 3. SHA-256 of donor and installed BLAS libraries; 4. exact llama.cpp commit; 5. exact CMake cache; 6. BIOS/IOMMU/PCIe topology; 7. exact GPU PCI IDs and VBIOS; 8. output of `rocminfo`; 9. `rocm-smi --showpids` before every benchmark; 10. model GGUF hash; 11. server command line; 12. environment variables; 13. whether the first run was warm or cold. That turns “works on my machine” into something other people can actually compare. --- # 23. What I would try on another gfx906 rig If I had another MI50/MI60 machine, I would do it in this order: 1. Prove `/dev/kfd` and render-node access first. 2. Use a clean ROCm 6.2.4 environment. 3. Verify the gfx906 rocBLAS/Tensile assets and record their donor/hashes. 4. Build llama.cpp explicitly for `gfx906`. 5. Test a minimal `hipblasCreate()` program. 6. Test the batched GEMM reproducer. 7. Test one model on one GPU. 8. Test layer split across all GPUs. 9. Build with RCCL and test tensor split. 10. Use `--fit off`. 11. Use F16 K/V cache in tensor mode. 12. Enable Flash Attention. 13. Benchmark short-context performance. 14. Stress long context. 15. Probe a tiny request immediately afterward. 16. If the process remains degraded, test `GGML_CUDA_DISABLE_GRAPHS=1`. 17. Only then integrate the server into an agent/router. This order avoids debugging five layers at once. --- # 24. Current conclusion Three 16 GB gfx906 cards are still useful for modern local LLM inference. On my system, Qwen3.8-27B Q8_0 runs with a native 262k context allocation entirely on the three GPUs, using llama.cpp tensor parallelism and RCCL. The stable configuration is not the default one. The critical pieces were: ```text ROCm 6.2.4 gfx906 rocBLAS/Tensile assets present correct /dev/kfd LXC permission llama.cpp HIP build for gfx906 RCCL build --split-mode tensor --fit off --flash-attn on F16 K/V cache one GPU worker at a time GGML_CUDA_DISABLE_GRAPHS=1 ``` With the Qwen3.8 Q8_0 model: ```text short-context decode: ~30 tok/s configured context: 262,144 VRAM at 262k config: ~43.7 GiB aggregate 216k-token stress decode: 18.24 tok/s post-stress tiny decode: ~29.8–30.0 tok/s ``` The last line is the one I care about most. The server now survives a very large context and returns to normal speed without restarting. --- # 25. Credits and references This was not solved in isolation. **AMD ROCm documentation** provided the official support-status context for gfx906 and the ROCm component documentation. - ROCm 6.0 release notes / MI50 maintenance-mode notice: https://rocm.docs.amd.com/en/docs-6.0.0/about/release-notes.html - ROCm project: https://github.com/ROCm/ROCm **u/legit_split_ on r/LocalLLaMA** provided the crucial practical hint of restoring gfx906 rocBLAS/Tensile tensor files from an older rocBLAS package when using a newer ROCm stack. - ROCm 7.0 Install for Mi50 32GB | Ubuntu 24.04 LTS: https://www.reddit.com/r/LocalLLaMA/comments/1o99s2u/rocm_70_install_for_mi50_32gb_ubuntu_2404_lts/ **llama.cpp maintainers and contributors** provided the HIP backend, multi-GPU tensor-parallel implementation, documentation, and the graph-disable troubleshooting clues. - llama.cpp: https://github.com/ggml-org/llama.cpp - Multi-GPU documentation: https://github.com/ggml-org/llama.cpp/blob/master/docs/multi-gpu.md - Graph-caching discussion mentioning `GGML_CUDA_DISABLE_GRAPHS=1`: https://github.com/ggml-org/llama.cpp/discussions/19708 **Qwen** provided Qwen3.8-27B and its model documentation. - Qwen3.8-27B: https://huggingface.co/Qwen/Qwen3.8-27B **Unsloth** provided the GGUF used for these Qwen3.8 tests. - Qwen3.8-27B-GGUF: https://huggingface.co/unsloth/Qwen3.8-27B-GGUF The experiments, measurements, LXC integration and failure reproduction described here are from my own homelab.