SamplerChain.penalties

Adds repetition / frequency / presence penalties. penaltyLastN = -1 uses the full context; penaltyLastN = 0 disables the penalty.

struct SamplerChain
ref @nogc nothrow return
penalties
(
int penaltyLastN = 64
,
float penaltyRepeat = 1.0f
,
float penaltyFreq = 0.0f
,
float penaltyPresent = 0.0f
)

Meta