Skip to content

armgit / fuobe

Public Imported from GitHub
0

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

MOSS N7-1: moss-image-t2i, MOSS-Image on your GPU with core nodes only

Claude5edd6bf92e98
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index 0a14dffa..00a45559 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -132,6 +132,8 @@ export const BINDING_KEYS = new Set([
'scheduler', 'motionFrame', 'colormatch', 'audioCfg', 'threshold', 'mosaicScale',
// DBS soundtrack separation (docs/research/dbs-separation-7.md §4.5): the DBS model and its channel mode
'separationModel', 'channels',
+ // MOSS-Image (docs/research/new-models-7.md §4.6): the KSampler's sampler and the UNET file its Quality / Fast settings pick
+ 'sampler', 'unet',
]);
// Sizes in GB: two decimals, and three where two would read 0 (a 4 MB DBS model), so no other entry's size changes.
diff --git a/scripts/comfy/hand-built/moss-image-t2i.json b/scripts/comfy/hand-built/moss-image-t2i.json
new file mode 100644
index 00000000..040add07
--- /dev/null
+++ b/scripts/comfy/hand-built/moss-image-t2i.json
@@ -0,0 +1,144 @@
+{
+ "1": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "moss_image_sft_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "MOSS-Image SFT (int8 convrot; Fast swaps in the 8-step DMD file)"
+ }
+ },
+ "2": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3.5_9b_w4a8_gptq.safetensors",
+ "type": "moss_image",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Qwen3.5-9B text encoder (w4a8)"
+ }
+ },
+ "3": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "flux2-vae_small.safetensors"
+ },
+ "_meta": {
+ "title": "FLUX.2 VAE with the small decoder"
+ }
+ },
+ "4": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "2",
+ 0
+ ],
+ "text": "A neat poster that reads \"FUOBE\" in bold letters"
+ },
+ "_meta": {
+ "title": "Prompt (plain words, or the compiled layout JSON)"
+ }
+ },
+ "5": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "2",
+ 0
+ ],
+ "text": "nsfw, worst quality, bad anatomy, watermark, jpeg artifact"
+ },
+ "_meta": {
+ "title": "Negative prompt (MOSS's own tags)"
+ }
+ },
+ "6": {
+ "class_type": "EmptyFlux2LatentImage",
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Canvas (the layout's width and height)"
+ }
+ },
+ "7": {
+ "class_type": "SkipLayerGuidanceDiTSimple",
+ "inputs": {
+ "model": [
+ "1",
+ 0
+ ],
+ "double_layers": "",
+ "single_layers": "22",
+ "start_percent": 0.0,
+ "end_percent": 0.5
+ },
+ "_meta": {
+ "title": "Skip-layer guidance at layer 22 (the Comfy template's)"
+ }
+ },
+ "8": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "7",
+ 0
+ ],
+ "positive": [
+ "4",
+ 0
+ ],
+ "negative": [
+ "5",
+ 0
+ ],
+ "latent_image": [
+ "6",
+ 0
+ ],
+ "seed": 0,
+ "steps": 25,
+ "cfg": 2.5,
+ "sampler_name": "er_sde",
+ "scheduler": "simple",
+ "denoise": 1.0
+ },
+ "_meta": {
+ "title": "Sampler (Standard: 25 steps, CFG 2.5, er_sde; Quality: 50, 3, euler)"
+ }
+ },
+ "9": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "8",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAEDecode"
+ }
+ },
+ "10": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "9",
+ 0
+ ],
+ "filename_prefix": "fuobe/moss-image-t2i"
+ },
+ "_meta": {
+ "title": "SaveImage"
+ }
+ }
+}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 41719e77..b5712a3f 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -111,6 +111,9 @@
// else the host's pick: TIGER when /system_stats says the device is cuda, BSRNN on a CPU)
// channels* (DBSSeparate channels: mono | each channel; params.extra.channels, "mono" for inputs with
// more than 2 channels, which ComfyUI can't save, with node 4 rewired to music + effects)
+// Keys added with MOSS-Image (docs/research/new-models-7.md §4.6). Model settings (params.extra; MOSS-Image's Quality control writes them):
+// sampler, scheduler (KSampler sampler_name / scheduler)
+// unet (UNETLoader file: the Fast tier's drop-in 8-step DMD file, listed in optionalModels)
// Entry field requiredModels: files a loader reads by a name with no extension (DBSLoader's model folder), listed in the
// manifest like any model (KNOWN_MODELS keys are the path under the folder, e.g. 'DBS-BSRNN-DnR/model.safetensors'), so the
// Workflows page's presence check and its install commands cover them.
@@ -217,6 +220,12 @@ export const KNOWN_MODELS = {
'H3-Person-Remover-V1.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors' },
'depth_anything_3_mono_large.safetensors': { folder: 'geometry_estimation', url: 'https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_mono_large.safetensors' },
// comfyui-oss-3 additions (docs/research/comfyui-oss-3.json, sizes from the Hugging Face tree API)
+ // MOSS-Image (research #7 §4.4): Comfy-Org's int8 / w4a8 set (the Comfy template's) at a pinned commit, and Spectrallic's SFT with the
+ // 8-step DMD LoRA merged in, a drop-in UNET for the Fast tier (Apache-2.0 throughout; the small VAE is byte-identical to BFL's FLUX.2-small-decoder).
+ 'moss_image_sft_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/MOSS-Image/resolve/530a4c94f92c35ef6818b1b035a983fe9dcf5f54/diffusion_models/moss_image_sft_int8_convrot.safetensors' },
+ 'qwen3.5_9b_w4a8_gptq.safetensors': { folder: 'text_encoders', url: 'https://huggingface.co/Comfy-Org/MOSS-Image/resolve/530a4c94f92c35ef6818b1b035a983fe9dcf5f54/text_encoders/qwen3.5_9b_w4a8_gptq.safetensors' },
+ 'flux2-vae_small.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/MOSS-Image/resolve/530a4c94f92c35ef6818b1b035a983fe9dcf5f54/vae/flux2-vae_small.safetensors' },
+ 'moss_image_sft_8stepdmd_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Spectrallic/MOSS-Image-SFT-8step-DMD-int8-convrot/resolve/8fdeb392c6322418687fc2519a7958c954497a22/moss_image_sft_8stepdmd_int8_convrot.safetensors' },
'z_image_turbo_bf16.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors' },
'qwen_3_4b.safetensors': { folder: 'text_encoders', url: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors' },
'ae.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors' },
@@ -645,6 +654,32 @@ export const SPEC = [
vramGb: 8,
notes: 'Lightweight baseline (single 6.9 GB checkpoint). Native 1024x1024 class resolutions. Default negative prompt replaced with a generic one.',
},
+ // ---- MOSS-Image (research #7 §4.6, package N7-1): plain words or a layout's JSON boxes ------------------------
+ {
+ id: 'moss-image-t2i',
+ title: 'MOSS-Image SFT text to image (plain words or a layout of boxes; strong Chinese and English text)',
+ capability: 't2i',
+ handBuilt: 'hand-built/moss-image-t2i.json',
+ bindings: {
+ prompt: [b('4', 'text')], negativePrompt: [b('5', 'text')], width: [b('6', 'width')], height: [b('6', 'height')],
+ seed: [b('8', 'seed')], steps: [b('8', 'steps')], cfg: [b('8', 'cfg')], sampler: [b('8', 'sampler_name')], scheduler: [b('8', 'scheduler')],
+ unet: [b('1', 'unet_name')],
+ },
+ outputs: [{ node: '10', kind: 'image' }],
+ defaults: { sampler: 'er_sde', scheduler: 'simple', unet: 'moss_image_sft_int8_convrot.safetensors' },
+ limits: { maxWidth: 2048, maxHeight: 2048, dimensionMultiple: 16 },
+ optionalModels: ['moss_image_sft_8stepdmd_int8_convrot.safetensors'],
+ vramGb: 16,
+ license: 'Apache-2.0 (MOSS-Image SFT, Qwen3.5-9B, FLUX.2 small decoder)',
+ notes:
+ 'Core nodes only (MOSS-Image is native in the pinned ComfyUI): Comfy-Org\'s template image_moss_image_t2i_bboxes without its subgraph, TextGenerate upsampler and box nodes. ' +
+ 'The prompt is plain words or a compiled layout (src/lib/layout-prompt.ts compileMoss: summary + items with pixel boxes from the canvas centre, y before x), which reaches the model verbatim; ' +
+ 'width / height are the layout\'s canvas (multiples of 16, up to 2048). Standard = the template: 25 steps, CFG 2.5, er_sde / simple, skip-layer guidance on layer 22 for the first half; ' +
+ 'Quality = USERGUIDE: 50 steps, CFG 3, euler; Fast = Spectrallic\'s SFT with the 8-step DMD LoRA merged (unet), 8 steps, CFG 1 (whether it keeps layouts is untested). ' +
+ 'vramGb 16 is a guess: there is no official figure; about 13 GB of files (DiT 5.4 + encoder 7.3 + VAE 0.25) and ComfyUI offloads. ' +
+ 'The int8 / w4a8 files run through comfy-kitchen\'s kernels, which need a PyTorch built for CUDA 13 (cu130): comfy/quant_ops.py turns its CUDA backend off otherwise, logs a warning and (a guess) falls back to a slower path. ' +
+ 'Validated by /prompt on the CPU library server only: no render, speed or text accuracy measured here.',
+ },
{
id: 'qwen-image-edit-2509',
title: 'Qwen-Image-Edit 2509 (Lightning 4-step)',
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index a6e2417f..2b279481 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -305,6 +305,12 @@
"error": null,
"at": "2026-10-17T21:02:01.881Z"
},
+ "moss-image-t2i": {
+ "sha256": "e306a63bdc30998b0f1083662f906faae772de46d8f6a71c90e17ec299b2fae5",
+ "validated": true,
+ "error": null,
+ "at": "2026-10-29T23:00:17.526Z"
+ },
"music-ace-step-15": {
"sha256": "a64cd8f69aaad6969b547e9c9b8354444cf938325c153ac7a253daae2d1b0ac7",
"validated": true,
diff --git a/tests/comfy-library-7.test.ts b/tests/comfy-library-7.test.ts
new file mode 100644
index 00000000..e4d4456f
--- /dev/null
+++ b/tests/comfy-library-7.test.ts
@@ -0,0 +1,107 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, describe, expect, it } from "vitest";
+import type { GenInput } from "@/lib/catalog/types";
+import type { ComfyWorkflow, Manifest } from "@/lib/comfy";
+import { compileMoss } from "@/lib/layout-prompt";
+
+// Research #7 (docs/research/new-models-7.md §4.4, §4.6): MOSS-Image's core-node graph in the ComfyUI library, its pinned
+// weights, and how the provider fills it (a compiled layout reaches CLIPTextEncode verbatim; Quality / Fast settings).
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-comfy-moss-"));
+process.env.FUOBE_DATA_DIR = tmp;
+process.env.COMFYUI_URL = "http://comfy.test:8188";
+const { prepareWorkflow } = await import("@/server/providers/comfyui");
+afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));
+
+const dir = path.join(process.cwd(), "workflows/comfyui");
+const manifest = JSON.parse(fs.readFileSync(path.join(dir, "manifest.json"), "utf8")) as Manifest;
+const entry = manifest.workflows.find((w) => w.id === "moss-image-t2i")!;
+const graph = JSON.parse(fs.readFileSync(path.join(dir, "moss-image-t2i.json"), "utf8")) as ComfyWorkflow;
+const subset = JSON.parse(fs.readFileSync(path.join(dir, "object_info.subset.json"), "utf8")) as Record<string, unknown>;
+
+const COMFY_ORG = "https://huggingface.co/Comfy-Org/MOSS-Image/resolve/530a4c94f92c35ef6818b1b035a983fe9dcf5f54";
+const FAST = "https://huggingface.co/Spectrallic/MOSS-Image-SFT-8step-DMD-int8-convrot/resolve/8fdeb392c6322418687fc2519a7958c954497a22/moss_image_sft_8stepdmd_int8_convrot.safetensors";
+
+describe("moss-image-t2i in the manifest", () => {
+ it("is a validated t2i graph with the contract's bindings, limits and licence", () => {
+ expect(entry).toMatchObject({ capability: "t2i", validated: true, vramGb: 16, customNodes: [], source: "hand-built (scripts/comfy/hand-built/moss-image-t2i.json)" });
+ expect(Object.keys(entry.bindings).sort()).toEqual(["cfg", "filenamePrefix", "height", "negativePrompt", "prompt", "sampler", "scheduler", "seed", "steps", "unet", "width"]);
+ expect(entry.limits).toEqual({ maxWidth: 2048, maxHeight: 2048, dimensionMultiple: 16 });
+ expect(entry.defaults).toEqual({ width: 1024, height: 1024, steps: 25, cfg: 2.5, sampler: "er_sde", scheduler: "simple", unet: "moss_image_sft_int8_convrot.safetensors" });
+ expect(entry.license).toBe("Apache-2.0 (MOSS-Image SFT, Qwen3.5-9B, FLUX.2 small decoder)");
+ expect(entry.outputs).toEqual([{ node: "10", kind: "image" }]);
+ expect(entry.notes).toMatch(/vramGb 16 is a guess/);
+ expect(entry.notes).toMatch(/CUDA 13 \(cu130\): comfy\/quant_ops\.py/);
+ });
+
+ it("pins Comfy-Org's int8 / w4a8 set (13 GB) and lists the Fast tier's file as optional", () => {
+ expect(entry.models).toEqual([
+ { file: "moss_image_sft_int8_convrot.safetensors", folder: "diffusion_models", url: `${COMFY_ORG}/diffusion_models/moss_image_sft_int8_convrot.safetensors`, sizeGb: 5.41 },
+ { file: "qwen3.5_9b_w4a8_gptq.safetensors", folder: "text_encoders", url: `${COMFY_ORG}/text_encoders/qwen3.5_9b_w4a8_gptq.safetensors`, sizeGb: 7.34 },
+ { file: "flux2-vae_small.safetensors", folder: "vae", url: `${COMFY_ORG}/vae/flux2-vae_small.safetensors`, sizeGb: 0.25 },
+ { file: "moss_image_sft_8stepdmd_int8_convrot.safetensors", folder: "diffusion_models", url: FAST, sizeGb: 5.41, optional: true },
+ ]);
+ const required = entry.models.filter((m) => !m.optional).reduce((n, m) => n + (m.sizeGb ?? 0), 0);
+ expect(required).toBeCloseTo(13, 0);
+ });
+
+ it("is core nodes only, wired as the Comfy template without its upsampler and box nodes", () => {
+ expect(Object.fromEntries(Object.entries(graph).map(([id, n]) => [id, n.class_type]))).toEqual({
+ "1": "UNETLoader",
+ "2": "CLIPLoader",
+ "3": "VAELoader",
+ "4": "CLIPTextEncode",
+ "5": "CLIPTextEncode",
+ "6": "EmptyFlux2LatentImage",
+ "7": "SkipLayerGuidanceDiTSimple",
+ "8": "KSampler",
+ "9": "VAEDecode",
+ "10": "SaveImage",
+ });
+ for (const n of Object.values(graph)) expect(subset[n.class_type], n.class_type).toBeTruthy();
+ expect(graph["2"].inputs).toMatchObject({ clip_name: "qwen3.5_9b_w4a8_gptq.safetensors", type: "moss_image" });
+ expect(graph["5"].inputs.text).toBe("nsfw, worst quality, bad anatomy, watermark, jpeg artifact");
+ expect(graph["7"].inputs).toEqual({ model: ["1", 0], double_layers: "", single_layers: "22", start_percent: 0, end_percent: 0.5 });
+ expect(graph["8"].inputs).toMatchObject({ model: ["7", 0], positive: ["4", 0], negative: ["5", 0], latent_image: ["6", 0], denoise: 1 });
+ expect(graph["9"].inputs).toEqual({ samples: ["8", 0], vae: ["3", 0] });
+ // No TextGenerate (it would rewrite a layout) and no third-party loader.
+ expect(JSON.stringify(graph)).not.toMatch(/TextGenerate|MOSSImageLayoutPrompt|MOSSImageUNETLoader|ModelSamplingSD3/);
+ });
+});
+
+describe("the provider fills moss-image-t2i", () => {
+ const prepare = async (input: GenInput) =>
+ (await prepareWorkflow("moss-image-t2i", { seed: 7, ...input }, { generationId: "gen-moss", op: "t2i", upload: async (_d, _t, name) => `up_${name}` })).workflow;
+
+ it("sends a compiled layout verbatim, at the size the aspect ratio and tier give", async () => {
+ const layout = compileMoss(
+ { summary: { caption: "雨中的街道。", meta: [], canvas: "single" }, items: [{ label: "text", caption: "Title.", text: "雨天", box: [0.1, 0.05, 0.9, 0.2] }] },
+ 1248,
+ 832,
+ );
+ const wf = await prepare({ prompt: layout, negativePrompt: "blurry", aspectRatio: "3:2", resolution: "1K" });
+ expect(wf["4"].inputs.text).toBe(layout);
+ expect(wf["5"].inputs.text).toBe("blurry");
+ expect(wf["6"].inputs).toMatchObject({ width: 1248, height: 832 });
+ expect(wf["8"].inputs).toMatchObject({ seed: 7, steps: 25, cfg: 2.5, sampler_name: "er_sde", scheduler: "simple" });
+ expect(wf["1"].inputs.unet_name).toBe("moss_image_sft_int8_convrot.safetensors");
+ });
+
+ it("takes a layout's exact canvas and the Quality / Fast settings from params.extra", async () => {
+ const best = await prepare({ prompt: "a poster", extra: { width: 1536, height: 1024, steps: 50, cfg: 3, sampler: "euler", scheduler: "simple", layout: { summary: {}, items: [] } } });
+ expect(best["6"].inputs).toMatchObject({ width: 1536, height: 1024 });
+ expect(best["8"].inputs).toMatchObject({ steps: 50, cfg: 3, sampler_name: "euler" });
+ const fast = await prepare({ prompt: "a poster", extra: { steps: 8, cfg: 1, sampler: "euler", unet: "moss_image_sft_8stepdmd_int8_convrot.safetensors" } });
+ expect(fast["1"].inputs.unet_name).toBe("moss_image_sft_8stepdmd_int8_convrot.safetensors");
+ expect(fast["8"].inputs).toMatchObject({ steps: 8, cfg: 1 });
+ });
+
+ it("keeps a wide shape within 2048 px on the 16-pixel grid", async () => {
+ const wf = await prepare({ prompt: "a banner", aspectRatio: "21:9", resolution: "1.5K" });
+ const { width, height } = wf["6"].inputs as { width: number; height: number };
+ expect(width).toBeLessThanOrEqual(2048);
+ expect(width % 16).toBe(0);
+ expect(height % 16).toBe(0);
+ });
+});
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 49f037ae..0299effa 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-10-29T20:13:35.739Z",
+ "generatedAt": "2026-10-29T23:00:06.691Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -1198,6 +1198,133 @@
"validated": true,
"notes": "Lightweight baseline (single 6.9 GB checkpoint). Native 1024x1024 class resolutions. Default negative prompt replaced with a generic one."
},
+ {
+ "id": "moss-image-t2i",
+ "title": "MOSS-Image SFT text to image (plain words or a layout of boxes; strong Chinese and English text)",
+ "capability": "t2i",
+ "file": "moss-image-t2i.json",
+ "source": "hand-built (scripts/comfy/hand-built/moss-image-t2i.json)",
+ "bindings": {
+ "prompt": [
+ {
+ "node": "4",
+ "input": "text"
+ }
+ ],
+ "negativePrompt": [
+ {
+ "node": "5",
+ "input": "text"
+ }
+ ],
+ "width": [
+ {
+ "node": "6",
+ "input": "width"
+ }
+ ],
+ "height": [
+ {
+ "node": "6",
+ "input": "height"
+ }
+ ],
+ "seed": [
+ {
+ "node": "8",
+ "input": "seed"
+ }
+ ],
+ "steps": [
+ {
+ "node": "8",
+ "input": "steps"
+ }
+ ],
+ "cfg": [
+ {
+ "node": "8",
+ "input": "cfg"
+ }
+ ],
+ "sampler": [
+ {
+ "node": "8",
+ "input": "sampler_name"
+ }
+ ],
+ "scheduler": [
+ {
+ "node": "8",
+ "input": "scheduler"
+ }
+ ],
+ "unet": [
+ {
+ "node": "1",
+ "input": "unet_name"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "10",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "10",
+ "kind": "image"
+ }
+ ],
+ "defaults": {
+ "width": 1024,
+ "height": 1024,
+ "steps": 25,
+ "cfg": 2.5,
+ "sampler": "er_sde",
+ "scheduler": "simple",
+ "unet": "moss_image_sft_int8_convrot.safetensors"
+ },
+ "limits": {
+ "maxWidth": 2048,
+ "maxHeight": 2048,
+ "dimensionMultiple": 16
+ },
+ "models": [
+ {
+ "file": "moss_image_sft_int8_convrot.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/Comfy-Org/MOSS-Image/resolve/530a4c94f92c35ef6818b1b035a983fe9dcf5f54/diffusion_models/moss_image_sft_int8_convrot.safetensors",
+ "sizeGb": 5.41
+ },
+ {
+ "file": "qwen3.5_9b_w4a8_gptq.safetensors",
+ "folder": "text_encoders",
+ "url": "https://huggingface.co/Comfy-Org/MOSS-Image/resolve/530a4c94f92c35ef6818b1b035a983fe9dcf5f54/text_encoders/qwen3.5_9b_w4a8_gptq.safetensors",
+ "sizeGb": 7.34
+ },
+ {
+ "file": "flux2-vae_small.safetensors",
+ "folder": "vae",
+ "url": "https://huggingface.co/Comfy-Org/MOSS-Image/resolve/530a4c94f92c35ef6818b1b035a983fe9dcf5f54/vae/flux2-vae_small.safetensors",
+ "sizeGb": 0.25
+ },
+ {
+ "file": "moss_image_sft_8stepdmd_int8_convrot.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/Spectrallic/MOSS-Image-SFT-8step-DMD-int8-convrot/resolve/8fdeb392c6322418687fc2519a7958c954497a22/moss_image_sft_8stepdmd_int8_convrot.safetensors",
+ "sizeGb": 5.41,
+ "optional": true
+ }
+ ],
+ "customNodes": [],
+ "vramGb": 16,
+ "license": "Apache-2.0 (MOSS-Image SFT, Qwen3.5-9B, FLUX.2 small decoder)",
+ "validated": true,
+ "notes": "Core nodes only (MOSS-Image is native in the pinned ComfyUI): Comfy-Org's template image_moss_image_t2i_bboxes without its subgraph, TextGenerate upsampler and box nodes. The prompt is plain words or a compiled layout (src/lib/layout-prompt.ts compileMoss: summary + items with pixel boxes from the canvas centre, y before x), which reaches the model verbatim; width / height are the layout's canvas (multiples of 16, up to 2048). Standard = the template: 25 steps, CFG 2.5, er_sde / simple, skip-layer guidance on layer 22 for the first half; Quality = USERGUIDE: 50 steps, CFG 3, euler; Fast = Spectrallic's SFT with the 8-step DMD LoRA merged (unet), 8 steps, CFG 1 (whether it keeps layouts is untested). vramGb 16 is a guess: there is no official figure; about 13 GB of files (DiT 5.4 + encoder 7.3 + VAE 0.25) and ComfyUI offloads. The int8 / w4a8 files run through comfy-kitchen's kernels, which need a PyTorch built for CUDA 13 (cu130): comfy/quant_ops.py turns its CUDA backend off otherwise, logs a warning and (a guess) falls back to a slower path. Validated by /prompt on the CPU library server only: no render, speed or text accuracy measured here."
+ },
{
"id": "qwen-image-edit-2509",
"title": "Qwen-Image-Edit 2509 (Lightning 4-step)",
diff --git a/workflows/comfyui/moss-image-t2i.json b/workflows/comfyui/moss-image-t2i.json
new file mode 100644
index 00000000..5b18e053
--- /dev/null
+++ b/workflows/comfyui/moss-image-t2i.json
@@ -0,0 +1,144 @@
+{
+ "1": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "moss_image_sft_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "MOSS-Image SFT (int8 convrot; Fast swaps in the 8-step DMD file)"
+ }
+ },
+ "2": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3.5_9b_w4a8_gptq.safetensors",
+ "type": "moss_image",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Qwen3.5-9B text encoder (w4a8)"
+ }
+ },
+ "3": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "flux2-vae_small.safetensors"
+ },
+ "_meta": {
+ "title": "FLUX.2 VAE with the small decoder"
+ }
+ },
+ "4": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "2",
+ 0
+ ],
+ "text": "A neat poster that reads \"FUOBE\" in bold letters"
+ },
+ "_meta": {
+ "title": "Prompt (plain words, or the compiled layout JSON)"
+ }
+ },
+ "5": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "2",
+ 0
+ ],
+ "text": "nsfw, worst quality, bad anatomy, watermark, jpeg artifact"
+ },
+ "_meta": {
+ "title": "Negative prompt (MOSS's own tags)"
+ }
+ },
+ "6": {
+ "class_type": "EmptyFlux2LatentImage",
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Canvas (the layout's width and height)"
+ }
+ },
+ "7": {
+ "class_type": "SkipLayerGuidanceDiTSimple",
+ "inputs": {
+ "model": [
+ "1",
+ 0
+ ],
+ "double_layers": "",
+ "single_layers": "22",
+ "start_percent": 0,
+ "end_percent": 0.5
+ },
+ "_meta": {
+ "title": "Skip-layer guidance at layer 22 (the Comfy template's)"
+ }
+ },
+ "8": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "7",
+ 0
+ ],
+ "positive": [
+ "4",
+ 0
+ ],
+ "negative": [
+ "5",
+ 0
+ ],
+ "latent_image": [
+ "6",
+ 0
+ ],
+ "seed": 0,
+ "steps": 25,
+ "cfg": 2.5,
+ "sampler_name": "er_sde",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "Sampler (Standard: 25 steps, CFG 2.5, er_sde; Quality: 50, 3, euler)"
+ }
+ },
+ "9": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "8",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAEDecode"
+ }
+ },
+ "10": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "9",
+ 0
+ ],
+ "filename_prefix": "fuobe/moss-image-t2i"
+ },
+ "_meta": {
+ "title": "SaveImage"
+ }
+ }
+}
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index 8ec88f15..33383be2 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -16697,6 +16697,89 @@
"essentials_category": null,
"has_intermediate_output": false
},
+ "SkipLayerGuidanceDiTSimple": {
+ "input": {
+ "required": {
+ "model": [
+ "MODEL",
+ {}
+ ],
+ "double_layers": [
+ "STRING",
+ {
+ "advanced": true,
+ "default": "7, 8, 9",
+ "multiline": false
+ }
+ ],
+ "single_layers": [
+ "STRING",
+ {
+ "advanced": true,
+ "default": "7, 8, 9",
+ "multiline": false
+ }
+ ],
+ "start_percent": [
+ "FLOAT",
+ {
+ "advanced": true,
+ "default": 0,
+ "min": 0,
+ "max": 1,
+ "step": 0.001
+ }
+ ],
+ "end_percent": [
+ "FLOAT",
+ {
+ "advanced": true,
+ "default": 1,
+ "min": 0,
+ "max": 1,
+ "step": 0.001
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "model",
+ "double_layers",
+ "single_layers",
+ "start_percent",
+ "end_percent"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MODEL"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "MODEL"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "SkipLayerGuidanceDiTSimple",
+ "display_name": null,
+ "description": "Simple version of the SkipLayerGuidanceDiT node that only modifies the uncond pass.",
+ "python_module": "comfy_extras.nodes_slg",
+ "category": "advanced/guidance",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": true,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
"SolidMask": {
"input": {
"required": {