class Llama::TransformerConfig

Defined in:

llama/transformer_config.cr

Constant Summary

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 Method Summary

Macro Summary

Instance Method Summary

Class Method Detail

def self.bit_fields #

[View source]

Macro Detail

macro llama_transformer_config(name, onlyif = nil, verify = nil, value = nil) #

[View source]

Instance Method Detail

def dim : Int32 #

def dim=(dim : Int32) #

def hidden_dim : Int32 #

def hidden_dim=(hidden_dim : Int32) #

def n_heads : Int32 #

def n_heads=(n_heads : Int32) #

def n_kv_heads : Int32 #

def n_kv_heads=(n_kv_heads : Int32) #

def n_layers : Int32 #

def n_layers=(n_layers : Int32) #

def seq_len : Int32 #

def seq_len=(seq_len : Int32) #

def vocab_size : Int32 #

def vocab_size=(vocab_size : Int32) #