Skip to content

Commit c0fad3c

Browse files
committed
✨ Add repeat_penalty setting
1 parent e331fa3 commit c0fad3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/funcchain/backend/settings.py

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class FuncchainSettings(BaseSettings):
4141
context_lenght: int = 8196
4242
n_gpu_layers: int = 50
4343
keep_loaded: bool = False
44+
repeat_penalty: float = 1.0
4445
local_models_path: str = "./.models"
4546

4647
def model_kwargs(self) -> dict:
@@ -64,6 +65,7 @@ def llamacpp_kwargs(self) -> dict:
6465
"n_ctx": self.context_lenght,
6566
"use_mlock": self.keep_loaded,
6667
"n_gpu_layers": self.n_gpu_layers,
68+
"repeat_penalty": self.repeat_penalty,
6769
}
6870

6971

0 commit comments

Comments
 (0)