CivArchive
    ← All articles
    Published November 25, 2026by lepetitprince716355

    Accelerating MOSS-Image by 43%-59% Without Softening Details or Diluting Style LoRAs

    4 views0 reactions0 comments on CivitAI0 collected
    benchmarkaccelerationworkflowmoss imageworkflowsguidestyle loracomfyui

    Quick Links & 30-Second Setup

    # 1. Install into ComfyUI custom_nodes (no pip install needed)
    cd ComfyUI/custom_nodes
    git clone https://github.com/lepetitprince716-prog/comfyui-moss-accel.git
    
    # 2. Restart ComfyUI, then drag-and-drop workflows/moss_accel_two_pass.json
    #    (or wire MOSS-Image Accelerate directly before KSampler — see Section 6 below)

    TL;DR

    We benchmarked six rounds of inference acceleration on MOSS-Image (5B DiT, int8 ConvRot, two-pass 1024x1024 -> 1456x1456 workflow on RTX 5080, ComfyUI 0.46.0) across scheduling/caching, low-bit quantization, and few-step distillation, and released comfyui-moss-accel plus our companion two-pass ComfyUI workflow:

    • Shipped workflow default (fast base + refine 7-step tail): 16.20 s -> 10.58 s (+53.1% throughput / -35% wall time), image rel-L2 0.0645, sharpness 0.985x — faster, lower-drift, and sharper than pairing with third-party Spectrum M1 (10.64 s, L2 0.0858, sharpness 0.952x) with zero extra dependencies.

    • Conservative 9-step option (fast base + refine 9-step tail): 11.36 s (+42.7% / -30% wall time), image rel-L2 0.0615, sharpness ratio 1.004x, zero style LoRA dilution at 2x zoom.

    • Fastest standard profile (fast base + refine 6-step tail): 10.18 s (+59.2% / -37% time), rel-L2 0.0675, sharpness 0.970x, zero broken prompts.

    • What we tested and rejected (with evidence): static post-training NVFP4 mixed checkpoints (C4 + real-weight CentriQ + ConvRot256 + SVDQuant-64 probe hitting an irreducible 11.7% dynamic E2M1 activation rounding wall vs INT8 ConvRot at 1.25%), base-pass EasyCache (4-5% softening and occasional face collapse hidden by median metrics), high-order CFG guidance predictors (worse than zero-order hold under er_sde), and mixing community DMD LoRAs with style LoRAs (heavy brushwork/texture washout).

    1. Benchmark Setup & Why Median L2 Alone Lies

    Every variant was measured on the same 14-prompt benchmark covering portraits, Chinese & English typography, fine textures, hands, landscapes, and anime illustrations, bracketed by identical unaccelerated controls (A before and A2 after each cell). Across rounds 5-6, A and A2 were bitwise identical (L2 = 0.0000) with 0.0%-0.1% median timing noise.

    Two evaluation pitfalls immediately changed our design:

    1. Rel-L2 cannot detect blur/softening. Early tests showed EasyCache 0.2 beating our presets on rel-L2, until we added a luma 4-neighbor Laplacian sharpness ratio: EasyCache and zero-order skip (hold) softened images by 4-5% (0.951-0.954x), whereas guidance-reuse steps (C) kept sharpness at 1.001-1.003x. Switching skipped steps (S) in fast from hold to linear extrapolation over sigma in denoised x0 space restored sharpness from 0.951x to 1.006x at identical speed.

    2. Median L2 hides catastrophic single-prompt failures. Double-pass EasyCache 0.2 actually had a lower median L2 (0.052) than fast + EasyCache 0.2 (0.063), yet 1:1 face crops revealed a smeared, misaligned face on our editorial portrait prompt (p0, cell 11 below). Every preset below passed 1:1 visual checks across all cells.

    Same-seed 1:1 visual crops at 1456x1456

    2. Why Pass 1 and Pass 2 Need Completely Different Acceleration

    Recording actual er_sde sampling trajectories revealed two asymmetric properties of two-pass MOSS-Image generation:

    1. Neighboring-step CFG guidance differences under er_sde are nearly uncorrelated (r ~ 0.15). Trying linear, quadratic, or Chebyshev predictors on the guidance difference performed strictly worse than zero-order hold. Instead, simply dropping the negative branch (N step: positive-only, no guidance) had ~30% lower open-loop drift than carrying stale guidance forward.

    2. Guidance plays opposite roles in Pass 1 vs Pass 2: On Pass 1 (full denoise 1.0, 25 steps), mid-schedule guidance still determines subject identity — running N steps (NF/NNF/NNNF) swapped the portrait subject entirely (cell 12 above). Pass 1 therefore stays on fast (warmup 0.36, pattern CSF, linear S extrapolation, 35/50 forwards). On Pass 2 (low-denoise 0.35 hires refine, 1456x1456), composition is already locked. Running N steps after a 20% warmup (refine: FFNNNNNNF at 9 steps) matched EasyCache 0.2 +46.2% tail speed-up with half the drift (0.0094 vs 0.0176) and zero softening (0.999x vs 0.974x).

    Pushing Pass 2 Further: 7-Step and 6-Step refine

    Because refine preserves sharpness so well, trimming Pass 2 from 9 steps to 7 or 6 steps yields cleaner gains than pushing Pass 1 harder:

    Variant                      E2E      Speed-up  Rel-L2  Sharpness  Notes
    ---------------------------  -------  --------  ------  ---------  -------------------------------
    fast + refine 9st            11.36 s  +42.7%    0.0615  1.004      Rock-solid across 3 runs
    fast + refine 7st (Default)  10.58 s  +53.1%    0.0645  0.985      Beats Spectrum M1, zero deps
    fast + refine 6st            10.18 s  +59.2%    0.0675  0.970      Fastest clean; mild knit soften
    Spectrum M1 + refine 9st     10.64 s  +52.5%    0.0858  0.952      Softer; swaps small bg objects

    3. Style LoRA Fidelity: Zero Dilution on Standard Acceleration

    A common worry with sampling accelerators is that skipping or reusing steps might water down trained style LoRAs. We tested two contrasting style LoRAs (thick painterly gouache and 1990s hand-inked cel animation) across 6 diverse prompts:

    • fast + refine (11.4 s, +42.7%): L2 0.064 / 0.108, sharpness 1.000 / 0.988. At 2x zoom, every palette-knife stroke, hand-inked crosshatch line, and cel grain particle remained intact.

    • Community 8-step DMD LoRA (3.3 s, +393%): L2 0.624 / 0.666, sharpness 0.473 / 0.452. Stacking DMD LoRA heavily washed out both thick gouache brushwork and 90s cel linework into smooth generic shading.

    Style LoRA at 2x zoom

    4. What About CUDA-Level Speed-ups & Sub-4s Turbo?

    Roofline & Operator Reality on RTX 5080 (SM120)

    Profiling MOSS-Image (int8 ConvRot) showed the two samplers take 93.2% of total wall time (16.8 s), and the four big linear projections already run at 87-99% of measured INT8 GEMM peak. Reading ComfyUI 0.46 MOSSImage and comfy_kitchen kernels also clarified why several common tricks hit walls:

    • torch.compile: currently errors inside KSampler (torch.Stream object has no attribute cuda_stream) due to direct .cuda_stream reads in comfy_kitchen CUDA wrappers under PyTorch 2.10 Dynamo — and MOSSImage already uses hand-fused rms_adaln, rms_rope_split_half, and fused situ + ConvRot INT8 kernels, leaving little extra fusion headroom.

    • Naive NVFP4 / INT8 mixed checkpoints: While NVFP4 GEMM is 1.7-2.2x faster than INT8 on qkv/o/ffn_up_gate (ffn_down is 2.7x slower because INT8 fuses situ while NVFP4 falls back), naive NVFP4 quantization incurred ~10x higher per-layer error (0.13 vs 0.013), causing grain, color cast, and broken faces across 42 layers (+12.7-17.7% speed, rejected). Even with real-weight CentriQ + ConvRot256 + SVDQuant-64 calibration, dynamic E2M1 activation rounding still hit an irreducible 11.7% wall vs INT8 ConvRot at 1.25%.

    Sub-4s Turbo (Few-Step DMD LoRAs)

    To cross under 4 s end-to-end (cutting total compute below ~800 TFLOP), both passes must use distilled few-step weights (CFG 1, euler/simple). If you want fast CFG 1 drafts without style LoRA washout, see our separate 12-step On-Policy Distilled LoRA MOSS Image — Fast-12 Turbo (OPD) v1.0 (Article 39708).

    5. Known Limitations & Safe Operating Boundaries

    Benchmark data and limitations

    1. Same-seed close, NOT pixel-identical: Reusing/extrapolating steps shifts secondary details slightly (RGB rel-L2 ~ 0.065: earrings, coat clasps, subtle head tilt). Set preset=off (or un-bypass the built-in A/B group) when exact baseline reproduction is required.

    2. Weaker late negative prompt: C steps reuse earlier guidance and refine (N steps) omits negative forwards after warmup, so negative prompt terms aimed at late fine details (hands/fingers) carry less weight.

    3. Never use refine on full-denoise Pass 1: Dropping guidance before composition locks swaps subject identity (Figure 03 #12). The node binary-searches percent_to_sigma (equivalent_steps = steps / coverage) so 7-step hires tails accelerate while coarse 8-step runs stay untouched.

    4. Automatic step-aside & calibration scope: Inactive at CFG=1 (8-step DMD runs have no uncond forward to save), <6 steps, <12 equivalent steps, or 2nd-order samplers (heun, dpm_2). Calibrated on MOSS-Image int8 ConvRot + er_sde; no NaN guard.

    6. Step-by-Step Guide: Installation, Node Wiring & Presets

    MOSS-Image two-pass accelerated workflow diagram

    Step A: Install the Custom Node (Zero Dependencies)

    Clone https://github.com/lepetitprince716-prog/comfyui-moss-accel (or download the v0.1.0 archive from GitHub Releases) into ComfyUI/custom_nodes/ and restart ComfyUI (ComfyUI >= 0.46.0):

    cd ComfyUI/custom_nodes
    git clone https://github.com/lepetitprince716-prog/comfyui-moss-accel.git

    Step B: Load the Ready-Made Two-Pass Workflow (or Wire Into Any Existing Graph)

    • Option 1 — Drop-in Workflow JSON (Recommended): Download moss_accel_two_pass_v0.1.0.zip from our Civitai Workflows Page (#3064697) (or grab workflows/moss_accel_two_pass.json directly from Hugging Face / GitHub), drag it onto ComfyUI, and select your local MOSS DiT, Qwen3.5 9B text encoder, and FLUX.2 VAE files in the loader group.

    • Option 2 — Add to Your Own Workflow in 10 Seconds: Search for MOSS-Image Accelerate on the canvas and insert it on the MODEL wire right after ModelSamplingAuraFlow (and any style LoRAs), immediately before each KSampler:

    01 Shared Model Line:
      UNETLoader (moss_image) -> [Optional] LoraLoaderModelOnly -> ModelSamplingAuraFlow (shift = 5.0)
    
    02 Pass 1 — Full-Denoise Base (1024 x 1024):
      ... -> MOSS-Image Accelerate (preset = fast)
          -> KSampler (steps = 25, cfg = 2.5, sampler = er_sde, scheduler = simple, denoise = 1.0)
          -> VAEDecode -> PreviewImage
    
    03 Pass 2 — Low-Denoise Hi-Res Refine (Lanczos to 1456 x 1456):
      ImageScale (lanczos, 1456 x 1456) -> VAEEncode
      ... -> MOSS-Image Accelerate (preset = refine)
          -> KSampler (steps = 7, cfg = 2.5, sampler = er_sde, scheduler = simple, denoise = 0.35)
          -> VAEDecode -> SaveImage

    Step C: Pick Your Preset

    Preset    Where to Use                    Forwards (at 25st / 7st)  Notes
    --------  ------------------------------  ------------------------  -------------------------------------------
    fast      Pass 1 full-denoise base        35 / 50 (-30% forwards)   Default base preset; x0 linear skip (1.006x)
    balanced  Pass 1 conservative option      39 / 50 (-22% forwards)   Guidance reuse only (no skipped steps)
    light     Pass 1 minimal drift            42 / 50 (-16% forwards)   Gentle guidance reuse
    refine    Pass 2 hires ONLY (denoise<1)   10 / 14 (-29% forwards)   Positive-only tail; 7st=10.58s, 9st=11.36s
    off       Any pass                        Full                      Bitwise identical to removing the node

    When running, ComfyUI's console logs one verification line per pass (for example: MOSS-Image Accelerate: preset refine, 7 steps (coverage 0.35, 20.00 equivalent steps), plan FFNNNNF, forwards 10 of 14) so you can confirm the active schedule at a glance.

    All Links & Compatible MOSS Style LoRAs

    Archived from CivitAI · Updated November 25, 2026View source