Repository navigation
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 during2..8-row speculative verification (503 MB -> 63 MBonQwen4-35B-A3Batr=8,0 BAGX stack spill across M1–M6,qwg_gdn_recurrent_rows_f32ceiling93 -> 96in same 96-GPR granule) by logging only per-row(k, delta, exp(g))rank-1 vectors into a double-buffered2×12-row replay log and writingS_endonce. - On partial draft rejection,
rollbackVerifyRowstracks the accepted log prefix for exact0-ULP (#pragma clang fp contract(off) reassociate(off)) in-register replay on the next step, fusingT=1drain, single-S_midbank flips whenpending + (T - 1) > 12, and explicitR=0materialization beforeT>8prefill, prefix-cache save, andFNGPUBatchSchedulerslot sync (+6.58% ±1.03%onQwen4d=3 hybridvs Wave 2,r=8GPU median19.01 -> 17.61 ms/ min17.33 ms,100%SHA-256 bit-exact acrossQwen4&Flash-Next).
- Eliminated intermediate
- 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-registerqwg_hc_{norm_down_inject,up_mix_h32}_aq_f32_fast1_body(grid.y = rowssingle-dispatch forrows = 1..8on.gpr128Max,4.4×faster HC atT = 8), fastActSliceAQ GEMV (m1), parallel single-x-load 4-row AQ GEMV (m4), and register-residentActSlice#m1MoE paths on!QW_LOW_GPR, while preserving0 B-spillQW_LOW_GPRpaths across M1–M6 (g13g–g17s+M6).- Concurrent
<= 4-Rowf32_v4/f32_v4_amChunking & Direct CompactQWP Grid: Chunkedrows > 4inencodeHQ4F32V4andencodeHQ4F32V4Argmaxinto concurrent<= 4-row zero-spill#m4/#m2/#m1passes (removing redundantrows4_m8helpers), replaced same-encoderdispatchThreadgroups(indirectBuffer:)inQWGemmMoE+CompactQWP.swiftwith direct upper-bounded host grids (min(experts, pairs)), tightenedcanCompactQWP.f32dnAccchecks, and fixedFNGPUScratch.MemoryBudgetqsaVerifyLayersto include DFlash. - Pipelined Greedy DFlash & On-Device GPU PLE Hashing: Added
qwg_ple_ngram_row_idson-device 64-bit n-gram hashing (bit-exact with CPUwriteRowIds, zero host PLE waits when GPU-resident while preserving--stream-ngramsSSD overlap), fused greedy unconstrained DFlash proposal (encodePropose) + verify across pipelined[0, 1, 8, 40]decodeCuts(forwardRowsFusedWithDFlash, zero host wait between DFlash and verify), tiledqwg_dflash_capture_{target,hc}_hiddenacross256threads/TG ([[threads_per_threadgroup]]), and trimmed redundant pre/post capture barriers. - Canonical
tap == numLayersCapture: WidenedQWTapCaptureSink,QWDFlashDrafter, andqwg export-taps --layersto0...layerBound, capturingFNGPUHead.mixedHidden(post-hyper_connection_mixer) onQWHyperStreamRuntime(encodeMixerOnly/encodeCaptureMixedTaps) and post-finalNormln1/normalizedonQWEngineDriveruniformly withQWInkling2Runtimewithout altering existing0..<numLayersdrafters.
- Qwen4 / HyperStream Wave 1 Spill Elimination &
65KQSA 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 offlinemetal-ttstack spills in#m4qwg_gemv_q4g_f32_v4(336–752 -> 0 Bong15g–g17s) and_am, andqwg_dflash_rmsnorm(80 -> 0 B), and unionedqwrouter.metalQWRUnionScratch(6164 -> 5960 Btgmem). - Added dynamic
tgmemonqwg_qsa_scores(16384 -> 0 Bstatic) + 2-stage 8-partition register-resident radix top-K (qwg_qsa_topk_part_radix&qwg_qsa_topk_merge_radix,32–37r/0spacross M1–M5). - Removed the redundant GDN
inProjBA/qkvbuffer barrier inFNGPULayer.swift, wired fusedFNGPUHeadencodeFnHCNormDownInjectDecode(..., hc: 0), and enabledskipGreedyLogitson greedy unconstrained DFlash verify (FNGPUDFlash.swift).
- Stacked Wave 1 improvements atop
- 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, orCPU pread stream) and GPU byte footprint in the headlessQWServerstartup banner viapleResidencyNotewhenever 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): AddedQWRegisterBudgetTier(.staticM1M2,.gpr96Proviaapplegpu_g17p,.gpr128Max),QWDeviceCaps.architectureName(withQW_SIMULATE_GPU_ARCHoverride),QWDeviceCaps.slcBudgetBytes(forGPUCores:)(6/12/24/48 MiBtiers), architecture-keyedreferenceBandwidth(applegpu_g17sfallback-safe),fallbackGPUCores = 16,arch=... regTier=... slcMiB=...PSO diagnostic header fields, and optionalM6_AGX_ARCHS(applegpu_g18{g,p,s,d}at27.0) offline codegen validation. - Apple9 (
M3/M4) 96-GPR Register Tier, Word-Streamed AQ GEMV/MoE/HC Kernels & QSAsimdgroup_half8x8MMA (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.registerBudgetTierso non-Apple10/Apple11(M1–M4) chips resolve to.gpr96Pro(QW_FC_LOW_GPR=true), extracted ceiling manifests intoScripts/agx_codegen_ceilings.json, and addedFC 243(QW_FC_ROW_BUCKET) word-streamed AQ helpers, eliminating offlinemetal-ttstack spills (0 B) acrossg15g/g16s/g17p/g17sinqwg_gemv_aq{8_g32,4_g64}_f32_v4,qwg_gemv_aq8_g32_f32_v4_am,qwg_hc_down_inject_aq8_g32_f32,#m1qwg_moe_down_shared_combine_aq4_g64_f32,qwg_moe_gateup_aq4_g64_f32_r1, andqwg_moe_compact_aq{4_g64,8_g32}_gateup_f32. - Batched
1 <= rows <= 4tokens ontogrid.y = 1acrosshc_up_mix_h32(AQ/HQ4/SHVQ) andhc_norm_down_inject(AQ/SHVQ), moving AQnorm_down_injectto SG-collaborativeqwg_fwht32_lane_f32(96r/32sp -> 34-44r/0spacrossg15g/g16s/g17pfor#m1/#m2/#m4, withqwg_hc_up_mix_h32_aq8_g32_f32at43-56r/0spandqwg_hc_up_mix_h32_q4g_f32at52-59r/0sp). - Added
8standard Metal 3.2simdgroup_half8x8QSA kernels (qwg_attn_sparse_gated_mma_{f32,f16,q8,q4}and_split_*,128threads,14592 BTG SRAM,76-80r/0spong13g/g14sand87-95r/0spong15g/g16svia offlinemetal-tt) dispatched on!isMetal4TensorCapable && supportsSimdgroupMMA(headDim == 256,gqaRatio <= 16).
- Updated
- Offline DFlash-2 Tap Export (
qwg export-taps,QWPOSIX.pwriteExact,QWSafeTensorsWriter,QWSampler.extractTopKLogprobs,QWTapCaptureSink,DriverTapExport,QWHyperStreamRuntime+TapExport,QWInkling2Runtime+TapExport,QWTapExportIO): Added headless CLI commandqwg 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, defaultselectDefaultTargetLayerIdsparity withqwegn_gym, and atomic zero-gap.safetensorsstreaming (input_ids,loss_mask,row_offsets,row_lengths,taps_bf16_u16, and optionaltopk_indices/topk_logprobs) acrossQWEngineDriver,QWHyperStreamRuntime, andQWInkling2Runtime.
Changed
- Corpus
/learnRules, Skills & Lint Hardening (AGENTS.md,.agents/skills/*,skills/*,Scripts/lint_style.py,Scripts/test_sdlc_scripts.py):- Updated
AGENTS.mdLaws 10, 14, 25, and 26 with cross-engine transport/port comparison parity,QW_PERF_GATE=1gating for in-suite GPU microbenchmarks, POSIXopen/write/closeguidance againstdefer { try? h.close() }Xcode 26.6swifterrorclobbers,QWModelRoot.existing(...)usage, and deterministic clock/gate injection replacing wall-clockThread.sleepunit-test assertions. - Added
S12SVG sharpness/CoreSVG check toScripts/lint_style.py(with regression test inScripts/test_sdlc_scripts.py) forbidding<filter>andpaint-order=inassets/qwegn_*.svg. - Updated all 8 internal workspace skills + added
references/ui-invariants.mdandreferences/security-invariants.md(fixing staleAuto-route,M1–M4SG/96-GPR, dynamic HCA SLC,lint_dead_code.py, and 4-metallib release verification docs), and updatedskills/qwegn-bug-report/SKILL.md,skills/README.md, andskills/qwegn-mcp-setup/SKILL.md(QW_CMD_BUFFER_DIAG=1, LSA-pack scoping for--lsa-mode off, andompllama.cppprovider disambiguation).
- Updated
- 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 inDriverResidency.swift) with geometry-derivedFNGPUScratch.MemoryBudget(scratchBytes,prefillActivationBytes,arenaBaseScratchBytes,batchArenaBytes,fixedRuntimeScratchBytes), and preallocatedprefillArenaupfront inQWHyperStreamRuntime.initwhenever!evictPrefillScratch. - Converged ad-hoc
FNPrefixWarmStoreinstantiation inFNPrefixCache+Save.swiftthroughQWHyperStreamRuntime.ensureWarmPrefixStore(minimumByteLimit:)(enforcingminViableWarmCacheBytesand wiring eviction callbacks), deduplicatedQWBatchScheduler.coalescePreparingBurstontoQWBatchAdmissionCounter.coalescePreparingBurst, and added init-time validatedFNGPULayerStageGraphstage contracts (FNGPUStreamShape,FNGPUActivationDomain,FNGPUPrecastState) preserving zero-overhead FWHT-32 rotation and NAX FP16 precast handoffs.
- Replaced legacy HyperStream fixed constants (
- Wave P2.2 Operator-Owned Kernel Lists &
FC 242MoE 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) soQWGemm,QWHead,QWAttn(QWMLAAttnOperator,QWHCAAttnOperator,QWMBSAAttnOperator,QWAttnSinkRel,QWLSAOperator,QWAttnDecode,QWDecisionTopologyAttn),QWGDN(QWGDNDecode,QWShortConv),QWNorm,QWRopeApply,QWKVCache,QWMTP, andQWMHCSplitRouterown staticrequiredPipelineSpecs(...)tables instead of central reverse string-matching, and strictly gatedqwg_head_argmax_fin_variationalonmtpDrafts > 0 && isVariationalMTP(QWRuntimeDoorPlannerTests: fullQWKernelInventory.denseminus excluded coverage + variational gate). - Deduplicated all
56*_scMoE gateup kernels (15compact +41r1) into their base kernels viaQW_FC_HAS_SOFTCAP([[function_constant(242)]],#scPSO cache key, conditional[[buffer(8), function_constant(QW_FC_HAS_SOFTCAP)]]onr1), prewarminghasSoftcap: trueonly on softcap-enabled models (Inkling2) and reducing shipped metallibs from1,937to1,881kernels (745 -> 729inventory doors).
- Inverted
- Wave P2.1 Loader Consolidation &
QWGemmH16Extraction (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 duplicateQWQTensorEntry -> QWWeightView.ContainerKindmappers ontoQWCheckpointTensorLoader.containerKind(from:)inQWLoad, and extracted stateless H16/GDN/SwiGLU GEMV & GEMM encoders out ofEncodeKernels.swiftintoQWGemmH16.swift(L3.0QWGEMM). - 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): WiredQW_FC_LOW_GPR([[function_constant(241)]]) fromcaps.registerBudgetTier != .gpr128Max(trueonapplegpu_g17pandM1/M2,falseon128-GPRM3/M4andM5 Max/Base/Ultra), specializing multi-row MoE compact/r1accumulators onto 2-token batches with zeroM5 Maxcodegen impact while cuttingapplegpu_g17pspills (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) andg13gspills (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/16tier default splits viahcaDefaultSplits) intoQWAttnSplitPolicy, and delegatedQWGemm.naxRowChunkSLC sizing toQWDeviceCaps.slcBudgetBytes(forGPUCores:).
Fixed
- M1/M2 (
.staticM1M2) 128-GPR Fast-Path Unlock &HQ4_G32Zero-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) tocaps.registerBudgetTier == .gpr96Proand widenedFNGPUHCEncodersfast1_bodydispatch toregisterBudgetTier != .gpr96Pro, unlocking zero-spill128-GPR HC mixers (80 B/2176 Btgmem, zerosimdgroup_barriers),ActSlice/#m4AQ GEMV, and4-token MoE batching onApple7/Apple8(g13g/g14s) in alignment withcheck_metallib_target.py(+70.1%on simulated M1Qwen4 w=8,+67.1%ond=3 hybrid,+23.7%ond=0,100%SHA-256 parity). - Replaced 4-struct
Block_HQ4_G32copies inqwg_gemv_hq4_rows4_m2_f32with pointer reads (b0..b3->qs[w], keeping#pragma unroll), eliminating M1/M2's160–192 Binner-loop stack spills acrossqwg_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 tighteningagx_codegen_ceilings.jsonand lifting native M5 MaxFlash-Next d=1(M=2) by+1.48%(1.0148× ±0.0003) with1.0042×parity onQwen4 d=3.
- Mapped
Scripts/build_pkg.shSHVQ Table Bundling: IncludedScripts/quantize/*.bin(shvq_tables.bin,shvq_sub2_tables.bin) alongside*.pyin/usr/local/share/qwegn/Scripts/quantize/so installed.pkgSHVQ quantization no longer fails on missing LUT tables.- Wave P1.2
HQ4_G32NAXalignedNBounds & Unaligned-NGenerality (qw_gemm_nax.metalh,QWGemmF32.swift,QWHead.swift,QWDecisionPackEngine+Forward.swift,QWSmallPrefillTests.swift): Fixedqmm_t_nax_split_impl(AQ_BITS == 0) to clampsgp_sn/tgp_bnand dispatchkAlignedNviatgp_bn == BN(zero inner-loop overhead onN % 64 == 0), lifted then % 64 == 0incumbent restriction acrossQWGemm.encodeNaxF32,QWGemm.encodeDenseProjF32,QWHead.encodeBatched, andQWDecisionPackEngine, and addedtestHQ4NaxF32UnalignedNParityAndCanaryacross native M5 NAX and simulatedapple9SG.