Contents

greedy

A sampling mode that always chooses the most likely token.

Declaration

static var greedy: GenerationOptions.SamplingMode { get }

Discussion

Using this mode will always result in the same output for a given input. Responses produced with greedy sampling are statistically likely, but may lack the human-like quality and variety of other sampling strategies.

See Also

Sampling options