Deep learning¶
A deep network is built from small pieces. Each piece, a layer, an activation or a loss, knows how to run forward and how to send the gradient back, and a training loop joins them. This page is the map of the whole tab: it tells you which page to open for each part of the work.

The tab in three groups: build the network, train it, and language models. The line at the bottom is the code: the classes of the catalog in each of the eight sections of dense_armor.core.deep.neural. The figure is drawn by a script, so it follows the code and the menu.
1. The three groups¶
| Group | The question | Where to go |
|---|---|---|
| Build the network | Which pieces do I put together, and does each one learn the right gradient? | Foundations, Layers, Chains, Convolution and pooling, Recurrent layers and attention, Attention, Composable attention, Modern blocks, Deep |
| Train it | How do I train it fast, in little memory, and keep it learning? | Training, Compiled training, Mixed precision, Data parallelism, Memory and data, Continuous training, Continual learning, Stable variance in float32 |
| Language models | How do I read and write text with a decoder? | Encoders and decoders, Decoder language models, Language-model training, Rotary decoder and generation cache, Mixture of experts and test-time compute |
2. Where to start¶
- Foundations: one parameter, one activation, one loss and the gradient check, step by step.
- Layers and Chains: how the pieces are joined into a network.
- Training: the loop that updates the parameters.
A tool that learns one sample at a time, instead of a batch, is in the tab Online learning; the neural pieces follow the same roles idea of a short list of methods.
Details¶
- The groups are a reading order of the pages. In the code the classes are in eight sections:
layers,losses,training,online,attention,consolidation,modelsandtransformer, indense_armor/core/deep/neural/. - The counts at the bottom of the figure are the classes of the catalog (
dense_armor.usable.catalog) for each section. The scriptdocs/assets/maps/make_area_maps.pystops if a page of the menu is not placed in a group.