class Llama::GenerationOptions

Defined in:

llama/options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(max_tokens : Int32 = 256, stop : Array(String) = [] of String, sampling : Sampling::Plan = Sampling.default, include_stop : Bool = false, cancellation : Cancellation | Nil = nil) #

[View source]

Instance Method Detail

def cancellation : Cancellation | Nil #

[View source]
def include_stop : Bool #

[View source]
def max_tokens : Int32 #

[View source]
def sampling : Sampling::Plan #

[View source]
def stop : Array(String) #

[View source]