ConstructionKit::ModelConfig
Inherits JSON::Serializable < Struct < Value < Object
Extract the model configuration from a validated pipeline graph. data_file is passed separately (workspace-level setting, not in the graph).
Constructors
new(data_file : String, seq_len : Int32, stream_dim : Int32, expert_specs : Array(ConstructionKit::ExpertSpec), router_type : String, router_epsilon : Float64, has_counter : Bool, learning_rate : Float64)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
data_file
Sourceexpert_specs
Sourcehas_counter
Sourcelearning_rate
Sourcerouter_epsilon
Sourcerouter_type
Sourceseq_len
Sourcestream_dim
Source