TorchLean API

NN.Examples.Models.Runner

TorchLean Example Runner #

Executable root for the torchlean example runner.

Each example keeps its own namespace, and this module selects which one to run from a subcommand argument such as mlp or gpt2.

Split CLI arguments into (prefixFlags, command, commandArgs).

We allow "global" runtime flags before the command name so users can write either:

  • torchlean mlp --cpu, or
  • torchlean --cpu mlp.
Instances For
    def main (args : List String) :
    Instances For