Skip to the content.

TorchLean includes runnable training, autograd, data-loading, export, generation, and verification examples. Each page records the command, input data, produced artifact, and the claim checked by Lean.

CUDA is opt-in. The build flags, runtime path, and agreement assumptions are explained in GPU and CUDA. For the broader backend design, read Backend Selection and Trust. For long CUDA training runs, model commands also expose allocator telemetry through --cuda-mem-watch N; longer runs choose a small default cadence so device-memory behavior is visible while the example is running. The report separates live tensor storage from released blocks kept for reuse. Set TORCHLEAN_CUDA_CACHE_CAP_BYTES before launch to bound that reuse cache; the GPU chapter shows the command and explains the allocator fields.

The command registry is:

lake exe torchlean --help
lake exe verify --help

The help output is the authoritative list of runnable entry points and their current flags.