force clear some DRY state vars on new generation - not sure if this helps

This commit is contained in:
Concedo 2024-08-14 21:35:39 +08:00
parent 689a17d756
commit e12ab53488
2 changed files with 5 additions and 2 deletions

View file

@ -1949,6 +1949,10 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
last_stop_reason = stop_reason::OUT_OF_TOKENS;
stop_sequence.clear();
special_stop_sequence.clear();
dry_repeat_count.clear();
dry_sequence_breakers.clear();
dry_max_token_repeat.clear();
for(int x=0;x<stop_token_max;++x)
{
std::string stopper = inputs.stop_sequence[x];