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.

Image studios: Qwen-Image 2.1 Speed, GPU and Decoder options, and Storyboard's next frames on Qwen-Image 2.1

Claudea7c61ba53220
diff --git a/docs/research/fuobe-originals-recipes-5.json b/docs/research/fuobe-originals-recipes-5.json
index d1969a05..d64b8b06 100644
--- a/docs/research/fuobe-originals-recipes-5.json
+++ b/docs/research/fuobe-originals-recipes-5.json
@@ -24523,6 +24523,95 @@
"fuobe-restore (Restore to 4K)"
],
"notes": "The Restore card's stage 2: the restored clip lanczos x2 (2880x2176 from 1440x1088) through the same tiled-fusion workflow with this LoRA at 1.0, tile 1024x576; restore first, refine second (refining first sharpens the damage and desaturates the colour). Trained on LTX-2.5; no host serves LTX-2.5 with LoRAs, so it runs on your GPU only. Gated on Hugging Face (\"Agree and Access\" on the model page, which also consents to Lightricks' offers): the file downloads only with the token of an account that accepted, so Fuobe asks for an HF token (Settings → LoRAs) and uses it only for gated downloads; a cloud run gets Fuobe's mirror of the file on fal storage, never the token."
+ },
+ {
+ "key": "qwen21-dmd2-2step",
+ "name": "DMD2 2-step for Qwen-Image 2.1, v1.5 (linoyts)",
+ "url": "https://huggingface.co/linoyts/Qwen-Image-2.1-DMD2-2steps/resolve/main/pytorch_lora_weights_v1_5.safetensors",
+ "page": "https://huggingface.co/linoyts/Qwen-Image-2.1-DMD2-2steps",
+ "file": "Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors",
+ "strength": 1.0,
+ "licence": "Qwen Research License (a derivative of Qwen-Image 2.1: card and NOTICE)",
+ "commercial": false,
+ "hostedOk": false,
+ "released": "2026-10-30",
+ "revision": "5bae28369ecea3232405c17a53c04d35d15796b8",
+ "sha256": "0cfee5d5fbb9c5f6262c82db4f59dd4e872dfaac9fb7c82c9f7191e0d31406c4",
+ "sizeBytes": 67144520,
+ "usedBy": [
+ "Qwen-Image 2.1 Options → Speed: Draft (qwen-image-21-{t2i,edit,inpaint,outpaint}-draft)"
+ ],
+ "notes": "2 steps at CFG 1 on fixed sigmas [1.0, 0.5] with no shift; rank 32, attention only. v1.5 (2026-10-30) improves prompt adherence and edit fidelity over v1 (the file Live edit loads), same settings. Pinned 2026-11-01 from the Hugging Face API (revision, LFS SHA256 and size).",
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "checked": "2026-11-01"
+ },
+ {
+ "key": "qwen21-lightning-4step",
+ "name": "Lightning 4-step for Qwen-Image 2.1 (LightX2V)",
+ "url": "https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/main/pytorch_lora_weights.safetensors",
+ "page": "https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning",
+ "file": "Qwen-Image-2.1-Lightning-4steps.safetensors",
+ "strength": 1.0,
+ "licence": "Not stated in the repository (no LICENSE file, no licence tag; comfyui-wiki says Apache-2.0); it runs on Qwen-Image 2.1 (Qwen Research License)",
+ "commercial": false,
+ "hostedOk": false,
+ "released": "2026-10-13",
+ "revision": "6b0a1176327c01522a44276c5da67331a025b6fc",
+ "sha256": "53c69320d4163da51032f90275074028cb098556039c72b45f8dce9f0f9e34a3",
+ "sizeBytes": 67144280,
+ "usedBy": [
+ "Qwen-Image 2.1 Options → Speed: Fast (qwen-image-21-{t2i,edit,inpaint,outpaint}-fast)"
+ ],
+ "notes": "DMD distillation by LightX2V for text to image and multi-reference edits: 4 steps at CFG 1 on [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9), which the graph's ManualSigmas holds shifted for the canvas. The repository has no licence of its own (checked 2026-11-01): recorded as not stated, non-commercial through its base.",
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "checked": "2026-11-01"
+ },
+ {
+ "key": "qwen21-pq-image-6step-upsampled",
+ "name": "P-Q-Image 6-step upsampled for Qwen-Image 2.1, v0.2 (PrunaAI)",
+ "url": "https://huggingface.co/PrunaAI/P-Q-Image-2.1-Comfy/resolve/main/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors",
+ "page": "https://huggingface.co/PrunaAI/P-Q-Image-2.1",
+ "file": "p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors",
+ "strength": 1.0,
+ "licence": "Qwen Research License (a derivative of Qwen-Image 2.1: LICENSE and NOTICE)",
+ "commercial": false,
+ "hostedOk": false,
+ "released": "2026-10-27",
+ "revision": "aa7dcecb1767e220e31a55706e33fd057c9a3fca",
+ "sha256": "b10e6231bebc4852d921f168366fdb0f495ff867bcabd592a0626ca11dba7561",
+ "sizeBytes": 344061264,
+ "usedBy": [
+ "Qwen-Image 2.1 Options → Speed: Fast · writes the details (qwen-image-21-{t2i,edit}-details)"
+ ],
+ "notes": "Pruna's ComfyUI export of the v0.2 6-steps-upsampled adapter: the prompt upsampler distilled into the LoRA, so short prompts come out detailed with no separate upsampling call. Strength 1, euler, CFG 1, ManualSigmas 1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0 (v0.2's own; not v0.1's). Trained at 1K; at most 3 references for edits.",
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "checked": "2026-11-01"
+ },
+ {
+ "key": "qwen21-next-scene",
+ "name": "Next Scene for Qwen-Image 2.1 (akhaliq)",
+ "url": "https://huggingface.co/akhaliq/Qwen-Image-2.1-Next-Scene-LoRA/resolve/main/next_scene_step2500.safetensors",
+ "page": "https://huggingface.co/akhaliq/Qwen-Image-2.1-Next-Scene-LoRA",
+ "file": "Qwen-Image-2.1-Next-Scene-step2500.safetensors",
+ "strength": 0.7,
+ "trigger": "Next Scene:",
+ "licence": "Apache-2.0",
+ "commercial": true,
+ "hostedOk": true,
+ "released": "2026-10-07",
+ "revision": "67ce88cd413fe177758af5d91e25eb3a334aa06f",
+ "sha256": "55482093e8b8a80183810037df12f804196cee58e9e85311dc4f3bacf27a60b0",
+ "sizeBytes": 335605648,
+ "usedBy": [
+ "storyboard (Popcorn) next frames on your GPU (qwen-image-21-next-scene)"
+ ],
+ "notes": "The card's licence tag is apache-2.0 (no LICENSE file); the base, Qwen-Image 2.1, is Qwen Research (non-commercial). The step-2500 checkpoint in diffusers / ComfyUI key layout, at 0.7 with a 0.5 px blur on each chained panel (the card's clean-chain recipe). Trained at 512 px on Sintel and Tears of Steel frame pairs. Qwen-Image 2.1 isn't hosted on fal or Replicate, so the cloud keeps the 2509 next-scene LoRA.",
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "checked": "2026-11-01"
}
]
}
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 8dee0b69..a50cb627 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -377,12 +377,6 @@
"error": null,
"at": "2026-10-21T16:25:18.796Z"
},
- "qwen-image-21-edit": {
- "sha256": "552cb279fe235af2d9db1445e206b4fe4acfb399d0a51b16af18af811060776b",
- "validated": true,
- "error": null,
- "at": "2026-11-01T19:32:06.780Z"
- },
"qwen-image-21-edit-details": {
"sha256": "6f9bfd2edc58067b890191b3621d34eea9fae68041fa38a48c5fe426b899f046",
"validated": true,
@@ -407,12 +401,6 @@
"error": null,
"at": "2026-11-01T19:31:53.873Z"
},
- "qwen-image-21-t2i": {
- "sha256": "4cb5c638906665a1d1d50ae1b271eb6b4f8a13330c65ad05abc07609926633ce",
- "validated": true,
- "error": null,
- "at": "2026-11-01T19:32:05.680Z"
- },
"qwen-image-21-t2i-details": {
"sha256": "b94ffdeb8d884a55e98c823f0f60080bb2f3e13f3df6709c3c889c127325591e",
"validated": true,
@@ -431,12 +419,6 @@
"error": null,
"at": "2026-11-01T19:31:46.235Z"
},
- "qwen-image-21-turbo-edit": {
- "sha256": "2e5032ac5a831fa251a10bed9a9ed3c377ce211aa9dbb3809616555f925c1a44",
- "validated": true,
- "error": null,
- "at": "2026-11-01T19:32:09.903Z"
- },
"qwen-image-2512-t2i": {
"sha256": "c18da4a3488120bdcee722e4ae7d187385544ec4805753e7dae6946ddb6f6ba5",
"validated": true,
diff --git a/src/app/(studio)/image/small-gpu/page.tsx b/src/app/(studio)/image/small-gpu/page.tsx
new file mode 100644
index 00000000..50da336f
--- /dev/null
+++ b/src/app/(studio)/image/small-gpu/page.tsx
@@ -0,0 +1,9 @@
+import { redirect } from "next/navigation";
+
+/**
+ * The GPU pre-flight board's "Image on a 16 GB GPU" row (/connect) opens the Image studio: on a card under 24 GB, Qwen-Image
+ * 2.1's Options → GPU picks the small encoder by itself (src/lib/qwen21-speed.ts).
+ */
+export default function Page() {
+ redirect("/image");
+}
diff --git a/src/app/(studio)/storyboard/page.tsx b/src/app/(studio)/storyboard/page.tsx
index 846ff318..a088c5e5 100644
--- a/src/app/(studio)/storyboard/page.tsx
+++ b/src/app/(studio)/storyboard/page.tsx
@@ -1,7 +1,7 @@
import type { Metadata } from "next";
import { StoryboardView } from "@/components/storyboard-view";
import { getModel } from "@/lib/catalog";
-import { STORYBOARD_LOOK_MODEL, STORYBOARD_MODELS, STORYBOARD_PARTNERS } from "@/lib/catalog/storyboard";
+import { STORYBOARD_LOOK_MODEL, STORYBOARD_MODELS, STORYBOARD_NEXT_SCENE, STORYBOARD_PARTNERS } from "@/lib/catalog/storyboard";
export const metadata: Metadata = { title: "Storyboard" };
@@ -9,7 +9,7 @@ export const metadata: Metadata = { title: "Storyboard" };
const MODEL_NAMES = Object.fromEntries(
[...Object.values(STORYBOARD_MODELS), ...Object.values(STORYBOARD_PARTNERS)]
.flatMap((m) => [m.first, m.firstWithRefs, m.next])
- .concat(STORYBOARD_LOOK_MODEL)
+ .concat(STORYBOARD_LOOK_MODEL, ...Object.values(STORYBOARD_NEXT_SCENE))
.map((id) => [id, getModel(id)?.name ?? id]),
);
diff --git a/src/components/canvas/nodes.tsx b/src/components/canvas/nodes.tsx
index 5a8131d7..69389312 100644
--- a/src/components/canvas/nodes.tsx
+++ b/src/components/canvas/nodes.tsx
@@ -626,7 +626,7 @@ function ModelOptions({ id, model, data }: { id: string; model: ModelDef; data:
</button>,
);
if (o.sliders?.length) items.push(<div key="sliders" className={NO_DRAG}><SlidersChip model={model} values={extra} onChange={setExtra} /></div>);
- if (o.controls?.length) items.push(<div key="controls" className={NO_DRAG}><ControlsChip controls={o.controls} values={extra} onChange={setExtra} /></div>);
+ if (o.controls?.length) items.push(<div key="controls" className={NO_DRAG}><ControlsChip controls={o.controls} values={extra} onChange={setExtra} op={data.op} /></div>);
if (!items.length) return null;
return <div className={cn("flex flex-wrap gap-1 [&_button]:h-7 [&_button]:text-[12px]", NO_DRAG)}>{items}</div>;
}
diff --git a/src/components/storyboard-view.tsx b/src/components/storyboard-view.tsx
index 056a543e..3a0c080a 100644
--- a/src/components/storyboard-view.tsx
+++ b/src/components/storyboard-view.tsx
@@ -19,7 +19,7 @@ import { FailedTile, MediaThumb, PendingTile, tileRatio } from "@/components/stu
import { fileToSlot, MediaSlot, type SlotValue } from "@/components/studio/media-slot";
import { Viewer } from "@/components/studio/viewer";
import { useCreateGeneration, useEngine, useGenerationActions, useGenerations, useHydrated, useIsVisitor, useStatus } from "@/lib/api";
-import { MAX_FRAMES, STORYBOARD_ASPECTS, STORYBOARD_PARTNER_IDS, type StoryboardPartner } from "@/lib/catalog/storyboard";
+import { MAX_FRAMES, STORYBOARD_ASPECTS, STORYBOARD_PARTNER_IDS, type StoryboardNextScene, type StoryboardPartner } from "@/lib/catalog/storyboard";
import { lookCard } from "@/lib/catalog/soul-cards";
import type { Engine, Generation } from "@/lib/catalog/types";
import { timeAgo } from "@/lib/format";
@@ -117,6 +117,31 @@ function PartnerPill({ value, onChange, names }: { value?: StoryboardPartner; on
);
}
+/** What a GPU board's next frames are made on: Qwen-Image 2.1 (the default), or the classic recipe boards used before. */
+function NextScenePill({ value, onChange }: { value?: StoryboardNextScene; onChange: (v?: StoryboardNextScene) => void }) {
+ const options: { v?: StoryboardNextScene; label: string; title: string }[] = [
+ { label: "Qwen-Image 2.1", title: "Each next frame continues the last one on Qwen-Image 2.1" },
+ { v: "classic", label: "Classic", title: "Each next frame on Qwen-Image-Edit 2509, the recipe boards used before" },
+ ];
+ return (
+ <div role="radiogroup" aria-label="Next frames made on" className="flex flex-wrap gap-1 rounded-full bg-muted p-0.5">
+ {options.map((o) => (
+ <button
+ key={o.v ?? "qwen-21"}
+ type="button"
+ role="radio"
+ aria-checked={value === o.v}
+ title={o.title}
+ onClick={() => onChange(o.v)}
+ className={cn("h-7 rounded-full px-2.5 text-[12px] font-medium whitespace-nowrap text-muted-foreground transition", value === o.v && "bg-background text-foreground shadow-soft")}
+ >
+ {o.label}
+ </button>
+ ))}
+ </div>
+ );
+}
+
/** The film made from a board: the joined video big, its shots small underneath. */
function FilmStrip({ items, ratio, onOpen }: { items: Generation[]; ratio: number; onOpen: (g: Generation) => void }) {
const create = useCreateGeneration();
@@ -290,6 +315,8 @@ export function StoryboardView({ modelNames = {} }: { /** Display names of the s
const [lookStrength, setLookStrength] = useState(1);
// Cloud only: a partner model for every frame instead of Fuobe's open recipe.
const [partner, setPartner] = useState<StoryboardPartner | undefined>();
+ // Your GPU only: the next frames' model (Qwen-Image 2.1 unless the classic recipe is picked).
+ const [nextScene, setNextScene] = useState<StoryboardNextScene | undefined>();
const [open, setOpen] = useState<Generation | null>(null);
const feed = useGenerations({ features: ["storyboard", "storyboard-film"], limit: 240 });
const titles = useBoardTitles();
@@ -317,11 +344,13 @@ export function StoryboardView({ modelNames = {} }: { /** Display names of the s
const pos = open ? flat.findIndex((g) => g.id === open.id) : -1;
const boardPartner = engine === "cloud" ? partner : undefined;
+ const boardNextScene = engine === "open" ? nextScene : undefined;
const lookName = look ? lookCard(look)?.name : undefined;
const filled = scenes.filter((s) => s.trim());
const boardBody = {
engine,
...(boardPartner && { partner: boardPartner }),
+ ...(boardNextScene && { nextScene: boardNextScene }),
...(mode === "auto" ? { story, frames: count } : { scenes: filled }),
references: refs.filter((r) => r.ref && !r.uploading).map((r) => r.ref),
style: style || undefined,
@@ -487,6 +516,7 @@ export function StoryboardView({ modelNames = {} }: { /** Display names of the s
<LookChip value={look} strength={lookStrength} onChange={(id) => setLook(id)} onStrength={setLookStrength} none="No look" />
<RatioPill value={aspect} onChange={setAspect} />
{engine === "cloud" && <PartnerPill value={partner} onChange={setPartner} names={modelNames} />}
+ {engine === "open" && <NextScenePill value={nextScene} onChange={setNextScene} />}
<div className="ml-auto flex shrink-0 items-center gap-2">
<span className="text-right text-[12px] leading-tight tabular-nums text-muted-foreground" aria-live="polite">
{visitor ? (
diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsx
index 09a6939a..b596b9ad 100644
--- a/src/components/studio/composer.tsx
+++ b/src/components/studio/composer.tsx
@@ -1062,7 +1062,7 @@ export function Composer({ docked }: { docked: boolean }) {
onStrength={(v) => setDraft({ presetStrength: v })}
/>
)}
- {opts.controls && <ControlsChip controls={opts.controls} values={p.extra ?? {}} onChange={setExtra} title={config.controlsTitle} />}
+ {opts.controls && <ControlsChip controls={opts.controls} values={p.extra ?? {}} onChange={setExtra} title={config.controlsTitle} op={effectiveOp} />}
</>
);
const hasSecondary =
diff --git a/src/components/studio/model-controls.tsx b/src/components/studio/model-controls.tsx
index d61da681..eccc0e9b 100644
--- a/src/components/studio/model-controls.tsx
+++ b/src/components/studio/model-controls.tsx
@@ -4,6 +4,7 @@ import { Check, Clapperboard, Settings2 } from "lucide-react";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
import type { ModelOptions } from "@/lib/catalog/types";
+import { controlsFor } from "@/lib/composer";
import { Chip } from "./chip";
const label = (v: string | number) =>
@@ -19,18 +20,23 @@ const label = (v: string | number) =>
* its Quality (MiniMax H3's Fast / Best, MOSS-Image's tiers) shows them under "Quality".
*/
export function ControlsChip({
- controls,
+ controls: all,
values,
onChange,
title: named,
+ op,
}: {
controls: NonNullable<ModelOptions["controls"]>;
values: Record<string, unknown>;
onChange: (param: string, v?: string | number) => void;
/** The chip's name: "Director" (Cinema's genre, lens, light…), "Options" for a tool's model settings (Upscale). */
title?: string;
+ /** The run's operation: values offered on other operations only (Qwen-Image 2.1's Turbo speed: edits) are left out. */
+ op?: string;
}) {
+ const controls = controlsFor(all, op);
const title = named ?? (controls.length && controls.every((c) => c.param === "quality") ? "Quality" : "Director");
+ if (!controls.length) return null;
const set = controls.filter((c) => values[c.param] !== undefined);
return (
<Popover>
@@ -47,7 +53,7 @@ export function ControlsChip({
// A control alone on its row (MOSS-Image's one Quality) takes both columns, so its value reads in full.
<label key={c.param} className="space-y-1 odd:last:col-span-2">
<span className="text-[12px] text-muted-foreground">{c.label}</span>
- <Select value={values[c.param] === undefined ? "__auto" : String(values[c.param])} onValueChange={(v) => onChange(c.param, v === "__auto" ? undefined : typeof c.values[0] === "number" ? Number(v) : v)}>
+ <Select value={values[c.param] === undefined || !c.values.map(String).includes(String(values[c.param])) ? "__auto" : String(values[c.param])} onValueChange={(v) => onChange(c.param, v === "__auto" ? undefined : typeof c.values[0] === "number" ? Number(v) : v)}>
<SelectTrigger size="sm" className="w-full" aria-label={c.label}>
<SelectValue />
</SelectTrigger>
diff --git a/src/lib/catalog/lora-library.generated.ts b/src/lib/catalog/lora-library.generated.ts
index 7b14247e..d81716ca 100644
--- a/src/lib/catalog/lora-library.generated.ts
+++ b/src/lib/catalog/lora-library.generated.ts
@@ -3239,6 +3239,95 @@ export const LORA_LIBRARY: LoraEntry[] = [
},
"released": "2026-09-27",
"notes": "The Restore card's stage 2: the restored clip lanczos x2 (2880x2176 from 1440x1088) through the same tiled-fusion workflow with this LoRA at 1.0, tile 1024x576; restore first, refine second (refining first sharpens the damage and desaturates the colour). Trained on LTX-2.5; no host serves LTX-2.5 with LoRAs, so it runs on your GPU only. Gated on Hugging Face (\"Agree and Access\" on the model page, which also consents to Lightricks' offers): the file downloads only with the token of an account that accepted, so Fuobe asks for an HF token (Settings → LoRAs) and uses it only for gated downloads; a cloud run gets Fuobe's mirror of the file on fal storage, never the token."
+ },
+ {
+ "key": "qwen21-dmd2-2step",
+ "name": "DMD2 2-step for Qwen-Image 2.1, v1.5 (linoyts)",
+ "file": "Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors",
+ "url": "https://huggingface.co/linoyts/Qwen-Image-2.1-DMD2-2steps/resolve/5bae28369ecea3232405c17a53c04d35d15796b8/pytorch_lora_weights_v1_5.safetensors",
+ "page": "https://huggingface.co/linoyts/Qwen-Image-2.1-DMD2-2steps",
+ "strength": 1.0,
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "group": "adapter",
+ "version": "5bae28369ecea3232405c17a53c04d35d15796b8",
+ "sha256": "0cfee5d5fbb9c5f6262c82db4f59dd4e872dfaac9fb7c82c9f7191e0d31406c4",
+ "sizeBytes": 67144520,
+ "licence": {
+ "commercial": false,
+ "hostedOk": false,
+ "snapshotDate": "2026-11-01",
+ "name": "Qwen Research License (a derivative of Qwen-Image 2.1: card and NOTICE)"
+ },
+ "released": "2026-10-30",
+ "notes": "2 steps at CFG 1 on fixed sigmas [1.0, 0.5] with no shift; rank 32, attention only. v1.5 (2026-10-30) improves prompt adherence and edit fidelity over v1 (the file Live edit loads), same settings. Pinned 2026-11-01 from the Hugging Face API (revision, LFS SHA256 and size)."
+ },
+ {
+ "key": "qwen21-lightning-4step",
+ "name": "Lightning 4-step for Qwen-Image 2.1 (LightX2V)",
+ "file": "Qwen-Image-2.1-Lightning-4steps.safetensors",
+ "url": "https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/6b0a1176327c01522a44276c5da67331a025b6fc/pytorch_lora_weights.safetensors",
+ "page": "https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning",
+ "strength": 1.0,
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "group": "adapter",
+ "version": "6b0a1176327c01522a44276c5da67331a025b6fc",
+ "sha256": "53c69320d4163da51032f90275074028cb098556039c72b45f8dce9f0f9e34a3",
+ "sizeBytes": 67144280,
+ "licence": {
+ "commercial": false,
+ "hostedOk": false,
+ "snapshotDate": "2026-11-01",
+ "name": "Not stated in the repository (no LICENSE file, no licence tag; comfyui-wiki says Apache-2.0); it runs on Qwen-Image 2.1 (Qwen Research License)"
+ },
+ "released": "2026-10-13",
+ "notes": "DMD distillation by LightX2V for text to image and multi-reference edits: 4 steps at CFG 1 on [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9), which the graph's ManualSigmas holds shifted for the canvas. The repository has no licence of its own (checked 2026-11-01): recorded as not stated, non-commercial through its base."
+ },
+ {
+ "key": "qwen21-pq-image-6step-upsampled",
+ "name": "P-Q-Image 6-step upsampled for Qwen-Image 2.1, v0.2 (PrunaAI)",
+ "file": "p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors",
+ "url": "https://huggingface.co/PrunaAI/P-Q-Image-2.1-Comfy/resolve/aa7dcecb1767e220e31a55706e33fd057c9a3fca/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors",
+ "page": "https://huggingface.co/PrunaAI/P-Q-Image-2.1",
+ "strength": 1.0,
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "group": "adapter",
+ "version": "aa7dcecb1767e220e31a55706e33fd057c9a3fca",
+ "sha256": "b10e6231bebc4852d921f168366fdb0f495ff867bcabd592a0626ca11dba7561",
+ "sizeBytes": 344061264,
+ "licence": {
+ "commercial": false,
+ "hostedOk": false,
+ "snapshotDate": "2026-11-01",
+ "name": "Qwen Research License (a derivative of Qwen-Image 2.1: LICENSE and NOTICE)"
+ },
+ "released": "2026-10-27",
+ "notes": "Pruna's ComfyUI export of the v0.2 6-steps-upsampled adapter: the prompt upsampler distilled into the LoRA, so short prompts come out detailed with no separate upsampling call. Strength 1, euler, CFG 1, ManualSigmas 1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0 (v0.2's own; not v0.1's). Trained at 1K; at most 3 references for edits."
+ },
+ {
+ "key": "qwen21-next-scene",
+ "name": "Next Scene for Qwen-Image 2.1 (akhaliq)",
+ "file": "Qwen-Image-2.1-Next-Scene-step2500.safetensors",
+ "url": "https://huggingface.co/akhaliq/Qwen-Image-2.1-Next-Scene-LoRA/resolve/67ce88cd413fe177758af5d91e25eb3a334aa06f/next_scene_step2500.safetensors",
+ "page": "https://huggingface.co/akhaliq/Qwen-Image-2.1-Next-Scene-LoRA",
+ "strength": 0.7,
+ "base": "qwen-image-2.1",
+ "download": "direct",
+ "group": "adapter",
+ "trigger": "Next Scene:",
+ "version": "67ce88cd413fe177758af5d91e25eb3a334aa06f",
+ "sha256": "55482093e8b8a80183810037df12f804196cee58e9e85311dc4f3bacf27a60b0",
+ "sizeBytes": 335605648,
+ "licence": {
+ "commercial": true,
+ "hostedOk": true,
+ "snapshotDate": "2026-11-01",
+ "name": "Apache-2.0"
+ },
+ "released": "2026-10-07",
+ "notes": "The card's licence tag is apache-2.0 (no LICENSE file); the base, Qwen-Image 2.1, is Qwen Research (non-commercial). The step-2500 checkpoint in diffusers / ComfyUI key layout, at 0.7 with a 0.5 px blur on each chained panel (the card's clean-chain recipe). Trained at 512 px on Sintel and Tears of Steel frame pairs. Qwen-Image 2.1 isn't hosted on fal or Replicate, so the cloud keeps the 2509 next-scene LoRA."
}
];
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index b8bbf2d8..f2be9ca9 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -2,6 +2,7 @@ import { CLOUD_MODELS, ORIGINAL_CLOUD } from "./cloud-models.generated";
import { DEFAULT_FPS_TARGET, FPS_TARGETS, SLOW_MOTION } from "@/lib/av/fps";
import { ASR_LANGUAGES, WHISPER_LANGUAGES } from "../speech-languages";
import { PROMPT_HELPER_PARAM } from "@/lib/comfy";
+import { QWEN21_DECODER, QWEN21_GPU, QWEN21_SPEED } from "@/lib/qwen21-speed";
import { loraEntry, loraRef } from "./loras";
import { ANGLES_LORA, MOSAIC_SCALE, MOSAIC_TARGET, SPEAK_GRAPH, SPEAK_LORA, SPEAK_PROMPT } from "./open-tools";
import { CINEMA_CROP, SOUL_ASPECTS, SOUL_TIERS } from "./soul";
@@ -55,6 +56,8 @@ const RESTORE_LORA = (() => {
})();
/** Fuobe Try-On's LoRA (research adapterLoras): xocialize's try-on LoRA for FLUX.2 [klein] 4B, Apache-2.0. */
const TRYON_LORA = loraEntry("tryon-klein-4b");
+/** akhaliq's Next-Scene LoRA for Qwen-Image 2.1: the 2.1 next-scene graph loads it, and its switch in Models & licences holds the model. */
+const NEXT_SCENE_21_LORA = loraEntry("qwen21-next-scene");
/** The try-on LoRA card's own instruction, for a run with no words. */
export const TRYON_PROMPT = "a full-body photo of a person. Replace the outfit with the top and bottom as shown in the reference images. The final image is a full body shot.";
@@ -133,7 +136,7 @@ const open: ModelDef[] = [
vendor: "Alibaba Qwen",
family: "qwen-image",
kind: "image",
- tagline: "Native 2K images with clean lettering; edits with up to 4 references, inpaint and expand · 20 GB GPU · non-commercial weights",
+ tagline: "Native 2K images with clean lettering; edits with up to 4 references, inpaint and expand; Draft to Full speed · 16–20 GB GPU · non-commercial weights",
badges: ["new", "top"],
// Aspect ratio and size are for text to image: an edit or inpaint follows image 1, an expand the canvas its pads grow.
// The inpaint and expand graphs read the picture alone.
@@ -143,7 +146,8 @@ const open: ModelDef[] = [
{ ...comfy("inpaint", "qwen-image-21-inpaint", "crops around the mask, 25 steps, pasted back"), unsized: true, maxImages: 1 },
{ ...comfy("outpaint", "qwen-image-21-outpaint", "outpaint-v2 LoRA; Qwen3-VL describes the scene"), unsized: true, maxImages: 1 },
],
- options: { aspectRatios: IMG_AR, resolutions: ["1K", "1.5K", "2K"], maxImages: 4, seed: true },
+ // Options → Speed (2-8 steps), GPU (the small encoder on a 16 GB card) and Decoder (src/lib/qwen21-speed.ts).
+ options: { aspectRatios: IMG_AR, resolutions: ["1K", "1.5K", "2K"], maxImages: 4, seed: true, controls: [QWEN21_SPEED, QWEN21_GPU, QWEN21_DECODER] },
defaults: { aspectRatio: "1:1", resolution: "1K" },
}),
o({
@@ -155,7 +159,24 @@ const open: ModelDef[] = [
tagline: "8-step edits with up to 4 references, close to the full model except on big camera turns · 20 GB GPU · non-commercial weights",
badges: ["new", "top", "fast"],
routes: [comfy("edit", "qwen-image-21-turbo-edit", "8 steps, up to 4 references")],
- options: { maxImages: 4, seed: true },
+ options: { maxImages: 4, seed: true, controls: [QWEN21_DECODER] },
+ }),
+ // Qwen-Image 2.1 on a 16 GB card (nm10-qwen21-fast): Zen Image Edit's 0.8B encoder, which Qwen-Image 2.1's GPU option picks
+ // (Auto under 24 GB). Listed for its licence, its node pack and its switch, and for the pre-flight board's row; never in a picker.
+ o({
+ id: "oss-qwen-image-21-small",
+ name: "Qwen-Image 2.1 · Small GPU",
+ vendor: "Alibaba Qwen",
+ family: "qwen-image",
+ kind: "image",
+ tagline: "Qwen-Image 2.1 on a 16 GB GPU with a compact text reader: English prompts only, and numbers on signs can come out wrong · non-commercial weights",
+ routes: [
+ { ...comfy("t2i", "qwen-image-21-t2i-small", "Zen Image Edit's 0.8B encoder, 30 steps") },
+ { ...comfy("edit", "qwen-image-21-edit-small", "Zen Image Edit's 0.8B encoder, up to 4 references"), unsized: true },
+ ],
+ options: { aspectRatios: IMG_AR, resolutions: ["1K", "1.5K", "2K"], maxImages: 4, seed: true, controls: [QWEN21_DECODER] },
+ defaults: { aspectRatio: "1:1", resolution: "1K" },
+ hidden: true,
}),
// Live edit's model (the Live edit page runs it, as you type): listed for its licence, its model page and its switch in
// Models & licences, never in a picker.
@@ -1109,6 +1130,19 @@ const open: ModelDef[] = [
options: { seed: true, negativePrompt: true, maxImages: 2 },
hidden: true,
}),
+ // Storyboard's next frame on your GPU since nm10-qwen21-fast: Qwen-Image 2.1 with akhaliq's 2.1 Next-Scene LoRA (the graph loads
+ // it; options.loras holds the model to its switch). The 2509 graph below stays the classic choice and the cloud's recipe.
+ o({
+ id: "oss-qwen-image-21-next-scene",
+ name: "Qwen-Image 2.1 Next Scene",
+ vendor: "Alibaba Qwen",
+ family: "qwen-image",
+ kind: "image",
+ tagline: "The next storyboard panel from the previous one, on Qwen-Image 2.1 with its Next-Scene LoRA · 20 GB GPU · non-commercial weights",
+ routes: [{ ...comfy("edit", "qwen-image-21-next-scene", "2.1 Next-Scene LoRA at 0.7, 28 steps"), unsized: true }],
+ options: { seed: true, maxImages: 2, controls: [QWEN21_DECODER], ...(NEXT_SCENE_21_LORA && { loras: [loraRef(NEXT_SCENE_21_LORA)] }) },
+ hidden: true,
+ }),
o({
id: "oss-qwen-next-scene",
name: "Qwen-Image-Edit Next Scene",
diff --git a/src/lib/catalog/storyboard.ts b/src/lib/catalog/storyboard.ts
index 6b41ba7d..3871488e 100644
--- a/src/lib/catalog/storyboard.ts
+++ b/src/lib/catalog/storyboard.ts
@@ -9,9 +9,10 @@
* look's grade and overlay after it is made (each next frame is made from the previous one as it
* came out, so the grade is applied once).
*
- * The board is Fuobe's open recipe on both engines: Qwen-Image-Edit 2509 + the next-scene LoRA makes each next frame
- * on your GPU (a graph that loads it) and on fal's hosted Qwen-Image-Edit 2509 (the LoRA sent as a URL). Nano Banana
- * Pro stays a separate choice in the cloud (`partner`), every frame on it as boards ran before.
+ * The board is Fuobe's open recipe on both engines: on your GPU each next frame is Qwen-Image 2.1 with akhaliq's 2.1
+ * Next-Scene LoRA (nm10-qwen21-fast), or the classic Qwen-Image-Edit 2509 + next-scene LoRA when the board asks for it
+ * (`nextScene`); in the cloud fal's hosted Qwen-Image-Edit 2509 with the 2509 LoRA (sent as a URL), as Qwen-Image 2.1 isn't
+ * hosted. Nano Banana Pro stays a separate choice in the cloud (`partner`), every frame on it as boards ran before.
*/
import { loraEntry, loraRef } from "./loras";
import type { ChainSlot, Engine, GenerationRequest, LoraRef } from "./types";
@@ -34,11 +35,19 @@ const NEXT_SCENE = loraEntry("next-scene-qwen-edit-2509");
export const STORYBOARD_MODELS: Record<Engine, StoryboardModels> = {
// Hosted open weights: Z-Image Turbo, Qwen-Image-Edit 2511 with references, then Qwen-Image-Edit 2509 + next-scene.
cloud: { first: "z-image-turbo-cloud", firstWithRefs: "qwen-image-edit-2511-cloud", next: "qwen-image-edit-2509-cloud", chainFrom: "first", ...(NEXT_SCENE && { nextLoras: [loraRef(NEXT_SCENE)] }) },
- // Frame 1 on Qwen-Image 2.1 (text to image, or an edit of up to 4 references); then Qwen-Image-Edit 2509 + the
- // next-scene LoRA takes the previous panel as image 1 and the character as image 2.
- open: { first: "oss-qwen-image-21", firstWithRefs: "oss-qwen-image-21", next: "oss-qwen-next-scene", chainFrom: "first" },
+ // Frame 1 on Qwen-Image 2.1 (text to image, or an edit of up to 4 references); then Qwen-Image 2.1 + the 2.1 Next-Scene
+ // LoRA takes the previous panel as image 1 and the character as image 2.
+ open: { first: "oss-qwen-image-21", firstWithRefs: "oss-qwen-image-21", next: "oss-qwen-image-21-next-scene", chainFrom: "first" },
};
+/**
+ * The model each next frame runs on your GPU: Qwen-Image 2.1's Next-Scene LoRA (the default), or the classic
+ * Qwen-Image-Edit 2509 + next-scene LoRA (the graph boards used before, and the cloud's recipe).
+ */
+export const STORYBOARD_NEXT_SCENE = { "qwen-21": "oss-qwen-image-21-next-scene", classic: "oss-qwen-next-scene" } as const;
+export type StoryboardNextScene = keyof typeof STORYBOARD_NEXT_SCENE;
+export const STORYBOARD_NEXT_SCENE_IDS = Object.keys(STORYBOARD_NEXT_SCENE) as [StoryboardNextScene, ...StoryboardNextScene[]];
+
/** Partner models a cloud board can run on instead (a separate choice): every frame on it, each from the last one. */
export const STORYBOARD_PARTNERS = {
"nano-banana-pro": { first: "nano-banana-pro", firstWithRefs: "nano-banana-pro", next: "nano-banana-pro", chainFrom: "last" },
@@ -46,9 +55,13 @@ export const STORYBOARD_PARTNERS = {
export type StoryboardPartner = keyof typeof STORYBOARD_PARTNERS;
export const STORYBOARD_PARTNER_IDS = Object.keys(STORYBOARD_PARTNERS) as [StoryboardPartner, ...StoryboardPartner[]];
-/** The models a board runs on: the partner when one is picked in the cloud, else Fuobe's recipe for the engine. */
-export function storyboardModels(engine: Engine, partner?: StoryboardPartner): StoryboardModels {
- return engine === "cloud" && partner ? STORYBOARD_PARTNERS[partner] : STORYBOARD_MODELS[engine];
+/**
+ * The models a board runs on: the partner when one is picked in the cloud, else Fuobe's recipe for the engine, whose next
+ * frames on your GPU take the next-scene model asked for.
+ */
+export function storyboardModels(engine: Engine, partner?: StoryboardPartner, nextScene?: StoryboardNextScene): StoryboardModels {
+ if (engine === "cloud") return partner ? STORYBOARD_PARTNERS[partner] : STORYBOARD_MODELS.cloud;
+ return nextScene ? { ...STORYBOARD_MODELS.open, next: STORYBOARD_NEXT_SCENE[nextScene] } : STORYBOARD_MODELS.open;
}
/** The model a board with a Soul look makes its first frame on (no references): the look's LoRAs, words and grade. */
@@ -123,6 +136,8 @@ export interface StoryboardPlanInput {
engine: Engine;
/** A partner model for the whole board (cloud only). */
partner?: StoryboardPartner;
+ /** The next frames' model on your GPU (open only): Qwen-Image 2.1's Next-Scene LoRA unless "classic". */
+ nextScene?: StoryboardNextScene;
scenes: string[];
references?: string[];
style?: string;
@@ -139,7 +154,7 @@ export type FrameRequest = GenerationRequest & { batchTitle?: string };
* picture as it came out (`raw`: before a look's grade, which every frame gets on its own).
*/
export function planStoryboard(input: StoryboardPlanInput): FrameRequest[] {
- const m = storyboardModels(input.engine, input.partner);
+ const m = storyboardModels(input.engine, input.partner, input.nextScene);
const refs = (input.references ?? []).slice(0, 4);
const look = input.look;
const cropped = !!look && input.aspectRatio === LOOK_CROPPED;
diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.ts
index 3b14ec0f..9d1a045a 100644
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@ -619,6 +619,8 @@ export interface ModelOptions {
default?: string | number;
labels?: Record<string, string>;
sets?: Record<string, Record<string, string | number>>;
+ /** The operations a value is offered on, when not all (Qwen-Image 2.1's Turbo speed: edits). The chip shows the rest only. */
+ ops?: Record<string, string[]>;
}[];
/** Images it needs before it can run (try-on: the person and the garment). */
minImages?: number;
diff --git a/src/lib/comfy-variants.ts b/src/lib/comfy-variants.ts
index 98865cae..c10b83b5 100644
--- a/src/lib/comfy-variants.ts
+++ b/src/lib/comfy-variants.ts
@@ -1,4 +1,5 @@
import { exrWorkflow } from "@/lib/av/video-finish";
+import { qwen21Graph } from "@/lib/qwen21-speed";
/**
* Which workflow a ComfyUI route runs for a request: the route's endpoint, or a variant picked by an option.
@@ -47,6 +48,8 @@ export interface VariantRequest {
extra: Record<string, unknown>;
/** Is this workflow in the library. */
has: (id: string) => boolean;
+ /** The GPU's graphics memory in GB when known (Qwen-Image 2.1 runs its small encoder under 24 GB unless told otherwise). */
+ vramGb?: number;
}
/** The workflow id a route's endpoint runs as, for this request. */
@@ -65,6 +68,8 @@ export function resolveWorkflowId(endpointTemplate: string, r: VariantRequest):
if (posed && typeof r.extra.cameraMotion === "string" && r.extra.cameraMotion) endpoint = posed;
const shot = PRODUCT_SHOT_GRAPH[endpoint];
if (shot && r.extra.productShot === true && r.images === 1 && r.has(shot)) endpoint = shot;
+ // Qwen-Image 2.1: Options → Speed's graph, or the small encoder's on a small GPU (src/lib/qwen21-speed.ts).
+ endpoint = qwen21Graph(endpoint, r.extra, r.vramGb, r.has);
// MiniMax H3: an orbit runs the Orbit LoRA graph (whatever the quality), else Best runs the 20-step graph.
const orbit = H3_ORBIT_GRAPH[endpoint];
const best = H3_BEST_GRAPH[endpoint];
diff --git a/src/lib/composer.ts b/src/lib/composer.ts
index 2f17568a..77036f04 100644
--- a/src/lib/composer.ts
+++ b/src/lib/composer.ts
@@ -1257,3 +1257,16 @@ export function costLabel(s: { demo: boolean; cost: number | null; compact?: boo
/** Prompts with an @mention: spellcheck would underline every handle. */
export const hasMention = (text: string) => /(^|\s)@[\p{L}\p{N}_-]+/u.test(text);
+
+/**
+ * The controls as an operation offers them: each control's values for `op` (ModelOptions.controls[].ops), and only the
+ * controls left with a choice to make.
+ */
+export function controlsFor(controls: NonNullable<ModelDef["options"]["controls"]>, op?: string): NonNullable<ModelDef["options"]["controls"]> {
+ if (!op) return controls;
+ return controls.flatMap((c) => {
+ if (!c.ops) return [c];
+ const values = c.values.filter((v) => c.ops?.[String(v)]?.includes(op) ?? true);
+ return values.length > 1 ? [{ ...c, values }] : [];
+ });
+}
diff --git a/src/lib/qwen21-speed.ts b/src/lib/qwen21-speed.ts
new file mode 100644
index 00000000..026d8a7e
--- /dev/null
+++ b/src/lib/qwen21-speed.ts
@@ -0,0 +1,150 @@
+import type { ModelOptions } from "@/lib/catalog/types";
+
+/**
+ * Qwen-Image 2.1 on your GPU in 2–8 steps and on 16 GB cards (research #10 §6.7, package nm10-qwen21-fast). Pure: the
+ * provider (src/server/providers/comfyui.ts) and the GPU pre-flight's gate both resolve a run's graph through
+ * resolveWorkflowId (src/lib/comfy-variants.ts), which reads these tables.
+ *
+ * - Options → Speed: Draft (2 steps, linoyts' DMD2 LoRA v1.5), Fast (4 steps, LightX2V's Lightning LoRA), "Fast · writes
+ * the details" (6 steps, Pruna's P-Q-Image v0.2 upsampled LoRA), Turbo (the official 8-step Turbo checkpoint, edits
+ * only) and Full (the owner's 25-step graphs, the default). Each tier is its own graph: the base graph with one LoRA and
+ * a ManualSigmas schedule (scripts/comfy/library.spec.mjs, qwen21Tier).
+ * - Options → GPU: Zen Image Edit's 0.8B encoder in place of the 17.5 GB Qwen3-VL 8B for text to image and edits on a
+ * card under 24 GB (Auto), or always (Small).
+ * - Options → Decoder: the Texture-Fix VAE ("Clean") in place of the stock decoder; off until tested.
+ *
+ * Qwen-Image 2.1 isn't hosted on fal or Replicate, so all of this is the open engine's.
+ */
+
+export type Qwen21Speed = "full" | "turbo" | "fast" | "details" | "draft";
+
+/** Each base graph's speed tiers (the base graph is Full). */
+export const QWEN21_SPEED_GRAPH: Record<string, Partial<Record<Qwen21Speed, string>>> = {
+ "qwen-image-21-t2i": { draft: "qwen-image-21-t2i-draft", fast: "qwen-image-21-t2i-fast", details: "qwen-image-21-t2i-details" },
+ "qwen-image-21-edit": { draft: "qwen-image-21-edit-draft", fast: "qwen-image-21-edit-fast", details: "qwen-image-21-edit-details", turbo: "qwen-image-21-turbo-edit" },
+ "qwen-image-21-inpaint": { draft: "qwen-image-21-inpaint-draft", fast: "qwen-image-21-inpaint-fast" },
+ "qwen-image-21-outpaint": { draft: "qwen-image-21-outpaint-draft", fast: "qwen-image-21-outpaint-fast" },
+};
+
+/** The graphs Small GPU runs in place of the full encoder's (text to image and edits at Full speed). */
+export const QWEN21_SMALL_GPU_GRAPH: Record<string, string> = {
+ "qwen-image-21-t2i": "qwen-image-21-t2i-small",
+ "qwen-image-21-edit": "qwen-image-21-edit-small",
+};
+
+/** Below this much graphics memory, Auto runs the small encoder (Qwen3-VL 8B int8 9.4 GB + the int8 model 7.3 GB need ~20 GB). */
+export const SMALL_GPU_BELOW_GB = 24;
+
+export const SPEED_PARAM = "speed";
+export const GPU_PARAM = "gpu";
+export const DECODER_PARAM = "decoder";
+
+/** The Texture-Fix VAE (madebyollin), an optional file every Qwen-Image 2.1 graph lists. */
+export const CLEAN_VAE = "texture_fix_vae_for_qwen_image_2.1_bf16.safetensors";
+
+/** The operations each speed is offered on (Turbo is the owner's 8-step edit; "writes the details" text to image and edits). */
+export const SPEED_OPS: Record<Qwen21Speed, string[]> = {
+ full: ["t2i", "edit", "inpaint", "outpaint"],
+ turbo: ["edit"],
+ fast: ["t2i", "edit", "inpaint", "outpaint"],
+ details: ["t2i", "edit"],
+ draft: ["t2i", "edit", "inpaint", "outpaint"],
+};
+
+type Control = NonNullable<ModelOptions["controls"]>[number];
+
+/** Options → Speed (the default stays Full: the owner's graphs). */
+export const QWEN21_SPEED: Control = {
+ param: SPEED_PARAM,
+ label: "Speed",
+ values: ["draft", "fast", "details", "turbo", "full"],
+ default: "full",
+ labels: {
+ draft: "Draft · 2 steps",
+ fast: "Fast · 4 steps",
+ details: "Fast · writes the details (6 steps)",
+ turbo: "Turbo · 8 steps (edits)",
+ full: "Full · 25 steps",
+ },
+ ops: SPEED_OPS,
+};
+
+/** Options → GPU: Auto picks Small under 24 GB of graphics memory (text to image and edits). */
+export const QWEN21_GPU: Control = {
+ param: GPU_PARAM,
+ label: "GPU",
+ values: ["large", "small"],
+ labels: { large: "24 GB or more", small: "Small GPU (16 GB) · English prompts only" },
+ ops: { large: ["t2i", "edit", "inpaint", "outpaint"], small: ["t2i", "edit"] },
+};
+
+/** Options → Decoder: Clean is the Texture-Fix VAE (cleaner fine texture, no checkerboard), off by default. */
+export const QWEN21_DECODER: Control = {
+ param: DECODER_PARAM,
+ label: "Decoder",
+ values: ["standard", "clean"],
+ default: "standard",
+ labels: { standard: "Standard", clean: "Clean · finer texture" },
+ sets: { standard: {}, clean: { vae: CLEAN_VAE } },
+};
+
+/** Whether a GPU of this size (GB, as the GPU check reads it) runs the small encoder when the choice is Auto. */
+export function smallGpu(vramGb: number | undefined): boolean {
+ return typeof vramGb === "number" && vramGb > 0 && vramGb < SMALL_GPU_BELOW_GB;
+}
+
+/**
+ * The graph a Qwen-Image 2.1 run takes: the speed's graph when it has one for this operation; at Full speed the small
+ * encoder's graph when Options → GPU says Small, or says nothing on a GPU under 24 GB. Anything else keeps `endpoint`.
+ */
+export function qwen21Graph(endpoint: string, extra: Record<string, unknown>, vramGb: number | undefined, has: (id: string) => boolean): string {
+ const speed = typeof extra[SPEED_PARAM] === "string" ? (extra[SPEED_PARAM] as Qwen21Speed) : "full";
+ const tier = speed !== "full" ? QWEN21_SPEED_GRAPH[endpoint]?.[speed] : undefined;
+ if (tier && has(tier)) return tier;
+ // Full speed (or a speed this operation doesn't have): the full graph, or the small encoder's.
+ const small = QWEN21_SMALL_GPU_GRAPH[endpoint];
+ const gpu = extra[GPU_PARAM];
+ if (small && has(small) && (gpu === "small" || (gpu !== "large" && smallGpu(vramGb)))) return small;
+ return endpoint;
+}
+
+// ---------------------------------------------------------------------------
+// The Lightning LoRA's schedule for a canvas
+
+/** The schedule LightX2V trained the 4-step Lightning LoRA on, before the shift. */
+const LIGHTNING_SIGMAS = [1.0, 0.75, 0.5, 0.25];
+
+/**
+ * The Lightning LoRA's ManualSigmas for a canvas: its card's [1.0, 0.75, 0.5, 0.25] with diffusers' exponential dynamic
+ * shift (mu between 0.5 at 256 and 0.9 at 8192 tokens; Qwen-Image 2.1 has one token per 16 × 16 px), then 0. At 1 MP:
+ * "1.0, 0.857192, 0.666756, 0.400096, 0".
+ */
+export function lightningSigmas(width: number, height: number): string {
+ const tokens = Math.max(1, (width / 16) * (height / 16));
+ const slope = (0.9 - 0.5) / (8192 - 256);
+ const mu = tokens * slope + (0.5 - slope * 256);
+ const e = Math.exp(mu);
+ const shifted = LIGHTNING_SIGMAS.map((s) => e / (e + (1 / s - 1)));
+ return [...shifted.map((s) => String(Math.round(s * 1e6) / 1e6)), "0"].join(", ");
+}
+
+/** The graphs whose sigmas follow the canvas (the Lightning tier). */
+export const LIGHTNING_GRAPHS: ReadonlySet<string> = new Set(Object.values(QWEN21_SPEED_GRAPH).flatMap((t) => (t.fast ? [t.fast] : [])));
+
+// ---------------------------------------------------------------------------
+// The LoRA each speed loads (its switch in Settings → Models & licences holds the speed)
+
+/** The LoRA file each speed's graphs load (the LoRA library's adapter entries, src/lib/catalog/lora-library.generated.ts). */
+export const SPEED_LORA: Partial<Record<Qwen21Speed, string>> = {
+ draft: "Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors",
+ fast: "Qwen-Image-2.1-Lightning-4steps.safetensors",
+ details: "p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors",
+};
+
+/** The speed a run asks for and the LoRA its graph loads, when the route's graph has that speed. */
+export function speedLora(endpoint: string, extra: Record<string, unknown> | undefined): { speed: Qwen21Speed; file: string } | undefined {
+ const speed = extra?.[SPEED_PARAM];
+ if (typeof speed !== "string" || !QWEN21_SPEED_GRAPH[endpoint]?.[speed as Qwen21Speed]) return undefined;
+ const file = SPEED_LORA[speed as Qwen21Speed];
+ return file ? { speed: speed as Qwen21Speed, file } : undefined;
+}
diff --git a/src/lib/studios.ts b/src/lib/studios.ts
index 148afb15..204bbae4 100644
--- a/src/lib/studios.ts
+++ b/src/lib/studios.ts
@@ -48,6 +48,8 @@ export const EDIT_STUDIO: StudioConfig = {
kind: "image",
ops: ["edit"],
feed: { kind: "image", features: ["edit"] },
+ // A model's own settings (Qwen-Image 2.1's Speed, GPU and Decoder) sit under "Options".
+ controlsTitle: "Options",
slots: [{ key: "image", label: "Image", accept: "image", required: true }],
// The image and up to 9 references (FLUX 3 Klein takes 10 in all); each model's own limit caps it.
multiRef: { label: "Add ref", max: 9 },
@@ -71,6 +73,7 @@ export const INPAINT_STUDIO: StudioConfig = {
kind: "image",
ops: ["inpaint", "edit"],
feed: { kind: "image", features: ["edit"] },
+ controlsTitle: "Options",
slots: [{ key: "image", label: "Image", accept: "image", required: true }],
multiRef: { label: "Add ref", max: 3 },
sketch: ["mask"],
diff --git a/src/server/generations.ts b/src/server/generations.ts
index 46e5e5a9..29d93d5c 100644
--- a/src/server/generations.ts
+++ b/src/server/generations.ts
@@ -1,4 +1,5 @@
import "server-only";
+import { QWEN21_SPEED, speedLora } from "@/lib/qwen21-speed";
import fs from "node:fs";
import path from "node:path";
import { nanoid } from "nanoid";
@@ -732,6 +733,14 @@ function prepare(original: GenerationRequest) {
else if (access.loras.some((l, i) => l !== plan.loras[i])) plan = { ...plan, loras: access.loras };
// A preset can route to another model than the one asked for: its routes that are on (or the switch that's off).
const { route, demo } = chooseRoute(offeredRoutes(plan.model, routesFor(plan.model, plan.op)), req.inputs?.images?.length ?? 0, plan.loras, seconds, !!worded.demo);
+ // Qwen-Image 2.1's Options → Speed loads its speed's LoRA in the graph: that LoRA switched off holds the speed.
+ const tier = route.provider === "comfyui" ? speedLora(route.endpoint, plan.params.extra) : undefined;
+ if (tier && offeredLoras([{ file: tier.file }]).dropped.length) {
+ const speed = QWEN21_SPEED.labels?.[tier.speed] ?? tier.speed;
+ throw new Error(
+ tenantAccount() ? `${speed} isn't available here. Pick another speed` : `${speed} runs with the LoRA “${loraName({ file: tier.file })}”, which is switched off in ${ACCESS_PLACE}. Pick another speed, or turn it back on there`,
+ );
+ }
// What the cloud run can carry: a LoRA whose licence doesn't allow hosting stays on the GPU, and an API
// takes at most so many (the plan's notes say which were left out). Open runs carry them all. Without a
// civitai key a look's civitai LoRA the run can't get is left out (and said), rather than failing at the
diff --git a/src/server/gpu/gate.ts b/src/server/gpu/gate.ts
index eaafbda4..cafe00f1 100644
--- a/src/server/gpu/gate.ts
+++ b/src/server/gpu/gate.ts
@@ -2,6 +2,7 @@ import "server-only";
import crypto from "node:crypto";
import { resolveWorkflowId } from "@/lib/comfy-variants";
import { fixPlan } from "@/lib/gpu/plan";
+import { vramGb } from "@/lib/gpu/requirements";
import { deviceLabel, needTargets, toolReadiness } from "@/lib/gpu/readiness";
import type { FixPlan, ToolReadiness, ToolRef } from "@/lib/gpu/types";
import type { GenerationRequest } from "@/lib/catalog/types";
@@ -42,6 +43,8 @@ export async function gateGeneration(t: GpuTarget, g: GateInput): Promise<GateRe
const idx = loadIndex();
const req = g.request;
const has = (id: string) => !!idx.workflows[id];
+ // The graph the run takes can depend on the GPU's memory (Qwen-Image 2.1's small encoder): the last check's reading.
+ const memory = vramGb(readSnapshot(t)?.inventory.devices[0]?.vramTotal);
const id = resolveWorkflowId(g.route.endpoint, {
op: g.op,
clips: req.inputs?.videos?.length ?? 0,
@@ -50,6 +53,7 @@ export async function gateGeneration(t: GpuTarget, g: GateInput): Promise<GateRe
audio2: !!req.inputs?.audio2 || !!req.params?.extra?.audio2,
extra: req.params?.extra ?? {},
has,
+ vramGb: memory,
});
if (!has(id)) return { ok: true };
// The preset's route on the run's model (the one its preview was made with, or its own): its LoRAs are checked too.
diff --git a/src/server/gpu/tools.ts b/src/server/gpu/tools.ts
index b53569f1..8340ba00 100644
--- a/src/server/gpu/tools.ts
+++ b/src/server/gpu/tools.ts
@@ -24,6 +24,9 @@ import * as S from "@/lib/studios";
import type { StudioConfig } from "@/components/studio/studio-context";
import { loadIndex } from "./index-file";
+/** Qwen-Image 2.1 on a 16 GB card: the small encoder's model (src/lib/qwen21-speed.ts). */
+const QWEN21_SMALL_MODEL = "oss-qwen-image-21-small";
+
/** The open engine's Join clips (a turnaround's quarter turns become one film). */
const JOIN_CLIPS_MODEL = "oss-join-clips";
@@ -158,6 +161,17 @@ export const STUDIO_ROWS: StudioRowDef[] = [
{ href: "/image", label: "Image", group: "Images", config: S.IMAGE_STUDIO },
{ href: "/edit", label: "Edit", group: "Images", config: S.EDIT_STUDIO },
{ href: "/inpaint", label: "Inpaint", group: "Images", config: S.INPAINT_STUDIO },
+ // Qwen-Image 2.1 on a 16 GB card (nm10-qwen21-fast): text to image and edits on Zen Image Edit's small encoder, which the
+ // Image and Edit studios pick by themselves under 24 GB (Options → GPU on Auto). The row's page opens the Image studio.
+ {
+ href: "/image/small-gpu",
+ label: "Image on a 16 GB GPU",
+ group: "Images",
+ steps: [
+ { modelId: QWEN21_SMALL_MODEL, op: "t2i" },
+ { modelId: QWEN21_SMALL_MODEL, op: "edit" },
+ ],
+ },
{ href: "/upscale", label: "Upscale", group: "Images", config: S.UPSCALE_STUDIO },
{ href: "/video", label: "Video", group: "Video", config: S.VIDEO_STUDIO },
{ href: "/motion-control", label: "Motion control", group: "Video", config: S.MOTION_CONTROL_STUDIO },
diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.ts
index 4fab0167..f9afc3dc 100644
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@ -42,6 +42,7 @@ import {
} from "@/lib/comfy";
import { fpsPlan } from "@/lib/av/fps";
import { resolveWorkflowId } from "@/lib/comfy-variants";
+import { DECODER_PARAM, GPU_PARAM, LIGHTNING_GRAPHS, lightningSigmas, QWEN21_SMALL_GPU_GRAPH, SPEED_PARAM } from "@/lib/qwen21-speed";
import { h3Canvas, h3Frames, isH3Graph } from "@/lib/h3-prompt";
import { carriesBoxes, LAYOUT_PARAM } from "@/lib/layout-prompt";
import { fixFromPromptError } from "@/lib/gpu/fix-codes";
@@ -737,6 +738,32 @@ export async function comfyDevice(worker: ComfyWorker = "main"): Promise<string
});
}
+declare global {
+ /** The graphics memory each ComfyUI address reported last (GET /system_stats devices[0].vram_total, bytes), and when. */
+ var __fuobeComfyVram: Map<string, { bytes?: number; at: number }> | undefined;
+}
+
+/**
+ * The connected ComfyUI's first device's graphics memory in GB (GET /system_stats devices[0].vram_total, as Settings' test
+ * reads it), kept for a minute; on someone's computer what its Fuobe tab last said; undefined when nothing says.
+ */
+export async function comfyVramGb(worker: ComfyWorker = "main"): Promise<number | undefined> {
+ const gb = (bytes: number | undefined) => (typeof bytes === "number" && bytes > 0 ? bytes / 2 ** 30 : undefined);
+ const computer = computerScope();
+ if (computer) return gb(runnerFacts(computer)?.vramBytes);
+ const url = baseUrl(worker);
+ if (!url) return undefined;
+ const cache = (globalThis.__fuobeComfyVram ??= new Map());
+ const hit = cache.get(url);
+ if (hit && Date.now() - hit.at < 60_000) return gb(hit.bytes);
+ return oneAsk(`/system_stats vram ${url}`, async () => {
+ const st = await comfyJson<{ devices?: { vram_total?: unknown }[] }>("/system_stats", worker).catch(() => undefined);
+ const bytes = typeof st?.devices?.[0]?.vram_total === "number" ? (st.devices[0].vram_total as number) : undefined;
+ if (st) cache.set(url, { bytes, at: Date.now() });
+ return gb(bytes);
+ });
+}
+
declare global {
/** The DBS models each ComfyUI address listed last (GET /models/dbs), and when. */
var __fuobeComfyDbs: Map<string, { models?: DbsModel[]; at: number }> | undefined;
@@ -903,6 +930,8 @@ const OPTIONAL_REFERENCE_INPUTS: ReadonlySet<string> = new Set([
// FLUX 3 Image Klein's edit: its references on one ReferenceMultiLatent, and the batch its prompt helper looks at.
"ReferenceMultiLatent",
"BatchImagesNode",
+ // Qwen-Image 2.1 on a small GPU: Zen Image Edit's encoder takes image_2-4 the same way.
+ "ZenImage21TextEncode",
]);
/** Uploads that are sides of one object (image = the first side, image2 the second…), and the node they all go into. */
@@ -974,6 +1003,8 @@ export interface PrepareContext {
serverRam?: () => Promise<number | undefined>;
/** The server's first torch device type ("cuda", "cpu", "mps"…; GET /system_stats devices[0].type): DBS picks its model by it. */
device?: () => Promise<string | undefined>;
+ /** The server's first device's graphics memory in GB (GET /system_stats devices[0].vram_total): Qwen-Image 2.1's GPU Auto reads it. */
+ vramGb?: () => Promise<number | undefined>;
/** The DBS models on the server's disk (GET /models/dbs), undefined when it can't say: a run never gets one that isn't there. */
dbsModels?: () => Promise<DbsModel[] | undefined>;
/** The RE-USE files on the server's disk (GET /models/reuse): null without ComfyUI-RE-USE, undefined when it can't say. */
@@ -991,6 +1022,23 @@ export interface PreparedPrompt {
meta: Record<string, unknown>;
}
+/**
+ * The canvas a Qwen-Image 2.1 Lightning run samples (its sigmas follow the size): text to image's width × height; an edit's
+ * image 1 at its own size, at most 2048 on the long side (the graph's scaling); inpaint's 1.5 MP crop and expand's 1 MP canvas.
+ */
+function lightningCanvas(capability: string, values: Partial<Record<BindingKey, unknown>>, image: MediaInfo | undefined): { width: number; height: number } | undefined {
+ if (capability === "t2i") {
+ const [w, h] = [Number(values.width), Number(values.height)];
+ return w > 0 && h > 0 ? { width: w, height: h } : undefined;
+ }
+ // Only the area counts (tokens of 16 × 16 px): 1.5 MP and 1 MP squares.
+ if (capability === "inpaint") return { width: 1254, height: 1254 };
+ if (capability === "outpaint") return { width: 1024, height: 1024 };
+ if (!image?.width || !image.height) return undefined;
+ const k = Math.min(1, 2048 / Math.max(image.width, image.height));
+ return { width: image.width * k, height: image.height * k };
+}
+
/** Caption cues for the burn-in: params.extra.cues, or the prompt's "start-end: text" / SRT lines. */
function captionCues(input: GenInput, extra: Record<string, unknown>): CaptionCue[] {
const given = Array.isArray(extra.cues)
@@ -1122,6 +1170,8 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
// The variant this request runs (one graph per clip count, the single-track soundtrack, EXR frames, a Fun Camera pose,
// the product shot): src/lib/comfy-variants.ts, which the GPU pre-flight's gate reads too. A LoRA mixed into a pose is
// injected on its experts as on the plain image-to-video graph.
+ // Qwen-Image 2.1 on Auto GPU at Full speed: the graphics memory decides the encoder (only then is the server asked).
+ const vramGb = QWEN21_SMALL_GPU_GRAPH[endpointTemplate] && !extra[GPU_PARAM] && (extra[SPEED_PARAM] ?? "full") === "full" ? await ctx.vramGb?.().catch(() => undefined) : undefined;
const endpoint = resolveWorkflowId(endpointTemplate, {
op: ctx.op,
clips: clips.length,
@@ -1130,8 +1180,12 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
audio2: !!audio2 || !!extra.audio2,
extra,
has: (id) => loadManifest().workflows.some((w) => w.id === id),
+ vramGb,
});
delete extra.productShot;
+ delete extra[SPEED_PARAM];
+ delete extra[GPU_PARAM];
+ delete extra[DECODER_PARAM];
const { manifest, workflow } = getWorkflow(endpoint);
const d = manifest.defaults;
@@ -1564,6 +1618,11 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
const laidOut = carriesBoxes(extra);
delete extra[PROMPT_HELPER_PARAM];
delete extra[LAYOUT_PARAM];
+ // The Lightning tier's schedule shifted for this canvas (its card's dynamic shift): text to image's size, else image 1's.
+ if (b.sigmas && LIGHTNING_GRAPHS.has(manifest.id) && extra.sigmas === undefined) {
+ const canvas = lightningCanvas(manifest.capability, values, ctx.media?.(String(values.image ?? "")));
+ if (canvas) values.sigmas = lightningSigmas(canvas.width, canvas.height);
+ }
for (const [k, v] of Object.entries(extra)) values[k as BindingKey] = v;
// SeedVR2's `scale` multiplies the picture before one diffusion pass over all of it, and its graph is made for up to
// limits.maxWidth × maxHeight: the multiplier comes down to fit the picture (a 3000 × 2000 photo at the template's 4x
@@ -2054,6 +2113,7 @@ export const comfyProvider: ProviderAdapter = {
return (await comfyJson<{ system?: { ram_total?: number } }>("/system_stats", worker).catch(() => undefined))?.system?.ram_total;
},
device: () => comfyDevice(worker),
+ vramGb: () => comfyVramGb(worker),
// Fresh: a model installed a moment ago runs. (On someone's computer, nothing to ask: its ComfyUI has the last word.)
dbsModels: () => comfyDbsModels(worker, 0),
reuseModels: () => comfyReuseModels(worker, 0),
diff --git a/src/server/storyboard.ts b/src/server/storyboard.ts
index 10bac701..eeb72161 100644
--- a/src/server/storyboard.ts
+++ b/src/server/storyboard.ts
@@ -1,7 +1,18 @@
import "server-only";
import { nanoid } from "nanoid";
import { z } from "zod";
-import { heuristicScenes, MAX_FRAMES, parseScenes, planStoryboard, SPLIT_SYSTEM, STORYBOARD_PARTNER_IDS, type StoryboardLook, type StoryboardPartner } from "@/lib/catalog/storyboard";
+import {
+ heuristicScenes,
+ MAX_FRAMES,
+ parseScenes,
+ planStoryboard,
+ SPLIT_SYSTEM,
+ STORYBOARD_NEXT_SCENE_IDS,
+ STORYBOARD_PARTNER_IDS,
+ type StoryboardLook,
+ type StoryboardNextScene,
+ type StoryboardPartner,
+} from "@/lib/catalog/storyboard";
import { soulLook } from "@/lib/catalog/soul";
import type { Engine, Generation, GenerationRequest } from "@/lib/catalog/types";
import { storyboardName } from "@/lib/storyboard-board";
@@ -16,6 +27,8 @@ export const StoryboardBodySchema = z.object({
engine: z.enum(["cloud", "open"]),
/** A partner model for every frame instead of Fuobe's open recipe (cloud only): "nano-banana-pro". */
partner: z.enum(STORYBOARD_PARTNER_IDS).optional(),
+ /** The next frames on your GPU: "qwen-21" (Qwen-Image 2.1 + its Next-Scene LoRA, the default) or "classic" (Qwen-Image-Edit 2509). */
+ nextScene: z.enum(STORYBOARD_NEXT_SCENE_IDS).optional(),
scenes: z.array(z.string().max(1000)).max(8).optional(),
story: z.string().max(4000).optional(),
frames: z.number().int().min(1).max(8).optional(),
@@ -32,6 +45,8 @@ export interface StoryboardRequest {
engine: Engine;
/** A partner model for the whole board (cloud only); unset: Fuobe's open recipe (Qwen-Image-Edit + next-scene). */
partner?: StoryboardPartner;
+ /** The next frames' model on your GPU (open only): Qwen-Image 2.1's Next-Scene LoRA unless "classic". */
+ nextScene?: StoryboardNextScene;
/** Manual: one prompt per frame. */
scenes?: string[];
/** Auto: one story, split into `frames`. */
@@ -66,7 +81,7 @@ function boardLook(r: Pick<StoryboardRequest, "look" | "lookStrength">): Storybo
export function estimateStoryboard(r: StoryboardRequest): { costUsd: number | null; demo: boolean; frames: number; models: string[] } {
const n = Math.max(1, Math.min(MAX_FRAMES, r.scenes?.filter((s) => s.trim()).length || r.frames || 4));
const scenes = Array.from({ length: n }, (_, i) => r.scenes?.[i]?.trim() || `scene ${i + 1}`);
- const frames = planStoryboard({ engine: r.engine, partner: r.partner, scenes, references: r.references, style: r.style, look: boardLook(r), aspectRatio: r.aspectRatio, resolution: r.resolution });
+ const frames = planStoryboard({ engine: r.engine, partner: r.partner, nextScene: r.nextScene, scenes, references: r.references, style: r.style, look: boardLook(r), aspectRatio: r.aspectRatio, resolution: r.resolution });
let cost: number | null = 0;
let demo = false;
const models: string[] = [];
@@ -87,7 +102,7 @@ export async function createStoryboard(r: StoryboardRequest): Promise<{ batchId:
const batchId = nanoid(10);
// The board is named after the user's idea on every device (the Library's stack title too).
const batchTitle = storyboardName(r.scenes?.length ? undefined : r.story, scenes);
- const frames = planStoryboard({ engine: r.engine, partner: r.partner, scenes, references: r.references, style: r.style, look, aspectRatio: r.aspectRatio, resolution: r.resolution, batchTitle });
+ const frames = planStoryboard({ engine: r.engine, partner: r.partner, nextScene: r.nextScene, scenes, references: r.references, style: r.style, look, aspectRatio: r.aspectRatio, resolution: r.resolution, batchTitle });
const items: Generation[] = [];
let previous: string | undefined;
for (const request of frames) {
diff --git a/tests/qwen21-fast.test.ts b/tests/qwen21-fast.test.ts
new file mode 100644
index 00000000..db9ab2ae
--- /dev/null
+++ b/tests/qwen21-fast.test.ts
@@ -0,0 +1,340 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, describe, expect, it } from "vitest";
+import type { GenInput, Operation } from "@/lib/catalog/types";
+import type { ComfyWorkflow, ManifestWorkflow } from "@/lib/comfy";
+
+// Package nm10-qwen21-fast (docs/research/new-models-10.md §6.7): Qwen-Image 2.1 in 2-6 steps (Options → Speed), on 16 GB
+// cards (Options → GPU, Zen Image Edit's small encoder), with the Texture-Fix VAE (Options → Decoder) and the 2.1
+// Next-Scene LoRA for Storyboard's next frames. All on the open engine: Qwen-Image 2.1 isn't hosted on fal or Replicate.
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-qwen21-fast-"));
+process.env.FUOBE_DATA_DIR = tmp;
+process.env.COMFYUI_URL = "http://comfy.test:8188";
+const { prepareWorkflow } = await import("@/server/providers/comfyui");
+const { getModel, getPreset } = await import("@/lib/catalog");
+const { controlSets, planGeneration } = await import("@/lib/catalog/plan");
+const { libraryEntry } = await import("@/lib/catalog/loras");
+const { planStoryboard, storyboardModels, STORYBOARD_MODELS } = await import("@/lib/catalog/storyboard");
+const { resolveWorkflowId } = await import("@/lib/comfy-variants");
+const { controlsFor } = await import("@/lib/composer");
+const Q = await import("@/lib/qwen21-speed");
+const { STUDIO_ROWS, studioTool, toolFor } = await import("@/server/gpu/tools");
+const { previewGeneration } = await import("@/server/generations");
+const { changeAccess, modelLicence } = await import("@/server/model-access");
+const { setSetting } = await import("@/server/settings");
+const { EDIT_STUDIO, INPAINT_STUDIO } = await import("@/lib/studios");
+afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));
+
+const LIBRARY = path.join(process.cwd(), "workflows/comfyui");
+const read = (f: string) => JSON.parse(fs.readFileSync(path.join(LIBRARY, f), "utf8"));
+const manifest = read("manifest.json") as { workflows: ManifestWorkflow[] };
+const entry = (id: string) => manifest.workflows.find((w) => w.id === id)!;
+const graph = (id: string) => read(`${id}.json`) as ComfyWorkflow;
+const pins = read("model-pins.json") as Record<string, { revision: string; sizeBytes: number; sha256: string }>;
+const index = read("requirements.json") as { workflows: Record<string, { files: string[]; optional: string[]; packs: Record<string, string[]>; vramGb: number; firstRun: string[]; validated?: boolean }>; files: Record<string, { pinnedUrl: string; sizeBytes: number }>; packs: Record<string, { commit: string; classes: string[] }> };
+const ofClass = (wf: ComfyWorkflow, cls: string) => Object.entries(wf).filter(([, n]) => n.class_type === cls);
+const has = (id: string) => manifest.workflows.some((w) => w.id === id);
+const variant = (endpoint: string, op: string, extra: Record<string, unknown>, vramGb?: number, images = 0) =>
+ resolveWorkflowId(endpoint, { op, clips: 0, images, audio2: false, extra, has, vramGb });
+
+async function prepare(id: string, input: GenInput, op: Operation, media: Record<string, { width: number; height: number }> = {}, vramGb?: number) {
+ return prepareWorkflow(id, { seed: 7, ...input }, {
+ generationId: "g-q21",
+ op,
+ upload: async (_d, _t, name) => `up_${name}`,
+ media: (name) => media[name] as never,
+ serverRam: async () => undefined,
+ vramGb: async () => vramGb,
+ });
+}
+
+/** Each speed's LoRA, its pinned download and its schedule (the cards, read 2026-11-01). */
+const TIERS = {
+ draft: {
+ file: "Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors",
+ url: "https://huggingface.co/linoyts/Qwen-Image-2.1-DMD2-2steps/resolve/5bae28369ecea3232405c17a53c04d35d15796b8/pytorch_lora_weights_v1_5.safetensors",
+ bytes: 67144520,
+ sigmas: [1, 0.5, 0],
+ },
+ fast: {
+ file: "Qwen-Image-2.1-Lightning-4steps.safetensors",
+ url: "https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/6b0a1176327c01522a44276c5da67331a025b6fc/pytorch_lora_weights.safetensors",
+ bytes: 67144280,
+ sigmas: [1, 0.857192, 0.666756, 0.400096, 0],
+ },
+ details: {
+ file: "p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors",
+ url: "https://huggingface.co/PrunaAI/P-Q-Image-2.1-Comfy/resolve/aa7dcecb1767e220e31a55706e33fd057c9a3fca/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors",
+ bytes: 344061264,
+ sigmas: [1, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0],
+ },
+} as const;
+const sigmasOf = (s: unknown) => String(s).split(",").map(Number);
+
+describe("Qwen-Image 2.1's speed graphs", () => {
+ const tiers = Object.entries(Q.QWEN21_SPEED_GRAPH).flatMap(([base, t]) => Object.entries(t).filter(([s]) => s !== "turbo").map(([speed, id]) => ({ base, speed: speed as keyof typeof TIERS, id: id! })));
+
+ it("has Draft and Fast for text to image, edits, inpaint and expand, and 'writes the details' for text to image and edits", () => {
+ expect(tiers.map((t) => t.id).sort()).toEqual(
+ ["t2i-draft", "t2i-fast", "t2i-details", "edit-draft", "edit-fast", "edit-details", "inpaint-draft", "inpaint-fast", "outpaint-draft", "outpaint-fast"].map((x) => `qwen-image-21-${x}`).sort(),
+ );
+ expect(Q.QWEN21_SPEED_GRAPH["qwen-image-21-edit"].turbo).toBe("qwen-image-21-turbo-edit");
+ });
+
+ it("is the base graph with one LoRA and the LoRA's sigma schedule at CFG 1, and nothing else changed", () => {
+ for (const t of tiers) {
+ const wf = graph(t.id);
+ const base = graph(t.base);
+ const loras = ofClass(wf, "LoraLoaderModelOnly").filter(([, n]) => n.inputs.lora_name === TIERS[t.speed].file);
+ expect(loras, t.id).toHaveLength(1);
+ expect(loras[0][1].inputs.strength_model).toBe(1);
+ expect(sigmasOf(ofClass(wf, "ManualSigmas")[0][1].inputs.sigmas), t.id).toEqual(TIERS[t.speed].sigmas);
+ expect(ofClass(wf, "KSampler"), t.id).toHaveLength(0);
+ expect(ofClass(wf, "CFGGuider")[0][1].inputs.cfg).toBe(1);
+ expect(ofClass(wf, "KSamplerSelect")[0][1].inputs.sampler_name).toBe("euler");
+ // The rest of the owner's graph is as it was (models, encoder, decoder, the pictures' handling).
+ for (const [id, n] of Object.entries(base)) {
+ if (n.class_type === "KSampler" || n.class_type === "SaveImage" || n.class_type === "QwenImage21Cache") continue;
+ expect(wf[id], `${t.id} ${id}`).toEqual(n);
+ }
+ // The speed LoRA goes after the model (and after Expand's outpaint LoRA).
+ const from = loras[0][1].inputs.model as [string, number];
+ expect(wf[from[0]].class_type).toBe(t.base.endsWith("outpaint") ? "LoraLoaderModelOnly" : "UNETLoader");
+ }
+ });
+
+ it("pins each LoRA at the revision its card was read at, with its size, and lists the clean decoder as optional", () => {
+ for (const t of tiers) {
+ const e = entry(t.id);
+ const m = e.models.find((x) => x.file === TIERS[t.speed].file)!;
+ expect(m, t.id).toMatchObject({ folder: "loras", url: TIERS[t.speed].url, sizeGb: Math.round((TIERS[t.speed].bytes / 1e9) * 100) / 100 });
+ expect(pins[TIERS[t.speed].url].sizeBytes).toBe(TIERS[t.speed].bytes);
+ expect(pins[TIERS[t.speed].url].sha256).toMatch(/^[0-9a-f]{64}$/);
+ expect(index.workflows[t.id].files).toContain(`loras/${TIERS[t.speed].file}`);
+ expect(index.workflows[t.id].optional).toEqual([`vae/${Q.CLEAN_VAE}`]);
+ expect(e.bindings.seed).toEqual([{ node: "70", input: "noise_seed" }]);
+ expect(e.bindings.steps).toBeUndefined();
+ expect(e.license).toMatch(/Qwen Research License/);
+ // The graph check on the CPU ComfyUI: text to image and edits (inpaint and expand need AusBoss's pack, which it lacks).
+ if (/-(t2i|edit)-/.test(t.id)) expect(e.validated, t.id).toBe(true);
+ else expect(e.customNodes.map((c) => c.name)).toEqual(["ausboss-nodes"]);
+ }
+ expect(index.files[`vae/${Q.CLEAN_VAE}`]).toMatchObject({ sizeBytes: 675509688 });
+ expect(index.files[`vae/${Q.CLEAN_VAE}`].pinnedUrl).toContain("/madebyollin/texture-fix-vae-for-qwen-image-2.1/resolve/9a10df811f183323e4e94d255c18add1924ce340/");
+ });
+
+ it("shifts the Lightning schedule for the canvas as its card does, and keeps 1 MP's in the graph", () => {
+ expect(sigmasOf(Q.lightningSigmas(1024, 1024))).toEqual(TIERS.fast.sigmas);
+ const big = sigmasOf(Q.lightningSigmas(2048, 2048));
+ expect(big[1]).toBeCloseTo(0.917701, 5);
+ expect(big[3]).toBeCloseTo(0.553369, 5);
+ expect(big.at(-1)).toBe(0);
+ expect([...Q.LIGHTNING_GRAPHS].sort()).toEqual(tiers.filter((t) => t.speed === "fast").map((t) => t.id).sort());
+ });
+});
+
+describe("Options → Speed, GPU and Decoder", () => {
+ it("picks the speed's graph per operation, and Full (the default) keeps the owner's", () => {
+ expect(variant("qwen-image-21-t2i", "t2i", {})).toBe("qwen-image-21-t2i");
+ expect(variant("qwen-image-21-t2i", "t2i", { speed: "full" })).toBe("qwen-image-21-t2i");
+ expect(variant("qwen-image-21-t2i", "t2i", { speed: "draft" })).toBe("qwen-image-21-t2i-draft");
+ expect(variant("qwen-image-21-edit", "edit", { speed: "fast" }, undefined, 2)).toBe("qwen-image-21-edit-fast");
+ expect(variant("qwen-image-21-edit", "edit", { speed: "turbo" })).toBe("qwen-image-21-turbo-edit");
+ expect(variant("qwen-image-21-inpaint", "inpaint", { speed: "fast" })).toBe("qwen-image-21-inpaint-fast");
+ expect(variant("qwen-image-21-outpaint", "outpaint", { speed: "draft" })).toBe("qwen-image-21-outpaint-draft");
+ // A speed an operation doesn't have runs at Full: Turbo makes edits only, "writes the details" no inpaint.
+ expect(variant("qwen-image-21-t2i", "t2i", { speed: "turbo" })).toBe("qwen-image-21-t2i");
+ expect(variant("qwen-image-21-inpaint", "inpaint", { speed: "details" })).toBe("qwen-image-21-inpaint");
+ // Other models' graphs never move; Marketing Image's product shot still wins on the edit graph.
+ expect(variant("flux3-klein-t2i", "t2i", { speed: "draft" }, 16)).toBe("flux3-klein-t2i");
+ expect(variant("qwen-image-21-edit", "edit", { productShot: true, speed: "draft" }, undefined, 1)).toBe("product-shot-qwen-edit-2509");
+ });
+
+ it("runs the small encoder under 24 GB on Auto, as asked otherwise, and never at another speed", () => {
+ expect(Q.smallGpu(16)).toBe(true);
+ expect(Q.smallGpu(23.6)).toBe(true);
+ expect(Q.smallGpu(24)).toBe(false);
+ expect(Q.smallGpu(undefined)).toBe(false);
+ expect(Q.smallGpu(0)).toBe(false);
+ expect(variant("qwen-image-21-t2i", "t2i", {}, 16)).toBe("qwen-image-21-t2i-small");
+ expect(variant("qwen-image-21-edit", "edit", {}, 12)).toBe("qwen-image-21-edit-small");
+ expect(variant("qwen-image-21-t2i", "t2i", {}, 24)).toBe("qwen-image-21-t2i");
+ expect(variant("qwen-image-21-t2i", "t2i", {}, undefined)).toBe("qwen-image-21-t2i");
+ expect(variant("qwen-image-21-t2i", "t2i", { gpu: "large" }, 16)).toBe("qwen-image-21-t2i");
+ expect(variant("qwen-image-21-t2i", "t2i", { gpu: "small" }, 48)).toBe("qwen-image-21-t2i-small");
+ expect(variant("qwen-image-21-t2i", "t2i", { speed: "fast" }, 16)).toBe("qwen-image-21-t2i-fast");
+ // Inpaint and expand have no small-encoder graph.
+ expect(variant("qwen-image-21-inpaint", "inpaint", {}, 16)).toBe("qwen-image-21-inpaint");
+ });
+
+ it("puts the three controls on Qwen-Image 2.1 under Options, each value on the operations that have it", () => {
+ const m = getModel("oss-qwen-image-21")!;
+ expect(m.options.controls?.map((c) => c.param)).toEqual(["speed", "gpu", "decoder"]);
+ expect(m.options.controls?.find((c) => c.param === "speed")?.default).toBe("full");
+ expect(m.options.controls?.find((c) => c.param === "decoder")?.default).toBe("standard");
+ expect(m.tagline).toMatch(/Draft to Full speed/);
+ const values = (op: string) => Object.fromEntries(controlsFor(m.options.controls!, op).map((c) => [c.param, c.values]));
+ expect(values("edit")).toEqual({ speed: ["draft", "fast", "details", "turbo", "full"], gpu: ["large", "small"], decoder: ["standard", "clean"] });
+ expect(values("t2i").speed).toEqual(["draft", "fast", "details", "full"]);
+ // Inpaint has no small-encoder graph: the GPU choice leaves.
+ expect(values("inpaint")).toEqual({ speed: ["draft", "fast", "full"], decoder: ["standard", "clean"] });
+ expect(controlsFor(m.options.controls!)).toBe(m.options.controls);
+ expect(getModel("oss-qwen-image-21-turbo")!.options.controls?.map((c) => c.param)).toEqual(["decoder"]);
+ expect(EDIT_STUDIO.controlsTitle).toBe("Options");
+ expect(INPAINT_STUDIO.controlsTitle).toBe("Options");
+ });
+
+ it("writes Clean as the Texture-Fix VAE, and the default leaves the graph's own decoder", () => {
+ const m = getModel("oss-qwen-image-21")!;
+ expect(controlSets(m, { extra: { decoder: "clean", speed: "fast" } }).extra).toEqual({ vae: Q.CLEAN_VAE, speed: "fast" });
+ expect(controlSets(m, {}).extra).toBeUndefined();
+ const plan = planGeneration({ feature: "image", modelId: "oss-qwen-image-21", prompt: "a koi pond", params: { extra: { decoder: "clean" } } }, getModel, getPreset);
+ expect(plan.params.extra).toEqual({ vae: Q.CLEAN_VAE });
+ });
+});
+
+describe("a Qwen-Image 2.1 run on your GPU", () => {
+ it("binds the Lightning schedule for the canvas, the clean decoder, and sends the options to no node", async () => {
+ const { manifest: m, workflow: wf } = await prepare("qwen-image-21-t2i", { prompt: "a koi pond", aspectRatio: "1:1", resolution: "2K", extra: { speed: "fast", gpu: "large", vae: Q.CLEAN_VAE } }, "t2i");
+ expect(m.id).toBe("qwen-image-21-t2i-fast");
+ expect(wf["5"].inputs).toMatchObject({ width: 2048, height: 2048 });
+ expect(sigmasOf(wf["73"].inputs.sigmas)).toEqual(sigmasOf(Q.lightningSigmas(2048, 2048)));
+ expect(wf["3"].inputs.vae_name).toBe(Q.CLEAN_VAE);
+ expect(wf["70"].inputs.noise_seed).toBe(7);
+ expect(JSON.stringify(wf)).not.toMatch(/"(speed|gpu|decoder)"/);
+ });
+
+ it("follows image 1's size for an edit's Lightning schedule", async () => {
+ const { manifest: m, workflow: wf } = await prepare("qwen-image-21-edit", { prompt: "make it night", images: ["/api/files/a.png"], extra: { speed: "fast" } }, "edit", {});
+ expect(m.id).toBe("qwen-image-21-edit-fast");
+ // Without the picture's header the graph keeps its 1 MP schedule.
+ expect(sigmasOf(wf["73"].inputs.sigmas)).toEqual(TIERS.fast.sigmas);
+ });
+
+ it("runs the small encoder by the GPU's memory, with the references it was given", async () => {
+ const small = await prepare("qwen-image-21-edit", { prompt: "the cat on the beach", images: ["/api/files/a.png", "/api/files/b.png"] }, "edit", {}, 16);
+ expect(small.manifest.id).toBe("qwen-image-21-edit-small");
+ const enc = small.workflow["5"];
+ expect(enc.class_type).toBe("ZenImage21TextEncode");
+ expect(Object.keys(enc.inputs).filter((k) => k.startsWith("image_")).sort()).toEqual(["image_1", "image_2"]);
+ expect(small.workflow["12"]).toBeUndefined();
+ expect(small.workflow["4"].inputs.shift).toBe(5);
+ const large = await prepare("qwen-image-21-edit", { prompt: "the cat", images: ["/api/files/a.png"] }, "edit", {}, 32);
+ expect(large.manifest.id).toBe("qwen-image-21-edit");
+ const asked = await prepare("qwen-image-21-t2i", { prompt: "a fox", extra: { gpu: "small" } }, "t2i", {}, 80);
+ expect(asked.manifest.id).toBe("qwen-image-21-t2i-small");
+ expect(asked.workflow["5"].inputs).toMatchObject({ prompt: "a fox", width: 1024, height: 1024 });
+ });
+
+ it("holds a speed whose LoRA is switched off in Models & licences", () => {
+ setSetting("demoMode", "on");
+ const req = { feature: "image", modelId: "oss-qwen-image-21", prompt: "a koi pond", params: { extra: { speed: "draft" } } } as const;
+ expect(() => previewGeneration(req)).not.toThrow();
+ changeAccess([{ kind: "lora", id: TIERS.draft.file, on: false }]);
+ try {
+ expect(() => previewGeneration(req)).toThrow(/Draft · 2 steps runs with the LoRA .* switched off in Settings → Models & licences/);
+ expect(() => previewGeneration({ ...req, params: { extra: { speed: "fast" } } })).not.toThrow();
+ } finally {
+ changeAccess([{ kind: "reset" }]);
+ setSetting("demoMode", "off");
+ }
+ });
+});
+
+describe("the small-GPU route", () => {
+ it("is Zen Image Edit on the stock DiT and VAE, its pack pinned, its downloads said, English only", () => {
+ for (const id of ["qwen-image-21-t2i-small", "qwen-image-21-edit-small"]) {
+ const wf = graph(id);
+ expect(ofClass(wf, "CLIPLoader"), id).toHaveLength(0);
+ expect(ofClass(wf, "ZenImage21AdapterLoader")[0][1].inputs).toMatchObject({ adapter_file: "models/adapter_v12.safetensors", text_encoder: "Qwen/Qwen3.5-0.8B" });
+ expect(ofClass(wf, "UNETLoader")[0][1].inputs.unet_name).toBe("qwen_image_2.1_int8_convrot.safetensors");
+ const w = index.workflows[id];
+ expect(w.vramGb).toBe(16);
+ expect(Object.keys(w.packs)).toEqual(["zen-image-edit-comfyui"]);
+ expect(w.firstRun.join(" ")).toMatch(/adapter_v12\.safetensors.*Qwen3\.5-0\.8B/s);
+ expect(entry(id).validated).toBe(false);
+ }
+ expect(index.packs["zen-image-edit-comfyui"]).toMatchObject({ commit: "7a29e58c973b84798df926e3251727884fdacc2d", classes: ["ZenImage21AdapterLoader", "ZenImage21TextEncode"] });
+ const m = getModel("oss-qwen-image-21-small")!;
+ expect(m.hidden).toBe(true);
+ expect(m.tagline).toMatch(/English prompts only/);
+ expect(m.routes.map((r) => [r.op, r.endpoint])).toEqual([
+ ["t2i", "qwen-image-21-t2i-small"],
+ ["edit", "qwen-image-21-edit-small"],
+ ]);
+ });
+
+ it("has its row on the GPU pre-flight board, whose page opens the Image studio", () => {
+ const row = STUDIO_ROWS.find((r) => r.href === "/image/small-gpu")!;
+ expect(row).toMatchObject({ label: "Image on a 16 GB GPU", group: "Images" });
+ const t = studioTool(row)!;
+ expect(t.workflows).toEqual(["qwen-image-21-t2i-small", "qwen-image-21-edit-small"]);
+ expect(t.kind).toBe("image");
+ expect(toolFor("studio:/image/small-gpu")?.workflows).toEqual(t.workflows);
+ const page = fs.readFileSync(path.join(process.cwd(), "src/app/(studio)/image/small-gpu/page.tsx"), "utf8");
+ expect(page).toMatch(/redirect\("\/image"\)/);
+ });
+});
+
+describe("Storyboard's next scene on Qwen-Image 2.1", () => {
+ it("makes the next frames on the 2.1 Next-Scene graph on your GPU, the classic one when asked, and keeps the cloud's", () => {
+ expect(STORYBOARD_MODELS.open.next).toBe("oss-qwen-image-21-next-scene");
+ expect(storyboardModels("open", undefined, "classic").next).toBe("oss-qwen-next-scene");
+ expect(storyboardModels("open", undefined, "qwen-21").next).toBe("oss-qwen-image-21-next-scene");
+ expect(storyboardModels("cloud", undefined, "qwen-21")).toBe(STORYBOARD_MODELS.cloud);
+ const scenes = ["the heroine on the rooftop at dusk", "the camera pulls back over the city"];
+ const board = planStoryboard({ engine: "open", scenes, references: ["/api/files/hero.png"] });
+ expect(board[1]).toMatchObject({ modelId: "oss-qwen-image-21-next-scene", chainFrom: "first", inputs: { images: ["/api/files/hero.png"] } });
+ expect(board[1].prompt).toMatch(/^Next Scene: /);
+ expect(planStoryboard({ engine: "open", scenes, nextScene: "classic" })[1].modelId).toBe("oss-qwen-next-scene");
+ expect(planStoryboard({ engine: "cloud", scenes, nextScene: "classic" })[1].modelId).toBe("qwen-image-edit-2509-cloud");
+ });
+
+ it("runs akhaliq's LoRA at 0.7 on a softened previous panel, the prompt led by Next Scene: once", async () => {
+ const m = getModel("oss-qwen-image-21-next-scene")!;
+ expect(m.routes.map((r) => r.endpoint)).toEqual(["qwen-image-21-next-scene"]);
+ expect(m.options.loras?.map((l) => [l.file, l.strength])).toEqual([["Qwen-Image-2.1-Next-Scene-step2500.safetensors", 0.7]]);
+ const plan = planGeneration({ feature: "storyboard", modelId: m.id, prompt: "Next Scene: the camera pulls back", inputs: { images: ["/api/files/p.png"] } }, getModel, getPreset);
+ expect(plan.prompt).toBe("Next Scene: the camera pulls back");
+ const { workflow: wf } = await prepare("qwen-image-21-next-scene", { prompt: "the camera pulls back", images: ["/api/files/p.png"], loras: plan.loras }, "edit");
+ expect(wf["30"].inputs.prompt).toBe("Next Scene: the camera pulls back");
+ // The graph loads the LoRA itself: the plan's copy isn't added twice.
+ expect(ofClass(wf, "LoraLoaderModelOnly").map(([, n]) => [n.inputs.lora_name, n.inputs.strength_model])).toEqual([["Qwen-Image-2.1-Next-Scene-step2500.safetensors", 0.7]]);
+ expect(wf["15"]).toMatchObject({ class_type: "ImageBlur", inputs: { blur_radius: 1, sigma: 0.5, image: ["10", 0] } });
+ expect(wf["20"].inputs.image).toEqual(["15", 0]);
+ // No character reference: its branch goes.
+ expect(wf["11"]).toBeUndefined();
+ expect(wf["30"].inputs["images.image_2"]).toBeUndefined();
+ expect(wf["32"].inputs).toMatchObject({ steps: 28, cfg: 1 });
+ expect(entry("qwen-image-21-next-scene").validated).toBe(true);
+ expect(index.workflows["qwen-image-21-next-scene"].files).toContain("loras/Qwen-Image-2.1-Next-Scene-step2500.safetensors");
+ });
+});
+
+describe("licences, recorded and switched on", () => {
+ it("lists each LoRA in the library with its pinned file and licence", () => {
+ const want: Record<string, string> = {
+ [TIERS.draft.file]: "Qwen Research",
+ [TIERS.fast.file]: "Not stated in the repository",
+ [TIERS.details.file]: "Qwen Research",
+ "Qwen-Image-2.1-Next-Scene-step2500.safetensors": "Apache-2.0",
+ };
+ for (const [file, licence] of Object.entries(want)) {
+ const e = libraryEntry({ file })!;
+ expect(e, file).toBeDefined();
+ expect(e.group).toBe("adapter");
+ expect(e.licence.name).toContain(licence);
+ expect(e.sha256).toMatch(/^[0-9a-f]{64}$/);
+ expect(e.url).toMatch(/\/resolve\/[0-9a-f]{40}\//);
+ }
+ });
+
+ it("gives the small-GPU and next-scene models a licence row each", () => {
+ for (const id of ["oss-qwen-image-21-small", "oss-qwen-image-21-next-scene"]) {
+ const l = modelLicence(getModel(id)!);
+ expect(l.licence.name, id).toMatch(/Qwen Research/);
+ }
+ expect(modelLicence(getModel("oss-qwen-image-21-small")!).packs).toEqual(["zen-image-edit-comfyui"]);
+ });
+});
diff --git a/tests/storyboard.test.ts b/tests/storyboard.test.ts
index 3b8b765b..5f03cc14 100644
--- a/tests/storyboard.test.ts
+++ b/tests/storyboard.test.ts
@@ -36,15 +36,15 @@ describe("storyboard", () => {
}
});
- it("makes frame 1 on Qwen-Image 2.1 on your GPU (text to image, or an edit of up to 4 references); the next frames and the cloud stay", () => {
- expect(STORYBOARD_MODELS.open).toMatchObject({ first: "oss-qwen-image-21", firstWithRefs: "oss-qwen-image-21", next: "oss-qwen-next-scene", chainFrom: "first" });
+ it("makes frame 1 on Qwen-Image 2.1 on your GPU (text to image, or an edit of up to 4 references), and the next frames on its Next-Scene LoRA; the cloud stays", () => {
+ expect(STORYBOARD_MODELS.open).toMatchObject({ first: "oss-qwen-image-21", firstWithRefs: "oss-qwen-image-21", next: "oss-qwen-image-21-next-scene", chainFrom: "first" });
expect(STORYBOARD_MODELS.cloud).toMatchObject({ first: "z-image-turbo-cloud", firstWithRefs: "qwen-image-edit-2511-cloud", next: "qwen-image-edit-2509-cloud" });
const scenes = ["a girl waits at a bus stop", "the bus arrives"];
const plain = planStoryboard({ engine: "open", scenes, aspectRatio: "21:9", resolution: "1K" });
expect(plain[0]).toMatchObject({ modelId: "oss-qwen-image-21", params: { aspectRatio: "21:9", resolution: "1K" } });
expect(plain[0].inputs).toBeUndefined();
expect(graph(plain[0])).toBe("qwen-image-21-t2i");
- expect(plain[1].modelId).toBe("oss-qwen-next-scene");
+ expect(plain[1].modelId).toBe("oss-qwen-image-21-next-scene");
const refs = ["/api/files/a.png", "/api/files/b.png", "/api/files/c.png", "/api/files/d.png", "/api/files/e.png"];
const withRefs = planStoryboard({ engine: "open", scenes, references: refs });
expect(withRefs[0]).toMatchObject({ modelId: "oss-qwen-image-21", inputs: { images: refs.slice(0, 4) } });
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index ee94d078..b5aa4f59 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -10702,7 +10702,7 @@
"customNodes": [],
"vramGb": 20,
"license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only",
- "validated": true,
+ "validated": false,
"notes": "The Qwen-Image 2.1 text-to-image workflow, its subgraph flattened: int8 model, Qwen3-VL 8B int8 text encoder (type qwen_image), TextEncodeQwenImage21 (no negative, resolution 1024, no images), EmptyLatentImage, KSampler 25 steps, cfg 1, euler, simple, denoise 1. Removed: the ResolutionSelector (width/height bind the latent, multiples of 32, native up to 2048x2048) and the SaveImageAdvanced (SaveImage after SplitImageWithAlpha, as the Qwen 2.1 VAE decodes four channels). cfg 1: no negative prompt. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."
},
{
@@ -10810,7 +10810,7 @@
"customNodes": [],
"vramGb": 20,
"license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only",
- "validated": true,
+ "validated": false,
"notes": "The 25-step Qwen-Image 2.1 edit behind the site's preview pictures, with the references wired as in the Qwen-Image 2.1 image-edit workflow: each image scaled to 2048 on its long side (lanczos), all of them on one TextEncodeQwenImage21 (images.image_1..4, resolution 0 = each at its own size on the 32 grid, vae linked, no negative), its latent (image 1's size: no custom-size latent, which shifts the edit), QwenImage21Cache auto, KSampler 25 steps, cfg 1, euler, simple. Output follows image 1 (2048 on the long side). Images 2-4 are optional: Fuobe leaves out the branch of a reference not given. Prompt: one plain instruction, then one keep clause pointing at the picture (\"Keep ... exactly as in image 1\"); refer to references as image 1/2/3/4. Removed: the ComfySwitchNode custom size, compare and note nodes. It and qwen-image-21-turbo-edit made 133 of the site's preview edits. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."
},
{
@@ -10910,7 +10910,7 @@
"customNodes": [],
"vramGb": 20,
"license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only",
- "validated": true,
+ "validated": false,
"notes": "The Qwen-Image 2.1 turbo image-edit workflow, as the site's fast preview edits run it: turbo int8 model, the fixed 8-step ManualSigmas schedule, KSamplerSelect euler, CFGGuider cfg 1, RandomNoise, SamplerCustomAdvanced on the encoder's latent; references as qwen-image-21-edit (2048 lanczos, resolution 0, up to 4, optional ones dropped). No steps binding: the sigmas are the schedule. Removed: the prompt enhancer branch (Qwen3.5 9B PE model, off in the workflow), the custom-size switch, compare and notes. In a blind test it matched 25 steps (21 vs 22 of 48 outfit edits) and was weaker only on hard camera turns and product rotations (use qwen-image-21-edit there). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."
},
{
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index e5779724..87075ee5 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,6 +1,6 @@
{
"v": 1,
- "hash": "fa685791d20b91237777f464d6a4984cd8c73344e139bc545fe08d75af044bf5",
+ "hash": "a9d9ee19128e63e130a103bc68a664c58f133c1c970c5dcf6a9ed72591b93519",
"comfyui": {"min":"0.42.0","testedCommit":"5841c187"},
"folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","text_encoders","thinksound","upscale_models","vae"],
"sentinels": ["AILab_Qwen3ASRSubtitle","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
@@ -318,7 +318,7 @@
"palette-transfer-video": {"core":["ColorTransfer","CreateVideo","GetVideoComponents","LoadImage","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"palette-zimage-hex": {"core":["CLIPLoader","CLIPTextEncode","ColorTransfer","ConditioningZeroOut","EmptySD3LatentImage","KSampler","LoadImage","ModelSamplingAuraFlow","SaveImage","StringConcatenate","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/z_image_turbo_bf16.safetensors","text_encoders/qwen_3_4b.safetensors","vae/ae.safetensors"],"optional":[],"vramGb":12,"isolated":false,"firstRun":[],"validated":true},
"product-shot-qwen-edit-2509": {"core":["CFGNorm","CLIPLoader","EmptyImage","FluxKontextImageScale","GetImageSize","ImageCompositeMasked","InvertMask","KSampler","LoadBackgroundRemovalModel","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","RemoveBackground","SaveImageAdvanced","StringConcatenate","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["background_removal/birefnet.safetensors","diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors","loras/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","loras/Qwen-Image-Edit-2509-White_to_Scene.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
- "qwen-image-21-edit": {"core":["CLIPLoader","ImageScaleToMaxDimension","KSampler","LoadImage","QwenImage21Cache","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
+ "qwen-image-21-edit": {"core":["CLIPLoader","ImageScaleToMaxDimension","KSampler","LoadImage","QwenImage21Cache","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},
"qwen-image-21-edit-details": {"core":["CFGGuider","CLIPLoader","ImageScaleToMaxDimension","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
"qwen-image-21-edit-draft": {"core":["CFGGuider","CLIPLoader","ImageScaleToMaxDimension","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
"qwen-image-21-edit-fast": {"core":["CFGGuider","CLIPLoader","ImageScaleToMaxDimension","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-Lightning-4steps.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
@@ -331,12 +331,12 @@
"qwen-image-21-outpaint": {"core":["CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSampler","LoraLoaderModelOnly","QwenImage21Cache","RegexReplace","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},
"qwen-image-21-outpaint-draft": {"core":["CFGGuider","CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","RegexReplace","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},
"qwen-image-21-outpaint-fast": {"core":["CFGGuider","CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","RegexReplace","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-Lightning-4steps.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},
- "qwen-image-21-t2i": {"core":["CLIPLoader","EmptyLatentImage","KSampler","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
+ "qwen-image-21-t2i": {"core":["CLIPLoader","EmptyLatentImage","KSampler","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},
"qwen-image-21-t2i-details": {"core":["CFGGuider","CLIPLoader","EmptyLatentImage","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
"qwen-image-21-t2i-draft": {"core":["CFGGuider","CLIPLoader","EmptyLatentImage","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
"qwen-image-21-t2i-fast": {"core":["CFGGuider","CLIPLoader","EmptyLatentImage","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-Lightning-4steps.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
"qwen-image-21-t2i-small": {"core":["KSampler","ModelSamplingAuraFlow","SaveImage","SplitImageWithAlpha","UNETLoader","VAEDecode","VAELoader"],"packs":{"zen-image-edit-comfyui":["ZenImage21AdapterLoader","ZenImage21TextEncode"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":16,"isolated":false,"firstRun":["adapter_v12.safetensors (0.64 GB, the Zen fusion adapter) goes into ComfyUI/models/: github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors","ZenImage21AdapterLoader downloads Qwen/Qwen3.5-0.8B (1.7 GB, Apache-2.0) from Hugging Face on first run"]},
- "qwen-image-21-turbo-edit": {"core":["CFGGuider","CLIPLoader","ImageScaleToMaxDimension","KSamplerSelect","LoadImage","ManualSigmas","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_turbo_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},
+ "qwen-image-21-turbo-edit": {"core":["CFGGuider","CLIPLoader","ImageScaleToMaxDimension","KSamplerSelect","LoadImage","ManualSigmas","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_turbo_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},
"qwen-image-2512-t2i": {"core":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImage","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2512_fp8_e4m3fn.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"qwen-image-2512-t2i-lightning": {"core":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImage","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2512_fp8_e4m3fn.safetensors","loras/Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"qwen-image-edit-2509": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImageAdvanced","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors","loras/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},