[GH-ISSUE #2372] [Bug]: Windows setup of Qwen3.6-35B-A3B fails: hipblas.dll and libhipblaslt.dll not found #955

Closed
opened 2026-11-04 01:47:18 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @matrix9neonebuchadnezzar2199-sketch on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2372

What happened

On this PC, Flash-Next IQ3_S still starts. Choosing Qwen3.6-35B-A3B in setup (the menu line marked [new]) gets through the Python packages and then stops.

The last setup line before the dialogs is:

cmake, ninja, pillow, psutil already installed

Windows then shows two strata.exe dialogs, one after the other:

  • libhipblaslt.dll was not found. Reinstalling the program may fix this problem.
  • hipblas.dll was not found. Reinstalling the program may fix this problem.

Both files are already in engine\rocm\bin. They are not next to strata.exe. Setup leaves them there on purpose and puts rocm\bin on PATH for strata-device.exe --list-devices. The Qwen3.6 step does not. engine_families() in setup.py runs:

subprocess.run([str(eng / EXE), "--families"], capture_output=True, text=True, timeout=60)

with no env. This engine's strata.exe imports hipblas.dll and libhipblaslt.dll directly, so the Windows loader asks for them before main. Dismissing both dialogs leaves --families with no output. Setup then stops with "this engine does not run Qwen3.6-35B-A3B yet" and suggests updating or compiling. The engine is already 0.1.44.1.

hip_devices() already builds that PATH for the device probe. The same prefix on the --families launch should be enough.

Version, GPU, OS

Strata setup that requires engine 0.1.44.1, prebuilt strata-windows-x64-hip (BUILD.json: 0.1.44.1, hip, rocm 10.2.0a20260930, hipBLASLt 100500, gfx1100 included). AMD Radeon RX 7900 XT (gfx1100), Ryzen 7 9800X3D, 96 GB RAM, Windows 11 Pro 10.0.26300.

Originally created by @matrix9neonebuchadnezzar2199-sketch on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2372 ### What happened On this PC, Flash-Next IQ3_S still starts. Choosing **Qwen3.6-35B-A3B** in setup (the menu line marked `[new]`) gets through the Python packages and then stops. The last setup line before the dialogs is: ```text cmake, ninja, pillow, psutil already installed ``` Windows then shows two `strata.exe` dialogs, one after the other: - `libhipblaslt.dll` was not found. Reinstalling the program may fix this problem. - `hipblas.dll` was not found. Reinstalling the program may fix this problem. Both files are already in `engine\rocm\bin`. They are not next to `strata.exe`. Setup leaves them there on purpose and puts `rocm\bin` on `PATH` for `strata-device.exe --list-devices`. The Qwen3.6 step does not. `engine_families()` in `setup.py` runs: ```python subprocess.run([str(eng / EXE), "--families"], capture_output=True, text=True, timeout=60) ``` with no `env`. This engine's `strata.exe` imports `hipblas.dll` and `libhipblaslt.dll` directly, so the Windows loader asks for them before `main`. Dismissing both dialogs leaves `--families` with no output. Setup then stops with "this engine does not run Qwen3.6-35B-A3B yet" and suggests updating or compiling. The engine is already 0.1.44.1. `hip_devices()` already builds that `PATH` for the device probe. The same prefix on the `--families` launch should be enough. ### Version, GPU, OS Strata setup that requires engine 0.1.44.1, prebuilt `strata-windows-x64-hip` (BUILD.json: 0.1.44.1, hip, rocm 10.2.0a20260930, hipBLASLt 100500, gfx1100 included). AMD Radeon RX 7900 XT (gfx1100), Ryzen 7 9800X3D, 96 GB RAM, Windows 11 Pro 10.0.26300.
Author
Owner

@mocchan0221 commented on GitHub (Oct 14, 2026):

The same thing happens with the ready-made CUDA engine on Windows, and I don't think #2376 covers it.

Setup: Windows 11, RTX 3070 Ti 8 GB, 64 GB RAM. Strata 0.1.44.1 (ready-made strata-windows-x64.zip, CUDA 13.0). The CUDA libraries come from the venv's pip packages (.venv\Lib\site-packages\nvidia\cu13\bin\x86_64).

SETUP.bat --family qwen36 --model UD-Q6_K_XL --yes --no-start stops at step 4:

  [ok] ready-made engine already installed
  [ok] NVIDIA CUDA libraries (cuBLAS, CUDA runtime; ~0.4 GB) already installed

  [X]  this engine (0.1.44.1) does not run Qwen3.6-35B-A3B yet

The engine does run it. Without the library folder on PATH it cannot load at all:

> engine\strata.exe --families
strata.exe: error while loading shared libraries: cublas64_13.dll: cannot open shared object file
(exit 127)

> set PATH=F:\Strata\.venv\Lib\site-packages\nvidia\cu13\bin\x86_64;%PATH%
> engine\strata.exe --families
qwen4exp qwen35moe

Why #2376 doesn't seem to cover it: the PR prepends hip_lib_dirs(eng), which reads "lib_dirs" from engine/BUILD.json. The CUDA zip's BUILD.json has no such key (version, source, archs, ptx, cuda, vision, portable), so on NVIDIA the PATH stays unchanged.

engine_step() already works out the right list:

meta.get("lib_dirs") or meta.get("cuda_dirs") or cuda_lib_dirs(cuda_tk)

That is also what gets written into the config's "lib_dirs". Passing that list into engine_families() and prepending it to PATH would cover both backends.

Workaround: prepend the cu13 folder to PATH before running SETUP.bat. With that, setup verified both files and wrote the configs normally (UD-Q6_K_XL and UD-Q4_K_XL).

I have not tried the CUDA 12 zip or a source build.

(Investigated with an AI assistant, Claude Code; the commands and outputs above are from my machine.)

<!-- gh-comment-id:6165489457 --> @mocchan0221 commented on GitHub (Oct 14, 2026): The same thing happens with the ready-made **CUDA** engine on Windows, and I don't think #2376 covers it. **Setup:** Windows 11, RTX 3070 Ti 8 GB, 64 GB RAM. Strata 0.1.44.1 (ready-made `strata-windows-x64.zip`, CUDA 13.0). The CUDA libraries come from the venv's pip packages (`.venv\Lib\site-packages\nvidia\cu13\bin\x86_64`). `SETUP.bat --family qwen36 --model UD-Q6_K_XL --yes --no-start` stops at step 4: ```text [ok] ready-made engine already installed [ok] NVIDIA CUDA libraries (cuBLAS, CUDA runtime; ~0.4 GB) already installed [X] this engine (0.1.44.1) does not run Qwen3.6-35B-A3B yet ``` The engine does run it. Without the library folder on PATH it cannot load at all: ```text > engine\strata.exe --families strata.exe: error while loading shared libraries: cublas64_13.dll: cannot open shared object file (exit 127) > set PATH=F:\Strata\.venv\Lib\site-packages\nvidia\cu13\bin\x86_64;%PATH% > engine\strata.exe --families qwen4exp qwen35moe ``` **Why #2376 doesn't seem to cover it:** the PR prepends `hip_lib_dirs(eng)`, which reads `"lib_dirs"` from `engine/BUILD.json`. The CUDA zip's `BUILD.json` has no such key (`version, source, archs, ptx, cuda, vision, portable`), so on NVIDIA the PATH stays unchanged. `engine_step()` already works out the right list: ```python meta.get("lib_dirs") or meta.get("cuda_dirs") or cuda_lib_dirs(cuda_tk) ``` That is also what gets written into the config's `"lib_dirs"`. Passing that list into `engine_families()` and prepending it to PATH would cover both backends. **Workaround:** prepend the cu13 folder to PATH before running `SETUP.bat`. With that, setup verified both files and wrote the configs normally (UD-Q6_K_XL and UD-Q4_K_XL). I have not tried the CUDA 12 zip or a source build. (Investigated with an AI assistant, Claude Code; the commands and outputs above are from my machine.)
Author
Owner

@matrix9neonebuchadnezzar2199-sketch commented on GitHub (Oct 14, 2026):

Thanks. The report above was the Radeon RX 7900 XT. Those two dialogs were the HIP engine.

I swapped that card for an NVIDIA GeForce RTX 5080 today, so this PC is on the ready-made CUDA 13.0 engine (0.1.44.1) now. Flash-Next IQ3_S starts. I have not re-run the Qwen3.6 setup step here.

Your cublas64_13.dll result is the same hole on CUDA. --families is started with no library directory on PATH, and the CUDA BUILD.json has no lib_dirs for #2376 to prepend. The list engine_step() already computes would cover both.

<!-- gh-comment-id:6167730453 --> @matrix9neonebuchadnezzar2199-sketch commented on GitHub (Oct 14, 2026): Thanks. The report above was the Radeon RX 7900 XT. Those two dialogs were the HIP engine. I swapped that card for an NVIDIA GeForce RTX 5080 today, so this PC is on the ready-made CUDA 13.0 engine (0.1.44.1) now. Flash-Next IQ3_S starts. I have not re-run the Qwen3.6 setup step here. Your `cublas64_13.dll` result is the same hole on CUDA. `--families` is started with no library directory on PATH, and the CUDA `BUILD.json` has no `lib_dirs` for #2376 to prepend. The list `engine_step()` already computes would cover both.
Author
Owner

@alphastorm commented on GitHub (Oct 15, 2026):

Same defect on the ready-made CUDA engine (0.1.44.1 strata-windows-x64.zip, RTX 5090, driver 617.42, CUDA 13 libraries from the venv's pip packages). Two details that may help the fix:

  1. engine_families() keeps only stdout and ignores the return code, so a loader failure (0xC0000135, empty stdout and stderr) is classified as a legacy engine ({qwen4exp}) and reported as "does not run Qwen3.6-35B-A3B yet". Checking returncode would turn it into an "engine failed to start" message.
  2. install_own_path() already has the lib_dirs that engine_step() returned, but calls engine_families(eng) without them. serve/server.py child_env() already prepends cfg.lib_dirs to PATH for the server's engine child; the same rule for the probe should be enough.

Paired check with the same unmodified strata.exe (SHA-256 bd18453f65b4d03b15de6100b1a9226426266560779b51b9265de176ae8f34d4):

Probe environment Exit code stdout
inherited from setup 0xC0000135 (empty)
venv nvidia\cu13\bin\x86_64 prepended to the child's PATH 0 qwen4exp qwen35moe

With only that PATH change for the setup run, setup completed, and the 0.1.44.1 engine loaded Qwen3.6-35B-A3B UD-Q4_K_XL (all experts resident, 131,072 context, text only) and served several hours of agent sessions.

<!-- gh-comment-id:6203906428 --> @alphastorm commented on GitHub (Oct 15, 2026): Same defect on the ready-made CUDA engine (0.1.44.1 `strata-windows-x64.zip`, RTX 5090, driver 617.42, CUDA 13 libraries from the venv's pip packages). Two details that may help the fix: 1. [`engine_families()`](https://github.com/Niko1221/Strata/blob/296b59d2/setup.py#L5508-L5516) keeps only stdout and ignores the return code, so a loader failure (`0xC0000135`, empty stdout and stderr) is classified as a legacy engine (`{qwen4exp}`) and reported as "does not run Qwen3.6-35B-A3B yet". Checking `returncode` would turn it into an "engine failed to start" message. 2. [`install_own_path()`](https://github.com/Niko1221/Strata/blob/296b59d2/setup.py#L5598-L5602) already has the `lib_dirs` that [`engine_step()`](https://github.com/Niko1221/Strata/blob/296b59d2/setup.py#L5475-L5505) returned, but calls `engine_families(eng)` without them. [`serve/server.py` `child_env()`](https://github.com/Niko1221/Strata/blob/296b59d2/serve/server.py#L2788-L2804) already prepends `cfg.lib_dirs` to PATH for the server's engine child; the same rule for the probe should be enough. Paired check with the same unmodified `strata.exe` (SHA-256 `bd18453f65b4d03b15de6100b1a9226426266560779b51b9265de176ae8f34d4`): | Probe environment | Exit code | stdout | |---|---|---| | inherited from setup | `0xC0000135` | (empty) | | venv `nvidia\cu13\bin\x86_64` prepended to the child's PATH | `0` | `qwen4exp qwen35moe` | With only that PATH change for the setup run, setup completed, and the 0.1.44.1 engine loaded Qwen3.6-35B-A3B UD-Q4_K_XL (all experts resident, 131,072 context, text only) and served several hours of agent sessions.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6270990117 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#955
No description provided.