mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
S mode for OPT
This commit is contained in:
@ -515,7 +515,7 @@ def loadmodelsettings():
|
||||
js = json.load(open(vars.custmodpth.replace('/', '_') + "/config.json", "r"))
|
||||
except Exception as e:
|
||||
js = {}
|
||||
if vars.model_type == "xglm" or js.get("compat", "j") == "fairseq_lm":
|
||||
if vars.model_type == "xglm" or vars.model_type == "opt" or js.get("compat", "j") == "fairseq_lm":
|
||||
vars.newlinemode = "s" # Default to </s> newline mode if using XGLM
|
||||
vars.modelconfig = js
|
||||
if("badwordsids" in js):
|
||||
|
Reference in New Issue
Block a user