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#4556
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/3305
Author: @xxxliqu1dxxx
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:fix-setup-amd-ld-library-path📝 Commits (1)
d409ec3fix(setup AMD): engine probes get the engine's lib_dirs on LD_LIBRARY_PATH on non-Windows (setup's ownstrata --families/strata-device --list-devicesexited 127 on libhipblas.so.3 on AMD Linux, so setup falsely said the engine does not run Qwen3.6; #2372 put them on PATH only, which the loader only honors on Windows - mirrors serve/server.py's os-dependent choice)📊 Changes
2 files changed (+23 additions, -7 deletions)
View changed files
📝
setup.py(+7 -3)📝
tools/test_setup_amd.py(+16 -4)📄 Description
Problem and result
Setup's own engine probes (
strata --families,strata-device --list-devices) only got theengine's ROCm
lib_dirsonPATH(#2372), which the dynamic loader only honors on Windows.On AMD Linux the probes exited 127 on
libhipblas.so.3, so./setup.sh --backend hipStep 4falsely said "this engine does not run Qwen3.6-35B-A3B yet" while the local HIP engine does
run it. After the change, on POSIX the
lib_dirsare prepended toLD_LIBRARY_PATH(existingvalue preserved); on Windows the
PATHbehavior is byte-identical. The probes exit 0.Related discussion
Resubmission of #2914, closed by the 0.2.0-beta tracker reset (its head branch was force-pushed, so GitHub
would not reopen it — this one links that PR). Follow-up to #2372 (commit
093108c). No open issue. Focused fix,no scope agreement needed.
Approach
engine_envonly: on POSIX,lib_dirsare prepended toLD_LIBRARY_PATHinstead ofPATH;on Windows the
PATHprepend is unchanged. Mirrorsserve/server.py's existing"PATH" if os.name == "nt" else "LD_LIBRARY_PATH"choice. Left alone: the engine binary, thebuild, the server launch env, the
engine_familiesfallback,hip_lib_dirs, prebuilt Windowsengine handling.
Validation
Passed:
python tools/test_setup_amd.py— revisiond409ec38(rebased on main, 0.2.0-beta), localWindows PC (no GPU needed): 42 tests OK. Covers
EngineLaunchEnv: the WindowsPATHbehavior (pinned to
os.name = "nt"), the newLD_LIBRARY_PATHtest (lib dir first,existing value preserved,
PATHuntouched), and the two probe tests.local HIP engine 0.1.45):
env = setup.engine_env(Path('engine'))+engine/strata --families→ rc 0, printsqwen4exp qwen35moe(previously exit 127).Failed: none observed.
Not run: multi-GPU, Windows live run (no Windows AMD box), NVIDIA/CUDA paths (untouched by
the change).
Limits
Only affects the two setup probe commands' environment on non-Windows. No behavior change on
Windows, in the engine, the build, or the server.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.