The gfx1151 llama.cpp prebuilt bundles a regressed TheRock ROCm runtime whose libhsa-runtime64 segfaults at HIP init on bare-metal Strix Halo (unslothai#6276), so every model / embedder load crashes (code -11) while a Vulkan build works. Extend the existing WSL-only _wsl_system_rocm_lib_dirs (which already shadows a bad bundled HIP with the system one) to also return the system ROCm lib dirs on bare-metal Strix Halo (detected via /proc/cpuinfo) when a system HIP runtime is present. The bundle still supplies libggml-hip / librocblas gfx1151 kernels; the driver-matched system libamdhip64 / libhsa-runtime64 drive the GPU. Applied identically to the serve-time and install-validation mirrors so a prebuilt that validates runs the same. No-op without system ROCm or on any non-Strix arch; UNSLOTH_LLAMA_NO_SYSTEM_ROCM=1 opts out. The complete fix is repinning the bundled runtime to a good TheRock nightly in the llama.cpp prebuilt CI; this is the in-repo mitigation. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_node_prebuilt.py | ||
| install_python_stack.py | ||
| LICENSE.AGPL-3.0 | ||
| MCP.md | ||
| node_prebuilt_pins.json | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||