Repository navigation
v2.1.0 β Stockfish-PVS v2 (Sweet Spot, M=7), 4 Unlocked RouteCrack Techniques (60.4 tok/s Peak) & Apple Silicon / Fedora Support
Release Notes β nemotron-30b-cpu-256k & llama-modchip
π Quick Links: Overview (
README.md) Β· Technical Paper (ARCHITECTURE.md) Β· 96+RouteCrack + Stockfish-PVSTechniques (speculative/ROUTECRACK_TECHNIQUES.md) Β· Engineering FAQ (FAQ.md)
π v2.1.0 β Stockfish-PVS v2 (Sweet Spot, M=7), 4 Unlocked RouteCrack Techniques (60.40 tok/s Peak), & Multi-Platform Expansion (Apple Silicon M4 Pro + Fedora Ryzen 8745HS)
Release Date: November 2026
Highlights: Combines Chess-Engine Principal Variation Search (PVS) + 4-Way Bucketed Zobrist Transposition Tables (StockfishDrafter, 1.64 MB L2/L3) with the RouteCrack statistical speculative engine, unlocking 4 previously dormant RouteCrack techniques (including Singular Horizon Extension M=7), pushing live 25K-context code refactoring on AMD Ryzen 9 9955HX (0 GPUs) to 48.39 tok/s average / 60.40 tok/s peak (mean len = 6.90 tokens/step, 96.39% acceptance) and 85.00% draft acceptance on technical prose, while adding community-verified support for Apple Silicon (M4 Pro 24 GB) and Fedora 44 (AMD Ryzen 7 8745HS GEEKOM A8).
1. βοΈ Stockfish-PVS v2 (Sweet Spot, M=7) Speculative Acceleration (rc_stockfish.h, ngram-map.cpp)
On a CPU-hosted Sparse MoE + Mamba-2 hybrid (Nemotron-3.5-30B-A3B), every drafted token activates additional routed experts from DDR5 RAM (~0.30x single-token cost per drafted token) and any rejected token triggers an 18.4 MB Mamba-2 recurrent state rollback (slot.spec_ckpt). Consequently, net wall-clock speedup follows the CPU-MoE Golden Equation:
During the RouteCrack research campaign (96+ techniques documented in speculative/ROUTECRACK_TECHNIQUES.md), several high-recall predictors could not be enabled in production because static predictors trained on the same corpus make correlated errors when confidence drops below 84%.
StockfishDrafter (speculative/cpp/rc_stockfish.h) solves this by maintaining a 1.64 MB L2/L3-resident (2.5% of 64 MB L3), zero-allocation Chess-Engine Search state updated continuously on the live session stream:
-
4-Way Bucketed Zobrist Transposition Tables (
tt5,tt4,tt3=384 KB) with 16-bit verification signatures (sig16), Top-2 candidate tracking (tok1/cnt1,tok2/cnt2), and Stockfish age-based generational replacement. -
Countermove Table (
1,024 KB,65,536 Γ 4) & Continuation History Table (256 KB) capturing immediate `(t_{-2}, t_{-1}) \to t_0$ and$t_{-1} \to t_0$ live session dynamics. -
Principal Variation Search (PVS) with Late Move Reductions (LMR): Searches the principal candidate at full horizon depth while applying LMR depth reductions and stronger certainty gates to secondary moves (
m > 0).
The 4 RouteCrack Techniques Unlocked by Stockfish-PVS v2:
-
Technique #1 β Online Session Trie Rescue (
rc_trie_v2.h+Stockfish-PVSGate):- Rescues novel in-session identifiers, variable names, and file paths when the static 8-level FNV-64 Hash Cascade misses (
best_conf < min_c), providedOnlineTrieV2has session support (ot_cnt >= 2,ot_conf >= 0.78) and is confirmed by the orthogonalStockfishZobrist TT (sf_has_cand, orot_cnt >= 4 && ot_conf >= 0.90). -
Marginal Precision:
92.19%(+59accepted tokens, only5wasted).
- Rescues novel in-session identifiers, variable names, and file paths when the static 8-level FNV-64 Hash Cascade misses (
-
Technique #2 β Top-4 Cascade Disambiguation via Orthogonal Zobrist TT:
- Inspects
tok[1..3]inhc_top4_k*.binwhenevertok[0]falls in the uncertain band (0.55 <= c0 < min_c). If an alternativealt_thas a strong live-session Zobrist TT match (alt_sf >= 640, exacttt5/tt4hit) that strictly beatstok[0](alt_sf > sf_t0 + 250),Stockfish-PVSpromotesalt_t.
- Inspects
-
Techniques #5 & #89 β 11,382-Entry Multi-Token Macro Codebook (
macro_codebook.bin):- Enables multi-token structural chains (
1..15tokens long,>= 90%empirical precision) at$d=0$ and unlocks Singular Horizon Extension across the macro chain. -
Marginal Precision:
91.81% -> 96.44%(+92accepted tokens, only8wasted).
- Enables multi-token structural chains (
-
Techniques #17 & #73 β Singular Horizon Extension (
--spec-ngram-simple-size-m 7) & Consensus Integrity Fix:- Extends the draft horizon from
$D=4$ (M=5) up to$D=7$ (M=7) exclusively on "singular" beams: verified 2-hit in-context trajectories (true_consensus_hits == d), Macro Codebook chains (used_macro), or Singular Cascade + Stockfish TT locks (best_conf >= 0.95 && sf_best >= 600). -
Consensus Integrity Fix: Separates
true_consensus_hits(strictly 2-hit in-context matches) fromconsensus_hitsso single-hit context matches rescued byRouteCrackat$d=0..2$ cannot masquerade as 2-hit trajectories at$d \ge 3$ . -
Marginal Precision at
$D=5..7$ :98.18%(M=6) to98.74%(M=7:+78accepted tokens,1wasted,-7rollbacks).
- Extends the draft horizon from
2. π Verified Benchmarks: Held-Out Ablation (77,456 Tokens) & Live CT 100 Telemetry
A. Held-Out Corpus Ablation (77,456 Nemotron-3.5 Tokens, 351 Contexts β speculative/cpp/test_synergy.cpp)
| Speculative Configuration | Drafted ( |
Accepted ( |
Wasted ( |
Token Precision | 0-Rollback Steps | Mamba-2 Rollbacks | CPU-MoE WallGain |
|---|---|---|---|---|---|---|---|
1. RouteCrack Baseline (M=5, Static Cascade) |
6,332 | 5,440 | 892 | 85.91% |
87.31% |
482 | +3,540.4 |
2. + Stockfish-PVS v1 (M=5, Zobrist TT + PVS) |
6,329 | 5,459 | 870 |
86.25% (+0.34%)
|
87.84% (+0.53%)
|
461 (-21) |
+3,560.3 (+19.9)
|
3. + Stockfish-PVS v2 Sweet Spot (M=7, +Trie +Top4 +Macro +Singular) |
6,555 | 5,663 | 892 | **86.39% (+0.48%) ** |
**88.35% (+1.04%) ** |
**450 (-32) ** | **+3,696.5 (+156.1) ** |
+223additional accepted tokens (5,440 -> 5,663) with ZERO additional wasted tokens (892 -> 892,100.0%net marginal precision) and-32fewer Mamba-2 rollbacks (482 -> 450).
B. Live 5-Stage Production Benchmark on CT 100 (AMD Ryzen 9 9955HX, 0 GPUs, 22.2K -> 27.7K Context)
Stage & Workload (Nemotron-3.5-30B-A3B-Q4_0) |
Active Context | M=5 Speed (Avg / Peak) |
Stockfish-PVS v2 (M=7) Speed (Avg / Peak) |
Draft Acceptance (Acc / Drafted) |
Mean Spec Length (tok/step) |
|---|---|---|---|---|---|
Atto 1A: Warm TTFT + <tool_call> Read (50 tok) |
22,299 tok |
30.84 tok/s (2.60 s) |
34.52 tok/s (2.45 s wall) |
83.33% (35 / 42) |
4.18 tok/step |
Atto 1B: Prefill harp_cache.py (3,089 tok) + 500 tok Code |
25,388 tok |
40.91 / 45.43 tok/s (12.22 s) |
48.39 tok/s avg / 60.40 tok/s peak (10.33 s) |
96.39% (401 / 416) |
6.90 tok/step (up from 5.47) |
Atto 2A: Thread-Safe Refactoring (400 tok Mixed Code) |
26,419 tok |
27.80 / 41.20 tok/s |
28.61 tok/s avg / 48.47 tok/s peak |
86.10% (223 / 259) |
4.66 tok/step |
Atto 2B: From-Scratch Concurrent Stress Test (350 tok) |
26,431 tok |
18.61 / 21.84 tok/s |
18.66 tok/s avg / 21.89 tok/s peak |
56.38% (53 / 94) |
2.33 tok/step |
Atto 3: Architectural & Security Audit in Italian (350 tok) |
26,959 tok |
18.58 / 20.50 tok/s (80.6% acc) |
18.76 tok/s avg / 20.78 tok/s peak |
85.00% (34 / 40) (up from 67.4%) |
2.48 tok/step |
Live Multi-Turn Claude Code Session (4,096 tok Turn 3) |
27,713 tok |
19.00 / 30.87 tok/s (59.1% acc) |
20.68 tok/s avg / 39.28 tok/s peak (-17.5 s) |
67.98% (1,055 / 1,552) |
2.68 tok/step |
3. π Multi-Platform Support & SSE Gateway Enhancements (Co-Authored with @jarorosFork / Oleksandr Nazar)
Integrated community contributions from Oleksandr Nazar (@jarorosFork) (commits 9509f4c, 93b6381, d740063 -> 6694b0b):
apple-silicon/β Apple Silicon (M4 Pro 24 GBUnified Memory) Metal Stack:- Dedicated setup scripts (
apple-silicon/setup.sh,apple-silicon/start_server.sh,apple-silicon/start_gateway.sh,apple-silicon/chat.py,apple-silicon/bench_128k.py) runningNemotron-3.5-30B-A3Bat47β49 tok/sdecode and256β549 tok/sprefill up to 128K context (384 MBKV cache,0swap).
- Dedicated setup scripts (
fedora/β Fedora 44 / AMD Ryzen 7 8745HS (GEEKOM A8, 8C/16T Zen 4, 64 GB DDR5):- All-in-one setup, server, gateway, and browser web chat UI (
fedora/nemotron.sh).
- All-in-one setup, server, gateway, and browser web chat UI (
gateway/sse_gateway.pyβ Tool-Call Resilience & Cross-Platform Portability:_write_as_bash()Fallback: Automatically converts raw multilineWritetool calls into safecat << 'EOF' > ...Bashcommands viashlex.quote()when unescaped quotes in100+line code payloads break LLM JSON string serialization._coerce_xml_param()Schema-Aware Coercion: Coerces XML<function=Name><parameter=key>value</parameter></function>parameters to native JSON integers, numbers, booleans, arrays, or objects using the client's tool JSON schema (_extract_param_types()).- Portable
HARP_CACHE& Environment Config: Safely guards/dev/shmusage on macOS (os.path.isdir("/dev/shm")) and addsGATEWAY_HOST,GATEWAY_CORS_ORIGIN, andGATEWAY_SYSTEM_PROMPTenvironment variables.
4. π‘οΈ Microarchitectural & Documentation Audit Fixes
- Bit-Exact C++ & Patch Verification: Verified
0diff betweenpatches/zen5-nemotron-256k-optimizations.patch/speculative/cpp/and the live production engine onCT 100. - Transparent Layer & KV Accounting: Clarified across
README.md,ARCHITECTURE.md, andFAQ.mdthe exact distinction between the52logical blocks (23 Mamba-2 SSM + 23 Sparse MoE + 6 GQA,46non-attention tensor blocks) and the exact 256K KV cache sizes (384 MBraw /432 MBsymmetricQ4_0& dynamic EAKVQ8_0/Q4_0vs624 MBstatic--cache-type-k q8_0 --cache-type-v q4_0). - Automated Build & Service Integration: Updated
install.sh,scripts/build_zen5_llama.sh,systemd/nemotron-256k.service,scripts/llama_modchip.py, andscripts/check_cpu_readiness.pyto deployspeculative/cpp/rc_stockfish.hand--spec-ngram-simple-size-m 7out of the box.
π§ v2.0.0 β llama-modchip (v0.9 Public Beta): "Priiloader for CPU GGUF Inference"
- Introduced
scripts/llama_modchip.py: Model-agnostic.ggufbinary header inspector (< 5 ms), Linux CPU/L3/THP topology profiler, Architecture Safety Locks (LLAMA_SWA_STRIDE=43:1 Interleaved SWA for Pure GQA models), and live 48-byte/dev/shm/llama_modchip.binruntime controller + Curses TUI. - Verified across 4 GGUF architectures on Dual-CCD AMD Ryzen 9 9955HX (
Nemotron-3.5-30B-A3Bat 256K,Qwen3-30B-A3Bat+38.5%decode viaLLAMA_MOE_TOP_K=4,Nemotron-H-8B, andLlama-40L).