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 / qwen-native / tokenizer / cli.om

29 lines · 353 bytes Raw Blame History
1fn outid id ulong to void
2tcpu id
3tkpc 10
4end
5
6fn main to int
7mode = new uchar 6 0
8if ne argcnt 3
9ret 2
10end
11if ne argread 1 mode 0 6 6
12ret 2
13end
14enc = equalbytes mode encodecmd
15if and not enc not equalbytes mode decodecmd
16ret 2
17end
18loadmodel
19n = inputsize
20if enc
21unicodeinit
22encodeinput n
23else
24decodeinput n false
25decodeinput n true
26end
27tkpfl
28ret 0
29end