Outcome
One .om application initializes a model, trains it, checkpoints, resumes, evaluates and exports it without PyTorch/Transformers/PEFT/Accelerate as execution dependencies. Existing main has docs/evidence/streams; reconcile actual trainer branches and Sovereign Core owner first. Extend Omega #606 and aien-train #3/#4 rather than build a separate trainer.
- Native parameter/module/state registration, train/eval behavior, tied weights, initialization, layers, losses and composition with shape/type contracts.
- Independently checked SGD and AdamW, parameter groups, weight decay, clipping, schedules, microbatch accumulation and mixed-precision/scaling policies. Preserve optimizer order and exact resume state.
- Train a tractable transformer from initialization and perform fine-tuning on a fixed licensed checkpoint; report validation/generalization, not merely decreasing training loss.
- Qualify LoRA/adapter training, freeze/unfreeze, merge/unmerge and reloading; quantized adaptation requires its own numeric path. Link preference/RL/distillation algorithms to existing #4 with named equations and finite budgets.
- Explicit tracked module coverage expands to convolutional/recurrent/vision/audio/diffusion models and catalogue families; no claim of torch.nn completeness from transformer layers alone.
- Test one independent forward/backward/update before a long run, then multi-step and interrupted/resumed equivalence. Detect wrong optimizer state, wrong frozen parameters and bad loss scaling.
- Publish source/model/data/numeric pins, quality metrics, full training cost and dependency retirement evidence. Missing tensors/gradients are dependencies, not foreign fallback permission.
Delivery rules
User-authorized plan, 2026-10-23, continuing Omega #599. All new first-party implementation, tests and automation use handwritten seeded .om. Qualify replacements, cut consumers over, and delete retired first-party implementations/dependencies from active trees; keep immutable history/evidence. External hardware/OS/firmware/API dependencies and independently sourced test oracles must be explicitly inventoried. No hidden C/.osc/Rust/Python production fallback. Missing language facilities are requests to the existing compiler owner, not permission to create a second compiler. Reconcile current branches, PRs, issue comments, ledger and worktree ownership before editing. Existing owners remain authoritative; one writer per shared compiler/runtime file. Preserve live serving, model residency, driver state, visibility and existing release coordination. This task does not authorize deployment, driver swaps or new hardware purchases. Use isolated candidates and coordinated hardware windows. Independent final-source review, exact commits/compiler/binary/config hashes, raw commands/exits and negative controls are required. Host, simulator and hardware results are separate. NOT_RUN/BLOCKED is not PASS. Do not auto-close from a source-only PR.
Expanded scope and parity policy
This belongs to Drake's explicit 2026-10-23 expansion: replace PyTorch and the surrounding AI software ecosystem in Omega. The two-vendor inference demonstration is an early milestone, not full ecosystem completion. Build independently implemented Omega facilities, not Python wrappers. Compatibility with external formats/protocols is allowed; a framework import shim is not replacement. Version the supported surface, map remaining capabilities to owned issues, and do not advertise universal parity from a small passing subset. Current branch/owner reconciliation precedes changes; source filenames below are migration evidence, not instructions to keep legacy code.