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 / native / neuralese / nl1r-task / main.om

140 lines · 2030 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2text TCH "C,2,"
3fn thead to void
4z = write 1 TCH 0 len TCH
5if ne z long len TCH
6exit 80
7end
8field get TC 0
9field get TC 1
10field get TC 2
11field 4
12field 40
13field get NSH 3
14outnum 0
15newline
16for i ulong 40
17z = write 1 PT 0 len PT
18if ne z long len PT
19exit 80
20end
21field i
22outnum bitcast ulong get NP i
23newline
24end
25end
26fn trow id ulong arm ulong variant ulong enc long dec long rc int to void
27z = write 1 RT 0 len RT
28if ne z long len RT
29exit 80
30end
31field id
32field arm
33field variant
34field get TL 0
35for i ulong 32
36field ulong get WB i
37end
38for j ulong 4
39field bitcast ulong get NO j
40end
41for j ulong 4
42p = ulong 0
43if ge get NO j 0.5f64
44p = 1
45end
46field p
47end
48field tabst rc
49field ulong enc
50field ulong dec
51field ulong rc
52context = ulong 0
53if eq get TC 0 2
54context = and id 3
55end
56field context
57outnum 0
58newline
59end
60fn tcases to int
61for id ulong 16
62context = ulong 0
63if eq get TC 0 2
64context = and id 3
65end
66for arm ulong 5
67for variant ulong 3
68start = monons
69rc = tencode id arm variant
70if ne rc 0
71ret rc
72end
73mid = monons
74note Refused raw records are canonical zeros; decoder itself is atomic on refusal.
75for j ulong 4
76put NO j 0.0f64
77end
78rc = tdecode 2 arm variant context get TL 0 0
79finish = monons
80if eq variant 2
81if ne rc 2
82ret 71
83end
84else
85if ne rc 0
86ret rc
87end
88end
89trow id arm variant sub mid start sub finish mid rc
90end
91end
92end
93ret 0
94end
95fn main to int
96if ne argcnt 4
97ret 90
98end
99task = argnum 1
100seed = argnum 2
101mask = argnum 3
102if or gt task 2 or eq seed 0 gt seed 4294967295
103ret 90
104end
105if or eq mask 0 gt mask 65535
106ret 90
107end
108put TC 0 task
109put TC 1 seed
110put TC 2 mask
111rc = nshape 1
112if ne rc 0
113ret rc
114end
115start = monons
116ninit seed
117rc = ttrain mask
118finish = monons
119if ne rc 0
120ret rc
121end
122thead
123rc = tcases
124if ne rc 0
125ret rc
126end
127note T measures initialization and training; per-row encode/decode and judge costs are separate.
128z = write 1 TT 0 len TT
129if ne z long len TT
130ret 80
131end
132field ulong start
133outnum ulong finish
134newline
135z = write 1 DONE 0 len DONE
136if ne z long len DONE
137ret 80
138end
139ret 0
140end