trainfabric 0.1.43 → 0.1.44

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -9291,7 +9291,7 @@ function buildComputeSpec(options) {
9291
9291
 
9292
9292
  // src/index.ts
9293
9293
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
9294
- var CLI_VERSION = "0.1.43";
9294
+ var CLI_VERSION = "0.1.44";
9295
9295
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
9296
9296
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
9297
9297
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -9675,6 +9675,7 @@ function assertQuoteCreateHasNoLaunchOverrides(options, command) {
9675
9675
  return;
9676
9676
  }
9677
9677
  const launchShapingOptions = [
9678
+ ["project", "--project"],
9678
9679
  ["dataset", "--dataset"],
9679
9680
  ["model", "--model"],
9680
9681
  ["eval", "--eval"],
@@ -9696,7 +9697,7 @@ function assertQuoteCreateHasNoLaunchOverrides(options, command) {
9696
9697
  throw new Error(
9697
9698
  `Do not combine --quote with launch-shaping flags (${provided.join(
9698
9699
  ", "
9699
- )}). The accepted quote already locks dataset, model, compute, mode, source, and hyperparameters. Request a new quote for different launch settings.`
9700
+ )}). The accepted quote already locks project, dataset, model, compute, mode, source, and hyperparameters. Request a new quote for different launch settings.`
9700
9701
  );
9701
9702
  }
9702
9703
  }
@@ -10052,7 +10053,7 @@ program2.command("datasets:upload").argument("<file>").option("--project <projec
10052
10053
  });
10053
10054
  printJson(dataset);
10054
10055
  });
10055
- program2.command("runs:create").option("--project <projectId>").option("--dataset <datasetId>").option("--model <baseModel>").option("--eval <evalDatasetId>").option("--epochs <epochs>", "number of epochs", "3").option("--lr <lr>", "learning rate", "0.0002").option("--gpus <gpuCount>", "gpu count", "1").option("--nodes <nodeCount>", "node count", "1").option("--accelerator <acceleratorClass>", "optional hard accelerator constraint (for example: a10g, a100, h100)").option("--min-memory <gigabytes>", "minimum GPU memory in GB").option("--precision <precision>", "fp16_bf16, fp8, or fp32").option("--interconnect <interconnect>", "pcie or nvlink").option("--mode <mode>", "efficient, balanced, or power").option("--quote <pricingQuoteId>", "launch the exact accepted quote id from runs:quote").option("--repo <path>", "local repo path for runtime autodetect").option("--git <url>", "git repo URL for runtime metadata").option("--branch <branch>", "git branch for runtime metadata").option("--yes", "confirm that you reviewed pricing with runs:quote --summary and accept fluctuating realized usage").description("Create a training run").action(async (options, command) => {
10056
+ program2.command("runs:create").option("--project <projectId>").option("--dataset <datasetId>").option("--model <baseModel>").option("--eval <evalDatasetId>").option("--epochs <epochs>", "number of epochs", "3").option("--lr <lr>", "learning rate", "0.0002").option("--gpus <gpuCount>", "gpu count", "1").option("--nodes <nodeCount>", "node count", "1").option("--accelerator <acceleratorClass>", "optional hard accelerator constraint (for example: a10g, a100, h100)").option("--min-memory <gigabytes>", "minimum GPU memory in GB").option("--precision <precision>", "fp16_bf16, fp8, or fp32").option("--interconnect <interconnect>", "pcie or nvlink").option("--mode <mode>", "efficient, balanced, or power").option("--quote <pricingQuoteId>", "launch the exact accepted quote id from runs:quote; use only with --yes").option("--repo <path>", "local repo path for runtime autodetect").option("--git <url>", "git repo URL for runtime metadata").option("--branch <branch>", "git branch for runtime metadata").option("--yes", "confirm that you reviewed pricing with runs:quote --summary and accept fluctuating realized usage").description("Create a training run. When using --quote, do not pass project, dataset, model, compute, mode, source, or hyperparameter flags; launch with `trainfabric runs:create --quote <quoteId> --yes`.").action(async (options, command) => {
10056
10057
  const config = loadConfig();
10057
10058
  assertQuoteCreateHasNoLaunchOverrides(options, command);
10058
10059
  const runInput = buildRunInput(options, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
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",