interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / train / omega-llm / tools / combined / experiment / README.md

101 lines · 5467 bytes Raw Blame History Rendered
1# Reproduce the selection experiment on AArch64 Linux
2
3Use the repository seed compiler, Python 3.11+ for the outside judge, and the CPU
4sampler and model files named in the combined solver README. The model files are
5private. The published per-task responses can be audited without them.
6
7For the traversal repair and rerun, use source
8`a5ec28b33a5950bbd98fa30f19945cb47f9932a9`. Both kits use the repaired
9expression synthesizer. The baseline alone uses the sketcher from the verifier
10fix. After building the two kits, install the identical sampler, merge table
11and private checkpoints listed in the combined solver README in each kit. The public audit below needs none of these
12model assets.
13
14From the repository root, set `BASE` and `IMPROVED` to two new absolute kit paths.
15
16```sh
17set -eu
18E=train/omega-llm/tools/combined/experiment
19sh seed/omega-from-seed.sh
20train/omega-llm/tools/combined/build.sh "$BASE"
21train/omega-llm/tools/combined/build.sh "$IMPROVED"
22git show e522d8a124b388473d4705ba524a46cf56f8476d:seed/helix/ollm_factory/om_sketch.om > "$BASE/old-sketch.om"
23"$BASE/omc" < "$BASE/old-sketch.om" > "$BASE/om_sketch"
24"$E/build.sh" "$BASE"
25"$E/build.sh" "$IMPROVED"
26# Install the private model assets in both kits for the CLI runs below.
27python3 "$E/fixture.py"
28(cd "$E" && python3 -m unittest test_selection)
29python3 "$E/measure.py" dev dev-before --kit "$BASE" --rewrite-only --jobs 5
30python3 "$E/ablate.py" "$IMPROVED" dev-sketches
31python3 "$E/measure.py" eval fresh --kit "$BASE" --improved "$IMPROVED" --jobs 8
32python3 "$E/summarize.py" fresh
33```
34
35The output directories must be new. All four arms seal their programs before the
36judge opens final scoring labels. Compare `baseline` to `improved_cli` for the
37sketch change, `improved_cli` to `fixed` for candidate selection, and `fixed` to
38`adaptive` for query selection. Both selectors use symbolic candidates. The CLI
39can also attempt the frozen neural fallback. The `seconds` field times selection,
40including queries and compilation. Final scoring is timed separately. Sum of task
41seconds is cumulative elapsed selection time across workers.
42
43The sketcher recognizes optional experiment spec lines `skip N` (skip N matching
44sketches) and `rewrites MASK` (bit 0 enables the scaled next-item update, bit 1
45the scaled first-item update). Normal invocations select the first match and enable
46both new patterns after the existing library. The proposed scale is drawn from the
47spec constants or from an exact ratio in an observed update. Every emitted program
48must satisfy all supplied rows, including all eight array cells.
49
50`fixed` and `adaptive` enumerate both engines in a deterministic order. In addition
51to later sketch matches, the harness varies constant order, projects answered
52examples and permutes scalar arguments to produce alternative expression programs.
53It checks every proposal against all observed answers before admission. Programs
54that fail on unlabeled probes yield an undefined prediction. No reference is queried
55to generate proposals. See `protocol.md` for scoring and advancement rules.
56
57## Recorded interruption and diagnostic continuation
58
59The first registered run, before the traversal repair, stopped before final scoring. The expression synthesizer exited
60104 on the fixed task `eval-equal-offset-4` and the production CLI returned 70.
61The receipt includes the public numeric spec. Passing it to
62`om_synth solve INPUT_SPEC OUTPUT_FUNCTION` reproduces the component failure.
63For that historical comparison, use the two kits recorded in the [interruption report](../../../../../evidence/OMEGALLM-SELECTION-20261123/REPORT.md), including the preceding synthesizer. First let the registered command stop.
64Keep the output directory, then run:
65
66```sh
67python3 "$E/measure.py" eval fresh --kit "$BASE" --improved "$IMPROVED" --jobs 8 --diagnose-interruption
68python3 "$E/summarize.py" fresh
69```
70
71The diagnostic harness checks the fixture and both kit fingerprints, retains the
72sealed prefix and records execution errors separately. A failed candidate run has
73no selected program. Only retained invocations have complete query accounting.
74This diagnostic continuation is ineligible for promotion. The selection algorithm,
75reference, input split, model weights and sandboxed executables have the same
76hashes or source as the registered run.
77
78## Replay the published grades using public source
79
80From the experiment checkout, the following commands build the seeded compiler
81and prediction instrument and execute every published answer on the frozen final scoring
82inputs. The audit compares each observed verdict and first counterexample with
83the receipt. The neural sampler and checkpoints are needed only to regenerate
84the complete CLI comparison.
85
86```sh
87E=train/omega-llm/tools/combined/experiment
88sh seed/omega-from-seed.sh
89A=$(mktemp -d)
90train/omega-llm/tools/combined/build.sh "$A/kit"
91"$E/build.sh" "$A/kit"
92python3 "$E/audit.py" evidence/OMEGALLM-FRONTIER-20261123/comparison.*.json "$A/kit" --replay-selection --jobs 6
93python3 "$E/test_rewrites.py" "$A/kit"
94```
95
96The historical checked and prompt-only conditions use the improved kit. Run
97`python3 train/omega-llm/tools/combined/regression.py "$IMPROVED" history --jobs 6`
98from the repository root with a new output directory. The traversal checks use
99`bash seed/helix/ollm_factory/neuro-symbolic-gate.sh` and
100`python3 evidence/OMEGALLM-FRONTIER-20261123/controls.py`. The theorem file uses
101Lean 4 with the standard library.