core.nn#
Layers shared by more than one model, and the attention backends they run on.
Layers#
A simple extension of |
|
Linear readout with one head per task, routed by integer index. |
Initialization#
Scale a Transformer encoder's weights in place for optimization without warmup. |
Variable-length attention#
Two interchangeable backends behind one call signature, so a model built on chained tokens can drop xformers entirely.
|
|
|
|
Narrow a config string to a known backend, raising on anything else. |
|
What to pass as |