mirror of
https://github.com/ollama/ollama.git
synced 2026-04-23 09:15:44 +02:00
runner.go: Implement RepeatLastN to penalize repeated tokens
RepeatLastN is a user-facing parameter that is exposed that is exposed through the APIs but is not currently plumbed through.
This commit is contained in:
@@ -10,6 +10,7 @@ struct llama_sampling_context *llama_sampling_cinit(struct llama_sampling_cparam
|
||||
sparams.tfs_z = params->tfs_z;
|
||||
sparams.typical_p = params->typical_p;
|
||||
sparams.temp = params->temp;
|
||||
sparams.penalty_last_n = params->penalty_last_n;
|
||||
sparams.penalty_repeat = params->penalty_repeat;
|
||||
sparams.penalty_freq = params->penalty_freq;
|
||||
sparams.penalty_present = params->penalty_present;
|
||||
|
||||
Reference in New Issue
Block a user