Repository navigation
Studio: keep AMD integrated GPUs on ROCm on Windows, Vulkan prefill is far slower there - #13428
danielhanchen wants to merge 5 commits into
Conversation
…s far slower there
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Merged main (
|
|
This conflicts with main again, so I merged main ( The merged branch is |
|
CI on the merged mirror head |
On Windows, AMD integrated GPUs (gfx1150, gfx1151) go back to the ROCm llama.cpp prebuilt. Linux keeps the Vulkan preference from #10381.
Fixes #10656
Why
#10381 based the Vulkan preference on one Linux
llama-benchat pp512 and depth 0. With the AMD Windows driver, prefill on longer prompts is much slower. I measured the reporter's model (unsloth/gemma-4-26B-A4B-it-qat-GGUFUD-Q4_K_XL) with our own prebuilts, both arms in one job on the same machine.Windows 11 Pro 26200, Radeon 8060S (gfx1151), AMD driver 32.0.31041.3013, pin b11541-mix,
-ngl 99 -fa 1, t/s:Same runner,
llama-server -c 262144 -fa on --jinja, a 9,318-token tool and system prompt, then follow-up turns:The b10840 follow-up cost is the upstream iGPU checkpoint-read bug (ggml-org/llama.cpp#30049), which the current pin already includes. The fresh-prefill gap remains on every build.
Linux, same model and pin, a gfx1151 runner on RADV:
On Linux, Vulkan ties or wins at every depth, so the preference stays there.
What changes
_should_prefer_vulkan_for_amd_igpureturns False on Windows, so routing there is exactly what it was before #10381. Nothing else changes:UNSLOTH_LLAMA_CPP_BACKEND=vulkan, still installs Vulkan.Existing Windows installs that #10381 moved to Vulkan were recorded as
auto, so they come back on their own:A deliberate Vulkan choice records
vulkan, so it is never undone. A GPU pin saved in Vulkan's index space is dropped on the switch back, through the same namespace check #10381 added.Tests
test_integrated_amd_keeps_rocm_on_windowsis the regression test for this issue. It fails on main for gfx1150 and gfx1151 and passes here.test_install_resolve_prebuilt.pyandtests/studio/install/test_pr10648_host_matrix.py: 466 passed, 16 skipped.test_openai_auto_switch.pyMCP token-count cases that also fail on main.