fix/#1650-hogging-resources (#1663)
This commit is contained in:
parent
81e2b8d885
commit
42c416ebd5
@ -123,7 +123,7 @@ async function runModel(
|
|||||||
llama_model_path: currentModelFile,
|
llama_model_path: currentModelFile,
|
||||||
...wrapper.model.settings,
|
...wrapper.model.settings,
|
||||||
// This is critical and requires real system information
|
// This is critical and requires real system information
|
||||||
cpu_threads: nitroResourceProbe.numCpuPhysicalCore,
|
cpu_threads: Math.max(1, Math.round(nitroResourceProbe.numCpuPhysicalCore / 2)),
|
||||||
};
|
};
|
||||||
return runNitroAndLoadModel();
|
return runNitroAndLoadModel();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user