Experimental alpha. Expect breaking changes and major bugs. Your
feedback is much appreciated.
Embedding Table

Looks up a learned row of numbers for each token: token i gets row i of a table with one row per vocabulary entry. This is how text enters a model, so the table must be fed directly by the Model Core's front.

Shapes
Tokens [B×T] in, [B×T×C] out, where C is the Width.
Settings
- Width: V, or 4 to 256. 32 by default. At V, each row can serve directly as the scores for the next token: a bigram model.
Parameters
V × C, drawn from a normal distribution with spread 1.
In PyTorch
self.embed = nn.Embedding(V, C)e = self.embed(tokens)
Notes
After training, the weights picture shows the table, a row per token. Tokens that behave alike end up with similar rows, which is how what the model learns about one carries over to others.
Making it
The Fabricator makes it with no mask. See The Bench and the Fabricator.
Residual