trainfabric 0.1.38 → 0.1.39
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/dist/index.cjs +7 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9279,7 +9279,7 @@ function buildComputeSpec(options) {
|
|
|
9279
9279
|
|
|
9280
9280
|
// src/index.ts
|
|
9281
9281
|
var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
|
|
9282
|
-
var CLI_VERSION = "0.1.
|
|
9282
|
+
var CLI_VERSION = "0.1.39";
|
|
9283
9283
|
var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
|
|
9284
9284
|
var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
|
|
9285
9285
|
var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
|
|
@@ -9579,9 +9579,12 @@ function printQuoteSummary(bundle) {
|
|
|
9579
9579
|
console.log(` estimated infra cost: ${formatUsd(quote.expectedInfraCostUsd)}`);
|
|
9580
9580
|
console.log(` infra GPU-hour equivalent: ${formatUsdPerGpuHour(quote.expectedInfraCostUsd, gpuCount, quote.estimatedRuntimeSeconds)}`);
|
|
9581
9581
|
console.log(` estimated margin: ${formatUsd(quote.expectedMarginUsd)} (${formatPercent(quote.expectedMarginRatio)})`);
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9582
|
+
if (quote.profiledRuntimeSeconds && quote.profiledRuntimeSeconds !== quote.estimatedRuntimeSeconds) {
|
|
9583
|
+
console.log(` profiled compute estimate: ${Math.round(quote.profiledRuntimeSeconds / 60)} min`);
|
|
9584
|
+
}
|
|
9585
|
+
console.log(` estimated runtime: ${Math.round(quote.estimatedRuntimeSeconds / 60)} min`);
|
|
9586
|
+
if (quote.estimatedCompletionSeconds && quote.estimatedCompletionSeconds !== quote.estimatedRuntimeSeconds) {
|
|
9587
|
+
console.log(` estimated completion window: ${Math.round(quote.estimatedCompletionSeconds / 60)} min`);
|
|
9585
9588
|
}
|
|
9586
9589
|
console.log(` reserved GPU time: ${formatGpuHours(gpuCount, quote.reservationWindowSeconds ?? quote.estimatedRuntimeSeconds)}`);
|
|
9587
9590
|
console.log(` data path: ${quote.dataPath ?? "auto"}`);
|