Skip to content

Commit 1ada940

Browse files
committed
LLM parameters added to json
1 parent 3211f41 commit 1ada940

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/main.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,23 @@ async def respond_with_llm_message(update):
462462
json={
463463
"prompt": prompt,
464464
"n_predict": 1024,
465-
"temperature": 0.7,
465+
"temperature": 0.8,
466+
"top_k": 40,
467+
"top_p": 0.95,
468+
"min_p": 0.05,
469+
"dynatemp_range": 0,
470+
"dynatemp_exponent": 1,
471+
"typical_p": 1,
472+
"xtc_probability": 0,
473+
"xtc_threshold": 0.1,
474+
"repeat_last_n": 64,
475+
"repeat_penalty": 1,
476+
"presence_penalty": 0,
477+
"frequency_penalty": 0,
478+
"dry_multiplier": 0,
479+
"dry_base": 1.75,
480+
"dry_allowed_length": 2,
481+
"dry_penalty_last_n": -1,
466482
"stop": ["</s>", "User:", "Assistant:"],
467483
},
468484
) as response:

0 commit comments

Comments
 (0)