Skip to content

rooflab v0.6.1

Latest

Choose a tag to compare

@scientist42-lab scientist42-lab released this 04 Dec 20:32

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 8080

What Changed

  • Verified Single-Pass Cumulative Patch (patches/rooflab_v060_cumulative.patch): Exported against exact upstream ggml-org/llama.cpp commit e300919cc704ddde3a8a8346a8714f57eeeee71b (b12631, 149 files, SHA-256 0df716f93827b1630c14081fc2ba10cd24dcab96881552d10817e6eef71d5d1a), verified clean under git apply --check --whitespace=error and git apply -R --check while preserving all 43 archival slice patches in patches/ for per-slice review and surgical git apply -R bisection.
  • Reproducible Patch Script (scripts/apply_patches.sh): Supports idempotent forward apply, --check dry-run verification, and --reverse (-R) clean rollback back to stock llama.cpp.
  • Multi-Arch CUDA Builder (scripts/build_cuda.sh): Ninja CUDA builder supporting explicit CUDA_ARCH via CLI/env or automatic nvidia-smi compute-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 optional sccache/ccache and mold via command -v (keeping configs/rtx-3090/build_rtx3090.sh intact).
  • 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-sampling across docs/RTX3090_PRESETS.md, and bumped package metadata (pyproject.toml, rooflab/__init__.py, CITATION.cff, CHANGELOG.md) to 0.6.1.
  • CI Reliability Fix (tests/test_strix_halo_kit.py): Made test_power_sampler_rapl_fallback deterministic via baseline-read polling and atomic os.replace updates, eliminating a timing race on loaded macOS CI runners.

Verification

  • Fresh /tmp clean-apply + idempotent + --reverse roundtrip on e300919cc704ddde3a8a8346a8714f57eeeee71b: PASS
  • From-scratch Ninja CUDA build (scripts/build_cuda.sh, sm_86): [413/413] PASS, 0 spill stores/loads across 1,071/1,071 audited custom/patched kernels, RTX 3090 smoke check (gemma-4-E2B Q8_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/431 unit tests OK, scripts/repo_integrity_check.py 0 findings, scripts/privacy_audit.py 0 findings, ledger verify 92 entries ok: true
  • GitHub Actions 3-OS CI (ubuntu-latest, macos-latest, windows-latest x Python 3.10/3.12 + Full Forensics): 8/8 green