Files
letta-server/letta/local_llm/settings/deterministic_mirostat.py
Sarah Wooders 8ae1e64987 chore: migrate package name to letta (#1775)
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2024-09-23 09:15:18 -07:00

46 lines
1.2 KiB
Python

from letta.local_llm.settings.simple import settings as simple_settings
settings = {
"max_new_tokens": 250,
"do_sample": False,
"temperature": 0,
"top_p": 0,
"typical_p": 1,
"repetition_penalty": 1.18,
"repetition_penalty_range": 0,
"encoder_repetition_penalty": 1,
"top_k": 1,
"min_length": 0,
"no_repeat_ngram_size": 0,
"num_beams": 1,
"penalty_alpha": 0,
"length_penalty": 1,
"early_stopping": False,
"guidance_scale": 1,
"negative_prompt": "",
"seed": -1,
"add_bos_token": True,
# NOTE: important - these are the BASE stopping strings, and should be combined with {{user}}/{{char}}-based stopping strings
"stopping_strings": [
simple_settings["stop"]
# '### Response (JSON only, engaging, natural, authentic, descriptive, creative):',
# "</s>",
# "<|",
# "\n#",
# "\n*{{user}} ",
# "\n\n\n",
# "\n{",
# ",\n{",
],
"truncation_length": 4096,
"ban_eos_token": False,
"skip_special_tokens": True,
"top_a": 0,
"tfs": 1,
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"mirostat_mode": 2,
"mirostat_tau": 4,
"mirostat_eta": 0.1,
}