fix pre-commit checks

This commit is contained in:
erikkaum 2024-07-25 18:01:52 +02:00
parent f6324ffb3a
commit 72cade84f9
2 changed files with 10 additions and 2 deletions

View File

@ -86,7 +86,11 @@ def static_warper(
no_repeat_ngram_size: Optional[int],
) -> StaticWarper:
return StaticWarper(
temperature=temperature, top_k=top_k, top_p=top_p, typical_p=typical_p, no_repeat_ngram_size=no_repeat_ngram_size
temperature=temperature,
top_k=top_k,
top_p=top_p,
typical_p=typical_p,
no_repeat_ngram_size=no_repeat_ngram_size,
)

View File

@ -69,7 +69,11 @@ class NextTokenChooser:
)
if has_warpers:
self.static_warper = static_warper(
temperature=temperature, top_k=top_k, top_p=top_p, typical_p=typical_p, no_repeat_ngram_size=no_repeat_ngram_size
temperature=temperature,
top_k=top_k,
top_p=top_p,
typical_p=typical_p,
no_repeat_ngram_size=no_repeat_ngram_size,
)
else:
self.static_warper = None