8000 fix(cli): allow passing n_ctx=0 to openAI API server args to use mode… · sunnykim1206/llama-cpp-python@9c36688 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c36688

Browse files
authored
fix(cli): allow passing n_ctx=0 to openAI API server args to use model n_ctx_train field per abetlen#1015 (abetlen#1093)
1 parent cfb7da9 commit 9c36688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/server/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ModelSettings(BaseSettings):
6060
seed: int = Field(
6161
default=llama_cpp.LLAMA_DEFAULT_SEED, description="Random seed. -1 for random."
6262
)
63-
n_ctx: int = Field(default=2048, ge=1, description="The context size.")
63+
n_ctx: int = Field(default=2048, ge=0, description="The context size.")
6464
n_batch: int = Field(
6565
default=512, ge=1, description="The batch size to use per eval."
6666
)

0 commit comments

Comments
 (0)
0