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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Qwen-Image 2.1: the 16 GB route runs on Auto only on a card under 20 GB that has it set up, and says it reads English only
Claudeb855aa2a9654
diff --git a/docs/research/fuobe-originals-recipes-5.json b/docs/research/fuobe-originals-recipes-5.jsonindex d64b8b06..544fea39 100644--- a/docs/research/fuobe-originals-recipes-5.json+++ b/docs/research/fuobe-originals-recipes-5.json@@ -24598,9 +24598,9 @@"file": "Qwen-Image-2.1-Next-Scene-step2500.safetensors","strength": 0.7,"trigger": "Next Scene:",- "licence": "Apache-2.0",- "commercial": true,- "hostedOk": true,+ "licence": "Apache-2.0 as a tag on its card only, without a LICENSE file in the repository; an adapter of Qwen-Image 2.1 (Qwen Research License), so non-commercial through its base",+ "commercial": false,+ "hostedOk": false,"released": "2026-10-07","revision": "67ce88cd413fe177758af5d91e25eb3a334aa06f","sha256": "55482093e8b8a80183810037df12f804196cee58e9e85311dc4f3bacf27a60b0",diff --git a/docs/research/new-models-10.md b/docs/research/new-models-10.mdindex a3625ed8..b3021583 100644--- a/docs/research/new-models-10.md+++ b/docs/research/new-models-10.md@@ -434,7 +434,7 @@ Tests: library tests (each tier's sigmas, LoRA pins, sizes), chooser tests, Stor- DMD2 (`linoyts/…-DMD2-2steps` @ 5bae2836): the pinned revision also holds a **v1.5** file (`pytorch_lora_weights_v1_5.safetensors`, 2026-10-30, better prompt adherence and edit fidelity, same settings); licence confirmed as Qwen Research (card and NOTICE). Sigmas [1.0, 0.5], no shift.- Pruna: the ComfyUI export is `PrunaAI/P-Q-Image-2.1-Comfy` @ aa7dcecb (the base repo is @ b479282e). Both v0.2 adapters load with the core LoraLoaderModelOnly (344 MB each); v0.2 ManualSigmas 1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0; strength 1, euler, CFG 1; trained at 1K only; at most 3 references for edits. "6-steps-upsampled" is the one with the prompt upsampler distilled in; "6-steps" is the preservation one.- Fun Acc (`alibaba-pai/Qwen-Image-2.1-Fun-Acc-LoRAs` @ f7545234, 345.6 MB, Qwen Research): not a plain LoRA. It is a Parallel Decoding Distillation export that replaces the output head and overrides the attention norms (`pdd_config.json`, `lora_utils_pdd.py`), with its own 4-step grid 1.0, 0.917, 0.786, 0.549, 0; core ComfyUI can't load it as a LoRA, so Fast uses Lightning.-- Zen Image Edit: the 0.64 GB `adapter_v12.safetensors` isn't in the Hugging Face repository (`AiArtLab/zen-image-edit` @ 3d571755 holds the merged diffusers model, 14.5 GB DiT + 1.7 GB encoder + VAE); it is a GitHub release asset of `recoilme/zen-image-edit-comfyui` (release v2 @ 7a29e58c, nodes Apache-2.0, `transformers>=5.17`: the pinned ComfyUI's venv has 5.22.1). Its loader reads the adapter by path and fetches Qwen/Qwen3.5-0.8B by id. The model author's static shift 5.0 replaces ComfyUI's 0.69. `t8star/Zen-Image-Edit-Comfy` is a 17.0 GB single checkpoint (too big for 16 GB without offload).+- Zen Image Edit: the 0.64 GB `adapter_v12.safetensors` isn't in the Hugging Face repository (`AiArtLab/zen-image-edit` @ 3d571755 holds the merged diffusers model, 14.5 GB DiT + 1.7 GB encoder + VAE); it is a GitHub release asset of `recoilme/zen-image-edit-comfyui` (release v2 @ 7a29e58c, nodes Apache-2.0, `transformers>=5.17`: the pinned ComfyUI's venv has 5.22.1). Its loader reads the adapter by path and fetches Qwen/Qwen3.5-0.8B by id. Fuobe tracks the adapter as a pinned download in models/text_encoders (release v2, 638,987,136 bytes, sha256 85578cd0b41dfac3fad1845be2755971367deee5348a692feb589a09d120ea8c, read 2026-11-01) and binds its full path from the server's model folders; Qwen/Qwen3.5-0.8B is pinned at 2fc06364715b967f1860aea9cf38778875588b17 (Apache-2.0) in its setup command, and used from models/text_encoders/qwen3.5_0.8b when present. Auto picks this route only on a card under 20 GB where the pre-flight reads it ready (a 24 GB card reads about 23.65 GiB, so the brief's 24 GB line would have caught every 4090). The model author's static shift 5.0 replaces ComfyUI's 0.69. `t8star/Zen-Image-Edit-Comfy` is a 17.0 GB single checkpoint (too big for 16 GB without offload).- Texture-Fix VAE: `madebyollin/texture-fix-vae-for-qwen-image-2.1` @ 9a10df81, `texture_fix_vae_for_qwen_image_2.1_bf16.safetensors` (675,509,688 bytes), Qwen Research; the 2026-10-05 update also removes fp16 NaNs. Zen's own VAE is a further decoder finetune of it (not in a ComfyUI file).- Next-Scene (`akhaliq/Qwen-Image-2.1-Next-Scene-LoRA` @ 67ce88cd): the API now answers; its card's licence tag is apache-2.0 (no LICENSE file). Recommended file `next_scene_step2500.safetensors` (335.6 MB, diffusers / ComfyUI keys); strength 0.7-0.9, and for clean chains 0.7 or less with a 0.5 px Gaussian blur on each chained input; 28 steps, CFG 1; trained at 512 px on Sintel and Tears of Steel pairs.diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjsindex 6f7dd1f4..2beadfae 100644--- a/scripts/comfy/build-library.mjs+++ b/scripts/comfy/build-library.mjs@@ -80,7 +80,7 @@ export const LOADER_FOLDERS = {REUSELoader: { model: 'reuse' },};// Nodes that fetch their own weights at runtime (no manual download needed; listed in the entry's autoDownloads).-// Zen Image Edit's adapter loader reads a path and fetches Qwen3.5-0.8B by id (nm10-qwen21-fast): its autoDownloads say both.+// Zen Image Edit's adapter loader reads paths (nm10-qwen21-fast): its adapter is a requiredModels file, Qwen3.5-0.8B its autoDownloads.const SELF_DOWNLOADING = new Set(['RIFE VFI', 'DownloadAndLoadWav2VecModel', 'RMBG', 'AILab_Qwen3ASRSubtitle', 'Apply Whisper', 'ClothesSegment', 'LatentSyncNode', 'ZenImage21AdapterLoader']);// Binding keys whose input is a user-supplied model file (not part of "models").const USER_MODEL_KEYS = new Set(['lora', 'loraHigh', 'loraLow', 'upscaleModel']);@@ -192,6 +192,8 @@ async function hfSize(url, cache) {// follow that one. The download's own redirect, to the CDN, carries the size and isn't followed.const moved = res.headers.get('location');if ([301, 302, 307, 308].includes(res.status) && moved?.startsWith('/')) res = await fetch(new URL(moved, url), { method: 'HEAD', redirect: 'manual' });+ // A GitHub release asset (Zen Image Edit's adapter) redirects to its storage, which answers with the size.+ else if ([301, 302, 307, 308].includes(res.status) && /^https:\/\/github\.com\/[^/]+\/[^/]+\/releases\/download\//.test(url)) res = await fetch(url, { method: 'HEAD' });const linked = res.headers.get('x-linked-size');const len = linked || (res.status === 200 ? res.headers.get('content-length') : null);if (res.status === 401 || res.status === 403) {diff --git a/scripts/comfy/build-requirements.mjs b/scripts/comfy/build-requirements.mjsindex 4a2518e3..2a42e93e 100644--- a/scripts/comfy/build-requirements.mjs+++ b/scripts/comfy/build-requirements.mjs@@ -143,9 +143,10 @@ export function buildIndex({ manifest, graphs, subset, packs, pins, packClassesurl,pinnedUrl: pin ? pinUrl(url, pin.revision) : url,sizeBytes: pin?.sizeBytes ?? Math.round(r.sizeGb * 1e9),- // The hash rides along where a copied command checks it: formats that can run code when they load (.pth, .ckpt…)- // and the other non-safetensors files. Every file's sha256 stays in model-pins.json (the size budget, §4.3).- ...(pin?.sha256 && ext !== '.safetensors' && { sha256: pin.sha256 }),+ // The hash rides along where a copied command checks it: formats that can run code when they load (.pth, .ckpt…),+ // the other non-safetensors files, and a file from outside Hugging Face (a release asset, which its owner can replace).+ // Every file's sha256 stays in model-pins.json (the size budget, §4.3).+ ...(pin?.sha256 && (ext !== '.safetensors' || !hfParts(url)) && { sha256: pin.sha256 }),gated: r.gated,...(packFolder.has(r.folder) && { packFolder: packFolder.get(r.folder) }),presence,@@ -282,17 +283,20 @@ export async function refreshPins(dir = LIBRARY, { token = process.env.HF_TOKEN,// Group by repo and revision asked for.const groups = new Map();const failed = [];+ const byHand = [];for (const url of urls) {const p = hfParts(url);if (!p) {- failed.push({ url, why: 'not a Hugging Face resolve URL' });+ // A release asset elsewhere (Zen Image Edit's adapter on GitHub): its pin is kept by hand.+ failed.push({ url, why: 'not a Hugging Face resolve URL (pin kept by hand)' });+ byHand.push(url);continue;}const k = `${p.kind}\u0000${p.repo}\u0000${p.rev}`;if (!groups.has(k)) groups.set(k, { ...p, items: [] });groups.get(k).items.push({ url, path: p.path });}- const pins = {};+ const pins = Object.fromEntries(byHand.flatMap((url) => (old[url] ? [[url, old[url]]] : [])));for (const g of groups.values()) {let sha = /^[0-9a-f]{40}$/.test(g.rev) ? g.rev : null;try {diff --git a/scripts/comfy/hand-built/qwen-image-21-edit-fast.json b/scripts/comfy/hand-built/qwen-image-21-edit-fast.jsonindex e4544b99..9adf0a48 100644--- a/scripts/comfy/hand-built/qwen-image-21-edit-fast.json+++ b/scripts/comfy/hand-built/qwen-image-21-edit-fast.json@@ -281,7 +281,7 @@},"73": {"inputs": {- "sigmas": "1.0, 0.857192, 0.666756, 0.400096, 0.0"+ "sigmas": "1.0, 0.917701, 0.787999, 0.553369, 0.0"},"class_type": "ManualSigmas","_meta": {diff --git a/scripts/comfy/hand-built/qwen-image-21-edit-small.json b/scripts/comfy/hand-built/qwen-image-21-edit-small.jsonindex 078acb80..55c484ad 100644--- a/scripts/comfy/hand-built/qwen-image-21-edit-small.json+++ b/scripts/comfy/hand-built/qwen-image-21-edit-small.json@@ -2,7 +2,7 @@"1": {"inputs": {"model_folder": "",- "adapter_file": "models/adapter_v12.safetensors",+ "adapter_file": "models/text_encoders/adapter_v12.safetensors","text_encoder": "Qwen/Qwen3.5-0.8B","dtype": "bf16"},diff --git a/scripts/comfy/hand-built/qwen-image-21-t2i-small.json b/scripts/comfy/hand-built/qwen-image-21-t2i-small.jsonindex 22d3d14c..1e7f08b2 100644--- a/scripts/comfy/hand-built/qwen-image-21-t2i-small.json+++ b/scripts/comfy/hand-built/qwen-image-21-t2i-small.json@@ -2,7 +2,7 @@"1": {"inputs": {"model_folder": "",- "adapter_file": "models/adapter_v12.safetensors",+ "adapter_file": "models/text_encoders/adapter_v12.safetensors","text_encoder": "Qwen/Qwen3.5-0.8B","dtype": "bf16"},diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex 8c81e788..8ae44f68 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -392,6 +392,9 @@ export const KNOWN_MODELS = {'Qwen-Image-2.1-Lightning-4steps.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/6b0a1176327c01522a44276c5da67331a025b6fc/pytorch_lora_weights.safetensors' },'p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors': { folder: 'loras', 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' },'Qwen-Image-2.1-Next-Scene-step2500.safetensors': { folder: 'loras', url: 'https://huggingface.co/akhaliq/Qwen-Image-2.1-Next-Scene-LoRA/resolve/67ce88cd413fe177758af5d91e25eb3a334aa06f/next_scene_step2500.safetensors' },+ // Zen Image Edit's fusion adapter (nm10-qwen21-fast): a GitHub release asset of recoilme/zen-image-edit-comfyui (release v2,+ // sha256 and size in model-pins.json), kept in models/text_encoders; the loader is given its full path at run time.+ 'adapter_v12.safetensors': { folder: 'text_encoders', url: 'https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors' },'texture_fix_vae_for_qwen_image_2.1_bf16.safetensors': { folder: 'vae', url: 'https://huggingface.co/madebyollin/texture-fix-vae-for-qwen-image-2.1/resolve/9a10df811f183323e4e94d255c18add1924ce340/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors' },// owner's SOTA families (2026-10-31): Ideogram 4 (Comfy-Org/Ideogram-4; its flux2-vae is the flux2-dev row above). `variants`:@@ -565,7 +568,13 @@ function wanI2V(variant) {// nm10-qwen21-fast: Options → Decoder "Clean" on every Qwen-Image 2.1 graph picks madebyollin's Texture-Fix VAE (the vae binding).const QWEN21_CLEAN_VAE = 'texture_fix_vae_for_qwen_image_2.1_bf16.safetensors';const QWEN21_LICENCE = 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only';-const QWEN21_CLEAN_NOTE = ' Options → Decoder "Clean" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file).';+const QWEN21_CLEAN_NOTE = ' Options → Decoder "Clean" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked).';+const QWEN21_CLEAN_LICENCE = '; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)';+// Zen Image Edit (the 16 GB route): its adapter, encoder and nodes, each with its licence and pin.+const ZEN_LICENCE = '; Zen Image Edit fusion adapter adapter_v12 (AiArtLab / recoilme, release v2 of zen-image-edit-comfyui, sha256 85578cd0): Qwen Research License; Qwen3.5-0.8B (Qwen @ 2fc06364): Apache-2.0; zen-image-edit-comfyui nodes @ 7a29e58c: Apache-2.0';+const ZEN_FIRST_RUN = [+ 'Qwen3.5-0.8B (1.7 GB, Apache-2.0), the text encoder: Fuobe uses the pinned copy in models/text_encoders/qwen3.5_0.8b when it is there (hf download Qwen/Qwen3.5-0.8B --revision 2fc06364715b967f1860aea9cf38778875588b17 --local-dir models/text_encoders/qwen3.5_0.8b); otherwise the loader downloads it from Hugging Face on first run',+];// The speed tiers' LoRAs (nm10-qwen21-fast, cards read 2026-11-01): file, licence, what the card says.const QWEN21_TIERS = {draft: {@@ -577,13 +586,13 @@ const QWEN21_TIERS = {title: '4 steps, LightX2V Lightning LoRA',license: 'LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base\'s Qwen Research License applies to what it runs on',notes: 'lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card\'s training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ' +- 'ManualSigmas holds that schedule shifted for the canvas (1 MP: 1.0, 0.857192, 0.666756, 0.400096, 0); Fuobe binds sigmas for the run\'s own size with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun\'s parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI).',+ 'ManualSigmas holds that schedule shifted for the canvas (text to image: 1 MP, 1.0, 0.857192, 0.666756, 0.400096, 0; edits: a 2048 square, 1.0, 0.917701, 0.787999, 0.553369, 0, since ImageScaleToMaxDimension scales image 1 to 2048 on its long side); Fuobe binds sigmas for the run\'s own canvas with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun\'s parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI).',},details: {title: '6 steps, P-Q-Image v0.2 upsampled LoRA (writes the details)',license: "PrunaAI's P-Q-Image-2.1 v0.2, a derivative of Qwen-Image 2.1 under the Qwen Research License (LICENSE and NOTICE in the repository)",notes: "PrunaAI/P-Q-Image-2.1-Comfy @ aa7dcecb, the 6-steps-upsampled v0.2 adapter (Pruna's distillation of the prompt upsampler into the LoRA, so short prompts come out detailed with no separate upsampling call) at strength 1, euler, CFG 1, the v0.2 ManualSigmas \"1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0\" (not interchangeable with v0.1's). " +- 'As Pruna\'s official workflows: LoraLoaderModelOnly on the base int8 model, QwenImage21Cache, CFGGuider, SamplerCustomAdvanced. Trained at 1K only; Pruna recommends at most 3 reference images for edits.',+ 'As Pruna\'s official workflows: LoraLoaderModelOnly on the base int8 model, QwenImage21Cache, CFGGuider, SamplerCustomAdvanced. Trained at 1K only; Pruna recommends at most 3 reference images for edits, so Fuobe refuses a fourth at this speed.',},};const qwen21Tier = (op, tier, base, extra) => ({@@ -597,7 +606,7 @@ const qwen21Tier = (op, tier, base, extra) => ({...(base.packs && { packs: base.packs }),vramGb: 20,optionalModels: [QWEN21_CLEAN_VAE],- license: `${QWEN21_LICENCE}; ${QWEN21_TIERS[tier].license}${extra?.license ?? ''}`,+ license: `${QWEN21_LICENCE}; ${QWEN21_TIERS[tier].license}${extra?.license ?? ''}${QWEN21_CLEAN_LICENCE}`,notes:`Options → Speed "${tier}" on qwen-image-21-${op}: the same graph with a LoraLoaderModelOnly after the UNETLoader${extra?.after ?? ''} and its KSampler replaced by ` +`RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. ${QWEN21_TIERS[tier].notes}${extra?.notes ?? ''}${QWEN21_CLEAN_NOTE}`,@@ -2606,7 +2615,7 @@ export const SPEC = [limits: { maxWidth: 2048, maxHeight: 2048, dimensionMultiple: 32 },vramGb: 20,optionalModels: [QWEN21_CLEAN_VAE],- license: 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only',+ license: `Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only${QWEN21_CLEAN_LICENCE}`,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. ' +@@ -2626,7 +2635,7 @@ export const SPEC = [limits: { maxWidth: 2048, maxHeight: 2048 },vramGb: 20,optionalModels: [QWEN21_CLEAN_VAE],- license: 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only',+ license: `Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only${QWEN21_CLEAN_LICENCE}`,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), ' +@@ -2646,7 +2655,7 @@ export const SPEC = [limits: { maxWidth: 2048, maxHeight: 2048 },vramGb: 20,optionalModels: [QWEN21_CLEAN_VAE],- license: 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only',+ license: `Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only${QWEN21_CLEAN_LICENCE}`,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). ' +@@ -2686,7 +2695,7 @@ export const SPEC = [outputs: [{ node: '90', kind: 'image' }],vramGb: 20,optionalModels: [QWEN21_CLEAN_VAE],- license: 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; AusBoss nodes MIT',+ license: `Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; AusBoss nodes MIT${QWEN21_CLEAN_LICENCE}`,notes:'The AusBoss pack\'s example "Qwen Image 2.1 Inpaint (AusBoss)", its two subgraphs flattened: ' +'Crop For Inpaint (context 1.6, blend 8 px, multiple 32, 1.5 MP, bicubic) -> GrowMask 8 on the crop\'s mask -> StringFormat "{a} Keep everything else exactly the same." -> ' +@@ -2711,7 +2720,7 @@ export const SPEC = [limits: { padMultiple: 8 },vramGb: 20,optionalModels: [QWEN21_CLEAN_VAE],- license: 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT',+ license: `Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT${QWEN21_CLEAN_LICENCE}`,notes:'The Qwen-Image 2.1 outpaint workflow (v12) as the site\'s Expand previews run it: Crop + Rotate + Pad puts the photo on a gray (#808080) canvas grown by the pads ' +'(feather 12, scaled to 1 MP on the 32 grid) -> outpaint-v2 LoRA at 1 -> Qwen3-VL 8B (the same text encoder, TextGenerate, the workflow\'s instruction, seed fixed) describes the picture, ' +@@ -2748,7 +2757,7 @@ export const SPEC = [limits: { maxWidth: 2048, maxHeight: 2048 },vramGb: 20,optionalModels: [QWEN21_CLEAN_VAE],- license: `${QWEN21_LICENCE}; Next-Scene LoRA by akhaliq: Apache-2.0 on its card (license tag; no LICENSE file), trained on Qwen-Image 2.1, whose Qwen Research License covers the base`,+ license: `${QWEN21_LICENCE}; Next-Scene LoRA by akhaliq @ 67ce88cd: an apache-2.0 tag on its card only (no LICENSE file), an adapter of Qwen-Image 2.1, so non-commercial through its base${QWEN21_CLEAN_LICENCE}`,notes:'Storyboard\'s next frame on your GPU: the qwen-image-21-edit graph with akhaliq/Qwen-Image-2.1-Next-Scene-LoRA @ 67ce88cd (next_scene_step2500, the card\'s recommended diffusers/ComfyUI conversion) at 0.7, ' +'the card\'s clean-chain recipe: strength 0.7 or less and a 0.5 px Gaussian blur on each chained input (ImageBlur radius 1, sigma 0.5 on the previous panel), 28 steps (the card\'s usage), cfg 1, euler, simple. ' +@@ -2769,14 +2778,12 @@ export const SPEC = [limits: { maxWidth: 2048, maxHeight: 2048, dimensionMultiple: 32 },vramGb: 16,optionalModels: [QWEN21_CLEAN_VAE],- autoDownloads: [- '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',- ],- license: `${QWEN21_LICENCE}; Zen Image Edit fusion adapter (AiArtLab / recoilme): Qwen Research License; Qwen3.5-0.8B: Apache-2.0; zen-image-edit-comfyui nodes: Apache-2.0`,+ requiredModels: ['adapter_v12.safetensors'],+ autoDownloads: ZEN_FIRST_RUN,+ license: `${QWEN21_LICENCE}${ZEN_LICENCE}${QWEN21_CLEAN_LICENCE}`,notes:- 'The small-GPU route (Options → GPU "Small", or Auto when the GPU has less than 24 GB): recoilme/zen-image-edit-comfyui @ 7a29e58c (release v2) as its example graph t2i_api.json, ' +- 'ZenImage21AdapterLoader (adapter_file models/adapter_v12.safetensors, a path from ComfyUI\'s working folder; text_encoder Qwen/Qwen3.5-0.8B by id; bf16) -> ZenImage21TextEncode (resolution 1024; width / height the canvas) in place of the 17.5 GB Qwen3-VL 8B, ' ++ 'The small-GPU route (Options → GPU "Small", or Auto on a card under 20 GB when this route is ready there): recoilme/zen-image-edit-comfyui @ 7a29e58c (release v2) as its example graph t2i_api.json, ' ++ 'ZenImage21AdapterLoader (adapter_file: adapter_v12.safetensors, a required file in models/text_encoders whose full path Fuobe binds from GET /experiment/models, else models/text_encoders/adapter_v12.safetensors from ComfyUI\'s folder; text_encoder: the pinned Qwen3.5-0.8B folder models/text_encoders/qwen3.5_0.8b when the server has it, else Qwen/Qwen3.5-0.8B by id; bf16) -> ZenImage21TextEncode (resolution 1024; width / height the canvas) in place of the 17.5 GB Qwen3-VL 8B, ' +'the stock Qwen-Image 2.1 DiT (here the int8 file, 7.3 GB, where the example loads bf16) -> ModelSamplingAuraFlow shift 5 (the model author\'s static shift) -> KSampler 30 steps, cfg 1, euler, simple. ' +'Conditioning cosine 0.95 (text) against the native encoder (AiArtLab/zen-image-edit @ 3d571755). English prompts only; numerals on signs can come out wrong. About 17.5 GB resident at 1024 px with the bf16 DiT (card): the int8 DiT is what brings it to 16 GB (the example graphs load bf16). Needs transformers >= 5.17.' + QWEN21_CLEAN_NOTE,},@@ -2794,11 +2801,9 @@ export const SPEC = [limits: { maxWidth: 2048, maxHeight: 2048 },vramGb: 16,optionalModels: [QWEN21_CLEAN_VAE],- autoDownloads: [- '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',- ],- license: `${QWEN21_LICENCE}; Zen Image Edit fusion adapter (AiArtLab / recoilme): Qwen Research License; Qwen3.5-0.8B: Apache-2.0; zen-image-edit-comfyui nodes: Apache-2.0`,+ requiredModels: ['adapter_v12.safetensors'],+ autoDownloads: ZEN_FIRST_RUN,+ license: `${QWEN21_LICENCE}${ZEN_LICENCE}${QWEN21_CLEAN_LICENCE}`,notes:'The small-GPU edit, as zen-image-edit-comfyui\'s edit_api.json: ZenImage21TextEncode with the VAE linked (the DiT splices the references in as latents), resolution 1024 (references resized to about 1 MP on the 32 grid, the geometry adapter v12 was tuned at), ' +'image_1 the picture to change (the canvas follows it), image_2-4 optional references (left out when not given). Same sampler as qwen-image-21-t2i-small. English prompts only.' + QWEN21_CLEAN_NOTE,diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex 051b8940..6eb4d6aa 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -377,48 +377,6 @@"error": null,"at": "2026-10-21T16:25:18.796Z"},- "qwen-image-21-edit-details": {- "sha256": "6f9bfd2edc58067b890191b3621d34eea9fae68041fa38a48c5fe426b899f046",- "validated": true,- "error": null,- "at": "2026-11-01T19:31:50.818Z"- },- "qwen-image-21-edit-draft": {- "sha256": "3e58c31b3464559f727b22ee46ea54b5594c86c3a7563d3c3c29ed1cd368d205",- "validated": true,- "error": null,- "at": "2026-11-01T19:31:47.304Z"- },- "qwen-image-21-edit-fast": {- "sha256": "e3115ead6e85061507db558634754589503ceb6c0f192a7f10ab669124f723e9",- "validated": true,- "error": null,- "at": "2026-11-01T19:31:50.425Z"- },- "qwen-image-21-next-scene": {- "sha256": "4746af6e956861071b2e4341546390c150f987ecf758041391cd1d2327bcae7e",- "validated": true,- "error": null,- "at": "2026-11-01T19:31:53.873Z"- },- "qwen-image-21-t2i-details": {- "sha256": "b94ffdeb8d884a55e98c823f0f60080bb2f3e13f3df6709c3c889c127325591e",- "validated": true,- "error": null,- "at": "2026-11-01T19:31:46.352Z"- },- "qwen-image-21-t2i-draft": {- "sha256": "70237732a98d072e569dd7fb9588a91a0e285b7088e9664276d01ec1fbb25079",- "validated": true,- "error": null,- "at": "2026-11-01T19:31:46.099Z"- },- "qwen-image-21-t2i-fast": {- "sha256": "4869518eaa2fbbd4add385feddfaf0c853d0acb6172fc0f6b528d7d1c3cad65b",- "validated": true,- "error": null,- "at": "2026-11-01T19:31:46.235Z"- },"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.tsxindex 50da336f..fccfc04c 100644--- a/src/app/(studio)/image/small-gpu/page.tsx+++ b/src/app/(studio)/image/small-gpu/page.tsx@@ -1,9 +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).+ * The GPU pre-flight board's "Image on a 16 GB GPU" row (/connect) opens the Image studio on Qwen-Image 2.1: on a card under+ * 20 GB with the small route ready, its Options → GPU picks the small encoder by itself (src/server/qwen21-gpu.ts).*/export default function Page() {- redirect("/image");+ redirect("/image?model=oss-qwen-image-21");}diff --git a/src/app/api/generations/route.ts b/src/app/api/generations/route.tsindex 9cb81aad..5471e702 100644--- a/src/app/api/generations/route.ts+++ b/src/app/api/generations/route.ts@@ -188,7 +188,7 @@ export async function POST(request: Request) {return Response.json({ error: OWN_GPU_TOOL_MESSAGE, code: "own-gpu-tool" }, { status: 403 });}const skip = (body as { gpuCheck?: unknown } | null)?.gpuCheck === "skip";- const gate = await gateGeneration(gpuTargetFor(request, "read"), { request: req, route: planned.route, op: planned.op, modelId: planned.model.id, skip, actor: account?.id ?? "owner" });+ const gate = await gateGeneration(gpuTargetFor(request, "read"), { request: req, route: planned.route, op: planned.op, modelId: planned.model.id, gpu: planned.gpu, skip, actor: account?.id ?? "owner" });if (!gate.ok) {if (account) unhit(`run:${account.id}`);return Response.json({ error: gate.message, code: "gpu-setup", ref: gate.ref, plan: gate.plan }, { status: 409, headers: { [GPU_SETUP_HEADER]: "1" } });diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsxindex 0ccdcd3f..1aa80581 100644--- a/src/components/studio/composer.tsx+++ b/src/components/studio/composer.tsx@@ -80,6 +80,7 @@ import {viewerDefaults,writesCaptions,} from "@/lib/composer";+import { qwen21Note } from "@/lib/qwen21-speed";import { formatCost } from "@/lib/format";import { toastError } from "@/lib/refusals";import { addKeyLabel, billedTo, CLOUD_KEY, needsKey, paidThrough, startingModel } from "@/lib/your-keys";@@ -807,6 +808,8 @@ export function Composer({ docked }: { docked: boolean }) {preset?.userPrompt,);const effectiveOp = studioOp ?? op;+ // Qwen-Image 2.1's Options → GPU on Small: what the small encoder can't do (or that a speed with its own graph wins).+ const smallGpuNote = qwen21Note(opts.controls, p.extra, effectiveOp);// SDR to HDR, Export: every format the studio's models on this engine write; picking one this model doesn't// write moves the request to the model that does (EXR frames → LTX 2.3 HDR on the cloud).const engineModels = useMemo(() => models.filter((m) => m.engine === (model?.engine ?? engine)), [models, model?.engine, engine]);@@ -1595,6 +1598,7 @@ export function Composer({ docked }: { docked: boolean }) {)}{sketched.note && <p className="px-2 pt-1 text-[12px] text-muted-foreground">{sketched.note}</p>}{signed.notes.length > 0 && <p className="px-2 pt-1 text-[12px] text-muted-foreground">{signed.notes.join(" · ")}</p>}+ {smallGpuNote && <p className="px-2 pt-1 text-[12px] text-muted-foreground">{smallGpuNote}</p>}{model && op && model.options.endFrame === undefined && draft.slots.endImage?.ref && (<p className="px-2 pt-1 text-[12px] text-warning">{model.name} ignores the end frame — pick Kling 2.5, Veo 3.1, Seedance or Wan 2.2 to use it.</p>)}diff --git a/src/lib/catalog/lora-library.generated.ts b/src/lib/catalog/lora-library.generated.tsindex d81716ca..32e524eb 100644--- a/src/lib/catalog/lora-library.generated.ts+++ b/src/lib/catalog/lora-library.generated.ts@@ -3321,10 +3321,10 @@ export const LORA_LIBRARY: LoraEntry[] = ["sha256": "55482093e8b8a80183810037df12f804196cee58e9e85311dc4f3bacf27a60b0","sizeBytes": 335605648,"licence": {- "commercial": true,- "hostedOk": true,+ "commercial": false,+ "hostedOk": false,"snapshotDate": "2026-11-01",- "name": "Apache-2.0"+ "name": "Apache-2.0 as a tag on its card only, without a LICENSE file in the repository; an adapter of Qwen-Image 2.1 (Qwen Research License), so non-commercial through its base"},"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.tsindex 1f0c5fcd..b130108e 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -137,7 +137,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; Draft to Full speed · 16–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 · English prompts only on a 16 GB GPU, any language on a 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.@@ -163,7 +163,7 @@ const open: ModelDef[] = [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.+ // (Small, or Auto under 20 GB when the route is ready: src/server/qwen21-gpu.ts). 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",diff --git a/src/lib/comfy-variants.ts b/src/lib/comfy-variants.tsindex c10b83b5..4d9fa402 100644--- a/src/lib/comfy-variants.ts+++ b/src/lib/comfy-variants.ts@@ -48,8 +48,6 @@ 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. */@@ -68,8 +66,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);+ // Qwen-Image 2.1: Options → Speed's graph, or the small encoder's when Options → GPU says Small (src/lib/qwen21-speed.ts).+ endpoint = qwen21Graph(endpoint, r.extra, 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/gpu/commands.ts b/src/lib/gpu/commands.tsindex 6d074a09..1282251f 100644--- a/src/lib/gpu/commands.ts+++ b/src/lib/gpu/commands.ts@@ -142,12 +142,16 @@ function packLines(shell: Shell, l: Layout, name: string, p: IndexPack, kind: Streturn [`git clone ${p.repo} ${dest}`, `git -C ${dest} checkout ${p.commit}`, ...pip];}-function download(shell: Shell, dir: string, target: string, url: string, auth: "" | "hf" | "civitai", replace: boolean): string[] {+function download(shell: Shell, dir: string, target: string, url: string, auth: "" | "hf" | "civitai", replace: boolean, sha256?: string): string[] {const header =auth === "hf" ? (shell === "ps" ? ' -H "Authorization: Bearer $env:HF_TOKEN"' : ' -H "Authorization: Bearer $HF_TOKEN"') : auth === "civitai" ? (shell === "ps" ? ' -H "Authorization: Bearer $env:CIVITAI_KEY"' : ' -H "Authorization: Bearer $CIVITAI_KEY"') : "";const lines = [shell === "ps" ? `New-Item -ItemType Directory -Force -Path ${dir} | Out-Null` : `mkdir -p ${dir}`];if (replace) lines.push(shell === "ps" ? `Remove-Item -Force ${target}` : `rm -f ${target}`);lines.push(`${shell === "ps" ? "curl.exe" : "curl"} -L -C - --fail${header} -o ${target} "${url}"`);+ // A file whose hash the index carries (a release asset outside Hugging Face, a format that can run code): checked once down.+ if (sha256 && /^[0-9a-f]{64}$/.test(sha256)) {+ lines.push(shell === "ps" ? `if ((Get-FileHash ${target} -Algorithm SHA256).Hash -ne "${sha256.toUpperCase()}") { throw "${sha256.slice(0, 8)}: the download doesn't match" }` : `echo "${sha256} "${target} | (sha256sum -c - 2>/dev/null || shasum -a 256 -c -)`);+ }return lines;}@@ -188,7 +192,7 @@ function stepLines(shell: Shell, l: Layout, s: CommandStep, ctx: CommandContext)if (!f) return [];const url = cleanUrl(f.pinnedUrl) ?? cleanUrl(f.url);if (!url || !plain(f.file) || !plain(f.folder)) return [comment(shell, `Download ${f.file} into models/${f.folder}`)];- return download(shell, l.modelDir(shell, f.folder), l.modelDir(shell, f.folder, f.file), url, f.gated ? "hf" : "", s.kind === "model-replace");+ return download(shell, l.modelDir(shell, f.folder), l.modelDir(shell, f.folder, f.file), url, f.gated ? "hf" : "", s.kind === "model-replace", f.sha256);}case "lora": {const lo = s.lora;diff --git a/src/lib/gpu/readiness.ts b/src/lib/gpu/readiness.tsindex c7c9a376..c161883d 100644--- a/src/lib/gpu/readiness.ts+++ b/src/lib/gpu/readiness.ts@@ -102,11 +102,22 @@ export interface WorkflowReadiness {reason?: string;}+/** Whether the ComfyUI runs on its CPU (no device, --cpu, or a device that isn't a graphics card): its "VRAM" is system RAM. */+const onCpu = (inv: GpuInventory) => {+ const d = inv.devices[0];+ return !d || !!inv.comfy?.flags.cpuOnly || !(d.type === "cuda" || d.type === "mps" || d.type === "xpu");+};++/** The graphics card's memory in GB as the check reads it (rounded: vramGb), undefined on a CPU or with no reading. */+export function gpuVramGb(inv: GpuInventory): number | undefined {+ return onCpu(inv) ? undefined : vramGb(inv.devices[0]?.vramTotal);+}+export function vramFit(needGb: number, inv: GpuInventory): ToolReadiness["vram"] {const d = inv.devices[0];- const cpu = !d || inv.comfy?.flags.cpuOnly || !(d.type === "cuda" || d.type === "mps" || d.type === "xpu");- const haveGb = cpu ? 0 : (vramGb(d.vramTotal) ?? 0);- const apple = !cpu && d.type === "mps";+ const cpu = onCpu(inv);+ const haveGb = gpuVramGb(inv) ?? 0;+ const apple = !cpu && d?.type === "mps";let fit: VramFit;if (!needGb) fit = "any";else if (haveGb >= needGb) fit = "fits";diff --git a/src/lib/qwen21-speed.ts b/src/lib/qwen21-speed.tsindex 026d8a7e..dcb635bd 100644--- a/src/lib/qwen21-speed.ts+++ b/src/lib/qwen21-speed.ts@@ -9,8 +9,9 @@ import type { ModelOptions } from "@/lib/catalog/types";* 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 → GPU: Zen Image Edit's 0.8B encoder in place of the 17.5 GB Qwen3-VL 8B for text to image and edits at Full+ * speed: when asked (Small), or on Auto when the GPU check reads a graphics card under 20 GB and the small route is ready+ * there (src/server/qwen21-gpu.ts decides once per run, so the pre-flight and the run take the same graph).* - 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.@@ -32,13 +33,29 @@ export const QWEN21_SMALL_GPU_GRAPH: Record<string, string> = {"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;+/**+ * Below this much graphics memory (GB, rounded as the GPU check reads it: src/lib/gpu/requirements.ts vramGb), Auto runs the+ * small encoder: the full graph needs about 20 GB (Qwen3-VL 8B int8 9.4 GB + the int8 model 7.3 GB + activations). A 24 GB card+ * (an RTX 4090 reads 23.65 GiB, which rounds to 24) keeps the full encoder.+ */+export const SMALL_GPU_BELOW_GB = 20;export const SPEED_PARAM = "speed";export const GPU_PARAM = "gpu";export const DECODER_PARAM = "decoder";+/** The most pictures "Fast · writes the details" edits with (Pruna's card: at most 3 references). */+export const DETAILS_MAX_IMAGES = 3;++/** Zen Image Edit's fusion adapter (release v2 of recoilme/zen-image-edit-comfyui), a tracked download in models/text_encoders. */+export const ZEN_ADAPTER = { folder: "text_encoders", file: "adapter_v12.safetensors" } as const;++/**+ * Zen Image Edit's text encoder, Qwen3.5-0.8B (Apache-2.0), at the revision its setup command pins, in its own folder under+ * models/text_encoders (the folder the pack's README downloads it to). Without that folder the loader fetches it by id.+ */+export const ZEN_ENCODER = { id: "Qwen/Qwen3.5-0.8B", revision: "2fc06364715b967f1860aea9cf38778875588b17", dir: "qwen3.5_0.8b", weights: "model.safetensors-00001-of-00001.safetensors" } as const;+/** 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";@@ -69,15 +86,21 @@ export const QWEN21_SPEED: Control = {ops: SPEED_OPS,};-/** Options → GPU: Auto picks Small under 24 GB of graphics memory (text to image and edits). */+/** Options → GPU: Auto picks Small on a card under 20 GB when the small route is ready (text to image and edits, Full speed). */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" },+ labels: { large: "20 GB or more", small: "Small GPU (16 GB) · Full speed, English prompts only" },ops: { large: ["t2i", "edit", "inpaint", "outpaint"], small: ["t2i", "edit"] },};+/** What the small encoder can't do, as the composer and a run's notes say it. */+export const SMALL_GPU_NOTE = "Small GPU: English prompts only, and numbers on signs can come out wrong";++/** Small with a speed that has its own graph: the speed wins. */+export const SMALL_GPU_AT_FULL = "Small GPU applies at Full speed only: this speed needs a 20 GB GPU";+/** Options → Decoder: Clean is the Texture-Fix VAE (cleaner fine texture, no checkerboard), off by default. */export const QWEN21_DECODER: Control = {param: DECODER_PARAM,@@ -88,24 +111,50 @@ export const QWEN21_DECODER: Control = {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. */+/** Whether a graphics card of this size (GB, rounded as the GPU check reads it; undefined for a CPU or no reading) is small. */export function smallGpu(vramGb: number | undefined): boolean {return typeof vramGb === "number" && vramGb > 0 && vramGb < SMALL_GPU_BELOW_GB;}+/** The speed asked for (Full when none). */+const speedOf = (extra: Record<string, unknown>): Qwen21Speed => (typeof extra[SPEED_PARAM] === "string" ? (extra[SPEED_PARAM] as Qwen21Speed) : "full");++/** The speed tier's graph this run takes, when the speed has one for this operation's graph. */+function tierGraph(endpoint: string, extra: Record<string, unknown>, has: (id: string) => boolean): string | undefined {+ const speed = speedOf(extra);+ const tier = speed !== "full" ? QWEN21_SPEED_GRAPH[endpoint]?.[speed] : undefined;+ return tier && has(tier) ? tier : undefined;+}+/**- * 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`.+ * The small encoder's graph a run on `endpoint` would take with Options → GPU on Small: text to image and edits with no+ * speed tier (Full, or a speed this operation doesn't have). A speed's graph wins over Small (it loads the full encoder).*/-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.+export function smallGraphFor(endpoint: string, extra: Record<string, unknown>, has: (id: string) => boolean): string | undefined {+ if (tierGraph(endpoint, extra, has)) return undefined;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;+ return small && has(small) ? small : undefined;+}++/**+ * The graph a Qwen-Image 2.1 run takes: the speed's graph when it has one for this operation; else the small encoder's when+ * Options → GPU says Small (a run on Auto has had it decided already: src/server/qwen21-gpu.ts). Anything else keeps `endpoint`.+ */+export function qwen21Graph(endpoint: string, extra: Record<string, unknown>, has: (id: string) => boolean): string {+ const tier = tierGraph(endpoint, extra, has);+ if (tier) return tier;+ const small = extra[GPU_PARAM] === "small" ? smallGraphFor(endpoint, extra, has) : undefined;+ return small ?? endpoint;+}++/**+ * The composer's note under Qwen-Image 2.1's options: what Small can't do when it is picked for an operation that has it, and+ * that Small runs at Full speed only when a speed with its own graph is picked with it.+ */+export function qwen21Note(controls: readonly { param: string }[] | undefined, extra: Record<string, unknown> | undefined, op: string | undefined): string | undefined {+ if (!controls?.some((c) => c.param === GPU_PARAM) || extra?.[GPU_PARAM] !== "small" || !op || !QWEN21_GPU.ops?.small.includes(op)) return undefined;+ const speed = speedOf(extra);+ return speed !== "full" && SPEED_OPS[speed]?.includes(op) ? SMALL_GPU_AT_FULL : SMALL_GPU_NOTE;}// ---------------------------------------------------------------------------@@ -128,6 +177,19 @@ export function lightningSigmas(width: number, height: number): string {return [...shifted.map((s) => String(Math.round(s * 1e6) / 1e6)), "0"].join(", ");}+/** The long side every Qwen-Image 2.1 edit samples at: ImageScaleToMaxDimension (largest_size 2048) scales image 1 up or down to it. */+export const EDIT_LONG_SIDE = 2048;++/**+ * The canvas an edit samples: image 1 scaled so its long side is 2048 (larger or smaller), on the 32 px grid+ * TextEncodeQwenImage21 rounds the latent to.+ */+export function editCanvas(width: number, height: number): { width: number; height: number } {+ const k = EDIT_LONG_SIDE / Math.max(width, height);+ const on32 = (x: number) => Math.max(32, Math.round((x * k) / 32) * 32);+ return { width: on32(width), height: on32(height) };+}+/** 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] : [])));diff --git a/src/server/generations.ts b/src/server/generations.tsindex d54e1d3e..f8c0ffc4 100644--- a/src/server/generations.ts+++ b/src/server/generations.ts@@ -1,5 +1,4 @@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";@@ -50,6 +49,9 @@ import {import { db } from "./db";import { listElements } from "./elements";import { markStale } from "./gpu/snapshots";+import { loadIndex } from "./gpu/index-file";+import { qwen21Gpu } from "./qwen21-gpu";+import { DETAILS_MAX_IMAGES, GPU_PARAM, QWEN21_SPEED, speedLora } from "@/lib/qwen21-speed";import { BLOCKED_CARD_MESSAGE, looksBlocked } from "./safety-card";import { pollTrainings } from "./training";import { createEndFrameClip, createExtendChain, createKeyframeFilm, createMosaicRun, createRelitClip, createShotFilm, createStillTo3d, joinClips } from "./chains";@@ -743,6 +745,13 @@ function prepare(original: GenerationRequest) {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`,);}+ // "Fast · writes the details" edits with at most 3 pictures (its LoRA's card).+ if (tier?.speed === "details" && (req.inputs?.images?.length ?? 0) > DETAILS_MAX_IMAGES) {+ throw new Error(`${QWEN21_SPEED.labels?.details ?? "Fast · writes the details"} edits with up to ${DETAILS_MAX_IMAGES} pictures. Remove one, or pick another speed`);+ }+ // Qwen-Image 2.1's Options → GPU, decided once here (src/server/qwen21-gpu.ts): the pre-flight and the run read the choice.+ const gpu = route.provider === "comfyui" && !demo ? qwen21Gpu(route.endpoint, plan.params.extra ?? {}, (id) => !!loadIndex().workflows[id]) : undefined;+ if (gpu) plan = { ...plan, params: { ...plan.params, extra: { ...plan.params.extra, [GPU_PARAM]: gpu.gpu } }, notes: [...(plan.notes ?? []), ...(gpu.note ? [gpu.note] : [])] };// 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@@ -797,7 +806,7 @@ function prepare(original: GenerationRequest) {const unreachable = asked.filter((l) => !reachable.loras.includes(l));// Priced for the clip the route makes: Replicate's Wan 2.2 fast makes 5 s when 3 s was asked.const priced = made !== undefined && plan.params.duration !== undefined ? { ...plan.params, duration: Math.round(made * 2) / 2 } : plan.params;- return { req, plan, route, demo, providerId, notes, asked, unreachable, switchedOff: access.dropped, cost: free ? 0 : estimateCost(plan.model, priced, 1, plan.op, withLoras) };+ return { req, plan, route, demo, providerId, notes, asked, unreachable, switchedOff: access.dropped, gpu: gpu?.gpu, cost: free ? 0 : estimateCost(plan.model, priced, 1, plan.op, withLoras) };}/** The LoRA files a graph loads itself (not injected), so a run downloads the ones ComfyUI lacks before it starts. */@@ -811,7 +820,7 @@ const MADE_LENGTH_OPS = new Set<Operation>(["t2v", "i2v", "flf2v", "ref2v", "extexport function previewGeneration(asked: GenerationRequest) {const moved = currentRequest(asked);const prepared = prepare(moved.request);- const { plan, route, demo, providerId, cost, asked: askedLoras, unreachable, switchedOff } = prepared;+ const { plan, route, demo, providerId, cost, asked: askedLoras, unreachable, switchedOff, gpu } = prepared;const notes = moved.note ? [moved.note, ...prepared.notes] : prepared.notes;const fitted = routeLoras(route, askedLoras.filter((l) => !unreachable.includes(l)));const loras = {@@ -835,6 +844,8 @@ export function previewGeneration(asked: GenerationRequest) {prompt: plan.prompt,loras,...(notes.length && { notes }),+ // Qwen-Image 2.1's Options → GPU as decided for this run: the GPU pre-flight checks the graph it picks.+ ...(gpu && { gpu }),plan: { end: plan.end },};}diff --git a/src/server/gpu/gate.ts b/src/server/gpu/gate.tsindex cafe00f1..80cdf5ce 100644--- a/src/server/gpu/gate.ts+++ b/src/server/gpu/gate.ts@@ -2,7 +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 { CLEAN_VAE, DECODER_PARAM, GPU_PARAM } from "@/lib/qwen21-speed";import { deviceLabel, needTargets, toolReadiness } from "@/lib/gpu/readiness";import type { FixPlan, ToolReadiness, ToolRef } from "@/lib/gpu/types";import type { GenerationRequest } from "@/lib/catalog/types";@@ -27,6 +27,8 @@ export interface GateInput {route: { provider: string; endpoint: string };op: string;modelId: string;+ /** Qwen-Image 2.1's Options → GPU as the run's plan decided it (previewGeneration's gpu): the graph checked is the one it runs. */+ gpu?: string;skip?: boolean;actor: string;}@@ -40,22 +42,25 @@ const blocks = (r: ToolReadiness) => r.state === "unsupported" || r.needs.some((export async function gateGeneration(t: GpuTarget, g: GateInput): Promise<GateResult> {if (!preflightOn() || g.skip || g.route.provider !== "comfyui" || t.kind === "none") return { ok: true };- const idx = loadIndex();+ let 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 extra: Record<string, unknown> = { ...req.params?.extra, ...(g.gpu && { [GPU_PARAM]: g.gpu }) };const id = resolveWorkflowId(g.route.endpoint, {op: g.op,clips: req.inputs?.videos?.length ?? 0,images: req.inputs?.images?.length ?? 0,format: req.params?.format,audio2: !!req.inputs?.audio2 || !!req.params?.extra?.audio2,- extra: req.params?.extra ?? {},+ extra,has,- vramGb: memory,});if (!has(id)) return { ok: true };+ // Qwen-Image 2.1's Options → Decoder "Clean" loads the Texture-Fix VAE, an optional file of the graph: this run needs it.+ const vae = `vae/${CLEAN_VAE}`;+ if ((extra[DECODER_PARAM] === "clean" || extra.vae === CLEAN_VAE) && idx.files[vae] && !idx.workflows[id].files.includes(vae)) {+ idx = { ...idx, workflows: { ...idx.workflows, [id]: { ...idx.workflows[id], files: [...idx.workflows[id].files, vae] } } };+ }// The preset's route on the run's model (the one its preview was made with, or its own): its LoRAs are checked too.const preset = req.presetId ? presetTool(req.presetId, { modelId: g.modelId }) : null;const model = modelTool(g.modelId, g.op);diff --git a/src/server/gpu/target.ts b/src/server/gpu/target.tsindex b09be071..1e1bac0e 100644--- a/src/server/gpu/target.ts+++ b/src/server/gpu/target.ts@@ -2,8 +2,9 @@ import "server-only";import crypto from "node:crypto";import { accountGpu, requestViewer, validToken } from "../auth";import { fetchPublic, isPrivateAddress, type RemoteFetchOptions } from "../remote-fetch";-import { comfyRequest } from "../providers/comfyui";+import { comfyRequest, ownGpu } from "../providers/comfyui";import { getSetting } from "../settings";+import { tenantAccount } from "../tenant";import { fetchTransport, type ComfyTransport } from "@/lib/gpu/transport";import { isInstallHost } from "./hosts";@@ -43,6 +44,20 @@ export function gpuTargetFor(request: Request, purpose: "read" | "fix"): GpuTargreturn { kind: "account", key: `acct:${viewer.account.id}`, accountId: viewer.account.id, via: "server", gpu };}+/**+ * The ComfyUI a run in the current scope goes to, as the target its last check is kept under (no request at hand: a run being+ * planned or submitted). An account's run inside its own GPU's scope reads that GPU; the owner's (and a run on this install's+ * GPUs) the install's, or the owner's computer. Null when no check could be read for it.+ */+export function runTarget(): ReadTarget | null {+ const account = tenantAccount();+ const own = ownGpu();+ if (own?.kind === "computer") return { kind: "computer", key: own.principal, accountId: own.principal.slice(5), via: "browser" };+ if (own) return account ? { kind: "account", key: `acct:${account}`, accountId: account, via: "server", gpu: { url: own.url, token: own.token } } : null;+ if (account) return { kind: "install", key: "install", via: "server" };+ return getSetting("comfyWhere") === "computer" ? { kind: "computer", key: "install", via: "browser" } : { kind: "install", key: "install", via: "server" };+}+/** The address a target reads, as hashed: a new address starts with an empty snapshot. */export function targetUrl(t: ServerTarget): string {return (t.kind === "install" ? getSetting("comfyUrl") : t.gpu.url).trim().replace(/\/+$/, "");diff --git a/src/server/gpu/tools.ts b/src/server/gpu/tools.tsindex 9a436173..b4f9e5a1 100644--- a/src/server/gpu/tools.ts+++ b/src/server/gpu/tools.ts@@ -164,7 +164,8 @@ export const STUDIO_ROWS: StudioRowDef[] = [{ 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.+ // Image and Edit studios pick by themselves under 20 GB once it is ready (Options → GPU on Auto). The row's page opens the Image+ // studio on Qwen-Image 2.1.{href: "/image/small-gpu",label: "Image on a 16 GB GPU",diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.tsindex 6a0932f6..d9134c40 100644--- a/src/server/providers/comfyui.ts+++ b/src/server/providers/comfyui.ts@@ -42,7 +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 { DECODER_PARAM, editCanvas, GPU_PARAM, LIGHTNING_GRAPHS, lightningSigmas, SPEED_PARAM, ZEN_ADAPTER, ZEN_ENCODER } from "@/lib/qwen21-speed";import { h3Canvas, h3Frames, isH3Graph } from "@/lib/h3-prompt";import { draftSizeFor, REGEN_COPY, REGEN_WINDOW_SECONDS, REGEN_WORKFLOW, regenFrames, regenOnePassRefusal, regenResolution } from "@/lib/catalog/regenerate";import { carriesBoxes, LAYOUT_PARAM } from "@/lib/layout-prompt";@@ -739,30 +739,52 @@ export async function comfyDevice(worker: ComfyWorker = "main"): Promise<string});}+/** A ComfyUI's model folders (GET /experiment/models) and the files of the ones asked about, and when. */+type ModelRoots = { roots?: Record<string, string[]>; files: Map<string, { name: string; pathIndex: number }[] | undefined>; at: number };+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;+ /** Each ComfyUI address's model folders and files (comfyModelPath). */+ var __fuobeComfyRoots: Map<string, ModelRoots> | 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.+ * Where a file under one of the connected ComfyUI's model folders is on its disk (GET /experiment/models for the folders,+ * /experiment/models/{folder} for the file and which folder holds it), kept for a minute: undefined when it isn't there or+ * the server can't say (an older ComfyUI, someone's computer, which the server never reads). `name` may be in a subfolder.*/-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);+export async function comfyModelPath(folder: string, name: string, worker: ComfyWorker = "main"): Promise<string | undefined> {+ if (computerScope()) return undefined;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);- });+ const cache = (globalThis.__fuobeComfyRoots ??= new Map());+ let hit: ModelRoots | undefined = cache.get(url);+ if (!hit || Date.now() - hit.at > 60_000) {+ const list = await comfyJson<unknown>("/experiment/models", worker).catch(() => undefined);+ const roots: Record<string, string[]> = {};+ for (const x of Array.isArray(list) ? list : []) {+ const f = x as { name?: unknown; folders?: unknown };+ if (typeof f?.name === "string" && Array.isArray(f.folders)) roots[f.name] = f.folders.filter((d): d is string => typeof d === "string");+ }+ hit = { roots: Array.isArray(list) ? roots : undefined, files: new Map<string, { name: string; pathIndex: number }[] | undefined>(), at: Date.now() };+ cache.set(url, hit);+ }+ const dirs = hit.roots?.[folder];+ if (!dirs?.length) return undefined;+ if (!hit.files.has(folder)) {+ const items = await comfyJson<unknown>(`/experiment/models/${encodeURIComponent(folder)}`, worker).catch(() => undefined);+ hit.files.set(+ folder,+ Array.isArray(items)+ ? items.flatMap((x: { name?: unknown; pathIndex?: unknown }) => (typeof x?.name === "string" && typeof x.pathIndex === "number" ? [{ name: x.name, pathIndex: x.pathIndex }] : []))+ : undefined,+ );+ }+ const want = name.replace(/\\/g, "/");+ const found = hit.files.get(folder)?.find((f) => f.name.replace(/\\/g, "/") === want);+ const root = found && dirs[found.pathIndex];+ if (!root) return undefined;+ const sep = root.includes("\\") && !root.includes("/") ? "\\" : "/";+ return `${root.replace(/[\\/]+$/, "")}${sep}${found.name}`;}declare global {@@ -1004,8 +1026,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>;+ /** Where a model file is on the server's disk (comfyModelPath), undefined when it can't say: Zen Image Edit's loader reads paths. */+ modelPath?: (folder: string, name: string) => Promise<string | 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. */@@ -1025,7 +1047,7 @@ export interface PreparedPrompt {/*** 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.+ * image 1 scaled to 2048 on its long side (the graph's scaling, up or down); 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") {@@ -1035,9 +1057,9 @@ function lightningCanvas(capability: string, values: Partial<Record<BindingKey,// 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 };+ // An edit: image 1 scaled to 2048 on its long side, larger or smaller (the graph's ImageScaleToMaxDimension). Without its+ // size the graph keeps its own schedule, made for a 2048 square.+ return image?.width && image.height ? editCanvas(image.width, image.height) : undefined;}/** Caption cues for the burn-in: params.extra.cues, or the prompt's "start-end: text" / SRT lines. */@@ -1171,8 +1193,6 @@ 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,@@ -1181,7 +1201,6 @@ 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];@@ -1734,6 +1753,15 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,if (id) wf = bypassNode(wf, id, "images", outputIds);}if (surroundSource(sourceChannels)) wf = dbsSurroundBed(wf);+ // Zen Image Edit's loader (Qwen-Image 2.1 on a small GPU) reads paths, not names: the adapter where the server keeps it+ // in models/text_encoders, and Qwen3.5-0.8B's pinned folder there when it has one (else the loader fetches it by id).+ for (const n of Object.values(wf)) {+ if (n.class_type !== "ZenImage21AdapterLoader") continue;+ const adapter = await ctx.modelPath?.(ZEN_ADAPTER.folder, ZEN_ADAPTER.file).catch(() => undefined);+ n.inputs.adapter_file = adapter ?? `models/${ZEN_ADAPTER.folder}/${ZEN_ADAPTER.file}`;+ const weights = await ctx.modelPath?.(ZEN_ADAPTER.folder, `${ZEN_ENCODER.dir}/${ZEN_ENCODER.weights}`).catch(() => undefined);+ n.inputs.text_encoder = weights ? weights.replace(/[\\/][^\\/]+$/, "") : ZEN_ENCODER.id;+ }// Slow motion: the sound would no longer match the picture.if (finish.dropSound) for (const n of Object.values(wf)) if (n.class_type === "CreateVideo") delete n.inputs.audio;// VHS meta-batch: a manager of its own per job (a stale one loses frames), and no sound link for a silent clip.@@ -2132,7 +2160,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),+ modelPath: (folder, name) => comfyModelPath(folder, name, 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/qwen21-gpu.ts b/src/server/qwen21-gpu.tsnew file mode 100644index 00000000..c18253cd--- /dev/null+++ b/src/server/qwen21-gpu.ts@@ -0,0 +1,58 @@+import "server-only";+import { gpuVramGb, workflowReadiness } from "@/lib/gpu/readiness";+import { GPU_PARAM, SMALL_GPU_NOTE, smallGpu, smallGraphFor } from "@/lib/qwen21-speed";+import { getModel } from "@/lib/catalog";+import { loadIndex, preflightOn } from "./gpu/index-file";+import { contextFor } from "./gpu/readiness-service";+import { readSnapshot } from "./gpu/snapshots";+import { runTarget } from "./gpu/target";+import { isOffered, offReason } from "./model-access";+import { tenantAccount } from "./tenant";++/**+ * Qwen-Image 2.1's Options → GPU for one run (src/lib/qwen21-speed.ts), decided once while the run is planned: the GPU+ * pre-flight's gate and the provider then read the same choice from the run's options, so both take the same graph.+ *+ * - Small, asked for: the small encoder's graph (refused, naming the switch, when Settings → Models & licences has it off).+ * - Auto: the small encoder only when the last GPU check read a graphics card under 20 GB (rounded as the check reads it; a+ * CPU or no reading never counts) and the small route is ready there (its add-on, model files and adapter), and its switch+ * is on. Anything else runs the full graph.+ * - A speed with its own graph runs that graph, whatever the GPU choice.+ */++/** The hidden model whose switch, licence and pre-flight row the small route has. */+export const QWEN21_SMALL_MODEL = "oss-qwen-image-21-small";++export interface Qwen21GpuChoice {+ /** The choice the run carries ("small" | "large"). */+ gpu: "small" | "large";+ /** What the run says about it (Small's English-only limit). */+ note?: string;+}++/** Whether the small route is ready on the GPU this run goes to, and the card is under 20 GB, by its last check. */+function smallFits(graph: string): boolean {+ if (!preflightOn()) return false;+ const t = runTarget();+ const snap = t ? readSnapshot(t) : null;+ if (!t || !snap?.inventory.reachable) return false;+ if (!smallGpu(gpuVramGb(snap.inventory))) return false;+ return workflowReadiness(graph, snap.inventory, loadIndex(), contextFor(t)).state === "ready";+}++/**+ * Options → GPU for a Qwen-Image 2.1 run on `endpoint` (the route's graph before variants), or undefined when the run takes no+ * small-encoder graph either way (another model, inpaint or expand, a speed with its own graph). `has`: is a graph in the library.+ */+export function qwen21Gpu(endpoint: string, extra: Record<string, unknown>, has: (id: string) => boolean): Qwen21GpuChoice | undefined {+ const graph = smallGraphFor(endpoint, extra, has);+ if (!graph) return undefined;+ const asked = extra[GPU_PARAM];+ if (asked === "large") return { gpu: "large" };+ const on = isOffered(QWEN21_SMALL_MODEL, "open");+ if (asked === "small") {+ if (!on) throw new Error(tenantAccount() ? "Small GPU isn't available here. Pick 20 GB or more" : offReason(getModel(QWEN21_SMALL_MODEL)!));+ return { gpu: "small", note: SMALL_GPU_NOTE };+ }+ return on && smallFits(graph) ? { gpu: "small", note: SMALL_GPU_NOTE } : { gpu: "large" };+}diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.tsindex 8bd4de42..3f0fe52f 100644--- a/tests/comfy-library-4.test.ts+++ b/tests/comfy-library-4.test.ts@@ -106,12 +106,19 @@ describe("round-4 ComfyUI workflows", () => {"qwen-image-21-live-edit","qwen-image-21-inpaint","qwen-image-21-outpaint",- // Qwen-Image 2.1's inpaint and expand speeds (AusBoss's pack) and its 16 GB route (Zen Image Edit's pack), nm10-qwen21-fast:- // packs this server doesn't have (tests/qwen21-fast.test.ts).+ // Qwen-Image 2.1's speeds, its next scene and its 16 GB route (nm10-qwen21-fast): unvalidated like their base graphs until+ // they run on a GPU (tests/qwen21-fast.test.ts).+ "qwen-image-21-t2i-draft",+ "qwen-image-21-t2i-fast",+ "qwen-image-21-t2i-details",+ "qwen-image-21-edit-draft",+ "qwen-image-21-edit-fast",+ "qwen-image-21-edit-details","qwen-image-21-inpaint-draft","qwen-image-21-inpaint-fast","qwen-image-21-outpaint-draft","qwen-image-21-outpaint-fast",+ "qwen-image-21-next-scene","qwen-image-21-t2i-small","qwen-image-21-edit-small","ideogram4-t2i",diff --git a/tests/e2e/qwen21-fast.mjs b/tests/e2e/qwen21-fast.mjsindex 42f696f8..654d0907 100644--- a/tests/e2e/qwen21-fast.mjs+++ b/tests/e2e/qwen21-fast.mjs@@ -116,9 +116,16 @@ try {check(`${tag} ${studio}: Speed offers ${op === "edit" ? "Turbo for edits" : "no Turbo for new pictures"}`, JSON.stringify(speeds) === JSON.stringify(want), speeds.join(" | "));const gpu = page.getByRole("combobox", { name: "GPU" });const gpus = await listOf(page, gpu);- check(`${tag} ${studio}: GPU says the small one reads English prompts only`, gpus.includes("Small GPU (16 GB) · English prompts only") && gpus[0] === "Auto", gpus.join(" | "));+ check(`${tag} ${studio}: GPU says the small one reads English prompts only`, gpus.includes("Small GPU (16 GB) · Full speed, English prompts only") && gpus[0] === "Auto", gpus.join(" | "));const decoder = page.getByRole("combobox", { name: "Decoder" });check(`${tag} ${studio}: Decoder starts on Standard`, /Auto · Standard/.test(flat(await decoder.innerText())), flat(await decoder.innerText()));+ // Small picked: the composer says what it can't do.+ await gpu.focus();+ await page.keyboard.press("Enter");+ await page.getByRole("listbox").last().getByRole("option", { name: /^Small GPU/ }).click();+ await page.waitForTimeout(400);+ const note = page.getByText("Small GPU: English prompts only, and numbers on signs can come out wrong");+ check(`${tag} ${studio}: Small picked, the composer says English prompts only`, (await note.count()) > 0);await shoot(page, `${studio}-${width}-${scheme}.png`);check(`${tag} ${studio}: nothing scrolls sideways`, await noSideways(page));await context.close();diff --git a/tests/gpu-requirements.test.ts b/tests/gpu-requirements.test.tsindex 6747a528..42d60ca8 100644--- a/tests/gpu-requirements.test.ts+++ b/tests/gpu-requirements.test.ts@@ -21,6 +21,8 @@ const script = (f: string) => fs.readFileSync(path.join(process.cwd(), "scripts//** `[Name]="repo commit"` and `NODES[Name]="repo commit"` lines of an install script. */const scriptPins = (sh: string) => Object.fromEntries([...sh.matchAll(/\[([^\]]+)\]="(\S+) ([0-9a-f]{40})"/g)].map((m) => [m[1], { repo: m[2], commit: m[3] }]));const files = Object.entries(index.files);+/** A pinned GitHub release asset: the one model file that isn't on Hugging Face. */+const RELEASE_ASSET = /^https:\/\/github\.com\/[\w.-]+\/[\w.-]+\/releases\/download\/[\w.-]+\/[\w.-]+$/;describe("requirements.json", () => {it("is what build-requirements.mjs makes of the committed library (run node scripts/comfy/build-requirements.mjs)", () => {@@ -49,10 +51,16 @@ describe("requirements.json", () => {}});- it("pins every file to a size, a Hugging Face URL and (unless gated) a revision", () => {+ it("pins every file to a size, a Hugging Face URL and (unless gated) a revision, or a release asset to its tag and hash", () => {for (const [key, f] of files) {expect(f.sizeBytes, key).toBeGreaterThan(0);expect(f.pinnedUrl, key).toBeTruthy();+ if (RELEASE_ASSET.test(f.url)) {+ // A GitHub release asset (Zen Image Edit's adapter): its owner can replace it, so its sha256 rides along to be checked.+ expect(f.pinnedUrl, key).toBe(f.url);+ expect(f.sha256, key).toMatch(/^[0-9a-f]{64}$/);+ continue;+ }expect(hfParts(f.url), key).not.toBeNull();const rev = hfParts(f.pinnedUrl)!.rev;// Only gated files can't be read without a token: they keep the plain URL until a maintainer refreshes with HF_TOKEN.@@ -60,14 +68,17 @@ describe("requirements.json", () => {if (f.sha256) expect(f.sha256, key).toMatch(/^[0-9a-f]{64}$/);}for (const [url, p] of Object.entries(pins)) {- expect(p.revision, url).toMatch(/^[0-9a-f]{40}$/);+ // A release asset's revision is its tag, in its URL; a Hugging Face file's a commit.+ if (RELEASE_ASSET.test(url)) expect(url, url).toContain(`/releases/download/${p.revision}/`);+ else expect(p.revision, url).toMatch(/^[0-9a-f]{40}$/);expect(p.sizeBytes, url).toBeGreaterThan(0);}});- it("downloads only from huggingface.co", () => {+ it("downloads from huggingface.co, and only Zen Image Edit's adapter from its GitHub release", () => {const hosts = new Set(files.flatMap(([, f]) => [new URL(f.url).host, new URL(f.pinnedUrl).host]));- expect([...hosts]).toEqual(["huggingface.co"]);+ expect([...hosts].sort()).toEqual(["github.com", "huggingface.co"]);+ expect(files.filter(([, f]) => new URL(f.url).host === "github.com").map(([k]) => k)).toEqual(["text_encoders/adapter_v12.safetensors"]);});it("marks exactly the LTX-2.5 files (the model's repo, and Lightricks' Restore and Detail Refine IC-LoRAs) and FLUX 3 Image Klein's as gated", () => {diff --git a/tests/qwen21-fast.test.ts b/tests/qwen21-fast.test.tsindex db9ab2ae..24eb28c0 100644--- a/tests/qwen21-fast.test.ts+++ b/tests/qwen21-fast.test.ts@@ -15,6 +15,8 @@ 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 { loraLicenceInfo } = await import("@/lib/licences");+const { commandsFor } = await import("@/lib/gpu/commands");const { planStoryboard, storyboardModels, STORYBOARD_MODELS } = await import("@/lib/catalog/storyboard");const { resolveWorkflowId } = await import("@/lib/comfy-variants");const { controlsFor } = await import("@/lib/composer");@@ -23,6 +25,9 @@ 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 { qwen21Gpu } = await import("@/server/qwen21-gpu");+const { writeSnapshot, dropSnapshots } = await import("@/server/gpu/snapshots");+const { gateGeneration } = await import("@/server/gpu/gate");const { EDIT_STUDIO, INPAINT_STUDIO } = await import("@/lib/studios");afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));@@ -35,20 +40,56 @@ const pins = read("model-pins.json") as Record<string, { revision: string; sizeBconst 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 });+const variant = (endpoint: string, op: string, extra: Record<string, unknown>, images = 0) => resolveWorkflowId(endpoint, { op, clips: 0, images, audio2: false, extra, has });-async function prepare(id: string, input: GenInput, op: Operation, media: Record<string, { width: number; height: number }> = {}, vramGb?: number) {+async function prepare(id: string, input: GenInput, op: Operation, media: Record<string, { width: number; height: number }> = {}, paths: Record<string, string> = {}) {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,+ modelPath: async (folder, name) => paths[`${folder}/${name}`],});}+/** Model folders as a check lists them: the full and small graphs' files, less the adapter or with only `vae` in vae/. */+function listed(o: { adapter?: boolean; vae?: string[] }) {+ const out: Record<string, { have: Record<string, number | null>; total: number }> = {};+ for (const key of [...index.workflows["qwen-image-21-t2i"].files, ...index.workflows["qwen-image-21-t2i-small"].files]) {+ const [folder, file] = key.split("/");+ if (file === "adapter_v12.safetensors" && o.adapter === false) continue;+ if (folder === "vae" && o.vae) continue;+ (out[folder] ??= { have: {}, total: 0 }).have[file] = null;+ }+ if (o.vae) out.vae = { have: Object.fromEntries(o.vae.map((f) => [f, null])), total: o.vae.length };+ out.text_encoders ??= { have: {}, total: 0 };+ for (const x of Object.values(out)) x.total = Object.keys(x.have).length;+ return out;+}++/** The install's last GPU check: a device of this many bytes (or a CPU), with or without Zen Image Edit's add-on and adapter. */+const INSTALL = { kind: "install", key: "install", via: "server" } as const;+function checked(o: { bytes?: number; type?: string; zen?: boolean; adapter?: boolean; vae?: string[] }) {+ const at = Date.now();+ writeSnapshot(INSTALL, {+ v: 1,+ via: "server",+ checkedAt: at,+ tookMs: 5,+ reachable: true,+ devices: o.bytes === undefined ? [] : [{ name: "GPU", type: o.type ?? "cuda", index: 0, vramTotal: o.bytes, vramFree: o.bytes }],+ manager: { api: "none" },+ nodes: { have: [], missing: o.zen === false ? ["ZenImage21AdapterLoader", "ZenImage21TextEncode"] : [], total: 1, readAt: at, how: "object_info" },+ combos: {},+ packs: {},+ models: listed(o),+ loras: {},+ fingerprint: "x",+ errors: [],+ } as never);+}+/** Each speed's LoRA, its pinned download and its schedule (the cards, read 2026-11-01). */const TIERS = {draft: {@@ -71,6 +112,8 @@ const TIERS = {},} as const;const sigmasOf = (s: unknown) => String(s).split(",").map(Number);+/** Lightning's schedule for a 2048 square: an edit's canvas (ImageScaleToMaxDimension 2048), the edit graph's default. */+const EDIT_2K = [1, 0.917701, 0.787999, 0.553369, 0];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! })));@@ -89,7 +132,7 @@ describe("Qwen-Image 2.1's speed graphs", () => {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(sigmasOf(ofClass(wf, "ManualSigmas")[0][1].inputs.sigmas), t.id).toEqual(t.id === "qwen-image-21-edit-fast" ? EDIT_2K : 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");@@ -116,20 +159,28 @@ describe("Qwen-Image 2.1's speed graphs", () => {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"]);+ // Unvalidated like the owner's Qwen-Image 2.1 graphs until it runs on a GPU (the CPU server's graph check isn't that bar).+ expect(e.validated, t.id).toBe(false);+ if (/-(inpaint|outpaint)-/.test(t.id)) expect(e.customNodes.map((c) => c.name)).toEqual(["ausboss-nodes"]);+ // The licence names the optional clean decoder's own.+ expect(e.license).toMatch(/Texture-Fix VAE .*Qwen Research License/);}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", () => {+ it("shifts the Lightning schedule for the canvas as its card does: 1 MP's in the text to image graphs, a 2048 square's in the edit's", () => {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).toEqual(EDIT_2K);expect(big.at(-1)).toBe(0);+ expect(sigmasOf(ofClass(graph("qwen-image-21-t2i-fast"), "ManualSigmas")[0][1].inputs.sigmas)).toEqual(TIERS.fast.sigmas);+ expect(sigmasOf(ofClass(graph("qwen-image-21-edit-fast"), "ManualSigmas")[0][1].inputs.sigmas)).toEqual(EDIT_2K);+ // An edit's canvas: image 1 scaled to 2048 on its long side, up or down, on the 32 px grid.+ expect(Q.editCanvas(1024, 1024)).toEqual({ width: 2048, height: 2048 });+ expect(Q.editCanvas(1536, 1024)).toEqual({ width: 2048, height: 1376 });+ expect(Q.editCanvas(800, 600)).toEqual({ width: 2048, height: 1536 });+ expect(Q.editCanvas(4000, 3000)).toEqual({ width: 2048, height: 1536 });expect([...Q.LIGHTNING_GRAPHS].sort()).toEqual(tiers.filter((t) => t.speed === "fast").map((t) => t.id).sort());});});@@ -139,7 +190,7 @@ describe("Options → Speed, GPU and Decoder", () => {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: "fast" }, 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");@@ -147,25 +198,122 @@ describe("Options → Speed, GPU and Decoder", () => {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");+ expect(variant("flux3-klein-t2i", "t2i", { speed: "draft", gpu: "small" })).toBe("flux3-klein-t2i");+ expect(variant("qwen-image-21-edit", "edit", { productShot: true, speed: "draft" }, 1)).toBe("product-shot-qwen-edit-2509");+ });++ it("takes the small encoder's graph when the run says Small, and a speed's graph over it", () => {+ expect(variant("qwen-image-21-t2i", "t2i", { gpu: "small" })).toBe("qwen-image-21-t2i-small");+ expect(variant("qwen-image-21-edit", "edit", { gpu: "small" })).toBe("qwen-image-21-edit-small");+ expect(variant("qwen-image-21-t2i", "t2i", {})).toBe("qwen-image-21-t2i");+ expect(variant("qwen-image-21-t2i", "t2i", { gpu: "large" })).toBe("qwen-image-21-t2i");+ expect(variant("qwen-image-21-t2i", "t2i", { gpu: "small", speed: "fast" })).toBe("qwen-image-21-t2i-fast");+ // A speed this operation has no graph for (Turbo on a new picture) runs at Full, so Small applies.+ expect(variant("qwen-image-21-t2i", "t2i", { gpu: "small", speed: "turbo" })).toBe("qwen-image-21-t2i-small");+ expect(Q.smallGraphFor("qwen-image-21-t2i", { speed: "turbo" }, has)).toBe("qwen-image-21-t2i-small");+ expect(Q.smallGraphFor("qwen-image-21-edit", { speed: "turbo" }, has)).toBeUndefined();+ // Inpaint and expand have no small-encoder graph.+ expect(variant("qwen-image-21-inpaint", "inpaint", { gpu: "small" })).toBe("qwen-image-21-inpaint");});- it("runs the small encoder under 24 GB on Auto, as asked otherwise, and never at another speed", () => {+ it("counts a card under 20 GB as small, as the GPU check rounds it", () => {expect(Q.smallGpu(16)).toBe(true);- expect(Q.smallGpu(23.6)).toBe(true);+ expect(Q.smallGpu(19.9)).toBe(true);+ expect(Q.smallGpu(20)).toBe(false);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 Auto on the small encoder only on a card under 20 GB where the small route is ready", () => {+ const auto = (extra: Record<string, unknown> = {}, endpoint = "qwen-image-21-t2i") => qwen21Gpu(endpoint, extra, has)?.gpu;+ try {+ // No check yet: the full graph.+ dropSnapshots("install");+ expect(auto()).toBe("large");+ // A 16 GB card with the add-on and the adapter: small, and the run says what it can't do.+ checked({ bytes: 16 * 2 ** 30 });+ expect(qwen21Gpu("qwen-image-21-t2i", {}, has)).toEqual({ gpu: "small", note: Q.SMALL_GPU_NOTE });+ expect(auto({}, "qwen-image-21-edit")).toBe("small");+ // 24 GB cards read under 24 GiB (an RTX 4090: 23.65), a 20 GB card 19.7: both keep the full encoder.+ checked({ bytes: 25_393_692_672 });+ expect(auto()).toBe("large");+ checked({ bytes: 21_150_000_000 });+ expect(auto()).toBe("large");+ // A CPU-only ComfyUI reports system RAM as its device's memory: the full graph.+ checked({ bytes: 14_341_885_952, type: "cpu" });+ expect(auto()).toBe("large");+ // Not ready on the small card (no add-on, or no adapter): the full graph.+ checked({ bytes: 16 * 2 ** 30, zen: false });+ expect(auto()).toBe("large");+ checked({ bytes: 16 * 2 ** 30, adapter: false });+ expect(auto()).toBe("large");+ // Ready, but the speed has its own graph, or the run asked for 20 GB or more: no choice to make, or large.+ checked({ bytes: 16 * 2 ** 30 });+ expect(qwen21Gpu("qwen-image-21-t2i", { speed: "fast" }, has)).toBeUndefined();+ expect(qwen21Gpu("qwen-image-21-inpaint", {}, has)).toBeUndefined();+ expect(auto({ gpu: "large" })).toBe("large");+ // Asked for, Small runs whatever the card (the pre-flight then shows what it needs).+ dropSnapshots("install");+ expect(auto({ gpu: "small" })).toBe("small");+ } finally {+ dropSnapshots("install");+ }+ });++ it("decides once as the run is planned: the run carries the choice and says Small's limit", () => {+ const g = globalThis as unknown as { __fuobeComfyReach?: { ok: boolean; at: number; url: string } };+ const before = g.__fuobeComfyReach;+ g.__fuobeComfyReach = { ok: true, at: Date.now(), url: "http://comfy.test:8188" };+ setSetting("demoMode", "off");+ try {+ const run = (extra: Record<string, unknown> = {}) => previewGeneration({ feature: "image", modelId: "oss-qwen-image-21", prompt: "a koi pond", params: { extra } });+ checked({ bytes: 16 * 2 ** 30 });+ const small = run();+ expect(small).toMatchObject({ demo: false, gpu: "small", route: { provider: "comfyui", endpoint: "qwen-image-21-t2i" } });+ expect(small.notes).toContain(Q.SMALL_GPU_NOTE);+ checked({ bytes: 24 * 2 ** 30 });+ const large = run();+ expect(large.gpu).toBe("large");+ expect(large.notes ?? []).not.toContain(Q.SMALL_GPU_NOTE);+ expect(run({ speed: "draft" }).gpu).toBeUndefined();+ } finally {+ g.__fuobeComfyReach = before;+ setSetting("demoMode", "auto");+ dropSnapshots("install");+ }+ });++ it("holds the small route when its model or Zen Image Edit's add-on is switched off in Models & licences", () => {+ checked({ bytes: 16 * 2 ** 30 });+ try {+ for (const change of [{ kind: "model", id: "oss-qwen-image-21-small", on: false }, { kind: "pack", id: "zen-image-edit-comfyui", on: false }] as const) {+ changeAccess([change]);+ try {+ expect(qwen21Gpu("qwen-image-21-t2i", {}, has)?.gpu, change.kind).toBe("large");+ expect(() => qwen21Gpu("qwen-image-21-t2i", { gpu: "small" }, has), change.kind).toThrow(/Small GPU.*(turned|switched) off in Settings → Models & licences/);+ } finally {+ changeAccess([{ kind: "reset" }]);+ }+ }+ expect(qwen21Gpu("qwen-image-21-t2i", { gpu: "small" }, has)?.gpu).toBe("small");+ } finally {+ dropSnapshots("install");+ }+ });++ it("says in the composer what Small can't do, and that a speed with its own graph wins", () => {+ const controls = getModel("oss-qwen-image-21")!.options.controls;+ expect(Q.qwen21Note(controls, { gpu: "small" }, "t2i")).toBe(Q.SMALL_GPU_NOTE);+ expect(Q.qwen21Note(controls, { gpu: "small", speed: "full" }, "edit")).toBe(Q.SMALL_GPU_NOTE);+ expect(Q.qwen21Note(controls, { gpu: "small", speed: "draft" }, "edit")).toBe(Q.SMALL_GPU_AT_FULL);+ expect(Q.qwen21Note(controls, { gpu: "small", speed: "turbo" }, "edit")).toBe(Q.SMALL_GPU_AT_FULL);+ expect(Q.qwen21Note(controls, { gpu: "small", speed: "turbo" }, "t2i")).toBe(Q.SMALL_GPU_NOTE);+ expect(Q.qwen21Note(controls, { gpu: "small" }, "inpaint")).toBeUndefined();+ expect(Q.qwen21Note(controls, {}, "t2i")).toBeUndefined();+ expect(Q.qwen21Note(getModel("oss-qwen-image-21-turbo")!.options.controls, { gpu: "small" }, "edit")).toBeUndefined();+ expect(Q.QWEN21_GPU.labels?.small).toMatch(/Full speed, English prompts only/);+ expect(getModel("oss-qwen-image-21")!.tagline).toMatch(/English prompts only on a 16 GB GPU/);});it("puts the three controls on Qwen-Image 2.1 under Options, each value on the operations that have it", () => {@@ -205,26 +353,39 @@ describe("a Qwen-Image 2.1 run on your GPU", () => {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("follows image 1 scaled to 2048 on its long side for an edit's Lightning schedule", async () => {+ // A 1024 square samples at 2048 × 2048 (the graph scales it up).+ const square = await prepare("qwen-image-21-edit", { prompt: "make it night", images: ["/api/files/a.png"], extra: { speed: "fast" } }, "edit", { "/api/files/a.png": { width: 1024, height: 1024 } });+ expect(square.manifest.id).toBe("qwen-image-21-edit-fast");+ expect(sigmasOf(square.workflow["73"].inputs.sigmas)).toEqual(EDIT_2K);+ // A 3:2 photo samples at 2048 × 1376.+ const wide = await prepare("qwen-image-21-edit", { prompt: "make it night", images: ["/api/files/w.png"], extra: { speed: "fast" } }, "edit", { "/api/files/w.png": { width: 1536, height: 1024 } });+ expect(sigmasOf(wide.workflow["73"].inputs.sigmas)).toEqual(sigmasOf(Q.lightningSigmas(2048, 1376)));+ expect(sigmasOf(wide.workflow["73"].inputs.sigmas)[1]).toBeCloseTo(0.895, 3);+ // Without the picture's header the graph keeps its own schedule, made for a 2048 square.+ const unknown = await prepare("qwen-image-21-edit", { prompt: "make it night", images: ["/api/files/u.png"], extra: { speed: "fast" } }, "edit", {});+ expect(sigmasOf(unknown.workflow["73"].inputs.sigmas)).toEqual(EDIT_2K);});- 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);+ it("runs the small encoder when the run says Small, with the references it was given and the server's own paths", async () => {+ const paths = { "text_encoders/adapter_v12.safetensors": "/srv/comfy/models/text_encoders/adapter_v12.safetensors", "text_encoders/qwen3.5_0.8b/model.safetensors-00001-of-00001.safetensors": "/srv/comfy/models/text_encoders/qwen3.5_0.8b/model.safetensors-00001-of-00001.safetensors" };+ const small = await prepare("qwen-image-21-edit", { prompt: "the cat on the beach", images: ["/api/files/a.png", "/api/files/b.png"], extra: { gpu: "small" } }, "edit", {}, paths);expect(small.manifest.id).toBe("qwen-image-21-edit-small");+ // Zen Image Edit's loader gets the adapter's full path and the pinned encoder folder.+ expect(small.workflow["1"].inputs).toMatchObject({ adapter_file: "/srv/comfy/models/text_encoders/adapter_v12.safetensors", text_encoder: "/srv/comfy/models/text_encoders/qwen3.5_0.8b" });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);+ // On Auto (no choice made for the run) the full graph.+ const large = await prepare("qwen-image-21-edit", { prompt: "the cat", images: ["/api/files/a.png"] }, "edit");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);+ // A server that can't say where its files are: the adapter from ComfyUI's folder, the encoder by id.+ const asked = await prepare("qwen-image-21-t2i", { prompt: "a fox", extra: { gpu: "small" } }, "t2i");expect(asked.manifest.id).toBe("qwen-image-21-t2i-small");expect(asked.workflow["5"].inputs).toMatchObject({ prompt: "a fox", width: 1024, height: 1024 });+ expect(asked.workflow["1"].inputs).toMatchObject({ adapter_file: "models/text_encoders/adapter_v12.safetensors", text_encoder: "Qwen/Qwen3.5-0.8B" });});it("holds a speed whose LoRA is switched off in Models & licences", () => {@@ -247,14 +408,25 @@ describe("the small-GPU route", () => {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, "ZenImage21AdapterLoader")[0][1].inputs).toMatchObject({ adapter_file: "models/text_encoders/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);+ // The adapter is a tracked, pinned download the pre-flight asks for; Qwen3.5-0.8B's setup command is pinned too.+ expect(w.files).toContain("text_encoders/adapter_v12.safetensors");+ expect(w.firstRun.join(" ")).toMatch(/Qwen3\.5-0\.8B .*--revision 2fc06364715b967f1860aea9cf38778875588b17 --local-dir models\/text_encoders\/qwen3\.5_0\.8b/);+ expect(w.firstRun.join(" ")).not.toMatch(/adapter_v12/);expect(entry(id).validated).toBe(false);}+ const adapter = "https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors";+ expect(index.files["text_encoders/adapter_v12.safetensors"]).toMatchObject({ pinnedUrl: adapter, sizeBytes: 638987136, presence: "list" });+ expect(pins[adapter]).toEqual({ revision: "v2", sizeBytes: 638987136, sha256: "85578cd0b41dfac3fad1845be2755971367deee5348a692feb589a09d120ea8c" });+ // The fix plan's commands download it into models/text_encoders and check its hash (a release asset can be replaced).+ const cmd = commandsFor([{ kind: "model", file: "text_encoders/adapter_v12.safetensors" }], { inv: null, idx: index as never });+ expect(cmd.bash).toContain(`-o "$COMFY/models/text_encoders/adapter_v12.safetensors" "${adapter}"`);+ expect(cmd.bash).toContain(`echo "85578cd0b41dfac3fad1845be2755971367deee5348a692feb589a09d120ea8c ""$COMFY/models/text_encoders/adapter_v12.safetensors" | (sha256sum -c -`);+ expect(cmd.powershell).toContain(`(Get-FileHash "$env:COMFY\\models\\text_encoders\\adapter_v12.safetensors" -Algorithm SHA256).Hash -ne "85578CD0B41DFAC3FAD1845BE2755971367DEEE5348A692FEB589A09D120EA8C"`);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);@@ -265,7 +437,7 @@ describe("the small-GPU route", () => {]);});- it("has its row on the GPU pre-flight board, whose page opens the Image studio", () => {+ it("has its row on the GPU pre-flight board, whose page opens the Image studio on Qwen-Image 2.1", () => {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)!;@@ -273,7 +445,7 @@ describe("the small-GPU route", () => {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"\)/);+ expect(page).toMatch(/redirect\("\/image\?model=oss-qwen-image-21"\)/);});});@@ -307,7 +479,7 @@ describe("Storyboard's next scene on Qwen-Image 2.1", () => {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(entry("qwen-image-21-next-scene").validated).toBe(false);expect(index.workflows["qwen-image-21-next-scene"].files).toContain("loras/Qwen-Image-2.1-Next-Scene-step2500.safetensors");});});@@ -318,7 +490,8 @@ describe("licences, recorded and switched on", () => {[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",+ // An apache-2.0 tag on its card only: non-commercial through its base.+ "Qwen-Image-2.1-Next-Scene-step2500.safetensors": "Qwen Research",};for (const [file, licence] of Object.entries(want)) {const e = libraryEntry({ file })!;@@ -328,6 +501,9 @@ describe("licences, recorded and switched on", () => {expect(e.sha256).toMatch(/^[0-9a-f]{64}$/);expect(e.url).toMatch(/\/resolve\/[0-9a-f]{40}\//);}+ const next = libraryEntry({ file: "Qwen-Image-2.1-Next-Scene-step2500.safetensors" })!;+ expect(next.licence).toMatchObject({ commercial: false, hostedOk: false });+ expect(loraLicenceInfo(next.licence).class).toBe("non-commercial");});it("gives the small-GPU and next-scene models a licence row each", () => {@@ -336,5 +512,53 @@ describe("licences, recorded and switched on", () => {expect(l.licence.name, id).toMatch(/Qwen Research/);}expect(modelLicence(getModel("oss-qwen-image-21-small")!).packs).toEqual(["zen-image-edit-comfyui"]);+ // The small route's adapter and encoder, and the clean decoder, each named with its licence on the rows that use them.+ const small = modelLicence(getModel("oss-qwen-image-21-small")!).licence;+ expect(small.class).toBe("non-commercial");+ expect(small.note).toMatch(/adapter_v12 .*Qwen Research License; Qwen3\.5-0\.8B \(Qwen @ 2fc06364\): Apache-2\.0/);+ expect(modelLicence(getModel("oss-qwen-image-21")!).licence.note).toMatch(/Texture-Fix VAE .*Qwen Research License/);+ expect(modelLicence(getModel("oss-qwen-image-21-next-scene")!).licence.note).toMatch(/apache-2\.0 tag on its card only .*non-commercial through its base/);+ });+});++describe("the GPU pre-flight on a Qwen-Image 2.1 run", () => {+ const gate = (extra: Record<string, unknown>, gpu?: string) =>+ gateGeneration(INSTALL, { request: { feature: "image", modelId: "oss-qwen-image-21", prompt: "a fox", params: { extra } }, route: { provider: "comfyui", endpoint: "qwen-image-21-t2i" }, op: "t2i", modelId: "oss-qwen-image-21", gpu, actor: "owner" });++ it("checks the graph the run's GPU choice takes", async () => {+ checked({ bytes: 16 * 2 ** 30, zen: false });+ try {+ // The run decided Small: the pre-flight sees the add-on it lacks (the owner gets a warning).+ expect(await gate({}, "small")).toMatchObject({ ok: true, warning: expect.stringMatching(/more thing/) });+ expect(await gate({}, "large")).toEqual({ ok: true });+ } finally {+ dropSnapshots("install");+ }+ });++ it("asks for the clean decoder's file when Options → Decoder says Clean", async () => {+ checked({ bytes: 32 * 2 ** 30, vae: ["qwen_image_2.1_vae_bf16.safetensors"] });+ try {+ expect(await gate({})).toEqual({ ok: true });+ expect(await gate({ decoder: "clean" })).toMatchObject({ ok: true, warning: expect.stringMatching(/needs 1 more thing/) });+ checked({ bytes: 32 * 2 ** 30, vae: ["qwen_image_2.1_vae_bf16.safetensors", Q.CLEAN_VAE] });+ expect(await gate({ decoder: "clean" })).toEqual({ ok: true });+ } finally {+ dropSnapshots("install");+ }+ });+});++describe("Fast · writes the details on edits", () => {+ it("takes up to 3 pictures, as Pruna's card says", () => {+ setSetting("demoMode", "on");+ try {+ const req = (n: number) => ({ feature: "edit", modelId: "oss-qwen-image-21", prompt: "the cat on the beach", inputs: { images: Array.from({ length: n }, (_, i) => `/api/files/${i}.png`) }, params: { extra: { speed: "details" } } });+ expect(() => previewGeneration(req(3))).not.toThrow();+ expect(() => previewGeneration(req(4))).toThrow(/writes the details.* up to 3 pictures/);+ expect(() => previewGeneration({ ...req(4), params: { extra: { speed: "fast" } } })).not.toThrow();+ } finally {+ setSetting("demoMode", "off");+ }});});diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex f40b8ddb..08e7a621 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -1,10 +1,10 @@{"version": 1,- "generatedAt": "2026-11-01T17:57:33.515Z",- "comfyuiCommit": "5841c187a76ffdb565c14d9565aacbdb9a54b056",- "comfyuiVersion": "0.42.0",- "workflowTemplatesVersion": "0.11.93",- "frontendVersion": "1.57.1",+ "generatedAt": "2026-11-01T22:02:19.203Z",+ "comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",+ "comfyuiVersion": "0.41.0",+ "workflowTemplatesVersion": "0.11.86",+ "frontendVersion": "1.55.17","workflows": [{"id": "flux1-dev-t2i",@@ -10701,9 +10701,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","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)."+ "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, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-edit",@@ -10809,9 +10809,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","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)."+ "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, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-turbo-edit",@@ -10909,9 +10909,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","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)."+ "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, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-live-edit",@@ -11121,9 +11121,9 @@}],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; AusBoss nodes MIT",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "The AusBoss pack's example \"Qwen Image 2.1 Inpaint (AusBoss)\", its two subgraphs flattened: Crop For Inpaint (context 1.6, blend 8 px, multiple 32, 1.5 MP, bicubic) -> GrowMask 8 on the crop's mask -> StringFormat \"{a} Keep everything else exactly the same.\" -> TextEncodeQwenImage21 with the crop as image 1 (resolution 0) -> VAEEncode of the crop + SetLatentNoiseMask -> QwenImage21Cache -> KSampler 25 steps, cfg 1, euler, simple -> SplitImageWithAlpha -> Stitch Inpaint (classic, no colour match) back into the full picture. mask = separate uploaded PNG, same size as image, read from the RED channel: white = change (as flux1-fill-inpaint). Removed: Mask by Touch and its SAM 3.1 model (the mask is uploaded), the speed LoRA (off in the example), the crop/pad loader (LoadImage), compare, timer and notes. Prompt: say what goes in the painted area like asking a person (\"Replace the cup with a glass of orange juice\"). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "notes": "The AusBoss pack's example \"Qwen Image 2.1 Inpaint (AusBoss)\", its two subgraphs flattened: Crop For Inpaint (context 1.6, blend 8 px, multiple 32, 1.5 MP, bicubic) -> GrowMask 8 on the crop's mask -> StringFormat \"{a} Keep everything else exactly the same.\" -> TextEncodeQwenImage21 with the crop as image 1 (resolution 0) -> VAEEncode of the crop + SetLatentNoiseMask -> QwenImage21Cache -> KSampler 25 steps, cfg 1, euler, simple -> SplitImageWithAlpha -> Stitch Inpaint (classic, no colour match) back into the full picture. mask = separate uploaded PNG, same size as image, read from the RED channel: white = change (as flux1-fill-inpaint). Removed: Mask by Touch and its SAM 3.1 model (the mask is uploaded), the speed LoRA (off in the example), the crop/pad loader (LoadImage), compare, timer and notes. Prompt: say what goes in the painted area like asking a person (\"Replace the cup with a glass of orange juice\"). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-outpaint",@@ -11269,9 +11269,9 @@}],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "The Qwen-Image 2.1 outpaint workflow (v12) as the site's Expand previews run it: Crop + Rotate + Pad puts the photo on a gray (#808080) canvas grown by the pads (feather 12, scaled to 1 MP on the 32 grid) -> outpaint-v2 LoRA at 1 -> Qwen3-VL 8B (the same text encoder, TextGenerate, the workflow's instruction, seed fixed) describes the picture, \"Outpaint the image: ... Scene:\" leads -> TextEncodeQwenImage21 with the canvas as image 1 -> KSampler 25 steps, cfg 1, euler, simple, no noise mask (it drew a box at the seam) -> SplitImageWithAlpha -> Stitch Inpaint (blend in, tone match 1) -> scaled to the full-size padded canvas, and the original photo composited back on top (second pad node, feather 48). Pads are the input photo's pixels (multiples of 8); defaults 384/288/384/288 = a 1.5x zoom-out of a 1536x1152 photo. Grow at most about the photo's own size per side per run. prompt = the optional \"what goes there\" hint (the lead-in \"Also include in the prompt:\" is added); it must not name the subject, which then appears again in the margin. Removed: AusBoss Seed/Text/Compare/RunTimer/ShowText/WorkflowNote and its SaveImage (SaveImage). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "notes": "The Qwen-Image 2.1 outpaint workflow (v12) as the site's Expand previews run it: Crop + Rotate + Pad puts the photo on a gray (#808080) canvas grown by the pads (feather 12, scaled to 1 MP on the 32 grid) -> outpaint-v2 LoRA at 1 -> Qwen3-VL 8B (the same text encoder, TextGenerate, the workflow's instruction, seed fixed) describes the picture, \"Outpaint the image: ... Scene:\" leads -> TextEncodeQwenImage21 with the canvas as image 1 -> KSampler 25 steps, cfg 1, euler, simple, no noise mask (it drew a box at the seam) -> SplitImageWithAlpha -> Stitch Inpaint (blend in, tone match 1) -> scaled to the full-size padded canvas, and the original photo composited back on top (second pad node, feather 48). Pads are the input photo's pixels (multiples of 8); defaults 384/288/384/288 = a 1.5x zoom-out of a 1536x1152 photo. Grow at most about the photo's own size per side per run. prompt = the optional \"what goes there\" hint (the lead-in \"Also include in the prompt:\" is added); it must not name the subject, which then appears again in the margin. Removed: AusBoss Seed/Text/Compare/RunTimer/ShowText/WorkflowNote and its SaveImage (SaveImage). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-t2i-draft",@@ -11367,9 +11367,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE)",- "validated": true,- "notes": "Options → Speed \"draft\" on qwen-image-21-t2i: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE); Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)",+ "validated": false,+ "notes": "Options → Speed \"draft\" on qwen-image-21-t2i: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-t2i-fast",@@ -11471,9 +11471,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on",- "validated": true,- "notes": "Options → Speed \"fast\" on qwen-image-21-t2i: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (1 MP: 1.0, 0.857192, 0.666756, 0.400096, 0); Fuobe binds sigmas for the run's own size with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)",+ "validated": false,+ "notes": "Options → Speed \"fast\" on qwen-image-21-t2i: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (text to image: 1 MP, 1.0, 0.857192, 0.666756, 0.400096, 0; edits: a 2048 square, 1.0, 0.917701, 0.787999, 0.553369, 0, since ImageScaleToMaxDimension scales image 1 to 2048 on its long side); Fuobe binds sigmas for the run's own canvas with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-t2i-details",@@ -11569,9 +11569,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; PrunaAI's P-Q-Image-2.1 v0.2, a derivative of Qwen-Image 2.1 under the Qwen Research License (LICENSE and NOTICE in the repository)",- "validated": true,- "notes": "Options → Speed \"details\" on qwen-image-21-t2i: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. PrunaAI/P-Q-Image-2.1-Comfy @ aa7dcecb, the 6-steps-upsampled v0.2 adapter (Pruna's distillation of the prompt upsampler into the LoRA, so short prompts come out detailed with no separate upsampling call) at strength 1, euler, CFG 1, the v0.2 ManualSigmas \"1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0\" (not interchangeable with v0.1's). As Pruna's official workflows: LoraLoaderModelOnly on the base int8 model, QwenImage21Cache, CFGGuider, SamplerCustomAdvanced. Trained at 1K only; Pruna recommends at most 3 reference images for edits. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; PrunaAI's P-Q-Image-2.1 v0.2, a derivative of Qwen-Image 2.1 under the Qwen Research License (LICENSE and NOTICE in the repository); Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)",+ "validated": false,+ "notes": "Options → Speed \"details\" on qwen-image-21-t2i: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. PrunaAI/P-Q-Image-2.1-Comfy @ aa7dcecb, the 6-steps-upsampled v0.2 adapter (Pruna's distillation of the prompt upsampler into the LoRA, so short prompts come out detailed with no separate upsampling call) at strength 1, euler, CFG 1, the v0.2 ManualSigmas \"1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0\" (not interchangeable with v0.1's). As Pruna's official workflows: LoraLoaderModelOnly on the base int8 model, QwenImage21Cache, CFGGuider, SamplerCustomAdvanced. Trained at 1K only; Pruna recommends at most 3 reference images for edits, so Fuobe refuses a fourth at this speed. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-edit-draft",@@ -11675,9 +11675,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE)",- "validated": true,- "notes": "Options → Speed \"draft\" on qwen-image-21-edit: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE); Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)",+ "validated": false,+ "notes": "Options → Speed \"draft\" on qwen-image-21-edit: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-edit-fast",@@ -11787,9 +11787,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on",- "validated": true,- "notes": "Options → Speed \"fast\" on qwen-image-21-edit: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (1 MP: 1.0, 0.857192, 0.666756, 0.400096, 0); Fuobe binds sigmas for the run's own size with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)",+ "validated": false,+ "notes": "Options → Speed \"fast\" on qwen-image-21-edit: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (text to image: 1 MP, 1.0, 0.857192, 0.666756, 0.400096, 0; edits: a 2048 square, 1.0, 0.917701, 0.787999, 0.553369, 0, since ImageScaleToMaxDimension scales image 1 to 2048 on its long side); Fuobe binds sigmas for the run's own canvas with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-edit-details",@@ -11893,9 +11893,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; PrunaAI's P-Q-Image-2.1 v0.2, a derivative of Qwen-Image 2.1 under the Qwen Research License (LICENSE and NOTICE in the repository)",- "validated": true,- "notes": "Options → Speed \"details\" on qwen-image-21-edit: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. PrunaAI/P-Q-Image-2.1-Comfy @ aa7dcecb, the 6-steps-upsampled v0.2 adapter (Pruna's distillation of the prompt upsampler into the LoRA, so short prompts come out detailed with no separate upsampling call) at strength 1, euler, CFG 1, the v0.2 ManualSigmas \"1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0\" (not interchangeable with v0.1's). As Pruna's official workflows: LoraLoaderModelOnly on the base int8 model, QwenImage21Cache, CFGGuider, SamplerCustomAdvanced. Trained at 1K only; Pruna recommends at most 3 reference images for edits. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; PrunaAI's P-Q-Image-2.1 v0.2, a derivative of Qwen-Image 2.1 under the Qwen Research License (LICENSE and NOTICE in the repository); Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)",+ "validated": false,+ "notes": "Options → Speed \"details\" on qwen-image-21-edit: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. PrunaAI/P-Q-Image-2.1-Comfy @ aa7dcecb, the 6-steps-upsampled v0.2 adapter (Pruna's distillation of the prompt upsampler into the LoRA, so short prompts come out detailed with no separate upsampling call) at strength 1, euler, CFG 1, the v0.2 ManualSigmas \"1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0\" (not interchangeable with v0.1's). As Pruna's official workflows: LoraLoaderModelOnly on the base int8 model, QwenImage21Cache, CFGGuider, SamplerCustomAdvanced. Trained at 1K only; Pruna recommends at most 3 reference images for edits, so Fuobe refuses a fourth at this speed. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-inpaint-draft",@@ -11989,9 +11989,9 @@}],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE); AusBoss nodes MIT",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE); AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "Options → Speed \"draft\" on qwen-image-21-inpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "notes": "Options → Speed \"draft\" on qwen-image-21-inpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-inpaint-fast",@@ -12091,9 +12091,9 @@}],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on; AusBoss nodes MIT",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on; AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "Options → Speed \"fast\" on qwen-image-21-inpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (1 MP: 1.0, 0.857192, 0.666756, 0.400096, 0); Fuobe binds sigmas for the run's own size with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "notes": "Options → Speed \"fast\" on qwen-image-21-inpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (text to image: 1 MP, 1.0, 0.857192, 0.666756, 0.400096, 0; edits: a 2048 square, 1.0, 0.917701, 0.787999, 0.553369, 0, since ImageScaleToMaxDimension scales image 1 to 2048 on its long side); Fuobe binds sigmas for the run's own canvas with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-outpaint-draft",@@ -12238,9 +12238,9 @@}],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE); outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; linoyts' DMD2 2-step LoRA v1.5, a derivative of Qwen-Image 2.1 under the same Qwen Research License (card and NOTICE); outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "Options → Speed \"draft\" on qwen-image-21-outpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and the outpaint-v2 LoRA (the speed LoRA stacks on it) and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Expand keeps its Qwen3-VL scene description (TextGenerate) as it is. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "notes": "Options → Speed \"draft\" on qwen-image-21-outpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and the outpaint-v2 LoRA (the speed LoRA stacks on it) and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. linoyts/Qwen-Image-2.1-DMD2-2steps @ 5bae2836, pytorch_lora_weights_v1_5 (2026-10-30: better prompt adherence and edit fidelity than v1, same settings): rank 32, attention only, trained on fixed sigmas [1.0, 0.5] with no shift, CFG 1. ManualSigmas \"1.0, 0.5, 0.0\" as the card says (resolution independent). Expand keeps its Qwen3-VL scene description (TextGenerate) as it is. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-outpaint-fast",@@ -12391,9 +12391,9 @@}],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on; outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; LightX2V Lightning LoRA: no licence in the repository (no LICENSE file, empty card tag; comfyui-wiki says Apache-2.0); a Qwen-Image 2.1 adapter, so the base's Qwen Research License applies to what it runs on; outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "Options → Speed \"fast\" on qwen-image-21-outpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and the outpaint-v2 LoRA (the speed LoRA stacks on it) and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (1 MP: 1.0, 0.857192, 0.666756, 0.400096, 0); Fuobe binds sigmas for the run's own size with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Expand keeps its Qwen3-VL scene description (TextGenerate) as it is. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "notes": "Options → Speed \"fast\" on qwen-image-21-outpaint: the same graph with a LoraLoaderModelOnly after the UNETLoader and the outpaint-v2 LoRA (the speed LoRA stacks on it) and its KSampler replaced by RandomNoise + CFGGuider (cfg 1) + KSamplerSelect euler + ManualSigmas + SamplerCustomAdvanced on the same latent. No steps binding: the sigmas are the schedule. lightx2v/Qwen-Image-2.1-Lightning @ 6b0a1176 (DMD, trained on 16 Ascend 910B NPUs): 4 steps at CFG 1 on the card's training schedule [1.0, 0.75, 0.5, 0.25] with exponential dynamic shifting (base_shift 0.5, max_shift 0.9, 256-8192 tokens of 16 px). ManualSigmas holds that schedule shifted for the canvas (text to image: 1 MP, 1.0, 0.857192, 0.666756, 0.400096, 0; edits: a 2048 square, 1.0, 0.917701, 0.787999, 0.553369, 0, since ImageScaleToMaxDimension scales image 1 to 2048 on its long side); Fuobe binds sigmas for the run's own canvas with the same shift. Chosen over the official Fun Acc 4-step LoRA, which needs VideoX-Fun's parallel-decoding output head and norm overrides (not a plain LoRA in ComfyUI). Expand keeps its Qwen3-VL scene description (TextGenerate) as it is. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-next-scene",@@ -12501,9 +12501,9 @@],"customNodes": [],"vramGb": 20,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Next-Scene LoRA by akhaliq: Apache-2.0 on its card (license tag; no LICENSE file), trained on Qwen-Image 2.1, whose Qwen Research License covers the base",- "validated": true,- "notes": "Storyboard's next frame on your GPU: the qwen-image-21-edit graph with akhaliq/Qwen-Image-2.1-Next-Scene-LoRA @ 67ce88cd (next_scene_step2500, the card's recommended diffusers/ComfyUI conversion) at 0.7, the card's clean-chain recipe: strength 0.7 or less and a 0.5 px Gaussian blur on each chained input (ImageBlur radius 1, sigma 0.5 on the previous panel), 28 steps (the card's usage), cfg 1, euler, simple. image = the previous panel, image2 = an optional character reference (left out when not given). The prompt starts \"Next Scene:\" with the camera move first (promptPrefix adds it when missing). Trained at 512 px on Sintel and Tears of Steel frame pairs: strongest on filmic scenes and establishing shots, static portraits are out of scope (card). storyboard-qwen-edit-2509-next-scene stays the classic choice on your GPU, and the cloud keeps Qwen-Image-Edit 2509 + its next-scene LoRA on fal (Qwen-Image 2.1 is not hosted). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file)."+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Next-Scene LoRA by akhaliq @ 67ce88cd: an apache-2.0 tag on its card only (no LICENSE file), an adapter of Qwen-Image 2.1, so non-commercial through its base; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)",+ "validated": false,+ "notes": "Storyboard's next frame on your GPU: the qwen-image-21-edit graph with akhaliq/Qwen-Image-2.1-Next-Scene-LoRA @ 67ce88cd (next_scene_step2500, the card's recommended diffusers/ComfyUI conversion) at 0.7, the card's clean-chain recipe: strength 0.7 or less and a 0.5 px Gaussian blur on each chained input (ImageBlur radius 1, sigma 0.5 on the previous panel), 28 steps (the card's usage), cfg 1, euler, simple. image = the previous panel, image2 = an optional character reference (left out when not given). The prompt starts \"Next Scene:\" with the camera move first (promptPrefix adds it when missing). Trained at 512 px on Sintel and Tears of Steel frame pairs: strongest on filmic scenes and establishing shots, static portraits are out of scope (card). storyboard-qwen-edit-2509-next-scene stays the classic choice on your GPU, and the cloud keeps Qwen-Image-Edit 2509 + its next-scene LoRA on fal (Qwen-Image 2.1 is not hosted). Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked)."},{"id": "qwen-image-21-t2i-small",@@ -12584,6 +12584,12 @@"url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors","sizeGb": 0.68},+ {+ "file": "adapter_v12.safetensors",+ "folder": "text_encoders",+ "url": "https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors",+ "sizeGb": 0.64+ },{"file": "texture_fix_vae_for_qwen_image_2.1_bf16.safetensors","folder": "vae",@@ -12599,12 +12605,11 @@}],"vramGb": 16,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Zen Image Edit fusion adapter (AiArtLab / recoilme): Qwen Research License; Qwen3.5-0.8B: Apache-2.0; zen-image-edit-comfyui nodes: Apache-2.0",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Zen Image Edit fusion adapter adapter_v12 (AiArtLab / recoilme, release v2 of zen-image-edit-comfyui, sha256 85578cd0): Qwen Research License; Qwen3.5-0.8B (Qwen @ 2fc06364): Apache-2.0; zen-image-edit-comfyui nodes @ 7a29e58c: Apache-2.0; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "The small-GPU route (Options → GPU \"Small\", or Auto when the GPU has less than 24 GB): recoilme/zen-image-edit-comfyui @ 7a29e58c (release v2) as its example graph t2i_api.json, ZenImage21AdapterLoader (adapter_file models/adapter_v12.safetensors, a path from ComfyUI's working folder; text_encoder Qwen/Qwen3.5-0.8B by id; bf16) -> ZenImage21TextEncode (resolution 1024; width / height the canvas) in place of the 17.5 GB Qwen3-VL 8B, the stock Qwen-Image 2.1 DiT (here the int8 file, 7.3 GB, where the example loads bf16) -> ModelSamplingAuraFlow shift 5 (the model author's static shift) -> KSampler 30 steps, cfg 1, euler, simple. Conditioning cosine 0.95 (text) against the native encoder (AiArtLab/zen-image-edit @ 3d571755). English prompts only; numerals on signs can come out wrong. About 17.5 GB resident at 1024 px with the bf16 DiT (card): the int8 DiT is what brings it to 16 GB (the example graphs load bf16). Needs transformers >= 5.17. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file).",+ "notes": "The small-GPU route (Options → GPU \"Small\", or Auto on a card under 20 GB when this route is ready there): recoilme/zen-image-edit-comfyui @ 7a29e58c (release v2) as its example graph t2i_api.json, ZenImage21AdapterLoader (adapter_file: adapter_v12.safetensors, a required file in models/text_encoders whose full path Fuobe binds from GET /experiment/models, else models/text_encoders/adapter_v12.safetensors from ComfyUI's folder; text_encoder: the pinned Qwen3.5-0.8B folder models/text_encoders/qwen3.5_0.8b when the server has it, else Qwen/Qwen3.5-0.8B by id; bf16) -> ZenImage21TextEncode (resolution 1024; width / height the canvas) in place of the 17.5 GB Qwen3-VL 8B, the stock Qwen-Image 2.1 DiT (here the int8 file, 7.3 GB, where the example loads bf16) -> ModelSamplingAuraFlow shift 5 (the model author's static shift) -> KSampler 30 steps, cfg 1, euler, simple. Conditioning cosine 0.95 (text) against the native encoder (AiArtLab/zen-image-edit @ 3d571755). English prompts only; numerals on signs can come out wrong. About 17.5 GB resident at 1024 px with the bf16 DiT (card): the int8 DiT is what brings it to 16 GB (the example graphs load bf16). Needs transformers >= 5.17. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked).","autoDownloads": [- "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"+ "Qwen3.5-0.8B (1.7 GB, Apache-2.0), the text encoder: Fuobe uses the pinned copy in models/text_encoders/qwen3.5_0.8b when it is there (hf download Qwen/Qwen3.5-0.8B --revision 2fc06364715b967f1860aea9cf38778875588b17 --local-dir models/text_encoders/qwen3.5_0.8b); otherwise the loader downloads it from Hugging Face on first run"]},{@@ -12695,6 +12700,12 @@"url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors","sizeGb": 0.68},+ {+ "file": "adapter_v12.safetensors",+ "folder": "text_encoders",+ "url": "https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors",+ "sizeGb": 0.64+ },{"file": "texture_fix_vae_for_qwen_image_2.1_bf16.safetensors","folder": "vae",@@ -12710,12 +12721,11 @@}],"vramGb": 16,- "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Zen Image Edit fusion adapter (AiArtLab / recoilme): Qwen Research License; Qwen3.5-0.8B: Apache-2.0; zen-image-edit-comfyui nodes: Apache-2.0",+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Zen Image Edit fusion adapter adapter_v12 (AiArtLab / recoilme, release v2 of zen-image-edit-comfyui, sha256 85578cd0): Qwen Research License; Qwen3.5-0.8B (Qwen @ 2fc06364): Apache-2.0; zen-image-edit-comfyui nodes @ 7a29e58c: Apache-2.0; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)","validated": false,- "notes": "The small-GPU edit, as zen-image-edit-comfyui's edit_api.json: ZenImage21TextEncode with the VAE linked (the DiT splices the references in as latents), resolution 1024 (references resized to about 1 MP on the 32 grid, the geometry adapter v12 was tuned at), image_1 the picture to change (the canvas follows it), image_2-4 optional references (left out when not given). Same sampler as qwen-image-21-t2i-small. English prompts only. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file).",+ "notes": "The small-GPU edit, as zen-image-edit-comfyui's edit_api.json: ZenImage21TextEncode with the VAE linked (the DiT splices the references in as latents), resolution 1024 (references resized to about 1 MP on the 32 grid, the geometry adapter v12 was tuned at), image_1 the picture to change (the canvas follows it), image_2-4 optional references (left out when not given). Same sampler as qwen-image-21-t2i-small. English prompts only. Options → Decoder \"Clean\" sets vae to the Texture-Fix VAE (madebyollin, a finetuned Qwen-Image 2.1 decoder, Qwen Research License; optional file, which the GPU pre-flight asks for when Clean is picked).","autoDownloads": [- "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"+ "Qwen3.5-0.8B (1.7 GB, Apache-2.0), the text encoder: Fuobe uses the pinned copy in models/text_encoders/qwen3.5_0.8b when it is there (hf download Qwen/Qwen3.5-0.8B --revision 2fc06364715b967f1860aea9cf38778875588b17 --local-dir models/text_encoders/qwen3.5_0.8b); otherwise the loader downloads it from Hugging Face on first run"]},{diff --git a/workflows/comfyui/model-pins.json b/workflows/comfyui/model-pins.jsonindex 05a82db9..40a21db4 100644--- a/workflows/comfyui/model-pins.json+++ b/workflows/comfyui/model-pins.json@@ -1,4 +1,9 @@{+ "https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors": {+ "revision": "v2",+ "sizeBytes": 638987136,+ "sha256": "85578cd0b41dfac3fad1845be2755971367deee5348a692feb589a09d120ea8c"+ },"https://huggingface.co/ATH-MaaS/OvisOCR3/resolve/main/model.safetensors": {"revision": "4833d5d2afa6e769ee933f024504d67ace80a24c","sizeBytes": 1706030528,diff --git a/workflows/comfyui/qwen-image-21-edit-fast.json b/workflows/comfyui/qwen-image-21-edit-fast.jsonindex e4544b99..9adf0a48 100644--- a/workflows/comfyui/qwen-image-21-edit-fast.json+++ b/workflows/comfyui/qwen-image-21-edit-fast.json@@ -281,7 +281,7 @@},"73": {"inputs": {- "sigmas": "1.0, 0.857192, 0.666756, 0.400096, 0.0"+ "sigmas": "1.0, 0.917701, 0.787999, 0.553369, 0.0"},"class_type": "ManualSigmas","_meta": {diff --git a/workflows/comfyui/qwen-image-21-edit-small.json b/workflows/comfyui/qwen-image-21-edit-small.jsonindex 576b7b85..9e35ba54 100644--- a/workflows/comfyui/qwen-image-21-edit-small.json+++ b/workflows/comfyui/qwen-image-21-edit-small.json@@ -2,7 +2,7 @@"1": {"inputs": {"model_folder": "",- "adapter_file": "models/adapter_v12.safetensors",+ "adapter_file": "models/text_encoders/adapter_v12.safetensors","text_encoder": "Qwen/Qwen3.5-0.8B","dtype": "bf16"},diff --git a/workflows/comfyui/qwen-image-21-t2i-small.json b/workflows/comfyui/qwen-image-21-t2i-small.jsonindex 744d5b7e..a009a694 100644--- a/workflows/comfyui/qwen-image-21-t2i-small.json+++ b/workflows/comfyui/qwen-image-21-t2i-small.json@@ -2,7 +2,7 @@"1": {"inputs": {"model_folder": "",- "adapter_file": "models/adapter_v12.safetensors",+ "adapter_file": "models/text_encoders/adapter_v12.safetensors","text_encoder": "Qwen/Qwen3.5-0.8B","dtype": "bf16"},diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.jsonindex 3180401c..29dd1d1d 100644--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@ -1,7 +1,7 @@{"v": 1,- "hash": "4ef230834074927f502ebc2ce5f776612e3df9d407e3b35cebc8afe1dc0cae03",- "comfyui": {"min":"0.42.0","testedCommit":"5841c187"},+ "hash": "21e39533b8e6ebec3b4a1edbf6ceaa7c052fa8c220d9b4e4e5729f461fb9d151",+ "comfyui": {"min":"0.41.0","testedCommit":"fc04da91"},"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","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","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"],"packs": {@@ -186,6 +186,7 @@"optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors": {"folder":"optical_flow","file":"raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","url":"https://huggingface.co/Comfy-Org/void-model/resolve/main/optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/void-model/resolve/f9c9e565920002478ab9477f4c99c29c52d16db3/optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","sizeBytes":21060840,"gated":false,"presence":"loader","loaders":[["OpticalFlowLoader","model_name"]]},"reuse/NemotronLabs-RE-USE-laughter.safetensors": {"folder":"reuse","file":"NemotronLabs-RE-USE-laughter.safetensors","url":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors","pinnedUrl":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors","sizeBytes":38592940,"gated":false,"packFolder":"ComfyUI-RE-USE","presence":"list"},"reuse/NemotronLabs-RE-USE.safetensors": {"folder":"reuse","file":"NemotronLabs-RE-USE.safetensors","url":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors","pinnedUrl":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors","sizeBytes":38592940,"gated":false,"packFolder":"ComfyUI-RE-USE","presence":"loader","loaders":[["REUSELoader","model"]]},+ "text_encoders/adapter_v12.safetensors": {"folder":"text_encoders","file":"adapter_v12.safetensors","url":"https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors","pinnedUrl":"https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors","sizeBytes":638987136,"sha256":"85578cd0b41dfac3fad1845be2755971367deee5348a692feb589a09d120ea8c","gated":false,"presence":"list"},"text_encoders/byt5_small_glyphxl_fp16.safetensors": {"folder":"text_encoders","file":"byt5_small_glyphxl_fp16.safetensors","url":"https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/byt5_small_glyphxl_fp16.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/1405a2b738c29b890cf6d03fc038d8d3e92eeed7/split_files/text_encoders/byt5_small_glyphxl_fp16.safetensors","sizeBytes":438643184,"gated":false,"presence":"loader","loaders":[["DualCLIPLoader","clip_name2"]]},"text_encoders/clip_g_hidream.safetensors": {"folder":"text_encoders","file":"clip_g_hidream.safetensors","url":"https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/text_encoders/clip_g_hidream.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/942970a008493fc9bf05b4827374009e69f6a993/split_files/text_encoders/clip_g_hidream.safetensors","sizeBytes":1389743104,"gated":false,"presence":"loader","loaders":[["QuadrupleCLIPLoader","clip_name2"]]},"text_encoders/clip_l.safetensors": {"folder":"text_encoders","file":"clip_l.safetensors","url":"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors","pinnedUrl":"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/6af2a98e3f615bdfa612fbd85da93d1ed5f69ef5/clip_l.safetensors","sizeBytes":246144152,"gated":false,"presence":"loader","loaders":[["DualCLIPLoader","clip_name1"]]},@@ -324,23 +325,23 @@"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":[]},- "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},- "qwen-image-21-edit-small": {"core":["KSampler","LoadImage","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-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":[]},+ "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":[]},+ "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":[]},+ "qwen-image-21-edit-small": {"core":["KSampler","LoadImage","ModelSamplingAuraFlow","SaveImage","SplitImageWithAlpha","UNETLoader","VAEDecode","VAELoader"],"packs":{"zen-image-edit-comfyui":["ZenImage21AdapterLoader","ZenImage21TextEncode"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/adapter_v12.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":["Qwen3.5-0.8B (1.7 GB, Apache-2.0), the text encoder: Fuobe uses the pinned copy in models/text_encoders/qwen3.5_0.8b when it is there (hf download Qwen/Qwen3.5-0.8B --revision 2fc06364715b967f1860aea9cf38778875588b17 --local-dir models/text_encoders/qwen3.5_0.8b); otherwise the loader downloads it from Hugging Face on first run"]},"qwen-image-21-inpaint": {"core":["CLIPLoader","GrowMask","KSampler","LoadImage","LoadImageMask","QwenImage21Cache","SaveImage","SetLatentNoiseMask","SplitImageWithAlpha","StringFormat","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_StitchInpaint"]},"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-inpaint-draft": {"core":["CFGGuider","CLIPLoader","GrowMask","KSamplerSelect","LoadImage","LoadImageMask","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SetLatentNoiseMask","SplitImageWithAlpha","StringFormat","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_StitchInpaint"]},"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":[]},"qwen-image-21-inpaint-fast": {"core":["CFGGuider","CLIPLoader","GrowMask","KSamplerSelect","LoadImage","LoadImageMask","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SetLatentNoiseMask","SplitImageWithAlpha","StringFormat","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_StitchInpaint"]},"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":[]},"qwen-image-21-live-edit": {"core":["BasicGuider","CLIPLoader","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","RandomNoise","SamplerCustomAdvanced","SplitImageWithAlpha","UNETLoader","VAEDecode","VAELoader"],"packs":{"fuobe-live":["CropFuobeLive","LoadImageFuobeLive","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","SaveImageFuobeLive"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-DMD2-2steps.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":[],"vramGb":20,"isolated":false,"firstRun":[]},- "qwen-image-21-next-scene": {"core":["CLIPLoader","ImageBlur","ImageScaleToMaxDimension","KSampler","LoadImage","LoraLoaderModelOnly","QwenImage21Cache","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-Next-Scene-step2500.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-next-scene": {"core":["CLIPLoader","ImageBlur","ImageScaleToMaxDimension","KSampler","LoadImage","LoraLoaderModelOnly","QwenImage21Cache","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-Next-Scene-step2500.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": {"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":[]},- "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-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":[]},+ "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":[]},+ "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":[]},+ "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","text_encoders/adapter_v12.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":["Qwen3.5-0.8B (1.7 GB, Apache-2.0), the text encoder: Fuobe uses the pinned copy in models/text_encoders/qwen3.5_0.8b when it is there (hf download Qwen/Qwen3.5-0.8B --revision 2fc06364715b967f1860aea9cf38778875588b17 --local-dir models/text_encoders/qwen3.5_0.8b); otherwise the loader downloads it 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":[]},"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},