interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-train / evidence / OMEGALLM / wsp-ctl-traces-20261107 / gate-om-drain-20261107 / oracle-seq2.wl

193 lines · 12664 bytes Raw Blame History
1Module[{j, s0, s1, cpu, busy, la, psi, mi, g, gk, u, uv, chk, res},
2j = ImportString["{\"battery_runtime_s\": 1625, \"core_busy_pct\": {\"c0\": 8.87, \"c1\": 100.0, \"c10\": 15.05, \"c11\": 30.6, \"c12\": 8.96, \"c13\": 12.73, \"c14\": 11.34, \"c15\": 12.5, \"c16\": 9.88, \"c17\": 10.04, \"c18\": 100.0, \"c19\": 100.0, \"c2\": 8.47, \"c3\": 7.1, \"c4\": 30.1, \"c5\": 6.05, \"c6\": 85.77, \"c7\": 5.43, \"c8\": 5.24, \"c9\": 100.0}, \"gpu_mem_util_pct\": 0.0, \"gpu_power_w\": 43.42, \"gpu_pstate\": \"P0\", \"gpu_sm_mhz\": 2489.0, \"gpu_temp_c\": 64.0, \"gpu_util_pct\": 59.0, \"input_voltage\": 121, \"loadavg\": [14.06, 12.75, 10.24], \"mem\": {\"MemAvailable_kb\": 80918768, \"MemTotal_kb\": 127598532, \"SwapFree_kb\": 0, \"SwapTotal_kb\": 0}, \"psi_cpu\": {\"full_avg10\": 0.0, \"full_avg300\": 0.0, \"full_avg60\": 0.0, \"full_total\": 0, \"some_avg10\": 15.57, \"some_avg300\": 7.81, \"some_avg60\": 12.95, \"some_total\": 69345736707}, \"psi_io\": {\"full_avg10\": 0.81, \"full_avg300\": 5.36, \"full_avg60\": 4.31, \"full_total\": 12782045805, \"some_avg10\": 0.87, \"some_avg300\": 6.03, \"some_avg60\": 4.91, \"some_total\": 13653144322}, \"psi_mem\": {\"full_avg10\": 0.0, \"full_avg300\": 0.06, \"full_avg60\": 0.02, \"full_total\": 1062094719, \"some_avg10\": 0.0, \"some_avg300\": 0.06, \"some_avg60\": 0.02, \"some_total\": 1119907365}, \"runnable\": \"10/4724\", \"sample_cost_us\": 74971, \"seq\": 2, \"thermal_c\": {\"tz0\": 77.6, \"tz1\": 67.0, \"tz2\": 71.1, \"tz3\": 65.0, \"tz4\": 77.6, \"tz5\": 69.0, \"tz6\": 71.9}, \"ts_unix\": 1794038069.047, \"ts_utc\": \"2026-11-07T07:54:29Z\", \"ups_load_pct\": 26, \"ups_realpower_nominal_w\": 1000, \"ups_status\": \"OL\"}", "RawJSON"];
3s0 = "cpu 44036955 194116662 69278935 1278116288 14812484 0 422807 0 0 301
4cpu0 1537594 5493536 3354293 67895242 1010292 0 20529 0 0 9
5cpu1 1390159 6963759 3108904 67463160 914203 0 57486 0 0 0
6cpu2 1320031 5736448 3236821 68557031 1097327 0 4427 0 0 0
7cpu3 1296668 6566249 3097795 68205804 860988 0 4111 0 0 51
8cpu4 1219448 6793296 3130784 68139297 742381 0 4062 0 0 9
9cpu5 4940746 7366784 3367011 63699208 722582 0 8812 0 0 16
10cpu6 3263266 12609085 3251383 60437449 583937 0 6185 0 0 12
11cpu7 3368337 10095867 3019449 63036668 609067 0 7155 0 0 53
12cpu8 3378037 11690942 3372767 61133176 554356 0 7247 0 0 20
13cpu9 3067345 12778405 3073753 60804283 446864 0 6299 0 0 0
14cpu10 1126230 14163834 5312774 58567874 875155 0 5133 0 0 25
15cpu11 1130976 14106161 5150149 58931928 774578 0 4754 0 0 38
16cpu12 1174557 11503738 3595209 62831034 959926 0 4084 0 0 30
17cpu13 1344227 11234046 3513332 62848887 664583 0 224582 0 0 0
18cpu14 1301152 11934298 3532347 62675314 641935 0 20457 0 0 0
19cpu15 2939592 9364164 3331883 63658539 712918 0 7530 0 0 10
20cpu16 2806908 8848641 3331197 64413469 732927 0 7523 0 0 0
21cpu17 2797349 8873369 3198056 64591360 696891 0 7473 0 0 17
22cpu18 2381460 9007300 3191570 64938343 655288 0 7433 0 0 3
23cpu19 2252864 8986729 3109448 65288211 556278 0 7515 0 0 0
24intr 13470773535 0 361138179 23921207 0 0 65783332 1304154 0 0 2 0 2258 3398316147 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 2570929 420521 41 0 0 6101 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 358 0 0 0 0 0 0 0 0 0 0 0 222380252 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 1 0 0 1 0 0 1 0 0 0 0 85826134 0 0 0 0 0 0 0 92471735 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 42603 63824051 65947289 58163648 34883983 33112204 30667979 26385486 71836703 73317147 32739501 32519084 28825211 27609504 25587486 20857640 5206 0 136047 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 182816
25ctxt 14664294364
26btime 1793232395
27processes 376819769
28procs_running 8
29procs_blocked 1
30softirq 3990819918 710957 326848179 36038 356105154 26822247 0 5255446 591675804 5588353 2677777740
31"; s1 = "cpu 44037373 194118968 69279524 1278122655 14812679 0 422814 0 0 301
32cpu0 1537622 5493538 3354306 67895680 1010296 0 20529 0 0 9
33cpu1 1390159 6964234 3108928 67463160 914203 0 57488 0 0 0
34cpu2 1320059 5736450 3236833 68557476 1097336 0 4427 0 0 0
35cpu3 1296693 6566249 3097804 68206245 861005 0 4112 0 0 51
36cpu4 1219463 6793425 3130789 68139636 742388 0 4062 0 0 9
37cpu5 4940769 7366784 3367017 63699665 722591 0 8813 0 0 16
38cpu6 3263266 12609512 3251383 60437520 583937 0 6186 0 0 12
39cpu7 3368359 10095867 3019454 63037136 609069 0 7155 0 0 53
40cpu8 3378056 11690943 3372772 61133641 554361 0 7248 0 0 20
41cpu9 3067345 12778633 3074025 60804283 446864 0 6299 0 0 0
42cpu10 1126252 14163838 5312821 58568280 875161 0 5133 0 0 25
43cpu11 1130996 14106194 5150245 58932251 774593 0 4754 0 0 38
44cpu12 1174587 11503739 3595222 62831457 959950 0 4084 0 0 30
45cpu13 1344269 11234046 3513349 62849299 664596 0 224585 0 0 0
46cpu14 1301196 11934298 3532359 62675720 641967 0 20457 0 0 0
47cpu15 2939638 9364164 3331899 63658952 712939 0 7530 0 0 10
48cpu16 2806936 8848644 3331215 64413906 732937 0 7523 0 0 0
49cpu17 2797375 8873372 3198076 64591786 696913 0 7474 0 0 17
50cpu18 2381460 9007800 3191570 64938343 655288 0 7433 0 0 3
51cpu19 2252864 8987229 3109448 65288211 556278 0 7515 0 0 0
52intr 13470919031 0 361139574 23973605 0 0 65783441 1304160 0 0 2 0 2258 3398398618 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 2570941 420521 41 0 0 6101 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 358 0 0 0 0 0 0 0 0 0 0 0 222382616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 1 0 0 1 0 0 1 0 0 0 0 85827577 0 0 0 0 0 0 0 92473261 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 42603 63825399 65947722 58164264 34884117 33112523 30667979 26385486 71836826 73317537 32739691 32519224 28825211 27609533 25587536 20857640 5206 0 136047 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 182816
53ctxt 14664432210
54btime 1793232395
55processes 376821686
56procs_running 10
57procs_blocked 0
58softirq 3990859333 710960 326852019 36038 356111846 26822618 0 5255667 591680162 5588403 2677801620
59";
60cpu[s_] := Association@Cases[StringSplit[s, "\n"], l_ /; StringMatchQ[l, "cpu" ~~ DigitCharacter .. ~~ " " ~~ ___] :> (StringReplace[First[StringSplit[l]], "cpu" -> "c"] -> ToExpression /@ Take[Rest[StringSplit[l]], 8])];
61busy = Association@KeyValueMap[Function[{c, b}, c -> With[{a = cpu[s0][c]}, With[{dt = Total[b] - Total[a], di = b[[4]] + b[[5]] - a[[4]] - a[[5]]}, If[dt > 0, 100 (dt - di)/dt, Null]]]], cpu[s1]];
62la = StringSplit["14.06 12.75 10.24 10/4724 3710519
63"];
64psi[t_] := Association@Flatten@Map[Function[l, With[{w = StringSplit[l]}, (First[w] <> "_" <> First[#] -> ToExpression[Last[#]]) & /@ (StringSplit[#, "="] & /@ Rest[w])]], StringSplit[t, "\n"]];
65mi = Association@Cases[StringSplit["MemTotal: 127598532 kB
66MemFree: 33356148 kB
67MemAvailable: 80918768 kB
68Buffers: 8946316 kB
69Cached: 39416892 kB
70SwapCached: 0 kB
71Active: 21695384 kB
72Inactive: 45777784 kB
73Active(anon): 20799636 kB
74Inactive(anon): 14074700 kB
75Active(file): 895748 kB
76Inactive(file): 31703084 kB
77Unevictable: 31020 kB
78Mlocked: 22912 kB
79SwapTotal: 0 kB
80SwapFree: 0 kB
81Zswap: 0 kB
82Zswapped: 0 kB
83Dirty: 890992 kB
84Writeback: 0 kB
85AnonPages: 19140628 kB
86Mapped: 1579212 kB
87Shmem: 15762624 kB
88KReclaimable: 21157412 kB
89Slab: 24576872 kB
90SReclaimable: 21157412 kB
91SUnreclaim: 3419460 kB
92KernelStack: 75888 kB
93ShadowCallStack: 19076 kB
94PageTables: 242880 kB
95SecPageTables: 42840 kB
96NFS_Unstable: 0 kB
97Bounce: 0 kB
98WritebackTmp: 0 kB
99CommitLimit: 63799264 kB
100Committed_AS: 183854344 kB
101VmallocTotal: 135288315904 kB
102VmallocUsed: 191076 kB
103VmallocChunk: 0 kB
104Percpu: 52800 kB
105HardwareCorrupted: 0 kB
106AnonHugePages: 1949696 kB
107ShmemHugePages: 0 kB
108ShmemPmdMapped: 0 kB
109FileHugePages: 145408 kB
110FilePmdMapped: 0 kB
111CmaTotal: 0 kB
112CmaFree: 96644 kB
113Balloon: 0 kB
114HugePages_Total: 0
115HugePages_Free: 0
116HugePages_Rsvd: 0
117HugePages_Surp: 0
118Hugepagesize: 2048 kB
119Hugetlb: 0 kB
120", "\n"], l_ :> (StringTrim[First[StringSplit[l, ":"]]] <> "_kb" -> ToExpression[First[StringSplit[Last[StringSplit[l, ":"]]]]])];
121g = StringTrim /@ StringSplit[First[StringSplit["59, 0, 43.42, 64, 2489, P0
122", "\n"]], ","];
123gk = {"gpu_util_pct", "gpu_mem_util_pct", "gpu_power_w", "gpu_temp_c", "gpu_sm_mhz", "gpu_pstate"};
124u = Association@Cases[StringSplit["battery.charge: 100
125battery.charge.low: 10
126battery.charge.warning: 20
127battery.mfr.date: CPS
128battery.runtime: 1625
129battery.runtime.low: 300
130battery.type: PbAcid
131battery.voltage: 27.2
132battery.voltage.nominal: 24
133device.mfr: CPS
134device.model: CP1500PFCLCDa
135device.serial: CXXRQ7011530
136device.type: ups
137driver.debug: 0
138driver.flag.allow_killpower: 0
139driver.name: usbhid-ups
140driver.parameter.pollfreq: 30
141driver.parameter.pollinterval: 2
142driver.parameter.port: auto
143driver.parameter.synchronous: auto
144driver.parameter.vendorid: 0764
145driver.state: quiet
146driver.version: 2.8.1
147driver.version.data: CyberPower HID 0.8
148driver.version.internal: 0.52
149driver.version.usb: libusb-1.0.27 (API: 0x100010a)
150input.voltage: 121.0
151input.voltage.nominal: 120
152output.voltage: 121.0
153ups.beeper.status: enabled
154ups.delay.shutdown: 20
155ups.delay.start: 30
156ups.load: 26
157ups.mfr: CPS
158ups.model: CP1500PFCLCDa
159ups.productid: 0601
160ups.realpower.nominal: 1000
161ups.serial: CXXRQ7011530
162ups.status: OL
163ups.test.result: No test initiated
164ups.timer.shutdown: -60
165ups.timer.start: -60
166ups.vendorid: 0764
167", "\n"], l_ /; StringContainsQ[l, ": "] :> (First[StringSplit[l, ": ", 2]] -> Last[StringSplit[l, ": ", 2]])];
168uv[key_] := ToExpression[u[key]];
169chk[name_, exp_, got_, tol_] := {name, exp, got, If[StringQ[exp] || exp === Null, exp === got, Abs[exp - got] <= tol]};
170res = Join[
171 KeyValueMap[chk["core_busy_pct." <> #1, #2, j["core_busy_pct"][#1], 1/200] &, busy],
172 MapIndexed[chk["loadavg." <> ToString[First[#2] - 1], ToExpression[#1], j["loadavg"][[First[#2]]], 0] &, Take[la, 3]],
173 {chk["runnable", la[[4]], j["runnable"], 0]},
174 Flatten[Table[With[{ps = psi[t[[2]]]}, KeyValueMap[chk[t[[1]] <> "." <> #1, #2, j[t[[1]]][#1], 0] &, ps]], {t, {{"psi_cpu", "some avg10=15.57 avg60=12.95 avg300=7.81 total=69345736707
175full avg10=0.00 avg60=0.00 avg300=0.00 total=0
176"}, {"psi_mem", "some avg10=0.00 avg60=0.02 avg300=0.06 total=1119907365
177full avg10=0.00 avg60=0.02 avg300=0.06 total=1062094719
178"}, {"psi_io", "some avg10=0.87 avg60=4.91 avg300=6.03 total=13653144322
179full avg10=0.81 avg60=4.31 avg300=5.36 total=12782045805
180"}}}], 1],
181 MapIndexed[chk["thermal_c.tz" <> ToString[First[#2] - 1], ToExpression[StringTrim[#1]]/1000, j["thermal_c"]["tz" <> ToString[First[#2] - 1]], 0] &, {"77600
182", "67000
183", "71100
184", "65000
185", "77600
186", "69000
187", "71900
188"}],
189 chk["mem." <> #, mi[#], j["mem"][#], 0] & /@ {"MemTotal_kb", "MemAvailable_kb", "SwapTotal_kb", "SwapFree_kb"},
190 MapThread[chk[#1, If[StringMatchQ[#2, NumberString], ToExpression[#2], #2], j[#1], 0] &, {gk, g}],
191 {chk["ups_load_pct", uv["ups.load"], j["ups_load_pct"], 0], chk["ups_realpower_nominal_w", uv["ups.realpower.nominal"], j["ups_realpower_nominal_w"], 0], chk["ups_status", u["ups.status"], j["ups_status"], 0], chk["input_voltage", uv["input.voltage"], j["input_voltage"], 0], chk["battery_runtime_s", uv["battery.runtime"], j["battery_runtime_s"], 0]},
192 {chk["ts_utc_vs_ts_unix", DateString[FromUnixTime[Floor[j["ts_unix"]], TimeZone -> 0], {"Year", "-", "Month", "-", "Day", "T", "Hour", ":", "Minute", ":", "Second", "Z"}], j["ts_utc"], 0]}];
193<|"seq" -> j["seq"], "checked" -> Length[res], "failed" -> Select[res, ! Last[#] &], "rows" -> ({#[[1]], If[NumericQ[#[[2]]] && ! IntegerQ[#[[2]]], N[#[[2]], 8], #[[2]]], #[[3]], #[[4]]} & /@ res)|>]