We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0495d02 commit 25d6753Copy full SHA for 25d6753
Writer/Config.py
@@ -18,6 +18,8 @@
18
CHECKER_MODEL = "ollama://llama3:70b" # Model used to check results
19
TRANSLATOR_MODEL = "ollama://llama3:70b"
20
21
+OLLAMA_CTX = 8192
22
+
23
OLLAMA_HOST = "127.0.0.1:11434"
24
25
SEED = 12 # Note this value is overridden by the argparser
Writer/Interface/Wrapper.py
@@ -246,6 +246,10 @@ def ChatAndStreamResponse(
246
if key not in ValidParameters:
247
raise ValueError(f"Invalid parameter: {key}")
248
249
+ # Set the default num_ctx if not set by args
250
+ if "num_ctx" not in ModelOptions:
251
+ ModelOptions["num_ctx"] = Writer.Config.OLLAMA_CTX
252
253
_Logger.Log(f"Using Ollama Model Options: {ModelOptions}", 4)
254
255
if _Format == "json":
0 commit comments