unsloth/studio
Daniel Han 8f68efbf0f Add ROCm support to llama.cpp prebuilt installer
Extend the prebuilt installer to detect AMD ROCm GPUs and select the
appropriate llama.cpp binary:

- Add has_rocm field (default False) to HostInfo dataclass
- Extend detect_host() to probe for ROCm via hipcc, amd-smi, rocm-smi,
  /opt/rocm, and ROCM_PATH env var (skipped on macOS)
- Linux x86_64 ROCm hosts (without NVIDIA) try the upstream ROCm 7.2
  prebuilt first, with a log warning that it may fall back to source
  build on other ROCm versions
- Windows x86_64 ROCm hosts try the HIP prebuilt; if not found, a log
  message is printed before falling through to CPU
- Add "linux-rocm" and "windows-hip" install kinds to
  runtime_patterns_for_choice() with the correct shared library globs
  (libggml-hip.so* for Linux, *.dll for Windows)

The ROCm path is only entered when has_usable_nvidia is False, so
NVIDIA always takes precedence on dual-GPU systems. The source build
fallback (via setup.sh with -DGGML_HIP=ON) compiles against the exact
GPU target via rocminfo, which is more reliable for consumer GPUs
(e.g. gfx1151) that may not be in the prebuilt.
2026-03-31 08:30:53 +00:00
..
backend fix: replace hard timeout with inactivity timeout for model loading (#4707) 2026-03-31 07:35:04 +04:00
frontend fix: skip download progress polling for exported GGUF models (#4709) 2026-03-31 07:21:23 +04:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_llama_prebuilt.py Add ROCm support to llama.cpp prebuilt installer 2026-03-31 08:30:53 +00:00
install_python_stack.py studio: unify Windows installer/setup logging style, verbosity controls, and startup messaging (#4651) 2026-03-30 00:53:23 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 Fix/bun windows bin detection (#4703) 2026-03-30 21:58:33 +04:00
setup.sh Fix/bun windows bin detection (#4703) 2026-03-30 21:58:33 +04:00
Unsloth_Studio_Colab.ipynb Allow install_python_stack to run on Colab (#4633) 2026-03-27 00:29:27 +04:00