interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

Evaluate rotation-aware low-bit weights at equal total storage and measured quality

Open · #49 · open 2026-10-22 22:50 UTC

Imported from GitHub aien-dev/CUDApp#49, by drakestapleton

drakestapleton wrote on 2026-10-22 22:50 UTC

Evidence and scope

Follow-up to aien-dev/aien-architecture-mv#297. Three fixed matrices showed lower toy symmetric INT4 error with 128-wide Hadamard rotation. These were weight-error results, not NVFP4, model quality, latency or energy results.

Stages / acceptance

  • Specify a deterministic native Omega transform/quantizer with frozen seeds, supported axes/block sizes, scale/zero-point metadata and rounding/nonfinite contracts.
  • Independent synthetic and byte/format oracles before real checkpoints; preserve exact reproducibility and frozen calibration/evaluation selections.
  • Compare identity, rotation, zero-structure-aware alternatives at equal total stored bytes including transforms/scales/padding and online activation work. Do not assume rotation and sparsity gains compose.
  • Measure activation/output/logit errors, perplexity and agreed task metrics on held-out inputs; set model-quality acceptance before selecting winners.
  • Preserve the original exact path. Use #16/#17 for model-level quality and paired runtime/energy/traffic receipts; report setup/prefill/decode separately.
  • Adopt only with measured full-cost benefit, otherwise record no-go.

This is the approximate lane. It does not change the exact-token contract or deploy a paper's implementation/inference engine. QuaRot and QuIP are mathematical precedents, not proof for this model/hardware.

Execution and safety

Personally implemented by this Hermes chat per Drake; no subagents or duplicate workers. New product logic is seeded native Omega, not new C/Rust/Python implementation. Python may orchestrate I/O, generate fixtures and serve as an independent oracle; compiler changes belong to existing compiler owners. Reuse CUDApp #5/#16/#17/#25 and existing sparse-core work rather than changing their branches. No live model/driver restart, hardware takeover or default-path change.

Publish source/compiler/binary/model pins, commands, raw results, refused inputs and negative controls. Host representation results are not GPU speedups; weight error is not model quality. Issues stay open until their own gates pass or a reproducible no-go is explicitly recorded.

Final bounded experiment decision

All three frozen calibration-free block-128 INT4 candidates are NO-GO under the predeclared model-quality limits. Full evidence and acceptance disposition: https://github.com/aien-dev/CUDApp/issues/49#issuecomment-6357788529 The checked quality/no-go rows mean measurement and rejection are complete, not that accuracy passed. Equal online/full-format costs and paired native GPU/runtime/energy acceptance remain unchecked; this broader issue stays open. Nothing was deployed.

drakestapleton wrote on 2026-10-22 23:48 UTC

First native rotation/INT4 component delivered; adoption gates remain open

Personally implemented and reviewed. No subagents, compiler workers or live-service changes.

Source/evidence: https://github.com/aien-dev/CUDApp/blob/c652f1b257cbf36d9e0d2fc1a8e2e7ea0f7f9fa4/evidence/ROTATION-INT4-L600/README.md Published branch feat/rotation-int4-native at c652f1b257cbf36d9e0d2fc1a8e2e7ea0f7f9fa4, stacked on the #48 candidate 566dc53502321166f4a898a29f8e4f828a209239. Not merged or deployed. GitHub's immutable tree verified all 43 manifested files plus the manifest.

Implemented and verified

  • Native Omega FP8 decode, 128-wide Hadamard, nearest-even symmetric INT4 encode and exact rational reconstruction. Deterministic, calibration-free first slice; no NVFP4/kernel claim.
  • Independent Fraction/explicit-matrix and NumPy/ml-dtypes references. All 254 finite FP8 codes verified, both NaN codes refused.
  • 609/609 native cases, four I/O controls, eight output/compiler safety controls pass. All three compiled mutants caught (50/31/22 cases). Original meaningful RED results retained.
  • Existing complete host target passes all 33 prerequisite targets.
  • Fresh complete committed export reproduces native binary, source closure and every byte of the five-matrix comparison, exercising the public Make target from an unrelated directory.

