Skip to content

release(engine): hanzo-engine 1.7.109 (hanzo-ml 0.11.124, Bonsai-2 ternary/AFQ/DFlash2/GDN, Vulkan 27B fix, ReplayGDN, PhasePolicy, ENGINE_* env) - #134

Merged
zeekay merged 6 commits into
mainfrom
release/engine-1.7.109
Nov 22, 2026

Conversation

@zeekay

@zeekay zeekay commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Upgrades to hanzo-ml 0.11.124 (hanzo-kernels 0.11.44, hanzo-metal-kernels 0.11.49, hanzo-rocm-kernels 0.11.47, hanzo-kernel 0.2.48, hanzo-flash-attn 0.11.38, hanzo-flash-attn-v3 0.11.12) directly from crates.io:
    • Live qualified DSL selection across Vulkan (22x-249x end-to-end speedup across 2B, 9B, 27B), Metal, and multi-backend FWHT, while preserving conservative Legacy defaults on CUDA and ROCm (ML_DSL_POLICY / ML_*_IMPL instant rollback).
  • Bonsai 1 & 2 Full Ternary Stack (PQ2_0, PTQ1_0, Q1_0, Q2_0, MLX-2bit AFQ, MTP, DFlash2):
    • Zero-cast GgufMatMul + 1-launch fused rms_norm_hadamard_fwht_iq_q8 + shared IqQ8Activation sibling reuse (+44.1% on 2B PTQ1_0, +26.8% on 2B PQ2_0, +27.3% on 2B Q2_0, +17.4% on Qwen3.8-27B Q4_K_M, +8.4% on 9B PQ2_0 vs Prism llama.cpp).
    • Fused CUDA GDN (causal_conv1d_cuda, fused_gdn_gating_cuda, in-place F32 state pool), dynamic per-module MLX-2bit AFQ (4096/1024) + offline RMSNorm sign folding + language_model.lm_head, and CUDA DFlash2 (2.84x speedup on 27B, 6.22 tok/round).
  • Vulkan 27B >4 GiB maxStorageBufferRange Fix (TokEmbedding::QuantizedHost):
    • Prevents 5.09 GB F32 token_embd.weight SSBO clamping on token IDs >= 209,715 on Vulkan/ROCm.
  • HybridStateContract, ReplayGDN & PhasePolicy / Hybrid Prefix Radix Cache:
    • Multi-session COW fork_prefix, speculative rejection rollback_speculative, slot-eviction zero-leak stress suite, opt-in ReplayGDN (ENGINE_REPLAY_GDN), multi-turn hybrid KV+GDN+Conv1D prefix reuse (6.78x initial single-sample / 6.73x warmed 10-rep synthetic 5-turn microbench median, 95% CI [5.36x, 10.40x], 0.0 ULP GDN/Conv1D error), and phase-aware KV precision (ENGINE_KV_PHASE_POLICY=phase_aware:4096, 2.0x analytic tensor payload 32K KV memory savings).
  • Canonical ENGINE_* Environment Namespace:
    • Migrates 54 files of engine/runtime/cache/speculative/router knobs to ENGINE_* with silent HANZO_* fallback (13/13 precedence & shim tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant