Llama::TransformerConfig
Constants
AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["system"]
KLASS_NAME = [Llama::TransformerConfig]
PARTS = [{type: "basic", name: dim, cls: Int32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: hidden_dim, cls: Int32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: n_layers, cls: Int32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: n_heads, cls: Int32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: n_kv_heads, cls: Int32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: vocab_size, cls: Int32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: seq_len, cls: Int32, onlyif: nil, verify: nil, value: nil}] of Nil
REMAINING = [] of Nil
Class methods
bit_fields
SourceInstance methods
dim
dim=(dim : Int32)
n_heads
n_heads=(n_heads : Int32)
n_kv_heads
n_kv_heads=(n_kv_heads : Int32)
n_layers
n_layers=(n_layers : Int32)
seq_len
seq_len=(seq_len : Int32)
vocab_size
vocab_size=(vocab_size : Int32)