Repository navigation
rooflab v0.6.0
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 (F32lossless default,80/805-arch0spills) plus opt-in-cts f16state compression (-72 MiBVRAM onQwen/Qwen3.8-27B,-30 MiBon 35B). - Patch
22b(22b_soa32_qwen_triple_and_grouped_verify.patch):IQ4_XSregister-onlyPRMTLUT, carry-free half-IDP4AQ6_K, and CUDA-Graph-safe groupedMUL_MAT_IDverify (empero-ai/Qwen3.8-35B-A3B-DistillMTP K=6 +11.39%,MTP K=3warm400.05 t/s). - Patch
23(23_inkling_loop_megakernel.patch):Inkling-2-Mini 48LcoalescedSoAand loop super-fusion (905/9055-arch0spills,133.56 t/s,2.223xvs stock). - Patch
24(24_gemma4_e2b_e4b_persistent_mega.patch):Gemma-4-E2B/E4Bpersistent PLE megakernel and directQ8_1short FlashAttention (1,010/1,0105-arch0spills,18/18bit-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 andDFlash2tree verification (Gemma-4-26B MTP K=6 395.08 t/s +7.85%,-9.61% J/tok,6/6exact). - Patch
25b(25b_mtp_draft_vocab_d2t.patch+patches/build_d2t_sidecar.py): 100% opt-in lossless runtimed2tdraft-vocabularylm_headsidecar (6.06xsmaller 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/6exact). - Patch
25c(25c_direct_q8_mq_fattn_verify.patch): DirectQ8_0KV multi-query FlashAttention verify forB=4..16(40/405-arch0spills,6/6bit-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/405-arch0spills; OpenAI-bsT=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/6greedy exact). - Honest Negative Proof (Reverted Patch
21):21_lfm25_400plus_megakernelpassed 5-arch0-spill and6/6exact parity checks yet regressed-1.23%end-to-end onLFM2.5-24B Q8_0KV inside the 38-layer CUDA Graph; cleanly reverted viagit apply -Rand not shipped.
2. Full 15-Suite RTX 3090 Cumulative Matrix & 4-GPU Cross-Arch Calibration
- RTX 3090
v0.6.0Cumulative (15/15p_perm <= 0.0312,VmSwap = 0 kB,0NaNs):9PlainB=1models:1.5974xgeometric mean speedup,-38.24%meanJ/tok.4Speculative suites:1.8504xgeometric mean speedup,-46.54%meanJ/tok.- All
13schema benchmarks:1.6713xgeometric mean speedup,-40.80%meanJ/tok, plus+59.01%/+65.65%OpenAIT=0.7stochastic chat wins.
- 4-GPU Cross-Arch
rooflab fitCalibration (RTX 5090 sm_120,RTX 4090 sm_89,RTX 3090 sm_86,NVIDIA L4 sm_89):22/22live counterbalancedAB/BAwins (1.536xgeo,-36.38%meanJ/tok), reducingrooflab fitMAPE from21.10%raw to7.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, andwindows-latest(Python3.10and3.12), verifying zero-numpystdlib 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) to0.6.0. - Restored standard GitHub-recognized
MITtext inLICENSE, updateddocs/ROLLBACK_AND_RELEASE_RUNBOOK.mdto cover all patches00..26and allv0.6.0runtime kill-switches, and verified38/38patches/MANIFEST.mdSHA-256 digests and the 92-entry SHA-256 hash-chained experiment ledger. - Note on NVML Energy Measurements: Reported
J/tokvalues measure NVIDIA board power via NVML only (excluding+40-80 Whost CPU/RAM/PSU draw; RTX 3090 runs at300 Wcap). SeeREADME.mdfor full methodology caveats and upstream vs. community-distill model provenance disclosures.