llm-checker 3.2.4 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-checker",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "Intelligent CLI tool with AI-powered model selection that analyzes your hardware and recommends optimal LLM models for your system",
|
|
5
5
|
"bin": {
|
|
6
6
|
"llm-checker": "bin/cli.js",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"main": "src/index.js",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "node tests/run-all-tests.js",
|
|
13
|
-
"test:gpu": "node tests/gpu-detection
|
|
14
|
-
"test:platform": "node tests/
|
|
15
|
-
"test:ui": "node tests/ui-
|
|
13
|
+
"test:gpu": "node tests/amd-gpu-detection.test.js",
|
|
14
|
+
"test:platform": "node tests/hardware-simulation-tests.js",
|
|
15
|
+
"test:ui": "node tests/ui-cli-smoke.test.js",
|
|
16
16
|
"test:runtime": "node tests/runtime-specdec-tests.js",
|
|
17
17
|
"test:deterministic-pool": "node tests/deterministic-model-pool-check.js",
|
|
18
18
|
"test:policy": "node tests/policy-commands.test.js",
|
|
@@ -1389,22 +1389,22 @@ class DeterministicModelSelector {
|
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
1392
|
-
mapHardwareTier(hardware) {
|
|
1392
|
+
mapHardwareTier(hardware = {}) {
|
|
1393
1393
|
let ram, cores;
|
|
1394
1394
|
|
|
1395
|
-
if (hardware
|
|
1395
|
+
if (hardware?.memory?.totalGB) {
|
|
1396
1396
|
ram = hardware.memory.totalGB;
|
|
1397
|
-
} else if (hardware
|
|
1397
|
+
} else if (hardware?.memory?.total) {
|
|
1398
1398
|
ram = hardware.memory.total;
|
|
1399
|
-
} else if (hardware
|
|
1399
|
+
} else if (hardware?.total_ram_gb) {
|
|
1400
1400
|
ram = hardware.total_ram_gb;
|
|
1401
1401
|
} else {
|
|
1402
1402
|
ram = 8;
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
|
-
if (hardware
|
|
1405
|
+
if (hardware?.cpu?.cores) {
|
|
1406
1406
|
cores = hardware.cpu.cores;
|
|
1407
|
-
} else if (hardware
|
|
1407
|
+
} else if (hardware?.cpu_cores) {
|
|
1408
1408
|
cores = hardware.cpu_cores;
|
|
1409
1409
|
} else {
|
|
1410
1410
|
cores = 4;
|
|
@@ -1470,14 +1470,14 @@ class DeterministicModelSelector {
|
|
|
1470
1470
|
});
|
|
1471
1471
|
|
|
1472
1472
|
recommendations[category] = {
|
|
1473
|
-
tier: this.mapHardwareTier(
|
|
1473
|
+
tier: this.mapHardwareTier(normalizedHardware),
|
|
1474
1474
|
bestModels: result.candidates.map(candidate => this.mapCandidateToLegacyFormat(candidate)),
|
|
1475
1475
|
totalEvaluated: result.total_evaluated,
|
|
1476
1476
|
category: this.getCategoryInfo(category)
|
|
1477
1477
|
};
|
|
1478
1478
|
} catch (error) {
|
|
1479
1479
|
recommendations[category] = {
|
|
1480
|
-
tier: this.mapHardwareTier(
|
|
1480
|
+
tier: this.mapHardwareTier(normalizedHardware),
|
|
1481
1481
|
bestModels: [],
|
|
1482
1482
|
totalEvaluated: 0,
|
|
1483
1483
|
category: this.getCategoryInfo(category)
|