mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-17 12:10:49 +01:00
Merge branch 'united' into opt
This commit is contained in:
commit
dfa2aa7314
14
aiserver.py
14
aiserver.py
@ -79,6 +79,7 @@ mainmenu = [
|
||||
["Chatbot Models", "chatlist", ""],
|
||||
["Untuned GPT-Neo/J", "gptneolist", ""],
|
||||
["Untuned Fairseq Dense", "fsdlist", ""],
|
||||
["Untuned OPT", "optlist", ""],
|
||||
["Untuned XGLM", "xglmlist", ""],
|
||||
["Untuned GPT2", "gpt2list", ""],
|
||||
["Online Services", "apilist", ""],
|
||||
@ -137,6 +138,17 @@ gpt2list = [
|
||||
["Return to Main Menu", "Return", ""],
|
||||
]
|
||||
|
||||
optlist = [
|
||||
["OPT 30B", "facebook/opt-30b", ""],
|
||||
["OPT 13B", "facebook/opt-13b", "32GB"],
|
||||
["OPT 6.7B", "facebook/opt-6.7b", "16GB"],
|
||||
["OPT 2.7B", "facebook/opt-2.7b", "8GB"],
|
||||
["OPT 1.3B", "facebook/opt-1.3b", "4GB"],
|
||||
["OPT 355M", "facebook/opt-350m", "2GB"],
|
||||
["OPT 125M", "facebook/opt-125m", "1GB"],
|
||||
["Return to Main Menu", "Return", ""],
|
||||
]
|
||||
|
||||
fsdlist = [
|
||||
["Fairseq Dense 13B", "KoboldAI/fairseq-dense-13B", "32GB"],
|
||||
["Fairseq Dense 6.7B", "KoboldAI/fairseq-dense-6.7B", "16GB"],
|
||||
@ -515,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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user