Evidence and objective
Parent: Omega #652. On 2026-10-23, aien-train main exposes README/docs/evidence/streams, not a demonstrated complete native GPU trainer. Omega #606 owns the training-capability audit and numerical schedule work. This issue owns the dataset/model experiment and integration contract, not a duplicate tensor engine.
Test whether a small local model adapted on checked .om programs beats its unchanged checkpoint on unseen .om tasks while preserving declared general-code/instruction-following floors.
Prerequisites and ownership
- Consume benchmark #653 and curriculum #654.
- Reconcile the actual model/trainer owner in Sovereign Core and existing branches with Omega #606 before selecting paths.
- Require one independently checked forward/backward/optimizer update, native adapter support if used, finite-difference or other independent gradient controls, checkpoint/resume and model-output reload tests. Track concrete missing operators with their owners; do not invent a PyTorch/Unsloth/CUDA fallback.
- Use a small supported checkpoint or tractable block first. Choose size/rank/sequence length only after the actual memory ledger is measured. The current 27B model is not the default training target.
Implementation and experiment
- Freeze base model/license/tokenizer/template, .om language/compiler profile, dataset digest, split, precision, loss mask, optimizer and training budget before running.
- Implement/reuse the .om dataset reader and packed-sequence boundary handling. Correctly mask prompts, padding and rejected examples; prevent examples from crossing attention/loss boundaries incorrectly.
- Compare A: unchanged model with language documentation; B: unchanged model with retrieved examples; C: supervised adapter/specialist with the same allowed inference context. Keep total cost and exposure explicit.
- If parameter-efficient adaptation is supported, verify trainable/frozen parameter sets and adapter serialization. Frozen base weights do not eliminate the base forward computation or all activation-gradient costs.
- Use a short quality/cost pilot and measured stop conditions before scaling. Include generation cost of the corpus, actual training, checkpoint IO, evaluation and inference.
- Record per-family pass@1, budgeted success, syntax failures, incorrect semantics, instruction-following/general-code regression, latency, peak memory and time to a frozen quality target.
- Add failure classification to the existing trace producer in issue #1 without recording private samples in the standard trace schema.
- Deliver exact recipes, local artifacts/manifest and a small teaching example through issue #2. Retain the incumbent when quality or cost does not justify replacement.
Acceptance and controls
- Deliberately wrong loss masks, truncated records, stale compiler profiles and train/test overlap are rejected.
- Adapter reload reproduces predictions within the frozen numerical contract; checkpoint/resume preserves optimizer and RNG state.
- Shuffled-answer or deliberately corrupted supervision control does not earn an improvement verdict.
- Report uncertainty across predeclared seeds/task resamples; a single feasible run is labeled feasibility only.
- Optional RL is not required for this SFT result; a regressing later method cannot erase this baseline.
- No production model is replaced automatically. Selection goes through the existing independent evaluation/review path.
- Native implementation and test coverage are complete for the chosen bounded scope; missing hardware results remain NOT_RUN.
Research
Selective Left-Shift motivates syntax acquisition before RL but reports mixed results after RL and incomplete cost/hardware details. No Resource, No Benchmarks, No Problem? warns that continued pretraining can damage instruction following. Do not assume instruction-tuned models tolerate arbitrary continued pretraining.
Delivery contract
This is a finite workstream under Omega #599, not a new whole-system plan. Read aien-architecture-mv PLAN_AUTHORITY.md, CURRENT_EXECUTION_PLAN.md, the architecture release #190 ledger, applicable AGENTS.md and directory .crumb files, current issue comments and live worktree claims before editing. Record one owner and exact paths; reuse existing compiler, runtime, trainer, store, judge and publisher owners.
The final first-party implementation is seeded .om throughout, including experiment runners, data generation, build/release automation and project-owned tests. Qualify each replacement, cut consumers over, then delete superseded active-tree code and obsolete dependencies. Consult old code in Git history; preserve immutable historical evidence. No new .osc path, foreign runtime/compiler fallback, Python/Rust/C product wrapper or parallel authority service. Missing .om features are scoped dependencies for their existing owners. Independent third-party oracles may run outside the delivered build/runtime closure with disclosed identities.
Pin source, seed/compiler, model/tokenizer/template, dataset/split, policy, arithmetic profile, target and executable identities. Preserve raw failures and actual exit codes. Distinguish IMPLEMENTED from QUALIFIED and PASS/FAIL/INCONCLUSIVE/NOT_RUN; host/emulator evidence never establishes physical GPU qualification. Do not close an implementation issue from a plan or artifact hash alone. Use existing local hardware scheduling and publication/review workflow; do not interrupt active chip runs. A research result may legitimately be negative, but a stub or an unexecuted required gate is not completion. Keep private data local and preserve existing owner-controlled sharing rules.