mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Add custom sampler order support (#5443)
This commit is contained in:
parent
7301c7618f
commit
8c35fefb3b
9 changed files with 205 additions and 113 deletions
|
|
@ -40,6 +40,7 @@ class GenerationOptions(BaseModel):
|
|||
max_tokens_second: int = 0
|
||||
prompt_lookup_num_tokens: int = 0
|
||||
custom_token_bans: str = ""
|
||||
sampler_priority: List[str] | str | None = Field(default=None, description="List of samplers where the first items will appear first in the stack. Example: [\"top_k\", \"temperature\", \"top_p\"].")
|
||||
auto_max_new_tokens: bool = False
|
||||
ban_eos_token: bool = False
|
||||
add_bos_token: bool = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue