Quick Links & 30-Second Setup
GitHub Repository — lepetitprince716-prog/comfyui-moss-accel (custom node source,
Apache-2.0, zero extra pip dependencies,ComfyUI >= 0.46.0)Civitai Workflows Download — MOSS-Image Two-Pass Accelerated Workflow (#3064697) (ready-to-load
.jsonUI graph + API graph zip)Hugging Face Mirror — kefallrain/comfyui-moss-accel (workflows + full-resolution bilingual EN/ZH benchmark plates)
# 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 (
fastbase +refine7-step tail):16.20 s -> 10.58 s(+53.1% throughput / -35% wall time), image rel-L20.0645, sharpness0.985x— faster, lower-drift, and sharper than pairing with third-party Spectrum M1 (10.64 s, L20.0858, sharpness0.952x) with zero extra dependencies.Conservative 9-step option (
fastbase +refine9-step tail):11.36 s(+42.7% / -30% wall time), image rel-L20.0615, sharpness ratio1.004x, zero style LoRA dilution at 2x zoom.Fastest standard profile (
fastbase +refine6-step tail):10.18 s(+59.2% / -37% time), rel-L20.0675, sharpness0.970x, zero broken prompts.What we tested and rejected (with evidence): static post-training NVFP4 mixed checkpoints (
C4+ real-weightCentriQ + ConvRot256 + SVDQuant-64probe hitting an irreducible11.7%dynamicE2M1activation rounding wall vsINT8 ConvRotat1.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 underer_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:
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 at1.001-1.003x. Switching skipped steps (S) infastfromholdto linear extrapolation over sigma in denoisedx0space restored sharpness from0.951xto1.006xat identical speed.Median L2 hides catastrophic single-prompt failures. Double-pass EasyCache 0.2 actually had a lower median L2 (
0.052) thanfast + EasyCache 0.2(0.063), yet 1:1 face crops revealed a smeared, misaligned face on our editorial portrait prompt (p0, cell11below). Every preset below passed 1:1 visual checks across all cells.

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:
Neighboring-step CFG guidance differences under
er_sdeare 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 (Nstep: positive-only, no guidance) had ~30% lower open-loop drift than carrying stale guidance forward.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
Nsteps (NF/NNF/NNNF) swapped the portrait subject entirely (cell12above). Pass 1 therefore stays onfast(warmup 0.36, patternCSF, linearSextrapolation,35/50forwards). On Pass 2 (low-denoise 0.35 hires refine, 1456x1456), composition is already locked. RunningNsteps after a 20% warmup (refine:FFNNNNNNFat 9 steps) matched EasyCache 0.2 +46.2% tail speed-up with half the drift (0.0094vs0.0176) and zero softening (0.999xvs0.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 objects3. 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, sharpness1.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, sharpness0.473 / 0.452. Stacking DMD LoRA heavily washed out both thick gouache brushwork and 90s cel linework into smooth generic shading.

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.Streamobject has no attributecuda_stream) due to direct.cuda_streamreads incomfy_kitchenCUDA wrappers under PyTorch 2.10 Dynamo — andMOSSImagealready uses hand-fusedrms_adaln,rms_rope_split_half, and fusedsitu+ ConvRot INT8 kernels, leaving little extra fusion headroom.Naive NVFP4 / INT8 mixed checkpoints: While NVFP4 GEMM is
1.7-2.2xfaster than INT8 onqkv/o/ffn_up_gate(ffn_downis2.7xslower because INT8 fusessituwhile NVFP4 falls back), naive NVFP4 quantization incurred~10xhigher per-layer error (0.13vs0.013), causing grain, color cast, and broken faces across 42 layers (+12.7-17.7%speed, rejected). Even with real-weightCentriQ + ConvRot256 + SVDQuant-64calibration, dynamicE2M1activation rounding still hit an irreducible11.7%wall vsINT8 ConvRotat1.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

Same-seed close, NOT pixel-identical: Reusing/extrapolating steps shifts secondary details slightly (
RGB rel-L2 ~ 0.065: earrings, coat clasps, subtle head tilt). Setpreset=off(or un-bypass the built-in A/B group) when exact baseline reproduction is required.Weaker late negative prompt:
Csteps reuse earlier guidance andrefine(Nsteps) omits negative forwards after warmup, so negative prompt terms aimed at late fine details (hands/fingers) carry less weight.Never use
refineon full-denoise Pass 1: Dropping guidance before composition locks swaps subject identity (Figure 03#12). The node binary-searchespercent_to_sigma(equivalent_steps = steps / coverage) so 7-step hires tails accelerate while coarse 8-step runs stay untouched.Automatic step-aside & calibration scope: Inactive at
CFG=1(8-step DMD runs have no uncond forward to save),<6steps,<12equivalent steps, or 2nd-order samplers (heun,dpm_2). Calibrated on MOSS-Imageint8ConvRot +er_sde; noNaNguard.
6. Step-by-Step Guide: Installation, Node Wiring & Presets

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.gitStep 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.zipfrom our Civitai Workflows Page (#3064697) (or grabworkflows/moss_accel_two_pass.jsondirectly 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 Accelerateon the canvas and insert it on theMODELwire right afterModelSamplingAuraFlow(and any style LoRAs), immediately before eachKSampler:
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 -> SaveImageStep 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 nodeWhen 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
Custom Node (GitHub): https://github.com/lepetitprince716-prog/comfyui-moss-accel
Two-Pass Workflow Resource (Civitai): https://civitai.com/models/3064697
Workflows & Bilingual EN/ZH Figures (Hugging Face): https://huggingface.co/kefallrain/comfyui-moss-accel
Workflow Layout Compiler (`cwc` on GitHub): https://github.com/lepetitprince716-prog/comfyui-workflow-compiler (Article 39356)
Compatible MOSS Style LoRAs (0% dilution with
fast + refine): IceBrush (#3061816) · CyBlue (#3061745) · 1990s Hong Kong CineStill 800T (#3064073) · Spot Manga Ink (#3064588)



Comments