Outcome
Make the daily Qwen3.8-27B measurably faster on DGX Spark through actual packed W4 execution, tuned MTP in the serving path, and complete-state reuse, implemented in .om on the owned Omega runtime.
This replaces the earlier two-task outline. The 10.15 tok/s figure is an optimistic traffic-model ceiling for approximately 26.9 GB read per ordinary FP8 token at 273 GB/s; it is not an absolute hardware limit. Quantization changes model numerics. Speculation requires correct verification, sampling and state commitment; it does not automatically guarantee exact finite-precision equivalence.
Linked implementation work
- #710 — uncontended full-model baseline, frozen quality gates, reproducible performance receipts
- #711 — packed W4 layout/loader and native kernels, actual traffic reduction, quality study
- #712 — adaptive MTP integrated into the .om serving endpoint
- #713 — compact speculative state, accepted-prefix commitment and complete-prefix reuse
Execution: establish #710's pins and quality contract first. W4 and MTP implementation may then proceed independently; #713's state-correctness contract gates MTP integration. Run the four final arms FP8 / FP8+MTP / W4 / W4+MTP under one frozen workload. Adopt additional tree verification only when whole-model results justify it.
Grounding and existing ownership
Reuse serving #642 and tracking #641; shared layouts #676; Omega https://github.com/aien-dev/omega-mv/issues/558 (projection bandwidth), https://github.com/aien-dev/omega-mv/issues/557 (GDN/prefill), https://github.com/aien-dev/omega-mv/issues/569 and https://github.com/aien-dev/omega-mv/issues/571 (arenas); qualification https://github.com/aien-dev/CUDApp/issues/33. Preserve its standalone benchmark contract; these optimization experiments do not silently change that benchmark. Inspect current successors of feat/qwen38-27b, cascade/mtp-chain, cascade/w4-decode and cascade/tree-verify-wire before implementing; a branch or merged PR is not proof the live consumer uses it.
Reviewed immutable core revision: 230574e0f731ca441f5d64b03a7946710d788f08.
- W4 simulation writes quantized values back to FP8 and uses FP8 kernels; it does not demonstrate packed W4 execution.
- MTP receipt: 272.67 ->191.90 ms/token at k=1, but k=4/8 slower; load1 >91 and 18 driver errors invalidate treating this as a clean performance baseline.
- Serving source advances one token per iteration at this revision. Verify current effective runtime rather than extrapolate from this historical inspection.
Research and limits
- LumoTree https://arxiv.org/abs/2609.23900: Qwen3.8-27B on Spark, mixed NVFP4/FP8; one replay corpus reports 10.54 ordinary /26.12 tuned MTP /28.13 tree tok/s. Different checkpoint/runtime; live-agent completion speedup was not established.
- Bole https://arxiv.org/abs/2608.01651: compact factors and accepted-state reconstruction for hybrid models, including Qwen3.5-27B on GB10. Batch-one gains over a strong speculative baseline are around 11–14%, not the headline maximum. 20–30 tok/s is a research target under comparable workloads, never a promised acceptance result. Completion requires measured improvement at frozen quality constraints or explicit measured disposition of losing experiments.
Final acceptance and replacement
- Final first-party implementations are .om; replace and delete superseded active Rust/C/.osc paths, tests/build references and compatibility implementations within this work's scope. Git history preserves old source. Coordinate existing migration ownership; do not rewrite unrelated repositories.
- Exact serving artifact and linked backend use the qualified optimized path; no CPU stub or third-party inference engine substitution.
- Frozen quality/state gates and required checks pass; actual Spark measurements include short and long context, TTFT, decode, complete-task time and memory.
- Publish baseline/candidate receipts, commands, hashes, failures, realistic limitations and before/after results.
- Delivery PRs link each checklist item to implementation and evidence. Do not close hardware gates on host-only results; mark exact blockers and continue independent work.