trainfabric 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/dist/index.cjs +5 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -8922,7 +8922,7 @@ function buildComputeSpec(options) {
8922
8922
 
8923
8923
  // src/index.ts
8924
8924
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
8925
- var CLI_VERSION = "0.1.14";
8925
+ var CLI_VERSION = "0.1.15";
8926
8926
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
8927
8927
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
8928
8928
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -9292,6 +9292,9 @@ function assertQuoteOptions(bundle, options) {
9292
9292
  return;
9293
9293
  }
9294
9294
  const constraints = [];
9295
+ if (options.mode) {
9296
+ constraints.push(`mode=${options.mode}`);
9297
+ }
9295
9298
  if (options.accelerator) {
9296
9299
  constraints.push(`accelerator=${options.accelerator}`);
9297
9300
  }
@@ -9304,7 +9307,7 @@ function assertQuoteOptions(bundle, options) {
9304
9307
  throw new Error(
9305
9308
  `No quote options were returned for the requested run under the current hardware constraints (${constraints.join(
9306
9309
  ", "
9307
- )}). Omit --accelerator or increase --min-memory.`
9310
+ )}). Try a different --mode, omit --accelerator, adjust --min-memory if it excludes available GPUs, or retry when capacity changes.`
9308
9311
  );
9309
9312
  }
9310
9313
  function filterQuoteBundleForRequestedMode(bundle, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Trainfabric CLI for launching GPU training jobs on the hosted Trainfabric backend.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",