trainfabric 0.1.32 → 0.1.33

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 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -9217,6 +9217,9 @@ function normalizeLearningRate(lr) {
9217
9217
  function buildComputeSpec(options) {
9218
9218
  const gpuCount = normalizePositiveInteger(options.gpus, "GPU count", 1);
9219
9219
  const nodeCount = normalizePositiveInteger(options.nodes, "Node count", 1);
9220
+ if (nodeCount > gpuCount) {
9221
+ throw new Error("Node count cannot exceed GPU count. Request at least one GPU per node.");
9222
+ }
9220
9223
  const compute = {
9221
9224
  gpuCount,
9222
9225
  nodeCount,
@@ -9249,7 +9252,7 @@ function buildComputeSpec(options) {
9249
9252
 
9250
9253
  // src/index.ts
9251
9254
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
9252
- var CLI_VERSION = "0.1.32";
9255
+ var CLI_VERSION = "0.1.33";
9253
9256
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
9254
9257
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
9255
9258
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
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",