PotionUI Docs v0.3.0

MOSS-Image

MOSS-Image (src/platform/runtime/native/arch/moss_image/) is OpenMOSS's open text-to-image model. It takes natural-language prompts, tag lists and JSON layout prompts that place text and objects. The prompt is encoded by Qwen3.5-9B (src/platform/runtime/native/text_encoders/qwen35.py), a hybrid of Gated DeltaNet and full-attention layers.

On this page

Files & detection#

The Comfy-Org/MOSS-Image repository ships four DiT files that share one architecture and are told apart from the weights:

  • moss_image_sft_bf16.safetensors and moss_image_base_bf16.safetensors: about 9.5 GB each.
  • moss_image_sft_int8_convrot_attn.safetensors and moss_image_base_int8_convrot_attn.safetensors: about 5 GB each. Only the per-block projections are int8; the text embedder, modulation, norms and head stay bf16.

The text encoder is qwen3.5_9b_int8_convrot.safetensors (about 9 GB, int8 ConvRot). The VAE is flux2-vae.safetensors, the same file the Flux2 preset recommends.

Presets & modes#

The shipped MOSS-Image preset has txt2img and inpaint, with a Base speed profile (50 steps, CFG 3.0, the default) and a Custom one. The pipes are model_loader/moss_image and generator/moss_image.

Inpaint repaints a painted area of a picture. The generator runs mode: "inpaint": the unpainted latents stay pinned to the source on every step, so only the painted area changes (see Latent-Mask Inpainting). Grow widens the painted area, the area is cropped with its surroundings, repainted and composited back with a Feather seam that fades out beyond the painted edge; the repainted area itself is never blended with the old content. The prompt is optional; blank asks for the surroundings continued. Strength 1.0 repaints from noise; lower keeps more of the old colours. Paint where a cast shadow should fall: a shadow can only be repainted inside the painted area. It keeps the negative-branch layer skip of txt2img.

The LoRA tab takes MOSS-Image LoRAs in the ComfyUI, diffusers/PEFT, ai-toolkit and kohya layouts, on both the SFT and Base checkpoints. LoRAs trained with split q/k/v projections are mapped onto the DiT's fused qkv. The run log lists any LoRA keys that didn't match.

The negative prompt is empty by default and only used when CFG is above 1. The Advanced tab has a Negative-branch layer skip toggle: on skips transformer block 22 on the negative pass, off runs plain CFG. The generator forces CFG-Zero* off. The Advanced tab also has a Step cache (FBCache) section, off by default (threshold 0): it reuses a step's output when the first block's video tokens barely changed, and only the positive pass is cached because the layer-skipped negative pass always recomputes.

Regions (txt2img). The prompt section's Regional view lets you draw boxes and describe what goes in each. The regional_prompt/moss_image pipe rewrites each image's already-expanded positive prompt into MOSS-Image's layout document: the prompt becomes summary.caption and every described box becomes an item with a bbox in pixels from the canvas centre (abs_centralized, yxyx) at the generation's width and height. Words in double quotes make an item a text item carrying those exact characters; every other item is an object. Boxes with a blank description are dropped, and with none left the prompt goes through unchanged. The negative prompt is not touched. Upstream calls the layout feature experimental.

LLM guide. The preset's llm.guide is adapted from the prompt guidance of OpenMOSS's moss-image-prompt-enhancer skill (https://github.com/OpenMOSS/MOSS-Image/tree/main/skills/moss-image-prompt-enhancer, Apache-2.0), with its Layout drafts replaced by regional prompting.

Sampling#

Resolutions are multiples of 16. The sigma shift is 5.0 unless the Advanced tab overrides it, and the default schedule (moss_grid) snaps the shifted ramp onto the training timestep grid, as the reference sampler does. The Sampler and Schedule pickers (family moss_image) list whatever the instance has registered; see Samplers and sigma schedules.

Limitations#

  • No Turbo checkpoint, and no img2img mode (inpaint is the only mode that starts from a picture). Few-step distillation LoRAs load but need a sampler the preset doesn't have yet.
  • The schedule follows the reference's snapped grid, so the same seed renders a different image than ComfyUI.
  • The int8 checkpoints carry an int8-attention hint that is ignored; attention runs on SDPA.

Hardware#

The preset requires 12 GB of VRAM and recommends 24 GB. The DiT takes about 10.2 GB in bf16 or 5.4 GB in int8, and the int8 text encoder about 8 GB; the two are swapped between the encode and denoise phases.