Add MOSS-Image on the Image v2 path and stop the queue calling it Klein.

The bench queue labeled every engine except Krea, Qwen, MiniMax, and LTX as Klein, and the v2 starter treated any engine other than Krea as Flux.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-22 20:04:58 -05:00
co-authored by Cursor
parent 74edeabc39
commit 354f475866
30 changed files with 873 additions and 111 deletions
+16 -2
View File
@@ -11,7 +11,7 @@ Image edit (v1) and Image v2 are siblings. v1 is unchanged. Do not mute-fix `wor
| Mask | — | Refine only; required. Missing mask is a 400, not an Edit fallback |
| Input still | Required | Edit / Compose / Refine required. Generate ignores stills |
| LoRAs | Optional user picker | Consistency (Flux only). Concept LoRA on xAIGen only. Krea has no Consistency |
| Defaults | 20 steps, CFG 1 | Flux: 24 steps, CFG 4 (turbo: 8 / 1). Krea: 8 steps, CFG 1 |
| Defaults | 20 steps, CFG 1 | Flux: 24 steps, CFG 4 (turbo: 8 / 1). Krea: 8 steps, CFG 1. MOSS generate: 25 steps, CFG 2.5 |
Poll v2 jobs the same way as v1: `GET /api/generate/{id}/stream` and `GET /api/generate/{id}`.
@@ -22,7 +22,7 @@ For Family Board stickers / panel backgrounds / icons, see **[asset-pack.md](./a
- **edit** — one image + text. Task is `scene`. Sending `image_b` is rejected. Use this to change lighting, background, or the whole frame from a single still.
- **compose** — two images + text. `image_b` is required. No silent one-image fallback. Use this to lock a person from A and pull a face or outfit from B.
- **refine** — one canvas + a painted mask + text. `image_a` and `mask` are required. `image_b` is ignored. Prompt only what should change inside the mask. Strength is denoise in that region (not CFG). Use this for face / hand / chest fixes without opening Comfy.
- **generate** — text only. No `image_a`, `image_b`, or mask. Size is width × height (768 / 1024 / 1280), not megapixels from a still. Engine is Flux or Krea for every Image v2 mode. Video stays MiniMax / LTX.
- **generate** — text only. No `image_a`, `image_b`, or mask. Size is width × height (768 / 1024 / 1280), not megapixels from a still. Engine is Flux, Krea, or MOSS. MOSS is generate only. Video stays MiniMax / LTX.
Compose tasks:
@@ -104,6 +104,20 @@ Krea Edit / Compose / Refine use the same UNET / CLIP / VAE. They encode the sti
Krea does not load Klein UNET, Klein CLIP, Klein VAE, Klein Consistency, or the Klein concept LoRA. Concept LoRA (`xaigen-klein_snofs_v1_4`) is xAIGen only; AIGen bypasses that node. On Krea it stays off unless `NUXT_KREA_CONCEPT_LORA` is set on xAIGen.
Generate MOSS (`moss_v2_generate.json`) is text-to-image only. Edit, Compose, Refine, and Iterate stay on Klein or Krea. ComfyUI 0.42+ is required (`CLIPLoader` type `moss_image`).
| Node | Role |
|------|------|
| `4` | `UNETLoader` — `moss_image_sft_int8_convrot.safetensors` |
| `5` | `CLIPLoader` type `moss_image`, device `cpu` when that option exists — `qwen3.5_9b_w4a8_gptq.safetensors`, else `qwen3.5_9b_int8_convrot.safetensors` |
| `6` | `VAELoader` — `flux2-vae_small.safetensors`, else `flux2-vae.safetensors` |
| `40` | `ModelSamplingAuraFlow` shift 5 (multiplier 1, matching the MOSS schedule) |
| `41` | `SkipLayerGuidanceDiTSimple` single layer 22 only |
| `14` | `EmptyFlux2LatentImage` at request width × height (1024×1024 start, about 1MP) |
| `15` | `KSampler` euler / sgm_uniform, default 25 steps, CFG 2.5 |
`ModelSamplingSD3` is not used. Its default multiplier is 1000, and MOSS samples with multiplier 1. `ModelSamplingAuraFlow` sets shift 5 at that multiplier. The prompt upsampler stays off. MOSS does not load Klein or Krea weights or LoRAs. Missing MOSS files fail the job. No Flux or Krea fallback. Steps and CFG are stored per engine. `scripts/setup-moss-image.ps1` downloads the single-file INT8 set into the Comfy models tree.
There is no `LoadImage` on Generate. If the executed Generate graph has a required LoadImage, the job fails. v1 node 145 (muted T2I with a baked prompt) is not used.
If `image_b` is sent on Edit/Compose and the executed graph has fewer than two `LoadImage` nodes, the job fails. If Refine runs without a mask input or without denoise on the scheduler, the job fails.