mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
Sampling: Update DRY
Switch to new parameters and remove dry_max_ngram as that's not supposed to be changed. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -153,10 +153,10 @@ class BaseSamplerRequest(BaseModel):
|
||||
default_factory=lambda: get_default_sampler_value("dry_multiplier", 2.0)
|
||||
)
|
||||
|
||||
# TODO: Remove these aliases
|
||||
dry_max_ngram: Optional[int] = Field(
|
||||
default_factory=lambda: get_default_sampler_value("dry_max_ngram", 20),
|
||||
alias=AliasChoices("dry_max_ngram", "dry_penalty_last_n"),
|
||||
dry_range: Optional[int] = Field(
|
||||
default_factory=lambda: get_default_sampler_value("dry_range", 0),
|
||||
alias=AliasChoices("dry_range", "dry_penalty_last_n"),
|
||||
description=("Aliases: dry_penalty_last_n"),
|
||||
)
|
||||
|
||||
dry_sequence_breakers: Optional[str] = Field(
|
||||
@@ -371,7 +371,6 @@ class BaseSamplerRequest(BaseModel):
|
||||
"penalty_range": self.penalty_range,
|
||||
"dry_allowed_length": self.dry_allowed_length,
|
||||
"dry_base": self.dry_base,
|
||||
"dry_max_ngram": self.dry_max_ngram,
|
||||
"dry_multiplier": self.dry_multiplier,
|
||||
"dry_sequence_breakers": self.dry_sequence_breakers,
|
||||
"repetition_decay": self.repetition_decay,
|
||||
|
||||
Reference in New Issue
Block a user