repeat_last_n

ollama/parameters

Repeat_last_n is the window used for repeat_penalty. If you set it to -1, it will use the full context. Setting to 0 disables the window.