class Llama::Sampler
- Llama::Sampler
- Reference
- Object
Defined in:
llama/sampler.crConstructors
Instance Method Summary
- #rng_state : UInt64
- #rng_state=(rng_state : UInt64)
- #sample(logits : Array(Float32)) : Int32
- #temperature : Float32
- #temperature=(temperature : Float32)
- #topp : Float32
- #topp=(topp : Float32)
- #vocab_size : Int32
- #vocab_size=(vocab_size : Int32)
Constructor Detail
def self.new(vocab_size : Int32, temperature : Float32, topp : Float32, rng_state : UInt64)
#