struct Llama::RunState

Defined in:

llama/run_state.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : TransformerConfig) #

[View source]

Instance Method Detail

def att : Array(Float32) #

[View source]
def att=(att : Array(Float32)) #

[View source]
def hb : Array(Float32) #

[View source]
def hb2 : Array(Float32) #

[View source]
def hb2=(hb2 : Array(Float32)) #

[View source]
def hb=(hb : Array(Float32)) #

[View source]
def k : ArrayView(Float32) #

[View source]
def k=(k : ArrayView(Float32)) #

[View source]
def key_cache : Array(Float32) #

[View source]
def key_cache=(key_cache : Array(Float32)) #

[View source]
def logits : Array(Float32) #

[View source]
def logits=(logits : Array(Float32)) #

[View source]
def q : Array(Float32) #

[View source]
def q=(q : Array(Float32)) #

[View source]
def v : ArrayView(Float32) #

[View source]
def v=(v : ArrayView(Float32)) #

[View source]
def value_cache : Array(Float32) #

[View source]
def value_cache=(value_cache : Array(Float32)) #

[View source]
def x : Array(Float32) #

[View source]
def x=(x : Array(Float32)) #

[View source]
def xb : Array(Float32) #

[View source]
def xb2 : Array(Float32) #

[View source]
def xb2=(xb2 : Array(Float32)) #

[View source]
def xb=(xb : Array(Float32)) #

[View source]