class

ConstructionKit::Builder

Inherits Reference < Object

Constructors

new(config : ModelConfig, graph_data : GraphData | Nil = nil, graph_mode : Bool = false)
Source

Instance methods

config
Source
dataset
Source
exec_graph

Graph mode

Source
generate(seed_text : String, max_tokens : Int32 = 100, temperature : Float64 = 0.8) : String

Generate text from a seed

Source
graph_mode?
Source
load_weights(dir : String)

Load all model weights from a directory

Source
model

Legacy mode

Source
save_weights(dir : String)

Save all model weights to a directory

Source
summary

Get model summary info

Source
train_step

Run a single training step, return metrics

Source