Result, not adoption

Four of five frozen matrices improve, but layer0/expert0/down_proj regresses: weight error +6.0836%, synthetic-output error +2.3429%. It loses all 280 zero columns; three exactly-zero reference probes become nonzero. The other weight-error reductions are 15.5669%, 3.7505%, 2.2399%, 9.7700%.

Both INT4 candidates cost 557,568 bytes per selected matrix including frame headers, maxima and unchanged scales (46.832662% smaller than original weight+scale bytes). The sparse expert's lossless representation costs only 547,476 bytes, with no quantization error. It is a separate exact comparator, NOT a completed equal-bit zero-aware quantization alternative. Blanket rotation is therefore rejected.

40 synthetic vectors per matrix are diagnostic only: NOT real activations, logits, perplexity or task accuracy. The 896 add/sub per128 transform is an operation count, not measured latency. Final checkpoint/container/GPU padding, resident memory, setup/prefill/decode runtime and energy remain unqualified.

First two component/oracle criteria are met for the explicit calibration-free contract. The remaining acceptance criteria stay unchecked: real activation/model quality qualification with frozen thresholds, matched-budget zero-aware alternative, loader/native GPU integration and full-cost measurements via #16/#17. L600 remains the personal owner; #50 stays queued. No delegated follow-on or merge authorization.

drakestapleton wrote on 2026-10-23 01:51 UTC

Zero-aware native packing and real-activation diagnostics published

Public evidence: https://github.com/aien-dev/CUDApp/blob/43161977f1f4ccc0d4a29cb59472092032cc5ad3/evidence/ROTATION-MODEL-L600/README.md

Native source 6605ee7f006fc32cd59a13ee8895ec3fe232411a; publication 43161977f1f4ccc0d4a29cb59472092032cc5ad3. External test-reference source e1608d17ce0839886f85f8486f900d50c7924200, diagnostic continuation 7ab43aed49e2ec8791ebd8f8f4c6cb62d8fe9fe7, published on aien-dev/aien-sovereign-core-mv:study/rotation-quality-l600. These are dedicated study branches, not merged/deployed product paths.

Newly verified

  • Native v2 zero-aware mode and repeated-frame protocol. 609 v1 and 141 v2/stream cases, both transaction-capacity boundaries, eight I/O controls, eight builder/filesystem controls and six compiled semantic mutants pass. Five quality-policy boundary tests and both weakened-policy mutants pass. The repository's 33 host targets pass.
  • All 30,840 routed/shared gate/up/down matrices in all 40 layers reconstructed for each candidate and the nine-level negative control. Every arm consumed identical original weight/scales hashes and executed 1,973,760 native transactions. This is full expert payload data, not header extrapolation.
  • Equal encoded frames plus source scales: 17,195,397,120 bytes versus original 32,342,031,360 bytes, a 46.832662% reduction for that expert region only. Unconditional Hadamard destroys 106,453,476 original numerical zeros; identity and zero-aware preserve all 363,374,628. No GPU-residency/traffic/speed claim follows.
  • A fresh committed native export reproduces both binaries and the five-matrix comparison bytes. Final diagnostic reference export passes 406 package tests, zero failures, 21 existing ignored tests; fixture-setup failures are preserved separately.
  • The short real-activation diagnostic now reaches three shared-expert linear maps per arm and records all 40 layer residual-input errors and final-logit errors. All three arms exactly reproduce the earlier 32-position outputs. The earlier zero-probe routed-expert diagnostic is retained, not hidden.
  • GitHub readback verified all 274 manifested evidence files plus their manifest, 14 native source-closure files, and both external-reference source snapshots.

Remaining acceptance, unchanged

