trainfabric 0.1.40 → 0.1.41
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 +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9180,6 +9180,7 @@ var PRECISION_MODES = /* @__PURE__ */ new Set(["fp16_bf16", "fp8", "fp32"]);
|
|
|
9180
9180
|
var INTERCONNECT_TYPES = /* @__PURE__ */ new Set(["pcie", "nvlink"]);
|
|
9181
9181
|
var BASE_MODELS = new Set(baseModels);
|
|
9182
9182
|
var TRAINING_MODES = new Set(trainingModes);
|
|
9183
|
+
var MAX_MIN_GPU_MEMORY_GB = 192;
|
|
9183
9184
|
function normalizePositiveInteger(value, label, fallback, max) {
|
|
9184
9185
|
const parsed = Number(value ?? String(fallback));
|
|
9185
9186
|
if (!Number.isInteger(parsed) || parsed <= 0) {
|
|
@@ -9266,6 +9267,9 @@ function buildComputeSpec(options) {
|
|
|
9266
9267
|
compute.acceleratorClass = accelerator;
|
|
9267
9268
|
}
|
|
9268
9269
|
if (minMemory !== void 0) {
|
|
9270
|
+
if (minMemory > MAX_MIN_GPU_MEMORY_GB) {
|
|
9271
|
+
throw new Error(`Minimum GPU memory must be <= ${MAX_MIN_GPU_MEMORY_GB} GB.`);
|
|
9272
|
+
}
|
|
9269
9273
|
compute.minGpuMemoryGb = minMemory;
|
|
9270
9274
|
}
|
|
9271
9275
|
if (precision) {
|
|
@@ -9279,7 +9283,7 @@ function buildComputeSpec(options) {
|
|
|
9279
9283
|
|
|
9280
9284
|
// src/index.ts
|
|
9281
9285
|
var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
|
|
9282
|
-
var CLI_VERSION = "0.1.
|
|
9286
|
+
var CLI_VERSION = "0.1.41";
|
|
9283
9287
|
var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
|
|
9284
9288
|
var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
|
|
9285
9289
|
var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
|