[GH-ISSUE #1299] AMD vison encoder on Windows #530

Closed
opened 2026-11-04 01:43:49 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @Zethalion on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1299

Hey, I'm no coder but I got the strata-vision encoder working with ROCm 10 under windows. I have no idea how to do a PR so I'll just drop my patches here.

00-all-changes.patch
01-vision-hip-build.patch
02-setuphip-path.patch
03-docs.patch

README.md

It works fine with 1024 tokens on cpu. On gpu it also works but that'll cost half of decode speed on my system so I keep it on cpu.

Just my little contribution to Windows users with an AMD gpu who want vision.

Originally created by @Zethalion on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1299 Hey, I'm no coder but I got the strata-vision encoder working with ROCm 10 under windows. I have no idea how to do a PR so I'll just drop my patches here. [00-all-changes.patch](https://github.com/user-attachments/files/33136479/00-all-changes.patch) [01-vision-hip-build.patch](https://github.com/user-attachments/files/33136481/01-vision-hip-build.patch) [02-setuphip-path.patch](https://github.com/user-attachments/files/33136480/02-setuphip-path.patch) [03-docs.patch](https://github.com/user-attachments/files/33136478/03-docs.patch) [README.md](https://github.com/user-attachments/files/33136487/README.md) It works fine with 1024 tokens on cpu. On gpu it also works but that'll cost half of decode speed on my system so I keep it on cpu. Just my little contribution to Windows users with an AMD gpu who want vision.
Author
Owner

@TANGyAAAA commented on GitHub (Oct 10, 2026):

Second Windows + AMD user here (Radeon R9700, RDNA4 / gfx1201, 32 GB). Zethalion's patches already prove the hardware is fine — llama.cpp runs the same model's vision on this exact card on Windows through its mmproj encoder, so the blocker is purely that hip_vision() returns none on Windows.

Please consider merging this into mainline so --vision cpu (and ideally a HIP encoder) works on Windows AMD without hand-patching. Happy to test on gfx1201 — I can run the patched build and report timings.

<!-- gh-comment-id:6098705609 --> @TANGyAAAA commented on GitHub (Oct 10, 2026): Second Windows + AMD user here (Radeon R9700, RDNA4 / gfx1201, 32 GB). Zethalion's patches already prove the hardware is fine — llama.cpp runs the same model's vision on this exact card on Windows through its mmproj encoder, so the blocker is purely that `hip_vision()` returns `none` on Windows. Please consider merging this into mainline so `--vision cpu` (and ideally a HIP encoder) works on Windows AMD without hand-patching. Happy to test on gfx1201 — I can run the patched build and report timings.
Author
Owner

@i-Vladimir-i commented on GitHub (Oct 12, 2026):

A Linux data point for the same question, in case it helps the setup change: on Linux strata-vision builds for HIP without any source change — tools/vision only has the CUDA switch, but ggml takes GGML_HIP from the CMake cache:

cmake -S tools/vision -B build-vision-hip -G Ninja -DCMAKE_BUILD_TYPE=Release \
  -DLLAMA_DIR=$PWD/third_party/llama.cpp -DSTRATA_PORTABLE=OFF -DSTRATA_VISION_CUDA=OFF \
  -DGGML_HIP=ON -DGPU_TARGETS=gfx1201 -DAMDGPU_TARGETS=gfx1201 \
  -DCMAKE_HIP_COMPILER=/opt/rocm/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++

Strata 7695859, system ROCm 7.14.1, Radeon AI PRO R9700. An 800×600 picture (475 image tokens): 0.12–0.13 s with --gpu (BF16 mmproj) vs 4.7 s on the CPU (Q8_0, 8 threads, Ryzen 9 3900). End to end through serve/server.py the description was correct; a repeated picture 1.8 s (cached).

On the "half of decode" cost mentioned above: here the encoder runs on a second GPU (HIP device 0, Strata on device 1), so the engine's expert cache keeps all of its VRAM and decode is unchanged. On a single card the encoder (~1.5 GB) takes expert-cache slots, which is likely that cost. Perhaps setup could offer "the encoder on another GPU" when there is one.

<!-- gh-comment-id:6127686340 --> @i-Vladimir-i commented on GitHub (Oct 12, 2026): A Linux data point for the same question, in case it helps the setup change: on Linux `strata-vision` builds for HIP **without any source change** — `tools/vision` only has the CUDA switch, but ggml takes `GGML_HIP` from the CMake cache: ``` cmake -S tools/vision -B build-vision-hip -G Ninja -DCMAKE_BUILD_TYPE=Release \ -DLLAMA_DIR=$PWD/third_party/llama.cpp -DSTRATA_PORTABLE=OFF -DSTRATA_VISION_CUDA=OFF \ -DGGML_HIP=ON -DGPU_TARGETS=gfx1201 -DAMDGPU_TARGETS=gfx1201 \ -DCMAKE_HIP_COMPILER=/opt/rocm/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++ ``` Strata `7695859`, system ROCm 7.14.1, Radeon AI PRO R9700. An 800×600 picture (475 image tokens): **0.12–0.13 s with `--gpu`** (BF16 mmproj) vs 4.7 s on the CPU (Q8_0, 8 threads, Ryzen 9 3900). End to end through `serve/server.py` the description was correct; a repeated picture 1.8 s (cached). On the "half of decode" cost mentioned above: here the encoder runs on a **second** GPU (HIP device 0, Strata on device 1), so the engine's expert cache keeps all of its VRAM and decode is unchanged. On a single card the encoder (~1.5 GB) takes expert-cache slots, which is likely that cost. Perhaps setup could offer "the encoder on another GPU" when there is one.
Author
Owner

@lipe123 commented on GitHub (Oct 13, 2026):

I am a total noob and since those patches were for an earlier build I could not apply them. I asked pi coder to apply them with the new changes and now I have working vision ON WINDOWS(with a RX9070xt)!!! Please why can't we make this work for everyone? If this patch just works - I don't understand?
Having the ability to paste a screenshot of a bad ui element makes debugging a web app SO much faster and easier.

<!-- gh-comment-id:6153350940 --> @lipe123 commented on GitHub (Oct 13, 2026): I am a total noob and since those patches were for an earlier build I could not apply them. I asked pi coder to apply them with the new changes and now I have working vision ON WINDOWS(with a RX9070xt)!!! Please why can't we make this work for everyone? If this patch just works - I don't understand? Having the ability to paste a screenshot of a bad ui element makes debugging a web app SO much faster and easier.
Author
Owner

@Zethalion commented on GitHub (Oct 13, 2026):

4. I am a total noob and since those patches were for an earlier build I could not apply them. I asked pi coder to apply them with the new changes and now I have working vision ON WINDOWS(with a RX9070xt)!!! Please why can't we make this work for everyone? If this patch just works - I don't understand?
Having the ability to paste a screenshot of a bad ui element makes debugging a web app SO much faster and easier.

I'm glad you got the patch working with the aid of pi. And indeed, it's relative easy for a developer to create a proper PR or the main developer to implement it. But looking at the long list of open issues and pull requests, I can imagine this is being overlooked.

<!-- gh-comment-id:6154066999 --> @Zethalion commented on GitHub (Oct 13, 2026): > 4\. I am a total noob and since those patches were for an earlier build I could not apply them. I asked pi coder to apply them with the new changes and now I have working vision ON WINDOWS(with a RX9070xt)!!! Please why can't we make this work for everyone? If this patch just works - I don't understand? > Having the ability to paste a screenshot of a bad ui element makes debugging a web app SO much faster and easier. I'm glad you got the patch working with the aid of pi. And indeed, it's relative easy for a developer to create a proper PR or the main developer to implement it. But looking at the long list of open issues and pull requests, I can imagine this is being overlooked.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156055268 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#530
No description provided.