presencePenalty property

double presencePenalty
final

Additive penalty applied once to tokens that appear in the sampler's recent history.

0.0 disables the penalty. This is distinct from penalty, which scales logits using llama.cpp's repeat-penalty sampler. Native llama.cpp supports this option; backends without an equivalent sampler reject nonzero values instead of silently ignoring them.

Implementation

final double presencePenalty;