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

Experiment: qualify file-backed shared weights through native GPU mappings

Open · #25 · open 2026-10-22 17:08 UTC

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

drakestapleton wrote on 2026-10-22 17:08 UTC

Problem

Avoiding duplicate weight ingestion may improve load time and memory use, but CPU mmap alone does not establish GPU access. Current nvrm allocations and existing shared-memory branch work must be inspected before adding an import path.

Dependencies and scope

Follow explicit ownership/reservation work and #6 process isolation. Prototype a read-only file-page import only if the native driver interface can map those exact pages and retain their lifetime. No required change to the working driver and no silent staging fallback disguised as zero-copy.

Acceptance

  • Document the actual mapping/pinning/import API and CPU/GPU addresses, page alignment, cache contract, residency and teardown.
  • Prove reads access imported pages; compare against resident-copy and per-use-copy baselines, separating cold page-cache load from warm decode.
  • Check process sharing, immutable weights, file replacement/truncation policy, early unmap, process exit and stale-handle cases.
  • Bound resident memory and validate logits/tokens, load time, RSS/PSS and end-to-end decode across supported working sets.
  • Unsupported mapping returns an explicit refusal; lack of a native mapping mechanism is a valid documented no-go outcome.
  • Enable only when GB10 measurements and lifetime/isolation gates justify it.

Research: The Ingestion Tax (https://arxiv.org/abs/2608.12114), whose NVIDIA coherent-memory evidence is GH200, not a ready-made GB10/nvrm solution.

Evidence and closure

Review baseline: 232332422bfdc31c8918085b50f13c1e18ab702e; re-inspect the current tree and reuse existing work before editing. Coordinate with #5 and #6 and the serving/chip-window owner; host work can proceed independently of hardware scheduling. This issue does not authorize interrupting the live motor or switching kernel drivers.

Publish exact source/pin SHAs, build and binary hashes, commands, exit codes, hardware/driver identity, raw logs and relevant negative controls under evidence/. Separate host, simulator and GB10 results. Hardware acceptance needs a real coordinated GB10 run on the final integrated artifact. Keep CUDA userspace dependencies out of the deployed runtime. Do not close on a branch push, simulator-only hardware result or PR merge alone. Experimental issues may close with a reproducible negative result and explicit decision; do not claim an optimization shipped unless its integration gates pass.

Ingestion control arm: validate FP8 bytes while copying them (2026-10-24)

The file-page import experiment can compare one bounded ingestion optimization within the existing copied-resident control. At CUDApp 22e9d9bad9b9238996b05b68dfd73e4036ed354f, omega_gpu_fp8_tensor_upload first scans all experts*n*k FP8 weight bytes for NaN codes, then reads the same input again for memcpy into the resident allocation. The validator counts bad bytes and records the first offset; its caller requires rejection and the first offending offset.

Prototype a combined validate-and-copy pass into a destination that remains unpublished until byte validation, scale conversion, visibility and ownership checks all succeed. For an input of W bytes, this can remove one W-byte logical source read from the current scan-plus-copy sequence. It does not remove the required destination write, imply W bytes less DRAM traffic when cache hits occur, or accelerate warm decode after weights are loaded.

Additional completion evidence

  • Preserve checked dimensions/admission before allocation, first-error reporting, rejection of both NaN encodings, scale validation, lifetime/visibility and cleanup. A partially written failed destination must never become a usable GPU tensor or submit input. Test errors at first/chunk-boundary/last byte, scale failure, allocation/sync failure and successful equivalence.
  • Compare scan+optimized-copy versus combined traversal with cold/warm source pages and realistic weight sizes; report logical reads/writes, load latency, peak resident/transient memory and CPU time. A scalar combined loop can lose to a vectorized copy, so retain the measured decision and explicit no-go if appropriate.
  • Account for setup savings separately from inference and feed ownership #24 and traffic #17/Omega#602. This control does not depend on proving file-page GPU import and must not be branded zero-copy.

The native prefill QMMA tile path already references existing FP8 tensors in place. Do not charge the older optional repacked-weight upload path to the selected consumer without a call-path receipt.

Implement and qualify the owned successor and its project-owned tests in seeded .om, migrate consumers, and remove superseded first-party C/Rust implementations and dependencies from the active tree under omega-mv#599 and aien-architecture#300. A retained comparison algorithm must also be qualified .om; historical source/evidence remains in Git history. New findings here are source-derived hypotheses, with GB10 performance NOT_RUN.

Active-branch reconciliation

On 2026-10-24, Omega PR #696 remains open at cdc613f9cfa81daf0a47c9aa95182f40c177c44c; its seeded compiler includes AArch64 f32/f64 and native device/mapping operations. The selected graph/FP8/prefill/platform implementations inspected here are unchanged on that branch. CUDApp PR #67 is merged and current main contains handwritten .om device/policy/vector-kernel work; its evidence does not establish the complete 27B/FP8 successor. Reconcile with these existing owners and current branch heads before implementation; this source audit does not label all unmerged work absent.

No comments.

Sign in to comment