Add prompt_lookup_num_tokens parameter (#5296)

This commit is contained in:
oobabooga 2024-01-17 17:09:36 -03:00 committed by GitHub
parent 952a05a7c8
commit e055967974
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 0 deletions

View file

@ -37,6 +37,7 @@ class GenerationOptions(BaseModel):
early_stopping: bool = False
truncation_length: int = 0
max_tokens_second: int = 0
prompt_lookup_num_tokens: int = 0
custom_token_bans: str = ""
auto_max_new_tokens: bool = False
ban_eos_token: bool = False