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 / docs / turing / TURING_YIELD_TY7_PROTOCOL.md

211 lines · 16651 bytes Raw Blame History Source

Turing Yield TY-7 protocol: bits of T per wall joule for the 27B on our engine (pre-registered)

Status: PRE-REGISTERED 2026-10-19. Committed and pushed on branch research/turing-energy-rerun (base omega a8ffd2b9) before any timed window. Any change after data is seen is a dated amendment at the end of this file, committed before the run it affects. Ledger line L109.

1. Question

How many bits of T does the 27B language model earn per joule of wall electricity while it decodes? T is defined by measurement profile V0 (TURING_YIELD_PROFILE_V0.md section 1): T(M; B, D) = DL(B, D) - DL(M, D), with DL(M, D) = L(M) + L(D|M), every length in bits, every model paying for its own description.

Plain words: T counts how many bits shorter a text becomes when written down with the help of the model instead of the baseline, after the model has paid for writing itself down too. E is the electricity the box drew while the model did the work. T/E is bits saved per joule.

2. What the server can and cannot give (ground truth, checked before registration)

3. Fallback used (fits PROFILE V0, declared honestly)

D = the token sequences the model itself samples at temperature 1.0, top_p 1.0, top_k 0 (untruncated: the model's own distribution), in reply to a fixed prompt set. Then:

4. The baseline B and the ladder

All models code the same symbol stream: per reply, the sampled token ids in order, followed by one end symbol (id V, the stop marker, V = 248,320 = vocab_size in the model's config.json) if and only if the reply's finish_reason is stop. The end symbol is coded by B so that B describes where each reply ends, which the model's own code does as well when it samples its stop token. If the server's reply_logprob already includes the stop draw and the token ids omit it, B's extra end symbol is the matching cost; if the token ids include the stop token, no extra symbol is added (rule applied mechanically by the reducer from sampled_tokens versus the id count, and reported). Alphabet size K = V + 1.

Reported numbers per round and pooled: K, symbols, L(D|uniform), L(D|B), L(D|B_warm), L(D|M), and

5. Prompts (fixed, hashed)

evidence/TURING_YIELD/ty7-2026-10-19/prompts.txt: 8 lines, one prompt each, written for this protocol (topics chosen to vary: weather, a recipe, a bridge, a letter, a market, a train, a garden, a workshop). Each request sends "Continue this text in plain prose. Write only the continuation.\n\n" + line as one user message. The file's SHA-256 is recorded in the evidence README before the first window. The prompts are not D and are never scored.

Request body per prompt i (1..8) in round r (1..3): `temperature 1.0, top_p 1.0, top_k 0, max_tokens 256, seed 1000*r + i, aien_return_token_ids true, stream false`. Same prompts every round, different seeds, so each round codes a fresh, independent D. Every reply is checked: aien_sampling.top_k_applied == false, aien_sampling.top_p absent or 1, sampled_tokens > 0, greedy_tokens == 0. A failed check refuses the round.

6. Energy

Meter: wall power from the UPS (~/yardsticks/sensors/<date>.csv, one row every ~2 s: epoch s, wall W, GPU W, GPU util, load1, MemAvailable kB, lock holders, NVRM errors). Wall W = UPS load x 10 W (1% steps of 1000 W), whole UPS output, not the Spark alone. Package energy: the aien_spbm hwmon is not loaded on this boot (no /sys/class/hwmon/*/name equals aien_spbm; loading it needs sudo, which agents do not use), so E_pkg = UNAVAILABLE and is reported as such. NVML is not used anywhere in the measured path; nvidia-smi columns in the sensor log are context only.

The server is shared (aien-translate keeps it busy most of the time) and runs one generation at a time, so during one of our requests only our generation runs in the engine. Energy is therefore counted over **our request intervals only** (from send to last byte, epoch ns, recorded by the driver):

Also reported per round: tokens, request seconds, tokens per second, J per token (gross and incremental), mean GPU W, load1 and MemAvailable at start and end, lock holders, server busy fraction during IDLE windows.

7. Session order and box rules

One session: IDLE0, WORK1, IDLE1, WORK2, IDLE2, WORK3, IDLE3. IDLE windows are 60 s with no requests from us; WORK window r runs the 8 prompts of round r in order. Before the session: `ledger list | grep -iE "measure|timing|ceiling"(wait for any open measurement),ledger note L109 "MEASURING ty7 start"`; after: "end". The session runs as quiet-measure flock /tmp/aien-gb10.lock spark-receipt ty7-session -- tools/ty7_drive.sh (other chip jobs kept out; the server itself does not take the lock), each WORK window inside its own spark-receipt ty7-wN. Per the 20-minute rule, if the quiet lock waits over 20 minutes the session runs anyway and records the load. A server reply of server_busy is retried after 1 s; the wait is not inside any request interval.

8. Predictions (made before measuring)

quantitypredictionreasoning
L(D|M) per token2.0 bits (1.0 to 3.5)untruncated temperature-1 prose continuation from a model of this size; own-sample entropy is low but temperature 1 keeps the tail
L(D|B) per symbol11.5 bits (9 to 14)about 2,000 symbols per round against a 248,321-symbol alphabet: most early tokens are new and cost about 18 bits plus escape; repeats get cheap only late in the round
G per symbol9.5 bitsdifference of the two lines above
T_V0about -2.43e11 bits per round: FAILL(M) = 2.43e11 bits and a round's G is about 2e4 bits; the model's table cannot be repaid by a few thousand tokens
N* break-evenabout 2.6e10 symbols, about 127 years of nonstop decode at 6.4 tok/s (calc:b6d02c57e200cebb10bcbe8d06e57340c71a345e973c18d0fe50293d92a460e5)L(M) / 9.5 bits; 6.4 tok/s is the recent single-stream decode rate on this engine (qwen38 serve handoff, calc:e3e66420)
decode rate6 tok/s (4 to 8)as above; shared box
wall W during our requests225 Wsensor log while the engine decodes for aien-translate: 220-230 W; base without decode about 170 W
J per tokengross 35 J, incremental 9 J225 W / 6.4 tok/s; (225 - 170) W / 6.4 tok/s
G / E_incrabout 1 bit per J9.5 bits / 9 J
G / E_grossabout 0.27 bit per J9.5 bits / 35 J
T_V0 / Eabout -1e6 bits per J-2.43e11 bits over about 6,000 tokens x 35 J

9. Pass rules (fixed now)

Error bound per round: eps = 2e-6 bits x symbols (f32 rounding of each draw) + 1e-6 bits x symbols (double log2 in B), stated in the reducer output.

TY-7 V0 PASS (the PROFILE V0 rule, section 9 form) iff both:

  1. pooled T_V0 over the three rounds (L(M) charged once) minus eps exceeds the margin 3 sqrt(3) sd_G, where sd_G is the sample standard deviation of the three per-round G values (L(M) is constant, so it is also the spread of T_V0);
  2. each round's T_V0 with the full L(M) charged to that round alone, minus eps, is > 0. Otherwise FAIL, reported plainly and kept. (Predicted: FAIL.)

Conditional gain check (G-rule, not V0, reported separately) PASS iff all of:

  1. every round's G minus eps > 3 sd_G (gain clearly above round-to-round spread);
  2. repeatability: every round's G per symbol is within 10% of the three-round mean;
  3. energy repeatability: every round's G / E_gross is within 20% of the three-round mean. Each round must be readable (section 6). The T/E figures are reported with their round spread either way.

10. Code and evidence

C and shell only, no Python, no CUDA, no NVML in the measured path. tools/ty7_drive.sh (session driver, curl), tools/ty7_reduce.c (reply checks, symbol stream, B and B_warm code lengths, sensor integration, verdicts). Evidence in evidence/TURING_YIELD/ty7-2026-10-19/: prompts and hash, raw reply JSON per request, request interval log, health poll log, sensor CSV slice for the session, spark-receipt copies and paths, per-symbol B cost log, reducer output, verdicts. Result in docs/turing/TURING_YIELD_TY7_RESULT.md.

Amendments

Amendment 1 (2026-10-19, before any timed window; no TY-7 data seen)

Found while probing (untimed, one request): the live server takes the hive GPU lock /tmp/aien-gb10.lock itself around every generation and waits up to 300 s for it (aien-sovereign-core 46134247, the commit the live binary is built from: crates/aien-serve-http/src/qwen38_engine.rs:7,27, omega_engine.rs:94), answering HTTP 503 "GPU busy with another job" when the wait runs out. Holding that lock around the session, as section 7 said, would make the server refuse our own requests. Changes:

  1. The session is NOT wrapped in flock /tmp/aien-gb10.lock. It runs as `quiet-measure spark-receipt ty7-session -- tools/ty7_drive.sh ...` (builds held off, 20-minute rule unchanged). During each of our request intervals the server itself holds the GPU lock, so no lock-respecting chip job runs inside an interval; that is the window energy is counted over.
  2. A request is sent only when flock -n /tmp/aien-gb10.lock true succeeds at that instant (the lock is free, so the server is not generating for anyone and no chip job holds it). This keeps lock waits out of our intervals. The count of such waits is logged per request (lockwaits=).
  3. Refusals are retried after 0.05 s: server_busy (another generation in flight) and HTTP 503 "GPU busy". Only the served attempt's interval is logged.
  4. Box context recorded: aien-translate (~/aien-translate, pid 2962056) drives the server almost continuously (300 health polls at 5 per second, 0 free), currently for scripts/translate_latex.py ... --langs pt started by run-after-swap.sh. It is another user's job and is not stopped. Its generations fall between ours; they are outside our intervals but inside IDLE windows, which is why P_base uses only engine-idle IDLE rows (section 6). If no engine-idle rows exist, E_incr is UNRESOLVED per section 6 and E_gross stands.

Thresholds, predictions, prompts, models and pass rules are unchanged.