diff --git a/koboldcpp.py b/koboldcpp.py index 4d91db0ab..285702a52 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -184,6 +184,17 @@ tool_call_pairs = [ #third element is whether its stream-handleable ("<|tool_call>", "", True), ("<|end|><|start|>assistant<|channel|>commentary to=", "", False), ] +deprecated_keys = { + "hordeconfig", + "sdconfig", + "noblas", + "nommap", + "pipelineparallel", + "sdnotile", + "forceversion", + "sdgendefaults", + "flashattention", +} saved_stdout = None saved_stderr = None @@ -8367,6 +8378,8 @@ def show_gui(): export_vars() kcpp_exporting_template = False savdict = json.loads(json.dumps(args.__dict__,indent=2)) + for key in deprecated_keys: + savdict.pop(key, None) # avoids KeyError if missing file_type = [("KoboldCpp LaunchTemplate", "*.kcppt")] #remove blacklisted fields savdict = convert_args_to_template(savdict) @@ -8973,6 +8986,8 @@ def show_gui(): kcpp_exporting_template = False export_vars() savdict = json.loads(json.dumps(args.__dict__,indent=2)) + for key in deprecated_keys: + savdict.pop(key, None) # avoids KeyError if missing savdict["istemplate"] = False file_type = [("KoboldCpp Settings", "*.kcpps")] filename = zentk_asksaveasfilename(filetypes=file_type, defaultextension=".kcpps",title="Save kcpps settings config file")