mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-24 16:29:18 +00:00
Neutralize samplers (#59)
* Update sample_preset.yml Neutralized the samplers. * Sampling: Fix dynatemp defaults Default max temp and min temp is 1.0 * Sampling: Fix TFS defaults Default is 1.0 --------- Co-authored-by: AliCat <86847834+alicat22@users.noreply.github.com> Co-authored-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -558,8 +558,8 @@ class ExllamaV2Container:
|
||||
gen_settings.mirostat = unwrap(kwargs.get("mirostat"), False)
|
||||
|
||||
# DynaTemp settings
|
||||
max_temp = unwrap(kwargs.get("max_temp"), 0.0)
|
||||
min_temp = unwrap(kwargs.get("min_temp"), 0.0)
|
||||
max_temp = unwrap(kwargs.get("max_temp"), 1.0)
|
||||
min_temp = unwrap(kwargs.get("min_temp"), 1.0)
|
||||
|
||||
if max_temp > min_temp:
|
||||
gen_settings.max_temp = max_temp
|
||||
@@ -574,7 +574,7 @@ class ExllamaV2Container:
|
||||
# Warn if max/min temp values are > 0
|
||||
# and if they're less than or equal to each other
|
||||
if max_temp < min_temp or (
|
||||
0 not in {min_temp, max_temp} and max_temp == min_temp
|
||||
1 not in {min_temp, max_temp} and max_temp == min_temp
|
||||
):
|
||||
logger.warning(
|
||||
"Max temp is less than or equal to min temp, skipping DynaTemp."
|
||||
|
||||
Reference in New Issue
Block a user