Skip to content

Qwegn v0.48.2

Latest

Choose a tag to compare

@Andrei-cloud Andrei-cloud released this 05 Dec 21:32
· 1 commit to main since this release

Patch release delivering HyperStream & speculative-decoding performance optimizations across Apple Silicon M1–M6 (0-ULP deferred GDN state replay, 128-GPR HC/AQ/MoE specialization unlocked on both M5+ and M1/M2, 0 B-spill HQ4_G32 GEMV across M1–M6, Apple9 96-GPR tier + Metal 3.2 QSA simdgroup_half8x8 MMA + 65K two-stage radix top-K, pipelined greedy DFlash-2 + on-device GPU PLE hashing), offline qwg export-taps with canonical tap == numLayers capture, .pkg SHVQ LUT bundling, FC 242 MoE softcap deduplication, and Wave P1–P2 host/loader/door-planner convergence.

Performance Gains (5-Sample Paired Interleaved A/B, --kv-mode q4 --no-profile, 0 Steady Allocs)

Native Apple M5 Max (40-Core Apple10 NAX, 128 GiB UMA) — Pre-Wave 2 Baseline (c81fca67) vs v0.48.2

Model / Workload Baseline v0.48.2 Paired Ratio (±MAD) Gain SHA-256 Parity
Qwen4-35B-A3B-QWP_4 (code_edit, d=3 hybrid, --strict) 206.99 tok/s 324.43 tok/s 1.608× ±0.052 +60.8% Exact
Qwen4-35B-A3B-QWP_4 (code_edit, w=8 ngram, --strict) 206.79 tok/s 318.13 tok/s 1.564× ±0.016 +56.4% Exact
Qwen4-35B-A3B-QWP_4 (code_edit, d=0 serial, --strict) 108.69 tok/s 136.12 tok/s 1.235× ±0.026 +23.5% Exact
Qwen4-35B-A3B-QWP_4 (novel, d=3 hybrid) 127.95 tok/s 165.37 tok/s 1.287× ±0.025 +28.7% 1-ULP tie*
Qwen3.8-Flash-Next-QWP-Mixed + DFlash-2 (w=8 k=16) 62.08 tok/s 94.98 tok/s 1.533× ±0.012 +53.3% Exact
Qwen3.8-Flash-Next-QWP-Mixed + DFlash-2 (w=8 k=1) 61.13 tok/s 93.29 tok/s 1.520× ±0.029 +52.0% Exact
Qwen3.8-27B-QWP_4 + DFlash-2 (w=8 k=1) 55.98 tok/s 61.28 tok/s 1.082× ±0.065 +8.2% Exact
GigaChat4-37B-A4B-QWP_4 + DFlash-2 (w=8 k=1) 90.69 tok/s 96.18 tok/s 1.074× ±0.098 +7.4% Exact
Qwen3.8-Flash-Next-QWP-Mixed (d=1 ngram, M=2 HQ4_G32 fix) 89.21 tok/s 89.38 tok/s 1.015× ±0.0003 +1.5% Exact

Qwen4-35B-A3B-QWP_4 r=8 verify GPU latency dropped from ~30.1 ms (pre-Wave 2) to 19.01 ms med (Wave 2) and 17.61 ms med (17.33 ms min) in v0.48.2 (+6.58% ±1.03% Wave 2 to Wave 3 direct gain on d=3 hybrid to 343.31 tok/s, and 339.05 tok/s post-M1/M2 non-regression check 1.0042× ±0.0058). novel reflects a single 1-ULP FP32 tie-break between simd_sum (fast1_body) and simd_shuffle_xor (mr_body).

Apple M1/M2 (.staticM1M2, Simulated applegpu_g13g + kernel_m3.metallib, --strict) — 128-GPR Unlock & HQ4_G32 Zero-Spill

Model / Workload Pre-Fix (.staticM1M2 on lowGPR) v0.48.2 (128-GPR + 0 B HQ4_G32) Paired Ratio (±MAD) Gain SHA-256 Parity
Qwen4-35B-A3B-QWP_4 (code_edit, w=8 ngram) 179.78 tok/s 293.36 tok/s 1.701× ±0.006 +70.1% Exact
Qwen4-35B-A3B-QWP_4 (code_edit, d=3 hybrid) 197.98 tok/s 329.84 tok/s 1.671× ±0.008 +67.1% Exact
Qwen4-35B-A3B-QWP_4 (code_edit, d=0 serial) 99.35 tok/s 122.16 tok/s 1.237× ±0.016 +23.7% Exact

Offline metal-tt on applegpu_g13g/applegpu_g14s also verified 0 B inner-loop stack spills across qwg_gemv_q4g_f32_v4 (#m2: 128r/176sp -> 72r/0sp, #m4: 128r/192sp -> 104r/0sp), _am#m4 (128r/160sp -> 100r/0sp), and _am2 (128r/160sp -> 68r/0sp).

Added

  • HyperStream 0-ULP Deferred GDN State Replay (qwgdn_f32.metal, QWGDNF32.swift, FNGPUWeights.swift, FNGPUScratch+Budget.swift, FNGPULayer.swift, FNGPUDecodeStack.swift, FNGPUSession.swift, FNPrefixCache*.swift, FNGPUBatchScheduler.swift, Scripts/agx_codegen_ceilings.json, Qwen4Wave2ParityTests.swift):
    • Eliminated intermediate [VH, DK, DK] GDN state-ring DRAM writes during 2..8-row speculative verification (503 MB -> 63 MB on Qwen4-35B-A3B at r=8, 0 B AGX stack spill across M1–M6, qwg_gdn_recurrent_rows_f32 ceiling 93 -> 96 in same 96-GPR granule) by logging only per-row (k, delta, exp(g)) rank-1 vectors into a double-buffered 2×12-row replay log and writing S_end once.
    • On partial draft rejection, rollbackVerifyRows tracks the accepted log prefix for exact 0-ULP (#pragma clang fp contract(off) reassociate(off)) in-register replay on the next step, fusing T=1 drain, single-S_mid bank flips when pending + (T - 1) > 12, and explicit R=0 materialization before T>8 prefill, prefix-cache save, and FNGPUBatchScheduler slot sync (+6.58% ±1.03% on Qwen4 d=3 hybrid vs Wave 2, r=8 GPU median 19.01 -> 17.61 ms / min 17.33 ms, 100% SHA-256 bit-exact across Qwen4 & Flash-Next).
  • Qwen4 / HyperStream Wave 2 Speculative & Multi-Row Verify Unblock (qwhc_aq.metal, qw_dequant_multi_b.metalh, qw_dequant_f32.metalh, qw_gemm_f32_common.metalh, qw_moe_f32_common.metalh, qw_moe_compact_hq_aq.metal, qwple.metal, qwdflash_capture.metal, QWGemmF32.swift, QWGemmMoE+CompactQWP.swift, QWMoEOperator.swift, FNGPUHCEncoders.swift, FNGPUPLEEncoders.swift, FNGPUScratch+Budget.swift, FNGPUHead.swift, FNGPUDecodeStack.swift, FNGPUPrefillStack.swift, FNGPUDFlash.swift, QWDFlashDrafter*.swift, DriverPrefill.swift, DriverDecode.swift, MTPVerification.swift, QwgExportTaps.swift, Scripts/agx_codegen_ceilings.json, Scripts/kernel_inventory.json, Qwen4Wave2ParityTests.swift):
    • 128-GPR (!QW_LOW_GPR) Fast HC Mixers, AQ GEMV, and MoE Specialization: Restored zero-barrier in-register qwg_hc_{norm_down_inject,up_mix_h32}_aq_f32_fast1_body (grid.y = rows single-dispatch for rows = 1..8 on .gpr128Max, 4.4× faster HC at T = 8), fast ActSlice AQ GEMV (m1), parallel single-x-load 4-row AQ GEMV (m4), and register-resident ActSlice #m1 MoE paths on !QW_LOW_GPR, while preserving 0 B-spill QW_LOW_GPR paths across M1–M6 (g13g–g17s + M6).
    • Concurrent <= 4-Row f32_v4 / f32_v4_am Chunking & Direct CompactQWP Grid: Chunked rows > 4 in encodeHQ4F32V4 and encodeHQ4F32V4Argmax into concurrent <= 4-row zero-spill #m4/#m2/#m1 passes (removing redundant rows4_m8 helpers), replaced same-encoder dispatchThreadgroups(indirectBuffer:) in QWGemmMoE+CompactQWP.swift with direct upper-bounded host grids (min(experts, pairs)), tightened canCompactQWP .f32 dnAcc checks, and fixed FNGPUScratch.MemoryBudget qsaVerifyLayers to include DFlash.
    • Pipelined Greedy DFlash & On-Device GPU PLE Hashing: Added qwg_ple_ngram_row_ids on-device 64-bit n-gram hashing (bit-exact with CPU writeRowIds, zero host PLE waits when GPU-resident while preserving --stream-ngrams SSD overlap), fused greedy unconstrained DFlash proposal (encodePropose) + verify across pipelined [0, 1, 8, 40] decodeCuts (forwardRowsFusedWithDFlash, zero host wait between DFlash and verify), tiled qwg_dflash_capture_{target,hc}_hidden across 256 threads/TG ([[threads_per_threadgroup]]), and trimmed redundant pre/post capture barriers.
    • Canonical tap == numLayers Capture: Widened QWTapCaptureSink, QWDFlashDrafter, and qwg export-taps --layers to 0...layerBound, capturing FNGPUHead.mixedHidden (post-hyper_connection_mixer) on QWHyperStreamRuntime (encodeMixerOnly / encodeCaptureMixedTaps) and post-finalNorm ln1/normalized on QWEngineDriver uniformly with QWInkling2Runtime without altering existing 0..<numLayers drafters.
  • Qwen4 / HyperStream Wave 1 Spill Elimination & 65K QSA Two-Stage Radix Top-K (qw_dequant_f32.metalh, qwdflash.metal, qwqsa.metal, qwrouter.metal, QWQSACacheState.swift, QWQSAEncoders.swift, FNGPULayer.swift, FNGPULayer+Batch.swift, FNGPUScratch+Budget.swift, FNGPUHead.swift, FNGPUDFlash.swift, Scripts/agx_codegen_ceilings.json, Scripts/kernel_inventory.json, QWKernelInventory.swift, Qwen4Wave1ParityTests.swift):
    • Stacked Wave 1 improvements atop perf/m4-hyperstream-decode (df606b38): eliminated remaining offline metal-tt stack spills in #m4 qwg_gemv_q4g_f32_v4 (336–752 -> 0 B on g15g–g17s) and _am, and qwg_dflash_rmsnorm (80 -> 0 B), and unioned qwrouter.metal QWRUnionScratch (6164 -> 5960 B tgmem).
    • Added dynamic tgmem on qwg_qsa_scores (16384 -> 0 B static) + 2-stage 8-partition register-resident radix top-K (qwg_qsa_topk_part_radix & qwg_qsa_topk_merge_radix, 32–37r/0sp across M1–M5).
    • Removed the redundant GDN inProjBA/qkv buffer barrier in FNGPULayer.swift, wired fused FNGPUHead encodeFnHCNormDownInjectDecode(..., hc: 0), and enabled skipGreedyLogits on greedy unconstrained DFlash verify (FNGPUDFlash.swift).
  • Banner PLE Residency Telemetry (FNPLEBackingMode, FNGPUPLEEncoders.swift, QWEngineReport.swift, QWHyperStreamRuntime*.swift, QWModelBackend.swift, QWHardwareInfo.swift, QWHardwareInfoTests.swift): Surfaced the resolved PLE backing mode (GPU shared (UMA zero-copy), CPU mmap stream, or CPU pread stream) and GPU byte footprint in the headless QWServer startup banner via pleResidencyNote whenever PLE layers are present.
  • Wave P1.1 HAL Intrinsics & M6 AGX Codegen Coverage (QWHal.swift, QWHal+Diagnostics.swift, Scripts/check_metallib_target.py, QWHALTests.swift): Added QWRegisterBudgetTier (.staticM1M2, .gpr96Pro via applegpu_g17p, .gpr128Max), QWDeviceCaps.architectureName (with QW_SIMULATE_GPU_ARCH override), QWDeviceCaps.slcBudgetBytes(forGPUCores:) (6/12/24/48 MiB tiers), architecture-keyed referenceBandwidth (applegpu_g17s fallback-safe), fallbackGPUCores = 16, arch=... regTier=... slcMiB=... PSO diagnostic header fields, and optional M6_AGX_ARCHS (applegpu_g18{g,p,s,d} at 27.0) offline codegen validation.
  • Apple9 (M3/M4) 96-GPR Register Tier, Word-Streamed AQ GEMV/MoE/HC Kernels & QSA simdgroup_half8x8 MMA (QWHal.swift, QW_FC_ROW_BUCKET, qw_dequant_aq_stream.metalh, qw_dequant_multi_b.metalh, qw_quant_traits*.metalh, qw_moe_f32_common.metalh, qw_moe_compact_hq_aq.metal, qwhc_common.metalh, qwhc_aq.metal, qwhc.metal, qwhc_shvq.metal, qwattn_sparse_mma.metal, FNGPUHCEncoders.swift, QWQSAEncoders.swift, QWQSACacheState.swift, QWGemm+PipelineSpecs.swift, QWRuntimeDoorPlanner+Runtimes.swift, Scripts/agx_codegen_ceilings.json, Scripts/check_metallib_target.py):
    • Updated QWDeviceCaps.registerBudgetTier so non-Apple10/Apple11 (M1–M4) chips resolve to .gpr96Pro (QW_FC_LOW_GPR = true), extracted ceiling manifests into Scripts/agx_codegen_ceilings.json, and added FC 243 (QW_FC_ROW_BUCKET) word-streamed AQ helpers, eliminating offline metal-tt stack spills (0 B) across g15g/g16s/g17p/g17s in qwg_gemv_aq{8_g32,4_g64}_f32_v4, qwg_gemv_aq8_g32_f32_v4_am, qwg_hc_down_inject_aq8_g32_f32, #m1 qwg_moe_down_shared_combine_aq4_g64_f32, qwg_moe_gateup_aq4_g64_f32_r1, and qwg_moe_compact_aq{4_g64,8_g32}_gateup_f32.
    • Batched 1 <= rows <= 4 tokens onto grid.y = 1 across hc_up_mix_h32 (AQ/HQ4/SHVQ) and hc_norm_down_inject (AQ/SHVQ), moving AQ norm_down_inject to SG-collaborative qwg_fwht32_lane_f32 (96r/32sp -> 34-44r/0sp across g15g/g16s/g17p for #m1/#m2/#m4, with qwg_hc_up_mix_h32_aq8_g32_f32 at 43-56r/0sp and qwg_hc_up_mix_h32_q4g_f32 at 52-59r/0sp).
    • Added 8 standard Metal 3.2 simdgroup_half8x8 QSA kernels (qwg_attn_sparse_gated_mma_{f32,f16,q8,q4} and _split_*, 128 threads, 14592 B TG SRAM, 76-80r/0sp on g13g/g14s and 87-95r/0sp on g15g/g16s via offline metal-tt) dispatched on !isMetal4TensorCapable && supportsSimdgroupMMA (headDim == 256, gqaRatio <= 16).
  • Offline DFlash-2 Tap Export (qwg export-taps, QWPOSIX.pwriteExact, QWSafeTensorsWriter, QWSampler.extractTopKLogprobs, QWTapCaptureSink, DriverTapExport, QWHyperStreamRuntime+TapExport, QWInkling2Runtime+TapExport, QWTapExportIO): Added headless CLI command qwg export-taps <model> --shards <dir> --out <path.safetensors> enforcing teacher-fidelity defaults (--kv-mode f16, single-session, speculation/LSA/prefix-cache off), shard hygiene/tokenizer SHA-256 verification, default selectDefaultTargetLayerIds parity with qwegn_gym, and atomic zero-gap .safetensors streaming (input_ids, loss_mask, row_offsets, row_lengths, taps_bf16_u16, and optional topk_indices/topk_logprobs) across QWEngineDriver, QWHyperStreamRuntime, and QWInkling2Runtime.

Changed

  • Corpus /learn Rules, Skills & Lint Hardening (AGENTS.md, .agents/skills/*, skills/*, Scripts/lint_style.py, Scripts/test_sdlc_scripts.py):
    • Updated AGENTS.md Laws 10, 14, 25, and 26 with cross-engine transport/port comparison parity, QW_PERF_GATE=1 gating for in-suite GPU microbenchmarks, POSIX open/write/close guidance against defer { try? h.close() } Xcode 26.6 swifterror clobbers, QWModelRoot.existing(...) usage, and deterministic clock/gate injection replacing wall-clock Thread.sleep unit-test assertions.
    • Added S12 SVG sharpness/CoreSVG check to Scripts/lint_style.py (with regression test in Scripts/test_sdlc_scripts.py) forbidding <filter> and paint-order= in assets/qwegn_*.svg.
    • Updated all 8 internal workspace skills + added references/ui-invariants.md and references/security-invariants.md (fixing stale Auto-route, M1–M4 SG/96-GPR, dynamic HCA SLC, lint_dead_code.py, and 4-metallib release verification docs), and updated skills/qwegn-bug-report/SKILL.md, skills/README.md, and skills/qwegn-mcp-setup/SKILL.md (QW_CMD_BUFFER_DIAG=1, LSA-pack scoping for --lsa-mode off, and omp llama.cpp provider disambiguation).
  • Wave P2.3 HyperStream Host Convergence & Stage Contracts (FNGPUScratch+Budget.swift, FNGPUStageContract.swift, QWHyperStreamRuntime.swift, QWHyperStreamRuntime+Seam.swift, QWHyperStreamRuntime+Generation.swift, FNPrefixCache+Save.swift, FNGPUBatchScheduler.swift, QWBatchScheduler.swift, DriverResidency.swift, FNGPUHostConvergenceTests.swift):
    • Replaced legacy HyperStream fixed constants (fnFixedScratchEstimate, baseScratchBytes = 1344 << 20, prefillActivationBytes = maxRows * 1_450_000, batchArena = 512 << 20, and duplicated estimator formulas in DriverResidency.swift) with geometry-derived FNGPUScratch.MemoryBudget (scratchBytes, prefillActivationBytes, arenaBaseScratchBytes, batchArenaBytes, fixedRuntimeScratchBytes), and preallocated prefillArena upfront in QWHyperStreamRuntime.init whenever !evictPrefillScratch.
    • Converged ad-hoc FNPrefixWarmStore instantiation in FNPrefixCache+Save.swift through QWHyperStreamRuntime.ensureWarmPrefixStore(minimumByteLimit:) (enforcing minViableWarmCacheBytes and wiring eviction callbacks), deduplicated QWBatchScheduler.coalescePreparingBurst onto QWBatchAdmissionCounter.coalescePreparingBurst, and added init-time validated FNGPULayerStageGraph stage contracts (FNGPUStreamShape, FNGPUActivationDomain, FNGPUPrecastState) preserving zero-overhead FWHT-32 rotation and NAX FP16 precast handoffs.
  • Wave P2.2 Operator-Owned Kernel Lists & FC 242 MoE Softcap Deduplication (QWRuntimeDoorPlanner*.swift, *+PipelineSpecs.swift, QWHal+Constants.swift, QWHal+Prewarm.swift, QWGemmMoE*.swift, qw_dequant.metalh, qw_moe_f32_common.metalh, qw_moe_compact_*.metal*, qwgemm_moe_*f32.metal, Scripts/kernel_inventory.json):
    • Inverted QWRuntimeDoorPlanner (ADR-025) so QWGemm, QWHead, QWAttn (QWMLAAttnOperator, QWHCAAttnOperator, QWMBSAAttnOperator, QWAttnSinkRel, QWLSAOperator, QWAttnDecode, QWDecisionTopologyAttn), QWGDN (QWGDNDecode, QWShortConv), QWNorm, QWRopeApply, QWKVCache, QWMTP, and QWMHCSplitRouter own static requiredPipelineSpecs(...) tables instead of central reverse string-matching, and strictly gated qwg_head_argmax_fin_variational on mtpDrafts > 0 && isVariationalMTP (QWRuntimeDoorPlannerTests: full QWKernelInventory.dense minus excluded coverage + variational gate).
    • Deduplicated all 56 *_sc MoE gateup kernels (15 compact + 41 r1) into their base kernels via QW_FC_HAS_SOFTCAP ([[function_constant(242)]], #sc PSO cache key, conditional [[buffer(8), function_constant(QW_FC_HAS_SOFTCAP)]] on r1), prewarming hasSoftcap: true only on softcap-enabled models (Inkling2) and reducing shipped metallibs from 1,937 to 1,881 kernels (745 -> 729 inventory doors).
  • Wave P2.1 Loader Consolidation & QWGemmH16 Extraction (QWCheckpointTensorLoader.swift, QWGemmH16.swift, EncodeKernels.swift, QWInkling2Weights+QWP.swift, QWInkling2DSpark+Weights.swift, QWDecisionPackEngine+Weights.swift, QWRuntimeDoorPlanner+Quant.swift, QWDFlashDrafter+Quant.swift, QWLoadSafetyHardeningTests.swift): Unified all duplicate QWQTensorEntry -> QWWeightView.ContainerKind mappers onto QWCheckpointTensorLoader.containerKind(from:) in QWLoad, and extracted stateless H16/GDN/SwiGLU GEMV & GEMM encoders out of EncodeKernels.swift into QWGemmH16.swift (L3.0 QWGEMM).
  • Wave P1.3 Low-GPR Multi-Row MoE Specialization (QW_FC_LOW_GPR, QWHal+Constants.swift, QWHal+Prewarm.swift, qw_dequant.metalh, qw_moe_compact_shvq_fast.metalh, qw_moe_f32_common.metalh, qw_moe_compact_hq_aq.metal, check_metallib_target.py, QWHALTests.swift): Wired QW_FC_LOW_GPR ([[function_constant(241)]]) from caps.registerBudgetTier != .gpr128Max (true on applegpu_g17p and M1/M2, false on 128-GPR M3/M4 and M5 Max/Base/Ultra), specializing multi-row MoE compact/r1 accumulators onto 2-token batches with zero M5 Max codegen impact while cutting applegpu_g17p spills (compact_aq4_g64: 368 -> 128 B, compact_aq8_g32: 464 -> 192 B, compact_shvq15_g64: 224 -> 176 B, compact_shvq4_g32: 144 -> 112 B, gateup_aq4_g64_f32_r1: 368 -> 96 B) and g13g spills (compact_aq4_g64: 288 -> 80 B, compact_shvq15_g64: 32 -> 0 B).
  • Unified Split-KV Wave Alignment & SLC Policy (QWAttnSplitPolicy.swift, QWAttnDecodeApply.swift, QWAttnSinkRelApply.swift, QWMBSAAttnOperator.swift, QWQSAEncoders.swift, QWHCAAttnOperator.swift, QWGemmF32.swift, QWAttnSplitPolicyTests.swift): Consolidated Split-KV wave-alignment and split-count helpers across Decode, SinkRel, MBSA, QSA, and HCA (4/8/16 tier default splits via hcaDefaultSplits) into QWAttnSplitPolicy, and delegated QWGemm.naxRowChunk SLC sizing to QWDeviceCaps.slcBudgetBytes(forGPUCores:).

Fixed

  • M1/M2 (.staticM1M2) 128-GPR Fast-Path Unlock & HQ4_G32 Zero-Spill GEMV (QWHal+Prewarm.swift, FNGPUHCEncoders.swift, qw_dequant_f32.metalh, Scripts/agx_codegen_ceilings.json, QWHALTests.swift):
    • Mapped QW_FC_LOW_GPR (FC 241) to caps.registerBudgetTier == .gpr96Pro and widened FNGPUHCEncoders fast1_body dispatch to registerBudgetTier != .gpr96Pro, unlocking zero-spill 128-GPR HC mixers (80 B / 2176 B tgmem, zero simdgroup_barriers), ActSlice/#m4 AQ GEMV, and 4-token MoE batching on Apple7/Apple8 (g13g/g14s) in alignment with check_metallib_target.py (+70.1% on simulated M1 Qwen4 w=8, +67.1% on d=3 hybrid, +23.7% on d=0, 100% SHA-256 parity).
    • Replaced 4-struct Block_HQ4_G32 copies in qwg_gemv_hq4_rows4_m2_f32 with pointer reads (b0..b3->qs[w], keeping #pragma unroll), eliminating M1/M2's 160–192 B inner-loop stack spills across qwg_gemv_q4g_f32_v4 (#m2: 128r/176sp -> 72r/0sp, #m4: 128r/192sp -> 104r/0sp), _am#m4 (128r/160sp -> 100r/0sp), and _am2 (128r/160sp -> 68r/0sp) while tightening agx_codegen_ceilings.json and lifting native M5 Max Flash-Next d=1 (M=2) by +1.48% (1.0148× ±0.0003) with 1.0042× parity on Qwen4 d=3.
  • Scripts/build_pkg.sh SHVQ Table Bundling: Included Scripts/quantize/*.bin (shvq_tables.bin, shvq_sub2_tables.bin) alongside *.py in /usr/local/share/qwegn/Scripts/quantize/ so installed .pkg SHVQ quantization no longer fails on missing LUT tables.
  • Wave P1.2 HQ4_G32 NAX alignedN Bounds & Unaligned-N Generality (qw_gemm_nax.metalh, QWGemmF32.swift, QWHead.swift, QWDecisionPackEngine+Forward.swift, QWSmallPrefillTests.swift): Fixed qmm_t_nax_split_impl (AQ_BITS == 0) to clamp sgp_sn/tgp_bn and dispatch kAlignedN via tgp_bn == BN (zero inner-loop overhead on N % 64 == 0), lifted the n % 64 == 0 incumbent restriction across QWGemm.encodeNaxF32, QWGemm.encodeDenseProjF32, QWHead.encodeBatched, and QWDecisionPackEngine, and added testHQ4NaxF32UnalignedNParityAndCanary across native M5 NAX and simulated apple9 SG.