interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / om / flint / PROFILE.md

109 lines · 6243 bytes Raw Blame History Rendered
1# Flint frozen host-forward profile
2
3Status: IMPLEMENTED and EXERCISED on Spark host CPU only, 2026-10-29. Not a device backend.
4Base: sovereign-core fc3b8626d724ecf9ffb21d573592fc2ea5f44974 (#805).
5Main fetched during this work: 65e712b7dc58d15ba1f9284e66e2da507a70c380.
6Checkpoint: RecursiveSI/flint@2a247be0c0aec895ccb0ac7ca92229ec6df37288, Apache-2.0.
7
8## Reproduction
9
10```
11taskset -c 0-4 nice -n 10 ionice -c3 env \
12 OMC=/path/to/omega-mv/seed/out/omc \
13 FLINT_SRC=/path/to/pinned-source-capture \
14 FLINT_SHARDS=/path/to/downloaded-shards \
15 FLINT_PY="env PYTHONPATH=/path/to/transformers-a672 /path/to/python" \
16 FLINT_FORWARD=1 bash om/flint/check.sh
17```
18
19Compiler source omega-mv bf54b19f; binary SHA256
20`62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b`.
21This is the existing #805 test compiler, not a production compiler-pin change.
22Reference runtime: Python 3.12.3, torch 2.14.0+cu130, transformers 5.21.0.dev0
23at a672eb5f474b8b30173e9f96eab66adf292da635, safetensors 0.8.0, numpy 2.5.3.
24The config's recorded transformers_version is 5.12.1; this is distinct from the
25pinned runtime used for current Flint support. Referee runs single-threaded eager
26attention/experts on CPU with deterministic algorithms.
27
28## Frozen identities (SHA256)
29
30| Component | SHA256 |
31|---|---|
32| config.json | a57c33d11f725099105b657043c113149763066d204fd472d0b2ee399abc2ba7 |
33| model.safetensors.index.json | e5e9c492685f84c8d2d8369f36c74674b03410715f23f6179313f6f1feb90311 |
34| tokenizer.json | a263cce0b7e2b03f7ee07ce809783ef4b47f160c3f268a4ea1524f638da45b68 |
35| tokenizer_config.json | 159ac88217e90ffd0a4a294726048bb302829e82e1958dc85bb203aa79138fbf |
36| chat_template.jinja | 7940f4ffa3275c36caa4a582f845aaad79da11018b3961e8fbcad6ae29733466 |
37| generation_config.json | a499c71895e008abd572558a5ad5904feaed92cf2a3b6e2cb0e9cabf03b96ed3 |
38| modeling_flint.py at runtime | f0540832049f0d67eee9eadd2d8ed42e320388b6b3330e74c8821a5c4eac0c09 |
39| configuration_flint.py at runtime | 849eee3068846081077a7568663355802c8c4eec3741d92cd578d222bd144d00 |
40| conversion_mapping.py | 93a992136d09ac875341cd645294f30d133af46efe073430c85fc20731240834 |
41| masking_utils.py | 03912b9f8910358966351495075895ef0e8f5048f15226271d700ea268fef08c |
42| transformers source archive | 5d82e0de4bf993484299bcc1f2ef78d1d3f4ff23cee411f42f486b774f5f6615 |
43| admitted tensor inventory TSV | 60ff4dbdaa1c3632c934c6935aa60ed5b2def4e15f0ca5083ddc7dd660f083f5 |
44| chained forward fixture | b5e4bae28af3c1fa0c8f7454c496e72da1388e17f51bb3ec9e9b0387aac97031 |
45
46Per-shard hashes are in `PROFILE-SHARDS.sha256`; all 15 downloaded shards were
47rehashed and matched the source capture before this work. Storage is BF16, with
48no quantization descriptor/scales in this checkpoint. No lossy repack was applied.
49Generation defaults in the pinned capture: do_sample=true, temperature=1.0,
50top_p=0.95, top_k=20. The forward referee does not sample: token IDs [1001,8920]
51are fixed, not produced by a chat template. The tokenizer/template are frozen
52for future task workloads but not exercised by this tensor-only fixture.
53
54## Architecture audit
55
56Line numbers refer to pinned config.json and modeling_flint.py, respectively.
57
58| Requested property | Observed evidence | Verdict |
59|---|---|---|
60| 49 layers, 2 dense + 47 MoE | config:73-82 mlp_only_layers=[0,1], num_hidden_layers=49 | Matches |
61| 256 experts, top-6 sigmoid | config:80-81,105; reference:90-101 | Matches |
62| Selection-only expert bias | reference:97 explicitly says without expert bias; gate.weight only, no gate bias in inventory | **Mismatch: no expert bias** |
63| Ungated shared expert | reference:149,155-157 | Matches |
64| Learned attention sinks | config:108; reference:225-227, checkpoint softmax_offset tensors | Matches |
65| 35 local layers, window 513 | config:21-70,107 | Matches |
66| 14 full layers, no RoPE | config:84-99; reference:280-283 | Matches |
67
68Wolfram query for counts and modeled sizes is recorded in test/TOLERANCE.md.
69Reference behavior, not the inaccurate bias claim, is implemented. Native storage
70remains BF16; compute f64 vs reference f32 is an explicit numerical-profile change.
71No BF16-activation, GPU, sampled-token, long-context, batching or task-quality
72qualification follows from this candidate forward result.
73
74## Existing GPU contracts
75
76This bounded CPU verifier is not a second GPU runtime, cache, quantization schema
77or MoE scheduler. #156's descriptor remains the GPU format authority; #159 remains
78the native grouped-MoE authority; #157 composition and closed #158 cache identities
79are unchanged and not exercised by this host verifier. Their GPU integration,
80native encoded dispatch and physical receipts remain NOT_RUN, not implicitly reused
81by a claim of host tensor parity.
82
83## Host-loop profiling and numerical invariants
84
85The initial native CPU profile used `monons` wrappers in an isolated compilation
86unit stored with the operator receipts, not in the product source. Timers aggregate
87whole calls, not per-element syscalls. They include instrumentation overhead:
88
89| Loop/helper | Accumulated ns | Calls |
90|---|---:|---:|
91| bounded dot product `dotr` | 30899920888 | 3201792 |
92| tensor read/decode `ld_bytes` | 10814711443 | 2478 |
93| inventory search `tsv_find` | 8860325941 | 2478 |
94| integration comparisons `fw_cmp` | 88531129 | 300535 |
95| MLP activation `mlp_h` | 55114892 | 613 |
96| RMSNorm `rmsv` | 11444826 | 3726 |
97
98These are instrumented call totals, not disjoint percentages of uninstrumented
99wall time. The measured hottest loop was `dotr`. The forward-only `matdot` retains
100the exact f64 conversions, products and reduction order but omits the two per-product
101error sums that the forward integration comparison does not consume. Those slots
102are cleared, not left stale. The forward integration budget and every comparison
103are unchanged. Router dots retain the bounded implementation for tie reporting;
104the existing per-operator checks retain the original bound accumulation.
105
106`worst_ppm` is the maximum `|native-reference|/(2E)` expressed in millionths.
107WolframLanguageEvaluator: `N[694277/1000000*100,6] -> 69.4277`.
108Thus the observed `694277` means approximately **69.4% of the comparison budget**
109was consumed; it does not mean a 69.4% relative tensor error.