Inside ExeaLM
The 0.1B model, from the layer stack down to one circuit.
Plates with circuits are TONN layers. The rest are attention. Point at a layer.
- Memory
- Short range
- Running state
- Gates and products
- Attention
One TONN layer
One projection reads the residual stream into 20 slots. Each slot runs one small circuit on three streams. One projection writes the results back.
The circuit menu
Fourteen circuit types can fill a slot. During training, a search keeps the ones that lower the loss.
Copies stream A from a fixed number of steps back (the lag).
Adds A now, B one gap back and C two gaps back, then a smooth gate (silu). Good at short word pieces.
Keeps a sum of A that fades by a learned rate per channel.
Like the running sum, but B decides at every step how much of the past to keep.
Multiplies a lagged A by B and keeps a fading sum of the result.
A running sum of products, read out through C. It behaves like an induction head: see a pair, recall it later.
A weighted average of B over the whole past, with weights exp(A).
A Mamba-like state: B sets the step size at each position, so the circuit chooses what to remember.
A state that rotates as it fades (S4D-like), so it can track rhythms and periodic patterns.
silu(A) times B at the same position. A small per-position MLP.
A from a few steps back times B now.
One small attention head inside a slot: A asks, B answers, C is what gets passed on.
Searches a read-only library with the model's own embeddings and reads the chunks it finds.
Posts a message after every chunk and reads the messages other copies of the model posted.
Retrieval
Once per 64 tokens, the model searches a read-only library with its own embeddings and reads the top 4 chunks.
Retrieval runs once per 64-token chunk.
The board
Copies of the model post a message after every chunk and read each other's posts. Gradients flow through the board.
Every agent reads its first chunk.
The numbers
- Width
- 640
- Layers
- 14, TONN at 0, 3, 6, 9, 12
- Attention
- 10 heads of 64 channels
- TONN slots
- 20 circuits of 32 channels
- Memory circuits
- 1 retrieval and 1 board per TONN layer
- Chunk
- 64 tokens, top 4 retrieved
- Swarm
- 4 agents per board
- Tokenizer
- byte-level BPE, 32,768 tokens
- Parameters
- about 90M
- Training
- about 100B tokens, planned