Expand description
A model’s one program. author writes a model’s computation as a LOGOS program, and every backend lowers that
program and no other: the CUDA lane compiles its decode step and prefill chunks, the D5005 engine reads its decode
step, a spatial chip lowers its embedding, its layers and its head one program each. A backend never grows a model
writer of its own, and takes every cut it lowers from this module.
The program a backend lowers is a Cut of it — the decode step over a cache of ctx positions, a prefill chunk
of rows tokens, a batch of rows sequences, or one layer, the embedding or the head of any of them — written by
Cut::write with the placeholder inputs every backend replaces at run time (each token and position 1, weights
named by tensor alone). A cut split over chips is written by written_split. Its Identity is the cut, the
chips it is split over, and the SHA-256 of the text author wrote for it; every artifact a backend compiles records
it, so an artifact names the exact program it was lowered from, and a program another writer produced cannot pass
for this one.
Structs§
- Identity
- The program an artifact was lowered from: the cut, the chips it is split over (1 when it is not), and the SHA-256 of
the LOGOS text
authorwrote for it.
Enums§
- Cut
- Which cut of a model’s program a backend lowers.
Functions§
- decode_
at Cut::Decodeat a run’s own inputs: tokentok(from 1) at positionpos, its manifest underdir.- prefill_
at Cut::Prefillat a run’s own inputs rather than its placeholders: the chunk oftoks(token ids from 1) at positions frompos0, its manifest underdir— the text a run executes. Its identity is the cut’s (written), whose inputs sit at their placeholders.- written
- The cut
cutofspec’s program, with its identity. - written_
in - The cut
cutofspec’s program with its weight manifest underdir, and its identity. - written_
split - The cut
cutofspec’s program split overtpchips with its manifest underdir, and its identity.