Skip to content

Commit

Permalink
✨ Add repeat_penalty setting
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Feb 6, 2024
1 parent e331fa3 commit c0fad3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/funcchain/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class FuncchainSettings(BaseSettings):
context_lenght: int = 8196
n_gpu_layers: int = 50
keep_loaded: bool = False
repeat_penalty: float = 1.0
local_models_path: str = "./.models"

def model_kwargs(self) -> dict:
Expand All @@ -64,6 +65,7 @@ def llamacpp_kwargs(self) -> dict:
"n_ctx": self.context_lenght,
"use_mlock": self.keep_loaded,
"n_gpu_layers": self.n_gpu_layers,
"repeat_penalty": self.repeat_penalty,
}


Expand Down

0 comments on commit c0fad3c

Please sign in to comment.