[PR #1287] [CLOSED] [Engine] Windows HIP image encoding (superseded by main) #3359

Closed
opened 2026-11-07 14:40:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1287
Author: @Yasei-no-otoko
Created: 10/7/2026
Status: ❌ Closed

Base: main ← Head: codex/windows-hip-vision-pr


📝 Commits (3)

  • 35d8c59 feat: enable and verify Windows HIP vision on RX 6900 XT
  • bea8679 fix(vision): clarify Windows HIP deployment and Python selection
  • b4d7590 Merge upstream main into Windows HIP vision PR

📊 Changes

8 files changed (+649 additions, -8 deletions)

View changed files

➕ bench/results/2026-10-07-windows-hip-vision-rx6900xt/README.md (+97 -0)
➕ bench/results/2026-10-07-windows-hip-vision-rx6900xt/verification.json (+372 -0)
➕ bench/results/2026-10-07-windows-hip-vision-rx6900xt/vision-chat.png (+0 -0)
➕ bench/results/2026-10-07-windows-hip-vision-rx6900xt/vision-responses.png (+0 -0)
📝 docs/AMD_HIP.md (+71 -2)
📝 tools/vision/CMakeLists.txt (+8 -1)
➕ tools/vision/build_windows_hip.bat (+61 -0)
📝 tools/vision/strata_vision.cpp (+40 -5)

📄 Description

Problem and result

This PR originally provided a manual Windows HIP image-encoding path when that path was missing. Its main feature is now implemented independently on current main. Keep this PR closed and unmerged; no reopening or replacement PR is requested.

On 2026-10-22, inspected main at 011c9e600a93bbc9fd451c563501b5831c32bbca, whose documentation identifies Strata 0.2.2. Main supports a separate HIP picture reader, strata-vision-hip.exe, alongside the CPU reader, and its Windows HIP build script builds and packages both. This source inspection does not establish that the current release works on this RX 6900 XT.

Approach

Current upstream references:

This does not mean every hunk of the old patch was incorporated. The standalone helper and the explicit warm-up-failure guard differ from main. Source comparison shows that main logs its warm-up token count and then reports READY; the original PR also refused readiness after failed warm-up. This is an unconfirmed static-analysis observation, not a reproduced failure on current main, and no additional fix or review is requested here.

A local trial rebase was inspected but was not pushed. The PR branch remains at historical head b4d759058c14bd92bf57455d9cbe14fb53a3a67b; its old deployment instructions and helper are historical, not instructions for current main.

Validation

Passed:

  • 2026-10-22 source/metadata checks only: git fetch upstream main, git rev-parse upstream/main, git show upstream/main:tools/vision/CMakeLists.txt, git show upstream/main:tools/hip/build_windows.bat, and git show upstream/main:docs/AMD_HIP.md confirmed the source integration described above at 011c9e60. Read current CONTRIBUTING.md, AGENTS.md and the PR template.
  • Historical GPU/API results, 2026-10-07, pre-merge implementation recorded at 35d8c590ab2f21988c42c6dfe7d9c400b9aefc3a: physical Windows 11 Pro build 26300, Threadripper 3990X, RX 6900 XT 16 GiB (gfx1030), driver 32.0.21045.5002; ROCm 10.2.0a20260930, Clang 24, VS2022/CMake/Ninja, llama.cpp 3cf03257f219afbe7334045ff7c6a06ac68c627d. Official Strata 0.1.40 language engine, Huihui Swift IQ3_XXS, matching BF16 projector, 300-image-token cap and 131072 context. set STRATA_HIP_ARCHS=gfx1030, set LLAMA_DIR to that pinned checkout, then tools\vision\build_windows_hip.bat: HIP build and incremental rebuild passed. CPU and GPU encodes produced finite 240 × 2560 embeddings; masked-GPU --gpu correctly failed without READY. GPU logs identified ROCm0 / AMD Radeon RX 6900 XT; DLL paths and GPU-memory counters supported HIP execution.
  • Historical API results from the same pre-merge deployment: distinct uncached image fixtures were recognized through Chat Completions (HIP2026) and Responses (HIP2027), including the red circle and blue square. Health, model list, version, web root and text chat passed. Dated report and structured results, requests and outputs.
  • Historical follow-up at bea867945e7f23c5e1b25ab86711d8311f246ffb: the actual Python selection/venv block passed Windows cmd.exe checks with only py, only python, both, and neither available. The first three created runnable environments; the last produced the expected missing-Python error, as recorded in the resolved review discussion.
  • Historical post-merge checks, b4d759058c14bd92bf57455d9cbe14fb53a3a67b, after merging main e8ca9af: Windows HIP Release build/link passed; CPU encode produced finite 240 × 2560 embeddings; hidden-GPU --gpu failed without READY. Portable/default, native reconfiguration and CUDA/HIP exclusion configure checks passed. python tools/test_setup_choices.py passed 40 tests and python tools/test_setup_amd.py passed 30. Preserved local logs: logs/conflict-1287-20261007/{hip-build.log,encoder-smoke.json,cmake-matrix/summary.txt,review.txt}. These records were re-inspected; the commands were not rerun today.
  • git diff --check e8ca9afd03d839d4f8dbbe82dffce7f8a3bafd7a...HEAD on the retained historical PR head passed on 2026-10-22.

Failed:

  • None observed in today's source/metadata checks. Historical no-GPU and mutually exclusive backend rejections above were expected negative-test results.

Not run:

  • Current-main / 0.2.2 HIP, CUDA, SYCL or Metal builds, current-main GPU execution, and current-main image/API inference. This update records source status only and requests no code review. The installed service was not restarted or replaced.
  • GPU/API inference on the historical post-merge head b4d7590 was not repeated. Pre-merge measurements are not validation of that head or current main.
  • Other GPUs, fine-detail OCR, grounding accuracy, long-context image stress and sustained load.

Limits

The retained runtime evidence applies only to the dated Strata 0.1.40 / RX 6900 XT configuration. No performance improvement or compatibility of current packages is claimed. In particular, main labels the new RX 6000 packages as built but not yet tested on a real card. This PR remains closed as a historical proposal; it was not merged.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1287 **Author:** [@Yasei-no-otoko](https://github.com/Yasei-no-otoko) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/windows-hip-vision-pr` --- ### 📝 Commits (3) - [`35d8c59`](https://github.com/Niko1221/Strata/commit/35d8c590ab2f21988c42c6dfe7d9c400b9aefc3a) feat: enable and verify Windows HIP vision on RX 6900 XT - [`bea8679`](https://github.com/Niko1221/Strata/commit/bea867945e7f23c5e1b25ab86711d8311f246ffb) fix(vision): clarify Windows HIP deployment and Python selection - [`b4d7590`](https://github.com/Niko1221/Strata/commit/b4d759058c14bd92bf57455d9cbe14fb53a3a67b) Merge upstream main into Windows HIP vision PR ### 📊 Changes **8 files changed** (+649 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-07-windows-hip-vision-rx6900xt/README.md` (+97 -0) ➕ `bench/results/2026-10-07-windows-hip-vision-rx6900xt/verification.json` (+372 -0) ➕ `bench/results/2026-10-07-windows-hip-vision-rx6900xt/vision-chat.png` (+0 -0) ➕ `bench/results/2026-10-07-windows-hip-vision-rx6900xt/vision-responses.png` (+0 -0) 📝 `docs/AMD_HIP.md` (+71 -2) 📝 `tools/vision/CMakeLists.txt` (+8 -1) ➕ `tools/vision/build_windows_hip.bat` (+61 -0) 📝 `tools/vision/strata_vision.cpp` (+40 -5) </details> ### 📄 Description ## Problem and result This PR originally provided a manual Windows HIP image-encoding path when that path was missing. Its main feature is now implemented independently on current main. **Keep this PR closed and unmerged; no reopening or replacement PR is requested.** On 2026-10-22, inspected main at [011c9e600a93bbc9fd451c563501b5831c32bbca](https://github.com/Niko1221/Strata/commit/011c9e600a93bbc9fd451c563501b5831c32bbca), whose documentation identifies Strata 0.2.2. Main supports a separate HIP picture reader, `strata-vision-hip.exe`, alongside the CPU reader, and its Windows HIP build script builds and packages both. This source inspection does not establish that the current release works on this RX 6900 XT. ## Related discussion - [Tracker reset and reopening requirements](https://github.com/Niko1221/Strata/pull/1287#issuecomment-6272192940). - The original proposal and review remain in this PR. The author is retaining it as historical evidence because the core capability now exists upstream. ## Approach Current upstream references: - [HIP encoder options, architecture selection and output name](https://github.com/Niko1221/Strata/blob/011c9e600a93bbc9fd451c563501b5831c32bbca/tools/vision/CMakeLists.txt#L18). - [Windows build and packaging of the CPU and HIP readers](https://github.com/Niko1221/Strata/blob/011c9e600a93bbc9fd451c563501b5831c32bbca/tools/hip/build_windows.bat#L86). - [Current AMD image-reader behavior and package documentation](https://github.com/Niko1221/Strata/blob/011c9e600a93bbc9fd451c563501b5831c32bbca/docs/AMD_HIP.md#L54). This does **not** mean every hunk of the old patch was incorporated. The standalone helper and the explicit warm-up-failure guard differ from main. Source comparison shows that main logs its warm-up token count and then reports `READY`; the original PR also refused readiness after failed warm-up. This is an **unconfirmed static-analysis observation**, not a reproduced failure on current main, and no additional fix or review is requested here. A local trial rebase was inspected but was not pushed. The PR branch remains at historical head `b4d759058c14bd92bf57455d9cbe14fb53a3a67b`; its old deployment instructions and helper are historical, not instructions for current main. ## Validation **Passed:** - **2026-10-22 source/metadata checks only:** `git fetch upstream main`, `git rev-parse upstream/main`, `git show upstream/main:tools/vision/CMakeLists.txt`, `git show upstream/main:tools/hip/build_windows.bat`, and `git show upstream/main:docs/AMD_HIP.md` confirmed the source integration described above at `011c9e60`. Read current `CONTRIBUTING.md`, `AGENTS.md` and the PR template. - **Historical GPU/API results, 2026-10-07, pre-merge implementation recorded at `35d8c590ab2f21988c42c6dfe7d9c400b9aefc3a`:** physical Windows 11 Pro build 26300, Threadripper 3990X, RX 6900 XT 16 GiB (`gfx1030`), driver `32.0.21045.5002`; ROCm `10.2.0a20260930`, Clang 24, VS2022/CMake/Ninja, llama.cpp `3cf03257f219afbe7334045ff7c6a06ac68c627d`. Official Strata 0.1.40 language engine, Huihui Swift IQ3_XXS, matching BF16 projector, 300-image-token cap and 131072 context. `set STRATA_HIP_ARCHS=gfx1030`, set `LLAMA_DIR` to that pinned checkout, then `tools\vision\build_windows_hip.bat`: HIP build and incremental rebuild passed. CPU and GPU encodes produced finite 240 × 2560 embeddings; masked-GPU `--gpu` correctly failed without `READY`. GPU logs identified ROCm0 / AMD Radeon RX 6900 XT; DLL paths and GPU-memory counters supported HIP execution. - **Historical API results from the same pre-merge deployment:** distinct uncached image fixtures were recognized through Chat Completions (`HIP2026`) and Responses (`HIP2027`), including the red circle and blue square. Health, model list, version, web root and text chat passed. [Dated report](https://github.com/Yasei-no-otoko/Strata/blob/35d8c590ab2f21988c42c6dfe7d9c400b9aefc3a/bench/results/2026-10-07-windows-hip-vision-rx6900xt/README.md) and [structured results, requests and outputs](https://github.com/Yasei-no-otoko/Strata/blob/35d8c590ab2f21988c42c6dfe7d9c400b9aefc3a/bench/results/2026-10-07-windows-hip-vision-rx6900xt/verification.json). - **Historical follow-up at `bea867945e7f23c5e1b25ab86711d8311f246ffb`:** the actual Python selection/venv block passed Windows `cmd.exe` checks with only `py`, only `python`, both, and neither available. The first three created runnable environments; the last produced the expected missing-Python error, as recorded in the resolved review discussion. - **Historical post-merge checks, `b4d759058c14bd92bf57455d9cbe14fb53a3a67b`, after merging main `e8ca9af`:** Windows HIP Release build/link passed; CPU encode produced finite 240 × 2560 embeddings; hidden-GPU `--gpu` failed without `READY`. Portable/default, native reconfiguration and CUDA/HIP exclusion configure checks passed. `python tools/test_setup_choices.py` passed 40 tests and `python tools/test_setup_amd.py` passed 30. Preserved local logs: `logs/conflict-1287-20261007/{hip-build.log,encoder-smoke.json,cmake-matrix/summary.txt,review.txt}`. These records were re-inspected; the commands were not rerun today. - `git diff --check e8ca9afd03d839d4f8dbbe82dffce7f8a3bafd7a...HEAD` on the retained historical PR head passed on 2026-10-22. **Failed:** - None observed in today's source/metadata checks. Historical no-GPU and mutually exclusive backend rejections above were expected negative-test results. **Not run:** - Current-main / 0.2.2 HIP, CUDA, SYCL or Metal builds, current-main GPU execution, and current-main image/API inference. This update records source status only and requests no code review. The installed service was not restarted or replaced. - GPU/API inference on the historical post-merge head `b4d7590` was not repeated. Pre-merge measurements are not validation of that head or current main. - Other GPUs, fine-detail OCR, grounding accuracy, long-context image stress and sustained load. ## Limits The retained runtime evidence applies only to the dated Strata 0.1.40 / RX 6900 XT configuration. No performance improvement or compatibility of current packages is claimed. In particular, main labels the new RX 6000 packages as built but not yet tested on a real card. This PR remains closed as a historical proposal; it was not merged. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:55 +07:00
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#3359
No description provided.