Disable S mode for OPT

This commit is contained in:
Henk 2022-05-13 01:47:59 +02:00
parent e98cc3cb16
commit 5c4a087970
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ def loadmodelsettings():
js = json.load(open(vars.custmodpth.replace('/', '_') + "/config.json", "r"))
except Exception as e:
js = {}
if vars.model_type == "xglm" or vars.model_type == "opt" or js.get("compat", "j") == "fairseq_lm":
if vars.model_type == "xglm" 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):