Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
llama
master
Llama
ArrayView
Generator
ProbIndex
RunState
Sampler
TokenIndex
Tokenizer
Transformer
TransformerConfig
TransformerFile
Generated using Crystal 1.14.0
2024-11-26 09:54:40 UTC
class
Llama::
Generator
Llama::Generator
Reference
Object
Defined in:
llama/generator.cr
Constructors
.new
(transformer : Transformer, tokenizer : Tokenizer, sampler : Sampler)
Instance Method Summary
#generate
(prompt : String, steps : Int32, &block : String -> )
Constructor Detail
def self.
new
(transformer :
Transformer
, tokenizer :
Tokenizer
, sampler :
Sampler
)
#
[
View source
]
Instance Method Detail
def
generate
(prompt : String, steps : Int32, &block : String -> )
#
[
View source
]