mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3810] [Engine] setup crashes on the 0.1.48 Windows CUDA package: BUILD.json "vision_archs" is a string, prebuilt_vision reads it as a list #1609
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#1609
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?
Originally created by @Poro789 on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3810
The problem
On Windows, setting up Strata 0.2.3 with the ready-made engine and images on stops inside
setup.py. The engine and the CUDA libraries are installed by then; what does not happen is the rest of setup (the run config is never written):Line numbers are from tag
v0.2.3(5c8dd322), unmodified.What the package says
engine\BUILD.jsonin the fetched component0.1.48-windows-x86_64-cuda-cuda13is 16 lines long and uses two different formats in one file - a list forarchs, a joined string forvision_archs. Quoted whole:(The
"source": "prebuilt"line is stamped in by setup itself,setup.py:4143-4145; the rest is as the component shipped it.)prebuilt_visioniterates that value and callsint()on each element, so it sees the characters7,5,;and stops at the;.Why the writer and the reader disagree (read from the code, not tested)
packaging/package_engine.py:120-129(stamp_vision_archs, whose docstring says the Windows build recipes call it after buildingstrata-vision.exe) stores";".join(...).prebuilt_vision(setup.py:5401) andreader_archs(setup.py:4416-4427, which testsisinstance(..., list)- with a string it returns[]quietly instead of crashing).tools/test_setup_choices.py:33-56), and the HIP Windows packager writes a list (tools/hip/package_windows.py:181).The joined-string form looks new with this package: the 0.1.45 Windows component's
BUILD.jsonhas novision_archskey at all, soprebuilt_visionfell back toarchs(a list) and never saw a string. That is the only difference I can point at for "why now".Who it hits
Windows, an NVIDIA card, the ready-made engine, and images on -
--visionwas not passed at all. The default answer to the images question is yes (setup.py:7277-7295), and yes becomes the GPU encoder on a card of 23.5 GB or more (setup.py:7298-7299,IMAGES_GPU_ENCODER_MIN_VRAM_GBat:2982); my card is 32 GB.prebuilt_visionreturns before the failing line when the vision mode is notgpu, so--vision no/--vision cpushould not reach it - read from the code, not tested.What I ran
sm_89), driver 617.42, Python 3.12.9, 64 GB RAM.git clonechecked out at tagv0.2.3(5c8dd322), no local changes at the time of the crash.START-HERE.bat --setup --model IQ3_S --context 262144 --vram-reserve-mib 1536 --experimental-speed-projection on --no-start --yesThe engine download and the CUDA libraries passed; the traceback above followed.
How I got past it (a workaround I ran, not a proposal for the fix)
Three lines in
prebuilt_visionso it also accepts the joined-string form, the waypackaging/package_engine.py:64(_arch_numbers) already does. With that, setup completed: the run config was written with the values I asked for, andprebuilt_visionstill answeredgpuforsm_89(the arch list covers it), so the GPU image encoder was kept rather than downgraded to the CPU one.Not run: starting the model on the new engine (I stopped before starting it), Linux, the AMD/HIP path, the
.exeinstaller, and a machine with no earlier config.Two places it could be fixed (your call)
Either teach the readers both forms - the parser that handles both already exists in the same repository (
_arch_numbers) - or havestamp_vision_archswrite a list, which is what both readers and the existing tests expect. If it is the second,reader_archsandtest_setup_choices.pywould seem the places to cover it.I searched the open and closed issues and pull requests for
vision_archs,invalid literal for int,0.1.48andValueError setup.pybefore writing this and found nothing about this failure.@Poro789 commented on GitHub (Oct 23, 2026):
Confirmed fixed on the reporting machine. With the tree checked out at v0.2.3.1 and my local workaround removed:
prebuilt_visioncalled directly with this engine's realengine/BUILD.json("vision_archs": "75;86;89;120") andgpu["arch"]=89returnsgpu— noValueError;python tools/test_setup_choices.py(54 tests, OK) andpython tools/test_setup_amd.py(52 tests, OK).--setupre-run (the engine and the run config are already in place), Linux, and the AMD/HIP path.Closing as completed. Thanks for the fast fix.
video_urlparts through strata-vision, in the Qwen3-VL layout #3559