S mode for OPT

This commit is contained in:
Henk 2022-05-12 02:18:14 +02:00
parent a1c7017ddc
commit 376e76f5da
1 changed files with 1 additions and 1 deletions

View File

@ -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):