class Llama::ContextOptions

Defined in:

llama/options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context_size : UInt32 = 0_u32, batch_size : UInt32 = 512_u32, micro_batch_size : UInt32 = 512_u32, threads : Int32 | Nil = nil, batch_threads : Int32 | Nil = nil, embeddings : Bool = false, offload_kqv : Bool = false, op_offload : Bool = false) #

[View source]

Instance Method Detail

def batch_size : UInt32 #

[View source]
def batch_threads : Int32 | Nil #

[View source]
def context_size : UInt32 #

[View source]
def embeddings : Bool #

[View source]
def micro_batch_size : UInt32 #

[View source]
def offload_kqv : Bool #

[View source]
def op_offload : Bool #

[View source]
def threads : Int32 | Nil #

[View source]