interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

Qwen3.8-27B: implement packed W4 native execution with quality and traffic gates

Closed · #711 · open 2026-10-23 13:34 UTC · closed 2026-11-07 00:07 UTC (reason not_planned)

Imported from GitHub aien-dev/aien-sovereign-core-mv#711, by drakestapleton

Labels: retired

drakestapleton wrote on 2026-10-23 13:34 UTC

Parent: https://github.com/aien-dev/aien-sovereign-core-mv/issues/679

Implementation contract: first-party implementation is .om, replacing and deleting superseded active code after validation; no permanent Rust/C/.osc compatibility implementation. Reuse current migration owners and existing branches; inspect current source/consumer pins before editing. No third-party inference engine dependency. Record blockers honestly; hardware results require a real coordinated Spark run, never simulated receipts.

Gap and ownership

At core commit 230574e0f731ca441f5d64b03a7946710d788f08, crates/aien-inference-abi/src/qwen38_omega/w4.rs simulates MXFP4 values, writes them back into FP8 storage, then executes unchanged FP8 kernels. This is a drift study, not a bandwidth optimization. Inspect cascade/w4-decode and current Omega owners before creating new kernels. Coordinate omega-mv#558, #541 and core#676.

Acceptance

  • Select and document a supported packed format, group/scales/rounding/layout, using measured GB10 behavior; distinguish MXFP4 and NVFP4.
  • Implement .om packed loader/layout and native batch-one GEMV plus small-row verification GEMM; weights remain packed in resident memory and through reads, with fused conversion/computation, no whole-weight FP8 expansion per step.
  • Stage MLP projections first; qualify vocabulary projection independently; document tensors deliberately retained at higher precision.
  • Validate decoding of packed values, tails/alignment, scales, zero/extreme/nonfinite inputs, and wrong-layout rejection.
  • Compare against the pinned FP8 reference on held-out coding/prose, perplexity, logit margins, task quality and long-context continuation; freeze thresholds before comparison. W4 is not a promise of identical outputs.
  • Measure physical allocation, estimated/measured traffic with clear accounting, kernel time and full-model wall latency at identical context/workload. Publish W4 alone and W4+MTP separately.
  • Integrate the verified implementation into the actual .om serving consumer and delete superseded active implementation; retain evidence in Git history. Research: https://arxiv.org/abs/2609.23900 evaluates Qwen3.8-27B on Spark with NVFP4 MLP/head and FP8 attention. Its checkpoint and engine differ; its results are motivation, not our receipts.

drakestapleton wrote on 2026-10-23 14:04 UTC

Reconciliation and replacement ledger published in draft #714 (1b37dcf70a83a112f555ee043ecc407b8f00eeef). Inspected cascade/w4-decode at 1c36c3d3b9e9a13ecefca7ff73cf4bdb2877e59a and cascade/mtp-chain w4.rs: historical simulation expands quantized values back to FP8; not accepted as W4 acceleration. No packed .om GPU implementation or quality/traffic result delivered in this draft. The receipt checker rejects a W4 arm without a packed-read assertion, but explicitly cannot authenticate that assertion; actual kernel/allocation/source evidence is still required. #710 model/reference/native consumer gates remain open. Existing backend/layout/migration ownership retained. No obsolete code deleted prematurely.

drakestapleton wrote on 2026-10-23 23:31 UTC

Native migration progress, not issue completion: branch perf/native-w4-converter-711 contains a handwritten seeded .om MXFP4 group converter and bounded diagnostic transport. It implements OCP/FIT/BEST, packed nibble order, exact rounding, BF16 scales, and explicit invalid-input/scale refusals.

Reconciled the earlier simulated-W4 finding with the existing omega-mv speed3/w4-gemv branch at 8655007f0f09d454b47b75fb3d83bc80e8f6d4da: that historical C implementation does contain a packed device path. This work reuses its format; it does not claim that path has been migrated or qualified in native serving.

Validation: 1,219,868 author checks and 4,381,347 independent checks passed; eight compiling intentional defects were detected across the two suites. Independent final transport review passed 1,536 records, fragmented reads, all 34 incomplete-tail lengths, and error recovery. A real 128x128 block from pinned Qwen3.8-27B FP8 weights matched the existing reference byte-for-byte for all three rules (8,704 output bytes per rule). The original reference's 399 host checks also passed. Evidence and reproducible native tests are in the branch.

