TorchLean API

NN.API.Public.Facade.Runtime.Text

TorchLean Text Runtime Facade #

Tokenizer, corpus, generation, and interactive text options.

def TorchLean.text.InteractiveTrainOptions.parse (exeName : String) (args : List String) (defaultLogJson : System.FilePath) (defaultSteps : ) (defaultLr : Float) (allowZeroSteps : Bool := false) :

Parse the shared "train + interactive" option surface.

Instances For
    def TorchLean.text.WindowedTrainGenerationOptions.parse (exeName : String) (args : List String) (defaultLogJson : System.FilePath) (defaultSteps : ) (defaultLr : Float) (defaultWindows : ) (genDefaults : GenerationOptions) (allowZeroSteps : Bool := false) :

    Parse the standard "train + generate + windows" option surface.

    Instances For
      def TorchLean.text.CheckpointedWindowedTrainGenerationOptions.parse (exeName : String) (args : List String) (defaultLogJson : System.FilePath) (defaultSteps : ) (defaultLr : Float) (defaultWindows : ) (genDefaults : GenerationOptions) (allowZeroSteps : Bool := false) :

      Parse the shared "train + generate + windows + checkpoint" option surface.

      Instances For
        def TorchLean.text.BatchedCheckpointedWindowedTrainGenerationOptions.parse (exeName : String) (args : List String) (defaultLogJson : System.FilePath) (defaultSteps : ) (defaultLr : Float) (defaultWindows defaultBatch defaultSeqLen : ) (genDefaults : GenerationOptions) (allowZeroSteps : Bool := false) :

        Parse the shared "train + generate + windows + checkpoint + batch + seq-len" option surface.

        Instances For
          def TorchLean.text.InteractiveCheckpointedWindowedTrainGenerationOptions.parse (exeName : String) (args : List String) (defaultLogJson : System.FilePath) (defaultSteps : ) (defaultLr : Float) (defaultWindows : ) (genDefaults : GenerationOptions) (allowZeroSteps : Bool := false) :

          Parse the full "train + generate + windows + checkpoint + interactive" option surface.

          Instances For