fix(server): allow greedy repetition penalty (#51)

This commit is contained in:
OlivierDehaene 2023-02-02 10:34:35 +01:00 committed by GitHub
parent 775115e3a5
commit df227ac20d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -73,7 +73,6 @@ class NextTokenChooser:
sampling = True
if repetition_penalty is not None and repetition_penalty != 1.0:
warpers.append(RepetitionPenaltyLogitsProcessor(penalty=repetition_penalty))
sampling = True
self.warpers = warpers
self.choice = Sampling(seed, device) if sampling else Greedy()