Merge pull request #2993 from theo77186/llamacpp_xtc

Enable XTC support for llama.cpp
This commit is contained in:
Cohee
2024-10-16 20:52:06 +03:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@ -65,6 +65,7 @@ const LLAMACPP_DEFAULT_ORDER = [
'typical_p',
'top_p',
'min_p',
'xtc',
'temperature',
];
const OOBA_DEFAULT_ORDER = [
@ -834,6 +835,7 @@ function setSettingByName(setting, value, trigger) {
if ('samplers' === setting) {
value = Array.isArray(value) ? value : LLAMACPP_DEFAULT_ORDER;
insertMissingArrayItems(LLAMACPP_DEFAULT_ORDER, value);
sortLlamacppItemsByOrder(value);
settings.samplers = value;
return;