struct

ConstructionKit::ExpertSpec

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(type : String, d_model : Int32, n_layers : Int32, d_ff : Int32, stream_dim : Int32)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

d_ff
Source
d_ff=(d_ff : Int32)
Source
d_model
Source
d_model=(d_model : Int32)
Source
n_layers
Source
n_layers=(n_layers : Int32)
Source
stream_dim
Source
stream_dim=(stream_dim : Int32)
Source
to_spec_string

Format as the spec string used by main.cr: e.g. "d4x16n3"

Source
type
Source
type=(type : String)
Source