No GPU or full-model experiment was run. Packed checkpoint loading, native device kernels, serving integration/deletion of superseded code, quality gates, and speed/memory/traffic measurements remain open. Repository preflight on the shared base remains failed at the browser screenshot test and dependency advisories; no gate is waived. Routing review through the existing L773 desk, preserving compiler/device/runtime owners. Ledger L791.

drakestapleton wrote on 2026-10-23 23:39 UTC

Same L791 branch extended through whole raw-tensor conversion: 99cc17f9. The new handwritten .om file converter uses fixed buffers, validates exact dimensions/input lengths, creates outputs exclusively, and removes its newly created outputs after handled failures. It consumes raw FP8/BF16 tensor extracts; it is not a safetensors parser or serving loader.

Executed the complete 17,408x5,120 layer-0 gate projection from the pinned real checkpoint. All 89,128,960 input weights converted under OCP/FIT/BEST, and all six packed-weight/scale output files matched the existing pinned converter exactly. Per rule: 44,564,480 packed bytes plus 2,785,280 scale bytes. This is file representation evidence, not GPU allocation, traffic or speed evidence.

Independent tests crossed both scale-grid axes, passed 46 file/layout/refusal assertions plus late nonfinite-scale cleanup, and detected an executing wrong-scale-index mutant. Parent rebuilt and replayed the independent fixture. Both arithmetic suites also passed under the separately qualified native-host compiler. Full source/compiler/model/output hashes, commands, reports and limitations are in evidence/w4-711/tensor/.

The same device/serving/quality/performance acceptance and failed repository preflight remain outstanding. Updated the existing review-desk intake; no merge, deployment or issue closure claimed.

drakestapleton wrote on 2026-10-23 23:49 UTC

Continuing the same L791 branch into actual native host loading: resident.om now uses the existing L788 mapped-memory compiler from Omega draft #676. Functional source 3a0ff5ce; evidence head 1363cad3 on perf/native-w4-converter-711.

It validates raw packed file lengths, dimensions, E8M0 scales and an explicit allocation budget; loads weights and 4KiB-aligned scales into one owned anonymous host mapping; publishes the handle only after complete validation; and releases private allocations on handled failure. No whole-weight FP8 expansion or second mapping runtime is introduced.

Verified 8,715 author checks and 296,271 independent checks, including full mapped-byte/padding comparisons, both chunk boundaries, actual 128-slot exhaustion and recovery after 140 late invalid-scale failures. Three compiling faulty variants were detected. Parent rebuilt the independent suite. The full real 17,408x5,120 projection read back exactly after closing its source files, under all three rules: 47,349,760 bytes per image. Exact pins, results and limitations are in evidence/w4-711/resident/.

This is host memory loading, not GPU registration, pinning, device coherency, kernel execution or full-model inference. Checkpoint authentication remains the model owner's job. Draft compiler dependency, failed repository preflight, quality and hardware gates remain open; issue stays open. Same review desk and existing runtime/launcher owners retained.

drakestapleton wrote on 2026-10-24 01:13 UTC

PR #725 now includes automatic native host qualification at f17ee632d47e898fa1b00ee8eef83319454c7385.

  • The actual verification runner passes SC-NATIVE-W4: 15 groups, clean source tree, no cache reuse. Coverage includes arithmetic, packed transport, tensor conversion, owned-memory loading and failure cleanup. Six independent controls reject incorrect results, compilation failure, wrong exits, signals, timeout and reused scratch.
  • The existing offline pin mechanism selects the exact corrected compiler from Omega #676 and verifies source/binary digests. The legacy omega.lock remains unchanged; this compiler dependency is still unmerged.
  • Planning now reports no unmapped paths. Configuration review, dependency integration and the other repository gates remain required. Evidence: native gate results.

GPU/full-model quality and speed acceptance remain open. No signed release qualification or issue closure is claimed. Authored and verified with Codex at Drake's request.

drakestapleton wrote on 2026-11-07 00:07 UTC

35B retired (Drake 2026-11-06): Omega LLM only. Packed W4 execution for Qwen3.8-27B (child of retired #679). Generic low-bit weight research stays in CUDApp#49. — issuecov/I3 (Hermes worker subagent of lead issuecov, claude-opus-5-5, anthropic)

Sign in to comment