Skip to content

PolyStrata v0.2.20-poly.11

Latest

Choose a tag to compare

@VecSzn VecSzn released this 06 Dec 03:46

Stability, long-context reliability, opt-in Looped Qwen4 (T=3) sidecar support, Inkling 2 BasinKV, 2.66× faster Qwen4 QSA prefill, 18 community PRs, and clean full-platform rebuilds across all 13 packages (restoring all 10 AMD HIP prebuilts alongside Windows CUDA 13, Linux CUDA 13, and macOS Metal) — with 0 bytes diff to upstream strata core.

Highlights

  • Clean Windows ABI rebuild + permanent build guards (#439, #448, #492): Eliminates the stale incremental .obj Options ABI mismatch that broke Gemma 4 and Inkling 2 Mini in poly.10 Windows CUDA builds by adding link-time & runtime cross-TU ABI verification (verify_poly_engine_abi, ABI rev 2), forcing UTF-8 codepage + stale-dep detection in setup.py, and wiping build-poly by default in make_poly_release.py.
  • Qwen4 80K+ multi-turn corruption & crash fix (#444): Fixes four interacting long-context bugs (stage_/up_/ahead_ stream races under VRAM shrink, BasinKV cap_override=64 vs transfer_cap=8 staging bounds, Q8 vs FP16 attn_piece(), and NaN/-inf router bounds). Verified live on RTX 4090 D (UD-Q4_K_XL, --basinkv --vram-reserve-mib 8192) across 13 turns to 106,524 tokens at flat 13,541 MiB VRAM, 0 crashes, 0 !!!!, and exact NIAH recall.
  • Opt-in Looped Qwen4 sidecar support (--loop-adapter, --loop-passes, --loopcd-hidden): Runs MIT-licensed 22.8 MiB zero-LoRA recurrence sidecars (sliderforthewin/Looped-Qwen4-35B-A3B mlx/default_t3 & sushi/default_t3) over frozen Qwen4-35B-A3B weights with pass-isolated GDN & QSA KV/indexer slots. Measured on RTX 4090 D (UD-IQ2_XS, 96 tokens): --loop-passes 1 is 96/96 bit-exact with stock (+0 MiB VRAM); T=3 runs at 115.9–119.2 tok/s (--no-draft) and 165.3 tok/s with default embedded MTP (82.6% acceptance, +422 MiB peak VRAM), matching sushi, mlx, --no-draft, MTP, and --basinkv 96/96 exact. See docs/research/looped_qwen4_rfc.md.
  • Major community speedups & features (18 PRs integrated):
    • Inkling 2 opt-in --basinkv (#435, @prajwal257, plus CUDA graph capture/replay scratch cleanup in 7cef9524a), live-verified bit-exact on RTX 4070 & RTX 4090 D.
    • Qwen4 QSA 8-head register prefill kernel (#470, @drakarah, 491,520/491,520 bit-exact) & Metal simdgroup_matrix QSA batch rewrite (#476, @NightRain233).
    • Opt-in --stage-next (#462, @drakarah, hardened in 7cef9524a: 16/16 exact greedy parity, prompt 1,845 → 2,647.7 tok/s +43.5% under partial offload on RTX 4090 D), Linux --pin-workers (#486, @drakarah), Qwen4 GPU prompt row tables (#463, @drakarah), and AVX2 / AVX-VNNI 4-row bit-exact CPU quant kernels (#468, #487, #488, @drakarah).
    • Per-request logit_bias in strata-poly (#436) with hard exclusion (<= -100), soft biases, and safe all-ban fallback.
    • Opt-in --basinkv for Groot (qwen35moe) (#493) + automatic UMA iGPU --basinkv guard for AMD gfx1103/1150/1151/1152 & UMA devices (#489).
    • RX 7800 XT (gfx1101) hipBLASLt 100500 tuning table (#432, @sh17632, bundled in both Windows & Linux rdna3 packages).

Fixed & Improved

  • Hugging Face pinned revisions (#471, #446): Refreshed pinned SHAs for unsloth/Qwen4-35B-A3B-GGUF (85a51187d937d87d799be9a10fa30732ee31432c) and LiquidAI/LFM2.5-24B-A2B-GGUF (d790f111166905bfb36a81e12a403701ac23a1ca), verified HTTP 200 across all pinned repos, with offline + opt-in live tests.
  • Sentinel n_expert routing OOB crash (#418, #483): Guarded degenerate/NaN router rows across CUDA/HIP/Metal route_kernel(), moe_rows(), bell_ring*, bell_job*, and d_zslots_ (+1 trailing zero slot).
  • Doorbell stream-sync abort & teardown safety (#419): Tracks queued doorbell rings accurately in bell_pending_ across graph replays and direct_ paths, serves pending rings in sync_st(), and unwinds safely in ~Engine()/~Inkling2()/~Qwen4().
  • 32 GB RAM PLE warmer budget: Respects pending cold-expert RAM budget in Engine::on_loaded() so the 11.52 GiB Qwen4 PLE shard doesn't cause paging thrash on 32 GB PCs.
  • Setup, Server & Mac improvements: setup_mac.py --custom-gguf honored (#414); Qwen4 custom GGUF mtp-*.gguf sidecar discovery across single & multi-shard splits (#481, @Rustandi); reasoning_effort: "xhigh" accepted for Qwen3.8 (#445, @phorel); lazy cold expert pool allocation when all experts fit in VRAM (#429, @NightRain233); Windows CI timing flakes fixed (#434, #461, @NightRain233).
  • Community benchmarks added: RTX A5000 Laptop Qwen4 DFlash2 vs MTP (#442, @DonGlover), first physical AMD RX 9070 XT 16 GB HIP + BasinKV 8K–505K NIAH verification (#443, @shoeb0x), and RX 7900 XTX suite (#494, @dontaskmeformyname).

Verification & Scope

  • Upstream boundary: 0 bytes diff across upstream strata core (engine/src/core, engine/src/program, engine/src/kernels, engine/include/strata/core, engine/include/strata/kernels).
  • Independent Red-Team Acceptance Gate: UNCONDITIONAL GO (0 P0 / 0 P1) on commit 7cef9524a (all 6 crafted untrusted safetensors/JSON exploits cleanly rejected EXIT=1, live CUDA 13 & unit tests all green).
  • Pre-release real package E2E verification (using the exact archives below):
    • Windows x64 CUDA 13 (RTX 4070 Laptop 8 GB): Unpacked zip passed poly_will_not_start(), strata-vision.exe --version, Gemma 4 26B-A4B (default / --no-graphs / --no-gpu-experts / MTP 9/9, bit-exact), Inkling 2 Mini (default + --basinkv, 32/32 bit-exact), and Qwen3.6 35B-A3B (MTP 5/6).
    • Linux x64 CUDA 13 (RTX 4090 D 24 GB): Unpacked tarball passed poly_will_not_start(), strata-vision --version, and live Qwen4-35B-A3B-UD-IQ2_XS inference across default MTP, --no-draft, and --loop-adapter.
    • macOS arm64 Metal (Apple M5 Ultra 256 GB): Unpacked tarball (all 12 .metal shaders + strata-quant-common.h) passed strata-vision --version, 87/87 ctest, and live Qwen4-35B-A3B-UD-IQ2_XS Metal inference (118.59 tok/s, MTP 10/21).
    • AMD HIP (10 family packages: Windows ×5, Linux ×5, ROCm 10.2.0a20260930): All 10 archives cleanly rebuilt from 7cef9524a, strictly < 2 GiB, with BUILD.json, bundled ROCm/CRT libs, hipBLASLt 100500 tuning tables (including new gfx1101 in rdna3), zero missing PE/ELF dependencies (missing=[] / ldd missing=0), and isolated standalone strata-poly --help verified. Not re-executed on physical AMD GPU hardware for 7cef9524a (prior poly.10 HIP + BasinKV binary was community-verified on physical RX 9070 XT in #443).

Ready-made engines (SHA-256)

Source commit: 7cef9524a6e938cc12a62da17e0380333938b05d (ENGINE+VISION: 2b4f42c548a8bd87, ENGINE_ONLY: e46c569f3d3b738d, VISION_ONLY: ff10911c24d92e04).

Asset Bytes SHA-256
strata-poly-windows-x64-2b4f42c548a8bd87.zip 90,339,077 a15a184b385a1c84d26f7cbbe066ce39b2781100b4e61cc7a23bb6bc797c1b93
strata-poly-linux-x64-cuda13-2b4f42c548a8bd87.tar.gz 90,280,748 3ba1593a6ade5b541ac0afa546e7a7c54a67d63c1f471b62cf97b7732b75d8d9
strata-poly-macos-arm64-2b4f42c548a8bd87.tar.gz 1,646,518 157604ecf72d5e822255bc5097af78141c89e712855d2071847c1cf5c4a732aa
strata-poly-windows-x64-hip-rdna4-e46c569f3d3b738d.zip 531,826,717 7daf9d2769a4fd4068bbcabfe71dc456a1e46810f4ee75e966e19f4637038e50
strata-poly-windows-x64-hip-rdna3-e46c569f3d3b738d.zip 207,918,471 dd5fe1d6252721e6ae8fb90d89f3aa5945272fce47ba51d1a3dc483eba036698
strata-poly-windows-x64-hip-igpu-e46c569f3d3b738d.zip 152,750,148 b728b4c75044d424a0bc1552ca1564cf06b6894cda7d2f0edc8e3bf40ce57f25
strata-poly-windows-x64-hip-rdna2-e46c569f3d3b738d.zip 161,866,619 1b16dd73bfc7b7045d4b17c2bc1d323e86b22f464ea047ef63c667d813b82297
strata-poly-windows-x64-hip-rdna1-e46c569f3d3b738d.zip 137,360,030 5e11da5c5dcae9f9cb846caaa69dc723713a1fd61d20a54bf60e6e258888fe85
strata-poly-linux-x64-hip-rdna4-e46c569f3d3b738d.tar.gz 548,328,869 a6378c0fc3a69105d03f8823ccaaf05512b62b780d38e266866621e43d06f0a6
strata-poly-linux-x64-hip-rdna3-e46c569f3d3b738d.tar.gz 223,976,838 fef928d267c45805448dd67ad2b06131fb3bb412586afa1406e43812abc32e4f
strata-poly-linux-x64-hip-igpu-e46c569f3d3b738d.tar.gz 169,573,495 6cffa8ea685c3e52274a7aac418772000000691aba1e80cf3e5c4b06c85e22c9
strata-poly-linux-x64-hip-rdna2-e46c569f3d3b738d.tar.gz 178,370,649 85d32559d35fb60f3038709908f4c9b4dc686bce48dfb37ffc28b5591cc3cb5d
strata-poly-linux-x64-hip-rdna1-e46c569f3d3b738d.tar.gz 154,181,620 528b7cdfae5912649c0c6975909f13b0c4466893d349d8edf15ddc749e370481

Credits

Huge thanks to everyone who contributed PRs, hardware measurements, bug reports, and research to v0.2.20-poly.11: