publicstring commited on
Commit
02f745a
·
verified ·
1 Parent(s): 7b3361b

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +1 -1
app.js CHANGED
@@ -83,7 +83,7 @@ async function getMediatorAI() {
83
  if (!fs.existsSync(MODEL_PATH)) await downloadModel();
84
 
85
  const nodeLlama = await import('node-llama-cpp');
86
- const threads = Math.max(2, os.cpus().length - 1);
87
 
88
  console.log(`[AI] Loading Qwen 1.5B into RAM with ${threads} threads...`);
89
  const llama = await nodeLlama.getLlama();
 
83
  if (!fs.existsSync(MODEL_PATH)) await downloadModel();
84
 
85
  const nodeLlama = await import('node-llama-cpp');
86
+ const threads = 4; // Math.max(2, os.cpus().length - 1);
87
 
88
  console.log(`[AI] Loading Qwen 1.5B into RAM with ${threads} threads...`);
89
  const llama = await nodeLlama.getLlama();