struct Llama::Transformer

Defined in:

llama/transformer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(model : TransformerFile) #

[View source]

Instance Method Detail

def forward(token : Int32, pos : Int32) : Array(Float32) #

[View source]
def model : TransformerFile #

[View source]
def model=(model : TransformerFile) #

[View source]
def state : RunState #

[View source]
def state=(state : RunState) #

[View source]