Skip to content

rooflab v0.6.0

Choose a tag to compare

@scientist42-lab scientist42-lab released this 03 Dec 23:08
· 2 commits to main since this release

rooflab v0.6.0

Zero-dependency hardware roofline toolkit, GGUF weight-space inspector, paired AB/BA statistical certification gate, and 0-spill CUDA/speculative/GPU-sampler llama.cpp patchset (43 total landed patches, verified across 5 NVIDIA architectures sm_80/86/89/90/120 and 3-OS CI on Linux, macOS, and Windows).

Highlights

1. 8 New 0-Spill CUDA, Speculative Decoding & 1-Warp GPU Sampler Patches (patches/ 22..26)

All 8 kept v0.6.0 patches stack cleanly atop 00..20 with 0 register spills across sm_80/86/89/90/120, 0 NaNs, VmSwap = 0 kB, and 15/15 counterbalanced N=6 AB/BA RTX 3090 wins (p_perm <= 0.0312):

  • Patch 22 (22_qwen_gdn_sublayer_f16state.patch): Qwen3.x GDN sublayer fusion (F32 lossless default, 80/80 5-arch 0 spills) plus opt-in -cts f16 state compression (-72 MiB VRAM on Qwen/Qwen3.8-27B, -30 MiB on 35B).
  • Patch 22b (22b_soa32_qwen_triple_and_grouped_verify.patch): IQ4_XS register-only PRMT LUT, carry-free half-IDP4A Q6_K, and CUDA-Graph-safe grouped MUL_MAT_ID verify (empero-ai/Qwen3.8-35B-A3B-Distill MTP K=6 +11.39%, MTP K=3 warm 400.05 t/s).
  • Patch 23 (23_inkling_loop_megakernel.patch): Inkling-2-Mini 48L coalesced SoA and loop super-fusion (905/905 5-arch 0 spills, 133.56 t/s, 2.223x vs stock).
  • Patch 24 (24_gemma4_e2b_e4b_persistent_mega.patch): Gemma-4-E2B/E4B persistent PLE megakernel and direct Q8_1 short FlashAttention (1,010/1,010 5-arch 0 spills, 18/18 bit-exact: E2B 398.07 t/s, E4B 231.54 t/s, G4-26B 279.26 t/s).
  • Patch 25a (25a_spec_labd_lookup_fusion.patch): Lossless LABD lookup+draft fusion and DFlash2 tree verification (Gemma-4-26B MTP K=6 395.08 t/s +7.85%, -9.61% J/tok, 6/6 exact).
  • Patch 25b (25b_mtp_draft_vocab_d2t.patch + patches/build_d2t_sidecar.py): 100% opt-in lossless runtime d2t draft-vocabulary lm_head sidecar (6.06x smaller draft head; Qwen/Qwen3.8-27B MTP K=6 +14.72% cold / +21.27% code edit, empero-ai/Qwen3.8-35B-A3B-Distill MTP K=3 +7.48% cold, 6/6 exact).
  • Patch 25c (25c_direct_q8_mq_fattn_verify.patch): Direct Q8_0 KV multi-query FlashAttention verify for B=4..16 (40/40 5-arch 0 spills, 6/6 bit-exact).
  • Patch 26 (26_gpu_stochastic_sampler_1warp.patch): 1-warp GPU-resident stochastic sampler (temp, top_k, top_p, min_p) eliminating full-vocab logit PCIe D2H on stochastic chat (40/40 5-arch 0 spills; OpenAI -bs T=0.7 top_p=0.9: Gemma-4-26B +59.01% vs stock, empero-ai/Qwen3.8-35B-A3B-Distill +65.65% vs stock, 6/6 greedy exact).
  • Honest Negative Proof (Reverted Patch 21): 21_lfm25_400plus_megakernel passed 5-arch 0-spill and 6/6 exact parity checks yet regressed -1.23% end-to-end on LFM2.5-24B Q8_0 KV inside the 38-layer CUDA Graph; cleanly reverted via git apply -R and not shipped.

2. Full 15-Suite RTX 3090 Cumulative Matrix & 4-GPU Cross-Arch Calibration

  • RTX 3090 v0.6.0 Cumulative (15/15 p_perm <= 0.0312, VmSwap = 0 kB, 0 NaNs):
    • 9 Plain B=1 models: 1.5974x geometric mean speedup, -38.24% mean J/tok.
    • 4 Speculative suites: 1.8504x geometric mean speedup, -46.54% mean J/tok.
    • All 13 schema benchmarks: 1.6713x geometric mean speedup, -40.80% mean J/tok, plus +59.01% / +65.65% OpenAI T=0.7 stochastic chat wins.
  • 4-GPU Cross-Arch rooflab fit Calibration (RTX 5090 sm_120, RTX 4090 sm_89, RTX 3090 sm_86, NVIDIA L4 sm_89): 22/22 live counterbalanced AB/BA wins (1.536x geo, -36.38% mean J/tok), reducing rooflab fit MAPE from 21.10% raw to 7.47% per-arch calibrated MAPE (8.4% pooled, 10.5% LOGO-CV).

3. Cross-OS CI, Packaging & Release Hygiene

  • Full 8/8 green GitHub Actions matrix across ubuntu-latest, macos-latest, and windows-latest (Python 3.10 and 3.12), verifying zero-numpy stdlib execution and native CPU probe compilation on all three operating systems.
  • Aligned package metadata (pyproject.toml, rooflab/__init__.py, CITATION.cff, SECURITY.md, rooflab --version) to 0.6.0.
  • Restored standard GitHub-recognized MIT text in LICENSE, updated docs/ROLLBACK_AND_RELEASE_RUNBOOK.md to cover all patches 00..26 and all v0.6.0 runtime kill-switches, and verified 38/38 patches/MANIFEST.md SHA-256 digests and the 92-entry SHA-256 hash-chained experiment ledger.
  • Note on NVML Energy Measurements: Reported J/tok values measure NVIDIA board power via NVML only (excluding +40-80 W host CPU/RAM/PSU draw; RTX 3090 runs at 300 W cap). See README.md for full methodology caveats and upstream vs. community-distill model provenance disclosures.