mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
DRY: A modern repetition penalty that reliably prevents looping (#5677)
This commit is contained in:
parent
9f77ed1b98
commit
852c943769
7 changed files with 137 additions and 8 deletions
|
|
@ -33,6 +33,10 @@ class GenerationOptions(BaseModel):
|
|||
seed: int = -1
|
||||
encoder_repetition_penalty: float = 1
|
||||
no_repeat_ngram_size: int = 0
|
||||
dry_multiplier: float = 0
|
||||
dry_base: float = 1.75
|
||||
dry_allowed_length: int = 2
|
||||
dry_sequence_breakers: str = '"\\n", ":", "\\"", "*"'
|
||||
truncation_length: int = 0
|
||||
max_tokens_second: int = 0
|
||||
prompt_lookup_num_tokens: int = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue