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.