NN.Examples.Zoo #
Single umbrella for TorchLean examples.
Import this module to compile every library-style example: introductory examples, models, data loaders, interop, widgets, mathematical deep dives, and verification workflows.
Typical usage:
- Build the full example surface:
lake build NN.Examples.Zoo - Run model examples through the CLI:
lake exe torchlean mlp --steps 10 - Run CUDA-only model examples with both build-time and runtime CUDA selection:
lake -R -K cuda=true exe torchlean gpt_adder --device cuda --steps 1
The heavier examples remain in their subdirectories, so each can still be built independently. The
standalone CLI root NN.Examples.Models.Runner is intentionally excluded because importing an
executable root would introduce a global main; Lake builds that target separately.