Expand description
llama.cpp-turboquant-hip installer — native Rust CMake source build.
Clones the private fork scooter-lacroix/llama.cpp-turboquant-hip,
builds with HIP/ROCm CMake flags per channel policy, and installs
binaries to ~/.mlstack/components/llama-cpp/bin/.
§Detection Contract
Detection and verification both operate on the same binary contract:
llama-cli --help must succeed (exit code 0). This ensures:
- Partial clone artifacts do not count as installed
- Broken executables do not count as installed
- Detection and verification use the same executable
§ROCm Channel Policy
| Channel | GPU Targets | WMMA FA | Notes |
|---|---|---|---|
| Legacy | gfx1030 | No | RDNA2 only |
| Stable | gfx1030;gfx1100;gfx1101 | Yes | RDNA2+RDNA3 |
| Latest | gfx1030;gfx1100;gfx1101;gfx1200 | Yes | RDNA2+RDNA3+RDNA4 |
§Validation Assertions
- VAL-INTEGRATION-002: Native installer route accepts llama-cpp
- VAL-INTEGRATION-003: Installed detection succeeds with functional command
- VAL-INTEGRATION-004: Installed detection fails when command is absent
- VAL-INTEGRATION-005: Broken executable does not count as installed
- VAL-INTEGRATION-006: Partial filesystem artifacts do not count as success
- VAL-CROSS-001: Channel selection determines llama.cpp build flags
- VAL-CROSS-003: Install path and detection strategy are consistent
- VAL-CROSS-012: Detection and verification operate on the same binary contract
Structs§
- Llama
CppConfig - Configuration for the llama.cpp installer.
- Llama
CppInstaller - The llama.cpp installer.
- Post
Install Verification - Result of stronger-than—help post-install verification.
- Prebuilt
Install Plan - Release
Archs - Release
Asset - Release
Manifest - Shell
Command - A constructed shell command.
- Source
Install Plan
Enums§
- HipArchs
- GPU architecture specification for HIP builds.
- Install
Strategy - Rocm
Channel - ROCm channel for CMake flag selection.
Constants§
- DETECTION_
BINARY - The primary detection binary.
- DETECTION_
SUBCOMMAND - The detection subcommand that must succeed for installed status.
Functions§
- has_
partial_ artifacts - Check if partial artifacts exist (clone/build dirs) without a functional binary.
- is_
llama_ cli_ functional - Check if the llama-cli binary is functional at the expected install path.
- is_
llama_ cli_ on_ path - Check if llama-cli is on PATH and functional.
- resolve_
install_ bin_ dir - Resolve the install bin directory for llama-cpp.
- verify_
installed_ binary - Performs stronger-than—help post-install verification on the installed binary.