mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Another bug fix from united merge
This commit is contained in:
@@ -1174,13 +1174,14 @@ function update_gpu_layers() {
|
||||
function load_model() {
|
||||
var accept = document.getElementById('btn_loadmodelaccept');
|
||||
gpu_layers = []
|
||||
for (let i=0; i < document.getElementById("gpu_count").value; i++) {
|
||||
gpu_layers.push(document.getElementById("gpu_layers_"+i).value);
|
||||
}
|
||||
if (document.getElementById("disk_layers")) {
|
||||
disk_layers = document.getElementById("disk_layers").value;
|
||||
} else {
|
||||
disk_layers = "0";
|
||||
disk_layers = 0;
|
||||
if (!(document.getElementById("modellayers").classList.contains("hidden"))) {
|
||||
for (let i=0; i < document.getElementById("gpu_count").value; i++) {
|
||||
gpu_layers.push(document.getElementById("gpu_layers_"+i).value);
|
||||
}
|
||||
if (document.getElementById("disk_layers")) {
|
||||
disk_layers = document.getElementById("disk_layers").value;
|
||||
}
|
||||
}
|
||||
//Need to do different stuff with custom models
|
||||
if ((accept.getAttribute('menu') == 'GPT2Custom') || (accept.getAttribute('menu') == 'NeoCustom')) {
|
||||
|
Reference in New Issue
Block a user