mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1156
Author: @Hugua700
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:fix/windows-vision-cpu📝 Commits (2)
4693febsetup: reach the CPU image encoder on Windows + AMD (#881)306d461tools/hip: ship the CPU image encoder in the ready-made zip (#881)📊 Changes
3 files changed (+82 additions, -22 deletions)
View changed files
📝
setup.py(+49 -17)📝
tools/hip/build_windows.bat(+19 -1)📝
tools/hip/package_windows.py(+14 -4)📄 Description
Reach the CPU image encoder on Windows + AMD
Fixes #1155.
Follow-up to #881 (closed as completed). 0.1.40 fixed the two bugs reported there, but the two blockers in
its follow-up comment are still on
main, and--vision cpucannot work on Windows + AMD without them — on a ready-made engine or a self-built one.tools/visionis a plain MSVC/CMake program linking llama.cpp'smtmd; nothing about it is Linux- or NVIDIA-specific(its
CMakeLists.txthas anif(STRATA_PORTABLE AND MSVC)branch,strata_vision.cpphas#ifdef _WIN32). It buildsand runs on two Windows-AMD machines — an RX 6800M / gfx1031 and a Strix Halo / gfx1151 — as soon as the plumbing
below is out of the way.
Commit 1 —
setup: reach the CPU image encoder on Windows + AMD (#881)find_vcvars(cuda13=False)[16.0,18.0)range is CUDA 13's requirement, so only a CUDA caller asks for it now. A machine whose only C++ tools are VS 2026 (version 18) could not be seen at all before — althoughtools/hip/build_windows.batalready calls vswhere without a range, so the packaging path builds the whole engine on VS 18 while setup could not find it.STRATA_VCVARS=<vcvars64.bat>picks one by hand, for a range-matched install that is broken (there, VS 2019 Build Tools withoutmspdbcore.dll→C1356).hip_vision()--vision cpumeans the CPU encoder on every platform; theand WINgate is gone.build_vision_cpu()-DSTRATA_PORTABLE=ON(the static runtime, asbuild_windows.batbuilds the engine).main()not hipthere skips the whole vision block, so the ready-made Windows-AMD engine installs no encoder while setup.py:4911-4917 writes the model config'svisionblock pointing atengine/strata-vision.exe— which nothing created. The ready-made engine now builds and installs the CPU encoder beside itself: the encoder only, never the HIP engine, which needs the ROCm toolchain the ready-made one exists to avoid.pip_cuda_libs()is skipped on the HIP path for the same reason.Commit 2 —
tools/hip: ship the CPU image encoder in the ready-made zip (#881)Optional and additive: it only removes the C++ toolchain requirement from the user's PC, which is what the "the
ready-made Windows AMD engine has no image encoder" message has always really meant.
build_windows.batbuildsstrata-vision.exein the packaging run when a llama.cpp source tree is at hand(
STRATA_GGML_DIR, elsethird_party/llama.cpp); without one the zip is what it always was, with a note.package_windows.pycopies it in when the build has it, follows its imports for the DLL walk like the other twoprograms, and records
"vision": "cpu"in the zip'sBUILD.json.build_vision_cpu()takes a shipped encoder as it is when novision_srcis recorded.Verification
On the RX 6800M / gfx1031 machine of #881 (Windows 11, Chinese locale, only VS 2026 Build Tools installed):
Both files pass
python -m py_compile. The encoder built with exactly the flags of commit 1 runs on this machine'sself-built 0.1.40 HIP engine: setup reports
images: on (encoder on the CPU),/healthreports"images": true, anda 720x360 test image is read correctly through
/v1/chat/completions.What I could not run here is a full
build_windows.bat(needs the ROCm toolchain and 10-20 minutes) and a realsetup.py --vision cpuon a ready-made engine; I will test either if you want, or drop commit 2 if the packagingchange is not wanted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.