Add support for MiniMax H3 T2V and I2V training

This commit is contained in:
Jaret Burkett committed 2026-08-03 10:17:39 -06:00
1 parent 73cab2acf5
commit 8502a845b1
28 files changed
+4095 -41

No files matched your search

+10 -1
View File
@@ -3,7 +3,7 @@ import { Job } from '@prisma/client';
import { spawn, ChildProcess } from 'child_process';
import path from 'path';
import fs from 'fs';
import { TOOLKIT_ROOT, getTrainingFolder, getHFToken } from '../paths';
import { TOOLKIT_ROOT, getTrainingFolder, getHFToken, getModelsPath } from '../paths';
import { resolveDetachedPythonPath } from '../pythonPath';
const isWindows = process.platform === 'win32';
@@ -250,6 +250,15 @@ const startAndWatchJob = (job: Job) => {
additionalEnv.HF_TOKEN = hfToken;
}
// MODELS_PATH - one set in the env always takes precedence (it passes
// through via process.env); only fall back to the setting if it is not set
if (!process.env.MODELS_PATH || process.env.MODELS_PATH.trim() === '') {
const modelsPath = await getModelsPath();
if (modelsPath && modelsPath.trim() !== '') {
additionalEnv.MODELS_PATH = modelsPath;
}
}
const args = [runFilePath, configPath];
// Where the Windows relay reports the job's real pid back to us.