Causal Transformer Runtime Support #
Complete indexed-token and tied-weight causal Transformer models, together with their causal-language-model objective.
State layout for a model whose token lookup and vocabulary projection share one matrix.
Instances For
Execute a tied token lookup, hidden Transformer, and vocabulary projection.
Instances For
Assemble a complete tied-weight indexed model from one table and one hidden body.
Instances For
Build a complete indexed-token causal Transformer with an independent vocabulary head.
The token table, hidden Transformer, and output projection draw from one builder seed stream. The returned model is the single value used by training, checkpointing, and prediction.
Instances For
Build a complete causal Transformer with one matrix shared by token lookup and output projection.
Instances For
Pair a complete indexed-token causal Transformer with next-token cross entropy.
Inputs and targets are bounded token tensors with batchShape followed by the sequence axis.