Skip to content

AMD: block running on unsupported gfx900/gfx906 - #12481

Merged
dhiltgen merged 1 commit into
ollama:mainfrom
dhiltgen:remove_unsupported_gfx
Oct 2, 2025
Merged

dhiltgen merged 1 commit into
ollama:mainfrom
dhiltgen:remove_unsupported_gfx

Conversation

@dhiltgen

@dhiltgen dhiltgen commented Oct 2, 2025 •

Copy link
Copy Markdown
Collaborator

With the recent GGML bump, we no longer can support AMD gfx900/gfx906, however the engine discovery code currently requires rocblas to reject the GPU to correctly fall back to CPU. This approach works.

With trace debugging enabled, running on a system with a dual setup consisting of gfx1030 and gfx906 it now correctly rejects the gfx906 instead of crashing during inference

ggml_cuda_init: initializing rocBLAS on device 0

rocBLAS error: Cannot read /home/daniel/tmp/lib/ollama/rocm/rocblas/library/TensileLibrary.dat: Illegal seek for GPU arch : gfx906
 List of available TensileLibrary Files :
...
time=2025-10-02T23:39:17.093Z level=TRACE source=runner.go:163 msg="removing unsupported or overlapping GPU combination" libDir=/home/daniel/tmp/lib/ollama/rocm description="AMD Radeon Graphics" compute=gfx906 pci_id=0d:00.0
...
time=2025-10-02T23:39:17.093Z level=INFO source=types.go:111 msg="inference compute" id=GPU-9abb57639fa80c50 library=ROCm compute=gfx1030 name=ROCm0 description="AMD Radeon Graphics" libdirs=ollama,rocm driver=60342.13 pci_id=06:00.0 type=discrete total="16.0 GiB" available="16.0 GiB"

@dhiltgen
dhiltgen force-pushed the remove_unsupported_gfx branch from 8e7438b to 6725327 Compare October 2, 2025 21:51
@dhiltgen
dhiltgen marked this pull request as ready for review October 2, 2025 23:43
@dhiltgen
dhiltgen merged commit 55ca827 into ollama:main Oct 2, 2025
@dhiltgen
dhiltgen deleted the remove_unsupported_gfx branch October 2, 2025 23:53
@thickprogrammer

Copy link
Copy Markdown

@nick413-bit

Copy link
Copy Markdown

Professionalism is declining.

So many improvements have been made to this video card in the last month, and now someone has decided to dump it all...

Someone improved flash attention, so much so that even llama.cpp added it to the main branch.
https://www.reddit.com/r/LocalLLaMA/comments/1nbr45v/poor_mans_flashattention_llamacppgfx906_fork/
Another girl is working on GEMM kernels and improving the VLLM fork.
https://github.com/nlzy/vllm-gfx906

Meanwhile, these video cards are now more accessible to AI researchers.

@dhiltgen Your actions are appalling.

@dhiltgen

dhiltgen commented Oct 3, 2025

Copy link
Copy Markdown
Collaborator Author

@nick413-bit in my testing on a gfx906 card with the recent bump they crashed, so we disabled to make sure the system would fall back to CPU. If you can spot something we're doing wrong in compiler flags or other setup to bring gfx906 ROCm support back, please feel free to submit a PR.

@nick413-bit

Copy link
Copy Markdown

@dhiltgen

@nick413-bit in my testing on a gfx906 card with the recent bump they crashed, so we disabled to make sure the system would fall back to CPU. If you can spot something we're doing wrong in compiler flags or other setup to bring gfx906 ROCm support back, please feel free to submit a PR.

@dhiltgen Thanks for the quick reply. To help investigate this properly, could you please share the crash logs or any error output you observed during your testing on the gfx906 (MI50) card? Without concrete logs or a reproducible test case, it’s hard to determine whether the issue stems from Ollama’s build configuration, ROCm version compatibility, or something else.

The broader community has been actively improving ROCm support for gfx906—many users (myself included) are running LLMs successfully on MI50/MI60 cards with recent ROCm versions. If there’s a specific compiler flag or runtime setting causing instability in Ollama’s setup, we’d be glad to help debug it—but we’ll need more details to move forward.

Looking forward to your logs or a minimal reproduction example!

@dhiltgen

dhiltgen commented Oct 3, 2025 •

Copy link
Copy Markdown
Collaborator Author

@nick413-bit you should be able to check out the commit just before this one which has the GGML update, but still retain gfx906 support, or alternatively do a git revert of this commit to bring back gfx906 support. Then you could build using ./scripts/build_linux.sh to generate a bundle. Once you have that, any models like qwen2.5vl:3b and granite3-moe:latest should crash on a gfx906 GPU.

@nick413-bit

Copy link
Copy Markdown

@dhiltgen
Is it correct to understand that in newer versions of Ollama, users with AMD MI50 GPUs will no longer be able to run LLM models that previously worked for them?

@coolestmage

Copy link
Copy Markdown

Very glad I transitioned to llama-server and llama-swap. This is ridiculous.

@evilJazz

Copy link
Copy Markdown

So, MI50 become popular as low-cost max-VRAM solution with now working Flash Attention and you folks kill off support for it.
At least keep an option to force support instead of removing necessary files.

Seriously, what was the support overhead for you? Negligible.

This is a malicious and bad decision.

@evilJazz

Copy link
Copy Markdown

@nick413-bit in my testing on a gfx906 card with the recent bump they crashed, so we disabled to make sure the system would fall back to CPU. If you can spot something we're doing wrong in compiler flags or other setup to bring gfx906 ROCm support back, please feel free to submit a PR.

Seriously, this is a straw-man argument. The PR to remove support was there for weeks. You just pulled the plug.

@notasquid1938

Copy link
Copy Markdown

Will Ollama's docs be updated to reflect the fact that it currently does not support the Mi50 then?

electricwolfemarshmallowhypertext pushed a commit to electricwolfemarshmallowhypertext/ollama that referenced this pull request Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants