Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-train/blob/main/native/collective/README.md # aien-train AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-train / native / collective / README.md` 86 lines ยท 7599 bytes Raw Blame History Rendered 1 # SI sparse collective: native .om algebraic pilot 2 3 **Status:** Review branch. Seeded omc rejected `bestscore` (error 13: names at most 8 characters). This commit renames that local to `bscore`. Host sandbox execution of the pinned compiler is filed with the PR comment request; it is not repository qualification. Live model training and DGX Spark qualification remain **NOT_RUN**. 4 5 **Issue:** [aien-train #26](https://github.com/aien-dev/aien-train/issues/26) under [SI Fusion architecture #306](https://github.com/aien-dev/aien-architecture-mv/issues/306) and [SI Genesis #307](https://github.com/aien-dev/aien-architecture-mv/issues/307). 6 7 This is deliberately a small first-party handwritten seeded Omega experiment. The branch does **not** introduce a neural trainer, a new runtime, a model router, another Cortex store, a GPU scheduler or a public endpoint. It does not import, modify or download any model checkpoint. Existing [Omega #694](https://github.com/aien-dev/omega-mv/issues/694) owns native 0.8B/2B inference; [Omega #695](https://github.com/aien-dev/omega-mv/issues/695) owns physical batching; [Core #737](https://github.com/aien-dev/aien-sovereign-core-mv/issues/737) owns Spark admission. 8 9 ## What the small program actually does 10 11 [`shared_bank_p0.om`](shared_bank_p0.om) creates a synthetic common integer matrix B of shape 2x3 and a 3-vector x. The 8 specialist candidates are *rank-one* differences U_i V_i^T where U_i has 2 entries and V_i has 3. Their response is: 12 13 y(i, sign) = B*x + sign*U_i*(V_i^T*x) ; sign in {+1,-1} 14 15 - It computes the common B*x **once** into a two-element scratch array. 16 - It calls the same rank-one adapter evaluator for eight candidate indices in positive and negative phases, checking all **16 outputs**. 17 - It checks two selected candidate IDs by a deterministic score and allowed mask: [1,3]. It is a toy proposal policy, **not** AEGIS authority or a trained router. 18 - Denying ID 1 makes the top choice ID 3. Refusing all 8 returns sentinel ID 8 rather than executing an invented model. 19 - It refuses out-of-range candidate ID, denied candidate and unsupported phase. A nonzero program exit indicates a failed self-test. 20 - It separately asserts the shared base was computed exactly once, and 16 admitted adapter calls occurred. 21 22 Only exact bounded signed integer arithmetic is used. This fixture does not check numerical FP8/GDN/attention, train a LoRA, allocate GPUs or implement multi-tenant security. 23 24 ## Independent mathematical reference 25 26 [`fixtures/golden_v0.json`](fixtures/golden_v0.json) is a frozen independent Wolfram integer-matrix oracle, not calculated by the proposed native .om kernel. The test's expected common response is [16,-8]. 27 28 | Candidate i | positive output | negative output | 29 | --- | --- | --- | 30 | 0 | [-2,-2] | [34,-14] | 31 | 1 | [10,-2] | [22,-14] | 32 | 2 | [16,-8] | [16,-8] | 33 | 3 | [16,-20] | [16,4] | 34 | 4 | [10,-38] | [22,22] | 35 | 5 | [-2,-62] | [34,46] | 36 | 6 | [-20,-92] | [52,76] | 37 | 7 | [-44,-128] | [76,112] | 38 39 Reproduce reference values with an independently obtained Wolfram Language kernel: 40 41 ```wolfram 42 x={2,3,5}; 43 b={{2,-1,3},{1,0,-2}}; 44 out[i_,sgn_]:=(b+sgn Outer[Times,{i-3,i+1},{1,3-i,-1}]).x; 45 Table[{i,out[i,1],out[i,-1]},{i,0,7}] 46 ``` 47 48 ## Native execution instructions 49 50 In a **claimed isolated AArch64 worktree** with the current owner-approved Omega seed compiler, and a separate checkout of `aien-train` at the PR head: 51 52 ```sh 53 cd /path/to/pinned/omega-mv 54 sh seed/omega-from-seed.sh 55 mkdir -p build/si-sparse 56 seed/out/omc < /path/to/aien-train/native/collective/shared_bank_p0.om > build/si-sparse/shared-bank 57 chmod +x build/si-sparse/shared-bank 58 timeout 10 build/si-sparse/shared-bank 59 printf 'native_exit=%s\n' "$?" 60 sha256sum seed/out/omc build/si-sparse/shared-bank 61 ``` 62 63 Expected executable exit: 0. 64 65 Observed host record (HOST aarch64 only, 2026-10-30, reviewer-run): omc sha256 ``2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`` (omega-mv `e5b32567` pin) compiled `shared_bank_p0.om` to a binary with sha256 ``b3368c5e9cf2b238fee63c0c04b38223205d6b634ce871dba8c9ceaf50f3bba8``, exit 0. Source mutant: changing the single `sub sid 3` to `sub sid 4` makes the program exit 4, so the self-test catches it. This is host execution only; it is not emulator, GPU or Spark qualification. A future compile failure must be recorded and fixed by the existing seeded compiler/profile owner or in this branch's source; do not replace it with Python/C/PyTorch product execution. On an x86-64 system without a qualified AArch64 emulator, a native execution is NOT_RUN, not PASS or FAIL. 66 67 Do not use this AArch64 smoke to infer an sm_121 GPU kernel already exists. Preserve raw commands, compiler/source hashes, program output and independent checker review when executed. 68 69 ## Engineering hypothesis, and an intentionally weak example 70 71 For **eight full 2x3 expert matrices** the raw dense baseline has 8*6 = 48 scalar weight entries. The shared representation stores 6 common + 8*(2+3) = 46 scalar entries **before** counting routing scores, masks, dictionary metadata, provenance, padding, tensor formats or code. This tiny example is likely *not profitable* in total serialized bytes or runtime work; it exists to check correctness and illustrate reuse. 72 73 Only with much larger matching matrix shapes and low-rank learned adapter deltas can a shared representation plausibly reduce external memory bytes. Rank-r factorization is evaluated over its full metadata and low-rank projection operations; quantized formats must be compared at identical quality. The real 35B and 27B have different architectures and cannot simply share parameter coordinates. 74 75 **No physical memory-bandwidth saving, token speedup or model quality improvement is claimed.** 76 77 ## Next owner steps 78 79 1. DONE (host aarch64, see the observed host record above): on existing approved seed/host chain, run the exact .om positive/negative cases and independently mutate one factor sign or one expected oracle entry; the gate should fail. Record SHA, command, exit and whether the test ran on host/emulator. 80 2. Verify the actual current 0.8B staging/model-license/quant/feature profile through [Core #737](https://github.com/aien-dev/aien-sovereign-core-mv/issues/737) and native Omega model requirements [#694](https://github.com/aien-dev/omega-mv/issues/694); do not acquire weights or take a Spark lock without approval. 81 3. In native aien-train #3/#6 work, train eight real same-base specialist adapters using independent admitted data. Compare eight exact standalone small models as a control, and a truly from-scratch experience model via existing #19 as a distinct origin. 82 4. Use verified microjob ABI [protocols #50](https://github.com/aien-dev/aien-protocols-mv/issues/50), Allen [#13](https://github.com/aien-dev/allen/issues/13), Omega [#695](https://github.com/aien-dev/omega-mv/issues/695) and current FORGE device owner to route a bounded number of qualified adapters **without duplicating full base weights**. 83 5. Freeze independent full-task quality/safety/economics in [benchmarks #38](https://github.com/aien-dev/benchmarks-mv/issues/38); only scale the candidate count 8 to 32 to 128 if the completed objective and physical cost improve at matched quality. 84 6. Final product-owned code/tooling remains seeded .om, and [architecture #300/#316](https://github.com/aien-dev/aien-architecture-mv/issues/300) controls elimination of first-party legacy runtime dependencies after separate verification. 85 86 No code in this branch changes the production server or shared compiler. GitHub draft PR does not mean qualified execution.