Contents

GenerationOptions.SamplingMode

A type that defines how values are sampled from a probability distribution.

Declaration

struct SamplingMode

Overview

A model builds its response to a prompt in a loop. At each iteration in the loop the model produces a probability distribution for all the tokens in its vocabulary. The sampling mode controls how a token is selected from that distribution.

Topics

Sampling options

See Also

Configuring the sampling mode