AI media harness for planning, generating, and editing locally
TypeScript
Add Hyperflow 8-step LoRA
Bitti9b5cb785498b
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.mdindex 155a447..fd3c59e 100644--- a/RELEASE_NOTES.md+++ b/RELEASE_NOTES.md@@ -14,7 +14,7 @@ Changes since 0.3.2.- **Image editing:** Combine or subtract lasso selections, queue batches of up to 100 images, and edit bounded regions of larger images while preserving their original resolution.- **Live previews:** Watch MiniMax H3 video and image generation in the editor. Optional TAEH3 preview weights are available in Settings.- **Generation effects:** LCS color steering, tone, sharpness and color stabilization, with step ranges and optional regions.-- **Generator controls:** Compatible sampler/scheduler choices, including ER-SDE and Beta; global LoRAs, application ordering, scene overrides and Pika H3 Flex adapters.+- **Generator controls:** Compatible sampler/scheduler choices, including ER-SDE and Beta; global LoRAs, application ordering, scene overrides, Pika H3 Flex and Hyperflow 8-Step adapters.- **Model downloads:** Shared H3 VAEs and text encoders, including Sol H3 VAE; VRAM compatibility warnings; Music3 INT8, FP16 and FP32 variants; updated FastH3 Omni weights.## Fixes and improvementsdiff --git a/docs/generator-weights.md b/docs/generator-weights.mdindex 2518309..a978e63 100644--- a/docs/generator-weights.md+++ b/docs/generator-weights.md@@ -119,6 +119,8 @@ downloads [TaoMate-H3-3step-ComfyUI.safetensors](https://huggingface.co/CZMartinand defaults to an editable **4-step override**.**LightX2V Turbo** downloads [the silveroxides experimental adapter](https://huggingface.co/silveroxides/MiniMax-H3_tests/resolve/main/experimental/minimax_h3_fl2v_lightx2v_turbo_4to8step_v0.1-v1.0_768p_v4_step600_dareties.safetensors)and defaults to an editable **6-step override** and **0.9 multiplier**.+**Hyperflow 8-Step** downloads [the Hyperflow adapter](https://huggingface.co/VideoRebirthAI/hyperflow/resolve/main/minimax_h3_hyperflow_8step_v1.0.safetensors)+and defaults to an editable **8-step override** for MiniMax H3.These adapters use the same managed `weights` location, background transfer, progress,cancellation, retry, and Work Queue controls as model weights. Downloads areserialized with weight downloads, and video generation can continue while downloading.diff --git a/src/lib/loras.test.ts b/src/lib/loras.test.tsindex 30a42ae..8ec6bc9 100644--- a/src/lib/loras.test.ts+++ b/src/lib/loras.test.ts@@ -1,7 +1,7 @@// @vitest-environment jsdomimport { installH3TestDependencies } from "./h3TestUtils";import { beforeEach, expect, it } from "vitest";-import { PIKA_FL2VA_LORA, PIKA_REF2VA_LORA, DMAD_LORA, downloadableTemplateLoras, LIGHTX2V_TURBO_LORA, loadLoras, saveLoras, TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA } from "./loras";+import { HYPERFLOW_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA, DMAD_LORA, downloadableTemplateLoras, LIGHTX2V_TURBO_LORA, loadLoras, saveLoras, TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA } from "./loras";import { createGeneratorTemplate, engineProviderSetting, generationSigmaShifts, generationStepsWithLoras, kreaImageTemplates, loadGeneratorTemplateSettings, saveGeneratorTemplateSettings, withEngineSettings } from "./settings";import { createProjectConfig } from "./project";import { effectiveLoras, moveLibraryLora, selectionConflict, loraSnapshot } from "./loras";@@ -139,9 +139,9 @@ it.each([0, 1, -3, 2.5, NaN, Infinity, 2147483648])("rejects invalid step overri});it("starts with the bundled adapters and preserves the local library", () => {- expect(loadLoras()).toEqual([TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA, LIGHTX2V_TURBO_LORA, DMAD_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA]);+ expect(loadLoras()).toEqual([TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA, LIGHTX2V_TURBO_LORA, DMAD_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA, HYPERFLOW_LORA]);saveLoras([{ ...TAOMATE_LORA, path: "C:/weights/TaoMate.safetensors" }, { id: "style", name: "Style", path: "D:/style.safetensors" }]);- expect(loadLoras().map(({ name }) => name)).toEqual(["TaoMate 3-Step", "Style", "Turbo", "Viggle Animate Distillation", "LightX2V Turbo", "DMAD 4-Step", "Pika H3 First/Last", "Pika H3 Reference"]);+ expect(loadLoras().map(({ name }) => name)).toEqual(["TaoMate 3-Step", "Style", "Turbo", "Viggle Animate Distillation", "LightX2V Turbo", "DMAD 4-Step", "Pika H3 First/Last", "Pika H3 Reference", "Hyperflow 8-Step"]);});it("preserves DMAD's recipe and local path and gives its fixed grid priority over step overrides", () => {diff --git a/src/lib/loras.ts b/src/lib/loras.tsindex 3c47ca8..3a371e5 100644--- a/src/lib/loras.ts+++ b/src/lib/loras.ts@@ -54,7 +54,12 @@ export const PIKA_REF2VA_LORA: Lora = {url: "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/loras/pika_h3_flex_ref2va_v1_bf16.safetensors",samplingPreset: "pika-6step",};-const BUNDLED_LORAS = [TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA, LIGHTX2V_TURBO_LORA, DMAD_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA];+export const HYPERFLOW_LORA: Lora = {+ id: "hyperflow-8step", name: "Hyperflow 8-Step", modelType: "minimax-h3", path: "",+ url: "https://huggingface.co/VideoRebirthAI/hyperflow/resolve/main/minimax_h3_hyperflow_8step_v1.0.safetensors",+ stepOverride: 8,+};+const BUNDLED_LORAS = [TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA, LIGHTX2V_TURBO_LORA, DMAD_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA, HYPERFLOW_LORA];const KEY = "slopus.loras.v1";const EVENT = "slopus:loras-changed";export function loadLoras(): Lora[] {diff --git a/src/lib/weightDownloads.test.ts b/src/lib/weightDownloads.test.tsindex 214aa94..e6e06ac 100644--- a/src/lib/weightDownloads.test.ts+++ b/src/lib/weightDownloads.test.ts@@ -1,7 +1,7 @@// @vitest-environment jsdomimport { invoke } from "@tauri-apps/api/core";import { cancelWeightDownload, downloadLora, prepareLora, removeLora, refreshDownloadedLoras, retryWeightDownload } from "./weightDownloads";-import { PIKA_FL2VA_LORA, PIKA_REF2VA_LORA, DMAD_LORA, LIGHTX2V_TURBO_LORA, loadLoras, saveLoras, TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA } from "./loras";+import { HYPERFLOW_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA, DMAD_LORA, LIGHTX2V_TURBO_LORA, loadLoras, saveLoras, TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA } from "./loras";import { beforeEach, expect, it, vi } from "vitest";import { chooseWeightSource, downloadTemplateWeights, getWeightDownloadState, refreshDownloadedWeights, removeTemplateWeights, updateWeightPath, weightDownloadProgress, type DownloadState } from "./weightDownloads";import { ANIMATE_CONDITIONING_URL, mossImageTemplate, fiboImageTemplate, engineProviderSetting, createGeneratorTemplate, defaultGeneratorTemplate, isDownloadUrl, loadGeneratorTemplateSettings, minimaxOriginalTemplate, minimaxSingularityTemplate, saveGeneratorTemplateSettings, templateNeedsDownload, type WeightSource } from "./settings";@@ -169,7 +169,7 @@ it("downloads globally enabled LoRAs with a generator without baking them into iexpect(loadGeneratorTemplateSettings().templates[0].loras ?? []).toEqual([]);});-it.each([TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA, LIGHTX2V_TURBO_LORA, DMAD_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA])("downloads $name through the weight transfer and restores missing downloads", async (lora) => {+it.each([TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA, LIGHTX2V_TURBO_LORA, DMAD_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA, HYPERFLOW_LORA])("downloads $name through the weight transfer and restores missing downloads", async (lora) => {const savedLora = () => loadLoras().find(({ id }) => id === lora.id)!;await downloadLora(lora.id);expect(invoke).toHaveBeenCalledWith("download_weight", { requestId: expect.any(String), url: lora.url });