Learn

Build a working mental model from tensors and gradients through a complete decoder-only transformer.

8 maintained guidesFramework v0.6.1
Concept

Tensor Milestone

Understand contiguous storage, shapes, strides, scalar tensors, indexing, reshape, and backend transfer.

Read guide
Concept

Tensor Operations

Learn the checked tensor-operation contracts, broadcasting rules, reductions, and relationship to autograd.

Read guide
Concept

Autograd Milestone

Follow reverse-mode automatic differentiation from graph construction through gradient accumulation and custom gradients.

Read guide
Concept

Decoder-Only Transformer

Follow embeddings, pre-normalized residual blocks, final normalization, and the language-model head through a decoder-only transformer.

Read guide
Concept

Training Loop

Understand how Python orchestrates seeded batches and metrics while C++ executes fresh graphs, all-position or time-range cross-entropy, backward, and Adam.

Read guide