@tuned-tensor/cli 0.13.1-beta.4 → 0.13.1-beta.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/README.md +5 -2
- package/dist/{chunk-7VIUHQBI.js → chunk-AVMRHDFY.js} +1499 -792
- package/dist/chunk-AVMRHDFY.js.map +1 -0
- package/dist/index.js +155 -18
- package/dist/index.js.map +1 -1
- package/dist/local-runtime.js +31 -1
- package/dist/local-runtime.js.map +1 -1
- package/docs/local-runtime/spark.md +6 -0
- package/package.json +1 -1
- package/dist/chunk-7VIUHQBI.js.map +0 -1
package/dist/local-runtime.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
assertFoundationSpecReady,
|
|
6
6
|
assertLocalRunInputReady,
|
|
7
7
|
assertUsableModelArtifact,
|
|
8
|
+
assessHardware,
|
|
8
9
|
baseModelRevisionSchema,
|
|
9
10
|
behaviorSpecExampleSchema,
|
|
10
11
|
buildBundledPythonCommand,
|
|
@@ -73,7 +74,7 @@ import {
|
|
|
73
74
|
withHuggingFaceCacheEnvironment,
|
|
74
75
|
withOfflineHuggingFaceCacheEnvironment,
|
|
75
76
|
writePrivateJsonAtomic
|
|
76
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-AVMRHDFY.js";
|
|
77
78
|
|
|
78
79
|
// src/local-runtime/index.ts
|
|
79
80
|
import { readFileSync, realpathSync } from "fs";
|
|
@@ -741,6 +742,7 @@ Commands:
|
|
|
741
742
|
info Show package and runner information
|
|
742
743
|
init [--name "My Local Model"] [--model Qwen/Qwen3.5-2B] [--output tunedtensor.json] [--profile spark] [--force]
|
|
743
744
|
doctor [tunedtensor.json] [--config local-runner.json]
|
|
745
|
+
hardware [--config local-runner.json] [--quick]
|
|
744
746
|
validate [tunedtensor.json] [--config local-runner.json]
|
|
745
747
|
run [tunedtensor.json] [--config local-runner.json] [--dry-run] [--verbose] [--quiet]
|
|
746
748
|
serve <model-id|active|base> [--config local-runner.json] [--host 127.0.0.1] [--port 8000]
|
|
@@ -801,6 +803,15 @@ var COMMAND_DEFINITIONS = {
|
|
|
801
803
|
options: [CONFIG_OPTION],
|
|
802
804
|
maxPositionals: 1
|
|
803
805
|
},
|
|
806
|
+
hardware: {
|
|
807
|
+
usage: "tt hardware [--config path] [--quick]",
|
|
808
|
+
description: "Inventory this host and report what TT can train, fine-tune, or infer.",
|
|
809
|
+
options: [
|
|
810
|
+
CONFIG_OPTION,
|
|
811
|
+
{ name: "--quick", description: "Skip the bundled torch/uv runtime probe" }
|
|
812
|
+
],
|
|
813
|
+
maxPositionals: 0
|
|
814
|
+
},
|
|
804
815
|
validate: {
|
|
805
816
|
usage: "tt validate [tunedtensor.json] [options]",
|
|
806
817
|
description: "Validate a local behavior spec without executing it.",
|
|
@@ -1430,9 +1441,28 @@ async function main(argv) {
|
|
|
1430
1441
|
config_path: configSelection.path ?? null,
|
|
1431
1442
|
checks
|
|
1432
1443
|
});
|
|
1444
|
+
try {
|
|
1445
|
+
await assessHardware({
|
|
1446
|
+
config: configSelection.config,
|
|
1447
|
+
quick: true
|
|
1448
|
+
});
|
|
1449
|
+
} catch {
|
|
1450
|
+
}
|
|
1433
1451
|
if (!ok) process.exitCode = 1;
|
|
1434
1452
|
return;
|
|
1435
1453
|
}
|
|
1454
|
+
if (command === "hardware") {
|
|
1455
|
+
const configSelection = await configSelectionFromArgv(argv);
|
|
1456
|
+
const report = await assessHardware({
|
|
1457
|
+
config: configSelection.config,
|
|
1458
|
+
quick: hasFlag(argv, "--quick")
|
|
1459
|
+
});
|
|
1460
|
+
printJson({
|
|
1461
|
+
...report,
|
|
1462
|
+
config_path: configSelection.path ?? null
|
|
1463
|
+
});
|
|
1464
|
+
return;
|
|
1465
|
+
}
|
|
1436
1466
|
if (command === "init") {
|
|
1437
1467
|
const outputPath = resolve3(readOption(argv, "--output") ?? DEFAULT_LOCAL_SPEC_PATH);
|
|
1438
1468
|
const profile = readOption(argv, "--profile");
|