The complete 10-by-512-position public/held-out corpus plus the AGPL passage and compiled nine-level negative control are still running through the immutable original reference executable. The short diagnostic is not that quality gate. The thresholds remain the frozen R1/R1b/R2 criteria; no passing full-model verdict is claimed.

The offline equal-byte comparison is complete, but the acceptance checkbox also names online activation/full costs, so it stays unchecked. The model-quality checkbox stays unchecked pending complete corpus totals and negative-control rejection. Native GPU attachment and paired setup/prefill/decode/traffic/energy remain unqualified: the checked backend is explicitly LAB ONLY / LAUNCH PROHIBITED. Existing L408 owns the missing qualified native interface; no duplicate worker or legacy product workaround was introduced.

No live restart, driver change, default-path change, merge, deployment or adoption. Author review only, as personally requested. L600 and this issue remain open; the running batch's completion notification is armed for final verification and publication.

drakestapleton wrote on 2026-10-23 05:01 UTC

Complete full-corpus result: NO-GO for all three frozen INT4 candidates

Final source/evidence: https://github.com/aien-dev/CUDApp/blob/f7403fb80241bd9508f7899b11a4cf600e056736/evidence/ROTATION-MODEL-L600/README.md

The experiment completed; none of the candidate quantizers passed the frozen quality rules. Process exit 0 records completed evaluation and successful rejection of the negative control, not successful candidate quality.

CandidateGolden mean-NLL increaseHeld-out mean-NLL increaseDecision
Identity INT426.32%18.00%Reject
Hadamard INT417.73%18.53%Reject
Zero-aware INT416.64%16.49%Reject
Nine-level negative control142.03%141.66%Rejected as required

The predeclared maximum is 7% in each group. All three candidates also fail both held-out agreement floors. Zero-aware reaches 97.5407% at reference margin >=0.1 (required 98%) and 99.3383% at margin >=1 (required 99.8%). Hadamard and zero-aware pass the separate AGPL passage criterion, but that does not override a failed group. The full table includes exact denominators and all group-level results.

Completeness and verification

  • 44 paired arm/prompt cases, 5,519 candidate-scored positions per arm, 22,076 total. All FP8 controls pass; baseline logits/positions match across every arm.
  • A separately implemented post-run aggregator recomputes counts, means, acceptance, perplexities and route/near-tie statistics from raw positions. It does not call the original quality() function. This is personal mathematical verification, not an independent review claim.
  • All consumed native-derived tensor receipts match their complete precompute census. The original model closure was fully rehashed after execution: all 52 files match the earlier hashes. Corpus and binary identities are unchanged.
  • Wolfram independently checks derived counts, loss percentages, confidence agreements, perplexities and rejection.
  • Every per-position output, tensor identity, command status and log is losslessly archived. GitHub readback verifies 659 manifested files plus the manifest and 14 native source-closure files at the final commit.

Ruling and remaining scope

The zero-aware mechanism preserves all 363,374,628 original numerical zeros and retains the same 46.832662% expert-region encoded-byte saving. Those representation properties survive this result, but they do not preserve enough model quality for adoption.

Do not deploy these candidates, weaken thresholds, select only the favorable passage or promote the short diagnostic to a quality gate. This is a reproducible no-go for these calibration-free block-128 INT4 candidates, not a proof against every rotation/precision/calibration approach. The goldens score frozen reference-model tokens; their teacher-forced perplexity is not a broad natural-text benchmark or task suite.

The quality-measurement and record-no-go criteria are now satisfied for this experiment. The broader issue stays OPEN: native GPU attachment, online/full-format costs and paired setup/prefill/decode/traffic/energy remain unqualified. No hardware experiment is justified for these quality-rejected candidates. Existing L408 retains the qualified-native-interface dependency; no duplicate worker or legacy product workaround was created.

No source threshold change, rerun-until-pass, merge, deployment, live restart or driver/default-path change. The original exact path remains untouched. L600 retains the broader #48 integration/#50 work; this #49 experiment has a final published rejection, not a running batch.

Sign in to comment