[PR #2565] [CLOSED] setup: the --families probe runs with the engine's library folders, so a ready-made engine can load (#2372) #4131

Closed
opened 2026-11-07 15:33:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2565
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed

Base: main ← Head: chief-serve/families-lib-dirs


📝 Commits (1)

  • 2de475a setup: the --families probe runs with the engine's library folders, so a ready-made engine can load (#2372)

📊 Changes

2 files changed (+49 additions, -5 deletions)

View changed files

📝 setup.py (+13 -4)
📝 tools/test_setup_qwen36.py (+36 -1)

📄 Description

Fixes #2372 for both ready-made engines. It covers the HIP case of #2376 the same way (same folders, same order) and
adds the CUDA case @mocchan0221 found in the thread; it touches the same lines, so only one of the two can merge as
is.

What it changes. install_own_path() (Qwen3.6) asks the engine which families it runs with strata --families,
launched with the inherited environment. A ready-made engine's loader wants its libraries before main: hipBLAS
in engine\rocm\bin (Windows HIP: two "was not found" dialogs) and cuBLAS from pip's wheels (the CUDA zip, whose
BUILD.json has no lib_dirs: cublas64_13.dll ... cannot open shared object file, exit 127). The probe printed
nothing and setup stopped with "this engine (0.1.44.1) does not run Qwen3.6-35B-A3B yet". engine_families(eng, lib_dirs) now takes the list engine_step() already returns for the server's config (hip_lib_dirs for the
Windows HIP engine; else lib_dirs, cuda_dirs or pip's CUDA folders) and puts the folders that exist first on
PATH (Windows) or LD_LIBRARY_PATH (elsewhere), as the server's child_env does.

What it leaves alone. With no such folder the probe runs exactly as before (env=None). The rest of the
environment is kept. Flash-Next installs do not run this probe. What the engine prints and how setup reads it.

How it was checked.

  • tools/test_setup_qwen36.py: new FamiliesProbe (the folders first on PATH with WIN, on LD_LIBRARY_PATH
    without; a missing folder skipped; no folders: env is None, as before) and InstallOwnPath now checks that
    install_own_path passes engine_step's list. On main: 3 errors and 1 failure. With it: 14 OK.
  • tools/test_setup_choices.py, tools/test_setup_amd.py: OK.
  • Python 3.14, Ubuntu (Linux 7.0); no GPU needed. Not run on Windows or with a real ready-made engine; the
    reporter's manual check in the thread (the cu13 folder on PATH, then --families prints qwen4exp qwen35moe)
    is the case the new PATH entry reproduces.

🤖 Generated with Claude Code


🔄 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/2565 **Author:** [@qiuzan2001](https://github.com/qiuzan2001) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chief-serve/families-lib-dirs` --- ### 📝 Commits (1) - [`2de475a`](https://github.com/Niko1221/Strata/commit/2de475a92e1243cb6e9a9f326180aa1b47fc40a0) setup: the --families probe runs with the engine's library folders, so a ready-made engine can load (#2372) ### 📊 Changes **2 files changed** (+49 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+13 -4) 📝 `tools/test_setup_qwen36.py` (+36 -1) </details> ### 📄 Description Fixes #2372 for both ready-made engines. It covers the HIP case of #2376 the same way (same folders, same order) and adds the CUDA case @mocchan0221 found in the thread; it touches the same lines, so only one of the two can merge as is. **What it changes.** `install_own_path()` (Qwen3.6) asks the engine which families it runs with `strata --families`, launched with the inherited environment. A ready-made engine's loader wants its libraries before `main`: hipBLAS in `engine\rocm\bin` (Windows HIP: two "was not found" dialogs) and cuBLAS from pip's wheels (the CUDA zip, whose `BUILD.json` has no `lib_dirs`: `cublas64_13.dll ... cannot open shared object file`, exit 127). The probe printed nothing and setup stopped with "this engine (0.1.44.1) does not run Qwen3.6-35B-A3B yet". `engine_families(eng, lib_dirs)` now takes the list `engine_step()` already returns for the server's config (`hip_lib_dirs` for the Windows HIP engine; else `lib_dirs`, `cuda_dirs` or pip's CUDA folders) and puts the folders that exist first on `PATH` (Windows) or `LD_LIBRARY_PATH` (elsewhere), as the server's `child_env` does. **What it leaves alone.** With no such folder the probe runs exactly as before (`env=None`). The rest of the environment is kept. Flash-Next installs do not run this probe. What the engine prints and how setup reads it. **How it was checked.** - `tools/test_setup_qwen36.py`: new `FamiliesProbe` (the folders first on PATH with `WIN`, on LD_LIBRARY_PATH without; a missing folder skipped; no folders: `env` is None, as before) and `InstallOwnPath` now checks that `install_own_path` passes `engine_step`'s list. On `main`: 3 errors and 1 failure. With it: 14 OK. - `tools/test_setup_choices.py`, `tools/test_setup_amd.py`: OK. - Python 3.14, Ubuntu (Linux 7.0); no GPU needed. Not run on Windows or with a real ready-made engine; the reporter's manual check in the thread (the cu13 folder on PATH, then `--families` prints `qwen4exp qwen35moe`) is the case the new PATH entry reproduces. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:33:28 +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#4131
No description provided.