Repository navigation
Highlights
rooflab v0.6.1 is a patch release focused on making the existing v0.6.0 llama.cpp CUDA, speculative decoding, and 1-warp GPU stochastic sampler patchset (0 register spills across sm_80/86/89/90/120, 1.6713x geometric speedup and -40.80% J/tok across 13 suites on RTX 3090) reproducible and buildable in 4 copy-paste commands on upstream ggml-org/llama.cpp.
Zero new kernel or model features beyond v0.6.0 are introduced in this release.
4-Command llama.cpp CUDA Quickstart
# 1. Clone upstream llama.cpp at the exact tested base commit (tag b12631)
git clone https://github.com/ggml-org/llama.cpp && git -C llama.cpp checkout e300919cc704ddde3a8a8346a8714f57eeeee71b
# 2. Apply the verified v0.6.0 cumulative patchset (strict --whitespace=error check)
bash scripts/apply_patches.sh ./llama.cpp
# 3. Build llama-server, llama-cli, and llama-bench (auto-detects GPU arch via nvidia-smi, or set CUDA_ARCH=86)
bash scripts/build_cuda.sh ./llama.cpp
# 4. Launch llama-server (replace build-sm86 with your detected build-sm<arch> directory)
ORION_DISABLE_R2_SM86=1 ./llama.cpp/build-sm86/bin/llama-server \
-m /path/to/model.gguf -ngl 99 -fa on -c 16384 -b 1024 -ub 1024 \
--cache-type-k q8_0 --cache-type-v q8_0 --backend-sampling \
--host 127.0.0.1 --port 8080What Changed
- Verified Single-Pass Cumulative Patch (
patches/rooflab_v060_cumulative.patch): Exported against exact upstreamggml-org/llama.cppcommite300919cc704ddde3a8a8346a8714f57eeeee71b(b12631,149files, SHA-2560df716f93827b1630c14081fc2ba10cd24dcab96881552d10817e6eef71d5d1a), verified clean undergit apply --check --whitespace=errorandgit apply -R --checkwhile preserving all43archival slice patches inpatches/for per-slice review and surgicalgit apply -Rbisection. - Reproducible Patch Script (
scripts/apply_patches.sh): Supports idempotent forward apply,--checkdry-run verification, and--reverse(-R) clean rollback back to stockllama.cpp. - Multi-Arch CUDA Builder (
scripts/build_cuda.sh): Ninja CUDA builder supporting explicitCUDA_ARCHvia CLI/env or automaticnvidia-smicompute-capability detection (8.0->80,8.6->86,8.9->89,9.0->90,12.0->120),-DGGML_CUDA=ON -DGGML_CUDA_FA_ALL_QUANTS=ON -DGGML_CUDA_GRAPHS=ON -DLLAMA_BUILD_TOOLS=ON, and optionalsccache/ccacheandmoldviacommand -v(keepingconfigs/rtx-3090/build_rtx3090.shintact). - Documentation & CLI Fixes: Added the top-of-README 4-command Quickstart, pinned the exact 40-char upstream base SHA and archival stack order in
patches/MANIFEST.md, fixed--backend-sampling -bs 1->--backend-samplingacrossdocs/RTX3090_PRESETS.md, and bumped package metadata (pyproject.toml,rooflab/__init__.py,CITATION.cff,CHANGELOG.md) to0.6.1. - CI Reliability Fix (
tests/test_strix_halo_kit.py): Madetest_power_sampler_rapl_fallbackdeterministic via baseline-read polling and atomicos.replaceupdates, eliminating a timing race on loaded macOS CI runners.
Verification
- Fresh
/tmpclean-apply + idempotent +--reverseroundtrip one300919cc704ddde3a8a8346a8714f57eeeee71b: PASS - From-scratch Ninja CUDA build (
scripts/build_cuda.sh,sm_86):[413/413]PASS,0spill stores/loads across1,071/1,071audited custom/patched kernels, RTX 3090 smoke check (gemma-4-E2BQ8_0-bs 1:tg128 = 386.44 +/- 3.14 t/s,pp128 = 10,351.67 t/s,VmSwap = 0 kB) - All 4 repository gates PASS:
431/431unit tests OK,scripts/repo_integrity_check.py0findings,scripts/privacy_audit.py0findings,ledger verify92entriesok: true - GitHub Actions 3-OS CI (
ubuntu-latest,macos-latest,windows-latestx Python3.10/3.12+ Full Forensics):8/8green