Spaces:
Sleeping
Sleeping
Update app.js
Browse files
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();
|