Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Originals O3: no training whose LoRA nothing on this install could run

Claude8082a90ca569
diff --git a/src/server/training.ts b/src/server/training.ts
index ba9f5700..a2e9b9c1 100644
--- a/src/server/training.ts
+++ b/src/server/training.ts
@@ -134,6 +134,11 @@ export function trainingBlocker(t: TrainingTarget): string | null {
? `This install is set to open source only (Settings → ${ENGINE_MODE}): train on your GPU`
: `This install is set to paid cloud APIs only (Settings → ${ENGINE_MODE}): train in the cloud`;
}
+ // A LoRA nothing here could run: its family's models are all on the engine this install turned off.
+ const fam = TRAINING_FAMILIES[t.family];
+ if (mode !== "both" && !fam.lead[mode]) {
+ return `${fam.name} runs only ${mode === "open" ? "in the cloud" : "on your GPU"}, which this install turned off (Settings → ${ENGINE_MODE})`;
+ }
if (t.provider === "fal" && !getSetting("falKey")) return "Add a fal.ai key in Settings";
if (t.provider === "ai-toolkit" && !getSetting("aiToolkitUrl")) return "Set your AI-Toolkit URL in Settings (or download the training kit)";
return null;
diff --git a/tests/soul-id-runtime.test.ts b/tests/soul-id-runtime.test.ts
index 9cb9ea2f..1c1fae0f 100644
--- a/tests/soul-id-runtime.test.ts
+++ b/tests/soul-id-runtime.test.ts
@@ -98,6 +98,8 @@ describe("starting a Soul ID training", () => {
setSetting("engineMode", "open");
const el = character();
expect(() => startTraining(el.id, "fal-z-image", { consent: true })).toThrow(/open source only/);
+ // A GPU training whose LoRA only cloud models run (FLUX.2 [klein] 4B) is refused there too.
+ expect(() => startTraining(el.id, "aitk-flux2-klein-4b", { consent: true })).toThrow(/FLUX.2 \[klein\] 4B runs only in the cloud/);
});
it("sends fal a zip of 001.png + 001.txt pairs with the trainer's fields, priced first", async () => {