enum

Fm::Sampling

Inherits Enum < Comparable < Value < Object

Sampling strategy for token generation.

Constants

Random = 0

Random sampling with temperature (default).

Greedy = 1

Greedy sampling: always pick the most likely token.

Instance methods

greedy?

Returns true if this enum value equals Greedy

Source
random?

Returns true if this enum value equals Random

Source