Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Remove FastH3 Omni W4A8 fallback

Bitticb52b1564d3c
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index ebc20e5..4a450dc 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -24,6 +24,8 @@ This alpha update adds Prompt video scenes, agent image drafts, Sol attention an
## Fixes and improvements
+- FastH3 Omni always downloads its Omni transformer. Removed its inherited W4A8 fallback and migrate saved selections to Omni, reusing an existing Omni download when available.
+
- Renamed Draw edit to Edit Box with a box icon. Hold Ctrl when releasing a lasso stroke to combine overlapping areas, or Alt to subtract. Cursor indicators show the active operation; holes and split areas persist in saved projects and generation masks.
- Lasso selections can be moved but not scaled. Image edits keep the source visible during generation and display the edited result when complete.
diff --git a/docs/generator-weights.md b/docs/generator-weights.md
index 69dcaee..6ad627e 100644
--- a/docs/generator-weights.md
+++ b/docs/generator-weights.md
@@ -163,10 +163,10 @@ at most 2 consecutive skips, active range 0.15–0.95, and subsampling stride 8.
In Settings → Generator, edit a template and enter local paths or HTTP/HTTPS
download URLs. Hugging Face `blob` links are converted to direct file downloads.
The bundled **First/Last Frame** (formerly **Minimax H3 Original**),
-**References**, **First/Last Frame Fast**, and **Singularity** templates each download four model files. References has the same
+**References**, **FastH3 Omni**, and **Singularity** templates each download four model files. References has the same
settings, with the `minimax_h3_ref2va_pruned_int8_convrot.safetensors` transformer
in place of the First/Last Frame `minimax_h3_fl2va_pruned_int8_convrot.safetensors`.
-First/Last Frame Fast uses `fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors`
+FastH3 Omni uses `fasth3_omniref_8step_pruned_int8_convrot.safetensors`
and `minimax_h3_video_vae_int8_convrot.safetensors`, and defaults to **8 steps**.
Existing Fast templates receive the updated URLs and step default once, preserving custom settings.
First/Last Frame and
@@ -180,8 +180,10 @@ All four text encoder downloads use the original Qwen3-VL 32B encoder on all GPU
The incompatible 4B INT4 ConvRot option is removed from saved Minimax templates;
templates using its downloaded file switch back to the original encoder, which
may need downloading. The old file is left on disk.
-First/Last Frame, References, and First/Last Frame Fast use the hybrid W4A8 transformer at 20 GB or less
+First/Last Frame and References use the hybrid W4A8 transformer at 20 GB or less
and their respective INT8 transformer above 20 GB; unknown hardware uses the W4A8 fallback.
+FastH3 Omni uses its Omni transformer on all GPUs, without a W4A8 fallback.
+Saved Fast templates using the old fallback switch to Omni; an existing Omni download is reused when available.
Other local weights and customized download variants are preserved.
Templates awaiting downloads appear under **Download**. Once their
diff --git a/src/lib/settings.test.ts b/src/lib/settings.test.ts
index a02ef8e..a3e9277 100644
--- a/src/lib/settings.test.ts
+++ b/src/lib/settings.test.ts
@@ -169,7 +169,7 @@ describe("generator templates", () => {
expect(settings.templates[2]).toEqual(minimaxFastTemplate());
expect(settings.templates[3]).toEqual(minimaxSingularityTemplate());
expect(settings.defaultTemplateId).toBe(template.id);
- expect(settings.catalogVersion).toBe(11);
+ expect(settings.catalogVersion).toBe(12);
expect(loadGeneratorTemplateSettings()).toEqual(settings);
saveGeneratorTemplateSettings({ ...settings, templates: [settings.templates[0]] });
expect(loadGeneratorTemplateSettings().templates).toHaveLength(1);
@@ -190,7 +190,7 @@ describe("generator templates", () => {
const settings = loadGeneratorTemplateSettings();
expect(settings.templates).toEqual([expect.objectContaining(custom), minimaxSingularityTemplate(), viggleAnimateTemplate(), mossImageTemplate()]);
expect(settings.defaultTemplateId).toBe(custom.id);
- expect(settings.catalogVersion).toBe(11);
+ expect(settings.catalogVersion).toBe(12);
expect(loadGeneratorTemplateSettings()).toEqual(settings);
saveGeneratorTemplateSettings({ ...settings, templates: [custom] });
expect(loadGeneratorTemplateSettings().templates).toEqual([expect.objectContaining(custom)]);
@@ -232,7 +232,7 @@ describe("generator templates", () => {
const videoVae = "https://huggingface.co/Comfy-Org/MiniMax-H3/blob/main/vae/minimax_h3_video_vae_int8_convrot.safetensors";
expect(fast).toEqual({ ...original, id: "minimax-h3-fast", name: "FastH3 Omni", defaultSteps: 8,
paths: { ...original.paths, transformer, videoVae },
- sources: { ...original.sources, transformer: [{ ...original.sources!.transformer![0], url: transformer }, original.sources!.transformer![1]],
+ sources: { ...original.sources, transformer: [{ url: transformer, gpuModel: "", minVramGb: 0 }],
videoVae: [{ url: videoVae, gpuModel: "", minVramGb: 0 }] },
});
saveGeneratorTemplateSettings({ templates: [fast], defaultTemplateId: "", catalogVersion: 4 });
@@ -255,7 +255,7 @@ describe("generator templates", () => {
localStorage.setItem("slopus.generator-templates.v1", JSON.stringify({ templates: [template], catalogVersion: 8 }));
const settings = loadGeneratorTemplateSettings();
expect(settings.templates).toEqual([minimaxFastTemplate(), mossImageTemplate()]);
- expect(settings.catalogVersion).toBe(11);
+ expect(settings.catalogVersion).toBe(12);
expect(templateNeedsDownload(settings.templates[0])).toBe(true);
expect(loadGeneratorTemplateSettings()).toEqual(settings);
});
@@ -270,7 +270,7 @@ describe("generator templates", () => {
const otherPaths = { ...template.paths };
localStorage.setItem("slopus.generator-templates.v1", JSON.stringify({ templates: [template], catalogVersion: 10 }));
const settings = loadGeneratorTemplateSettings();
- expect(settings.catalogVersion).toBe(11);
+ expect(settings.catalogVersion).toBe(12);
expect(settings.templates).toHaveLength(1);
expect(settings.templates[0]).toMatchObject({ id: template.id, name: "FastH3 Omni", defaultSteps: 8,
paths: { ...otherPaths, transformer: minimaxFastTemplate().paths.transformer },
@@ -279,6 +279,34 @@ describe("generator templates", () => {
expect(loadGeneratorTemplateSettings()).toEqual(settings);
});
+ it.each(["url", "downloaded", "cached omni", "custom", "fallback only"])("removes the FastH3 fallback from saved settings using %s", (selection) => {
+ const template = minimaxFastTemplate();
+ const omniUrl = template.paths.transformer;
+ const fallback = { ...minimaxOriginalTemplate().sources!.transformer![1], downloadedPath: "D:/weights/ref2va.safetensors" };
+ template.name = "My Omni";
+ template.defaultSteps = 12;
+ template.paths = { transformer: selection === "url" ? fallback.url.replace("/resolve/", "/blob/") : selection === "custom" ? "D:/custom.safetensors" : fallback.downloadedPath,
+ textEncoder: "encoder", videoVae: "video", audioVae: "audio", tokenizer: "" };
+ template.sources!.transformer = [
+ ...(selection === "fallback only" ? [] : [{ url: omniUrl, gpuModel: "", minVramGb: 21, ...(selection === "cached omni" ? { downloadedPath: "D:/weights/omni.safetensors" } : {}) }]),
+ fallback,
+ { url: "https://example.com/custom.safetensors", gpuModel: "Custom GPU", minVramGb: 8 },
+ ];
+ const original = minimaxOriginalTemplate(), references = minimaxReferencesTemplate();
+ localStorage.setItem("slopus.generator-templates.v1", JSON.stringify({ templates: [template, original, references], defaultTemplateId: template.id, catalogVersion: 11 }));
+ const settings = loadGeneratorTemplateSettings();
+ const migrated = settings.templates[0];
+ expect(migrated.name).toBe("My Omni");
+ expect(migrated.defaultSteps).toBe(12);
+ expect(migrated.sources!.transformer!.map((source) => source.url)).not.toContain(fallback.url);
+ expect(migrated.sources!.transformer).toContainEqual(expect.objectContaining({ url: omniUrl, gpuModel: "", minVramGb: 0 }));
+ expect(migrated.sources!.transformer).toContainEqual({ url: "https://example.com/custom.safetensors", gpuModel: "Custom GPU", minVramGb: 8 });
+ expect(migrated.paths.transformer).toBe(selection === "custom" ? "D:/custom.safetensors" : selection === "cached omni" ? "D:/weights/omni.safetensors" : omniUrl);
+ expect(settings.defaultTemplateId).toBe(selection === "custom" || selection === "cached omni" ? template.id : "");
+ expect(settings.templates.slice(1)).toEqual([original, references]);
+ expect(loadGeneratorTemplateSettings()).toEqual(settings);
+ });
+
it("preserves custom Fast names, weights, steps and removed templates during the Omni upgrade", () => {
const template = minimaxFastTemplate();
template.name = "My fast generator";
@@ -315,7 +343,7 @@ describe("generator templates", () => {
template.paths[field] = downloadedPath;
localStorage.setItem("slopus.generator-templates.v1", JSON.stringify({ templates: [template], catalogVersion: 1 }));
const settings = loadGeneratorTemplateSettings();
- expect(settings.catalogVersion).toBe(11);
+ expect(settings.catalogVersion).toBe(12);
expect(settings.templates[0].paths[field]).toBe(downloadedPath);
expect(settings.templates[0].sources![field]).toEqual(minimaxOriginalTemplate().sources![field]!.map((source, index) =>
index === 0 ? { ...source, downloadedPath } : source));
@@ -350,7 +378,7 @@ describe("generator templates", () => {
localStorage.setItem("slopus.generator-templates.v1", JSON.stringify({ templates: [template], defaultTemplateId: template.id, catalogVersion: 2 }));
const settings = loadGeneratorTemplateSettings();
const migrated = settings.templates[0];
- expect(settings.catalogVersion).toBe(11);
+ expect(settings.catalogVersion).toBe(12);
expect(migrated.sources!.textEncoder).toEqual([
{ url: originalUrl, gpuModel: "", minVramGb: 0, ...(selection === "cached original" ? { downloadedPath: cachedOriginal } : {}) },
custom,
diff --git a/src/lib/settings.ts b/src/lib/settings.ts
index 8ab6439..b8b57c6 100644
--- a/src/lib/settings.ts
+++ b/src/lib/settings.ts
@@ -284,7 +284,9 @@ export function minimaxFastTemplate(): GeneratorTemplate {
const videoVae = "https://huggingface.co/Comfy-Org/MiniMax-H3/blob/main/vae/minimax_h3_video_vae_int8_convrot.safetensors";
return { ...template,
paths: { ...template.paths, videoVae },
- sources: { ...template.sources, videoVae: [{ url: videoVae, gpuModel: "", minVramGb: 0 }] },
+ sources: { ...template.sources,
+ transformer: [{ url: template.paths.transformer, gpuModel: "", minVramGb: 0 }],
+ videoVae: [{ url: videoVae, gpuModel: "", minVramGb: 0 }] },
};
}
@@ -312,7 +314,7 @@ export function viggleAnimateTemplate(): GeneratorTemplate {
const initialTemplateSettings = (paths = EMPTY_ENGINE_SETTINGS): GeneratorTemplateSettings => ({
templates: [{ id: "default", name: "Default", modelType: MINIMAX_H3_MODEL_TYPE, defaultSteps: DEFAULT_GENERATION_STEPS, attention: "sage2", paths: copyPaths(paths) }, minimaxOriginalTemplate(), minimaxReferencesTemplate(), minimaxFastTemplate(), minimaxSingularityTemplate(), viggleAnimateTemplate(), mossImageTemplate()],
defaultTemplateId: "default",
- catalogVersion: 11,
+ catalogVersion: 12,
});
const normalizeTemplateSettings = (value: unknown): GeneratorTemplateSettings | null => {
@@ -374,7 +376,7 @@ const normalizeTemplateSettings = (value: unknown): GeneratorTemplateSettings |
templates,
defaultTemplateId: templates.find((template) => template.id === requestedDefault && templateUsable(template))?.id
?? templates.find(templateUsable)?.id ?? "",
- catalogVersion: typeof record.catalogVersion === "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(record.catalogVersion) ? record.catalogVersion : 0,
+ catalogVersion: typeof record.catalogVersion === "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].includes(record.catalogVersion) ? record.catalogVersion : 0,
};
};
@@ -514,6 +516,31 @@ export function loadGeneratorTemplateSettings(): GeneratorTemplateSettings {
normalized = normalizeTemplateSettings({ ...normalized, catalogVersion: 11 })!;
localStorage.setItem(GENERATOR_TEMPLATES_KEY, JSON.stringify(normalized));
}
+ if ((normalized.catalogVersion ?? 0) < 12) {
+ const fast = normalized.templates.find(({ id }) => id === "minimax-h3-fast");
+ if (fast) {
+ const bundled = minimaxFastTemplate();
+ const fallbackUrl = "https://huggingface.co/koongrizzly/MiniMax_H3_int4_W4A8_ConvRot_Pruned/resolve/main/diffusion_models/minimax_h3_ref2va_hybrid_b20-49_pruned_w4a8_mixed.safetensors";
+ const canonical = (url: string) => url.trim().replace("/blob/", "/resolve/");
+ const sources = fast.sources?.transformer ?? [];
+ const removed = sources.filter((source) => canonical(source.url) === fallbackUrl);
+ const retained = sources.filter((source) => canonical(source.url) !== fallbackUrl).map((source) =>
+ canonical(source.url) === bundled.paths.transformer && !source.gpuModel.trim() && source.minVramGb === 21
+ ? { ...source, minVramGb: 0 } : source);
+ const usedFallback = canonical(fast.paths.transformer) === fallbackUrl
+ || removed.some((source) => source.downloadedPath && source.downloadedPath === fast.paths.transformer);
+ if ((removed.length || usedFallback) && !retained.some((source) => canonical(source.url) === bundled.paths.transformer)) {
+ retained.push({ ...bundled.sources!.transformer![0] });
+ }
+ if (usedFallback) {
+ const omni = retained.find((source) => canonical(source.url) === bundled.paths.transformer)!;
+ fast.paths.transformer = omni.downloadedPath || omni.url;
+ }
+ if (sources.length || retained.length) fast.sources = { ...fast.sources, transformer: retained };
+ }
+ normalized = normalizeTemplateSettings({ ...normalized, catalogVersion: 12 })!;
+ localStorage.setItem(GENERATOR_TEMPLATES_KEY, JSON.stringify(normalized));
+ }
return normalized;
}
}
diff --git a/src/lib/weightDownloads.test.ts b/src/lib/weightDownloads.test.ts
index a12e3ef..c8373d2 100644
--- a/src/lib/weightDownloads.test.ts
+++ b/src/lib/weightDownloads.test.ts
@@ -301,7 +301,10 @@ it.each([12, 20, 24])("downloads the References transformer for %s GiB of VRAM",
expect(templateNeedsDownload(loadGeneratorTemplateSettings().templates.find(({ id }) => id === "minimax-h3-references")!)).toBe(false);
});
-it("downloads the fast transformer and video VAE and retains its eight-step default", async () => {
+it.each([0, 12, 20, 24])("downloads only the FastH3 Omni transformer for %s GiB and retains its eight-step default", async (vram) => {
+ const original = vi.mocked(invoke).getMockImplementation()!;
+ vi.mocked(invoke).mockImplementation(async (command, args) => command === "weight_download_hardware"
+ ? vram ? [{ name: "GPU", memoryBytes: vram * 1024 ** 3 }] : [] : original(command, args));
await downloadTemplateWeights("minimax-h3-fast");
expect(getWeightDownloadState()).toMatchObject({ active: false, completed: 4, error: null });
expect(invoke).toHaveBeenCalledWith("download_weight", expect.objectContaining({