r/StableDiffusion • • 8h ago

Resource - Update MOSS-Image SFT - Update - Checkpoint 60K - 4-Step Distillation LoRA, eDMD + LADD - high detail images (T2I, T2I with Layout Boxes, I2I Edits)

I have another update for you guys, Release Checkpoint 60K (21K more training than the last one).

A LoRA for MOSS-Image SFT that renders in 4 steps without CFG (see note also for use with CFG) what the model renders in 50 steps at CFG 3 — MOSS's own sampler and schedule, one model call per step instead of two, trained by distribution matching against the 50-step teacher, with a critic that compares its pictures with the teacher's and with real photographs.

Changes: https://huggingface.co/lvladikov/MOSS-SFT-Distill-4step-LoRA/blob/main/DETAILED-README.md#chk00060000-vs-chk00039000

chk00060000 continues the line past chk00039000, the previous release: 21,000 more samples. The main aim was to keep the very high level of detail/texture/energy as in previous releases, so training recipe probes and tweaks were done during the process.

  • ⚡ 4 steps, CFG 1 — 4 model calls against the teacher's 100 (50 steps, two calls each at CFG 3), on MOSS's own 4-step schedule
  • ⏱️ About 14× less GPU time — 26.6 s against 387.3 s for the same 22 pictures at 1024×1024 on Comfy Cloud (one job each, the whole job's billed GPU time)
  • 🎯 The teacher's fine detail, a touch lighter — against the teacher on the same 22 test prompts and noise at 1024×1024 in ComfyUI: fine texture 1.07× the teacher's, haze 0.94×, colour 0.98×; on average 3.4 L* lighter than the teacher's pictures (scale 0–100)
  • 🔤 Writes the words a prompt spells out — every requested string right on 14 of the 15 text test prompts at 1024×1024 (the teacher 15, akhaliq's 4-step LoRA 12)
  • 📐 12 trained resolutions — wide, tall and square, from 768×512 and 512×768 up to 1824×1024 and 1024×1824
  • 🔌 Two files, one LoRA — the exact LoRA for diffusers / Python, and a ComfyUI file that is right at strength 1.0 in ComfyUI's standard loader
  • 🧩 Ten ComfyUI workflows — text to image, layout, image edit and PiD 4×, plus an experimental text to image with a negative prompt at a higher CFG (CFG 2 and negative prompt), each for local ComfyUI and for Comfy Cloud
  • 🎲 34,000 prompts from Lakonik's 3M-prompt dataset and 2,877 prompts that spell out words — signs, menus, posters, labels
  • 📷 About 8,000 captioned photo crops and the teacher's own pictures in the critic's real set — 3,600, supersampled (rendered larger and shrunk back) at 768×512 and 512×768 from 30,000 samples on and at all 12 sizes from 39,000
  • 🔢 60,000 training samples in the shipped weights — rank 64, 252 modules
  • 📅 Trained on a single NVIDIA B300 to 51,000 samples (about 102 hours), then on a single NVIDIA H200 for the last 9,000 (about 11 hours)

Model Card and Files updated, including example images - all available at: https://huggingface.co/lvladikov/MOSS-SFT-Distill-4step-LoRA

If you already have the 39,000 version

  • diffusers / hf_hub_download: the next online call fetches the new file, unless you pinned a revision.
  • Local ComfyUI: download the _comfyui file again and replace the old one in ComfyUI/models/loras/ (same name).
  • Comfy Cloud: an earlier import keeps the old file under the same name. Delete it from your model library, then import the file again from its Hugging Face URL; the workflows load it by the same name.

The 39,000 files stay in _archive/checkpoints/ (moss_sft_4step_rank_64_lora_chk00039000.safetensors and moss_sft_4step_rank_64_lora_chk00039000_comfyui.safetensors) if you prefer them.

22 Upvotes

21 comments sorted by

6

u/Sharlinator 6h ago

Still suffers the strange repeating texture effect that plagues Moss turbo distillations. Easiest to see in the pizza picture where the browned spots are just way too uniform to be real, but also in the cityscapes where the buildings and the pedestrians look like copies of each other.

Almost like a video game that reuses a small number of assets and uses  textures so small that  the tiling is obvious.

2

u/terrariyum 2h ago

Of course 4-steps doesn't look as good as 50 steps. Lunch isn't free. The question is whether this turbo lora is better or worse than others

0

u/05032-MendicantBias 6h ago

Amazing work

-2

u/TimeTruth2490 4h ago

Thank you

0

u/Arctic_Shadow_Aurora 8h ago

Keep it up, king!

1

u/nuclear_diffusion 40m ago

Thanks claude

0

u/gago_gaamdhani 8h ago

Been following you since you started those crazy krea2 turbo to turbo loras May I request/suggest an experiment on a MOSS base side turbo lora with teacher as MOSS base at 4/5cfg 50 steps instead of 3 cfg.

2

u/TimeTruth2490 8h ago

Thank you! As for the teacher - it has been the SFT model which OpenMOSS team themselves have tweaked more to produce better images than the Moss Base, and recommend using it with cfg 3, at 50 steps, so I've been following their guidance. You can try this LoRA on MOSS Base, for experimental runs, but it's not trained on/for it, so can't guarantee results. If you use my LoRA with cfg with Base, I would say use around cfg 2 max (and negative prompt if you need) as more will cause issues.

For normal use - use the LoRA with SFT :) at 4 steps (or more, 8 might give you even more details in some cases).

1

u/gago_gaamdhani 7h ago

It's just that I personally prefer MOSS Base's aesthetics over the SFT version. A lot of the demo images and examples shared by the dev team were generated using Base, and I noticed their settings were around CFG 4.

That's why I was suggesting an experimental Turbo LoRA trained with MOSS Base as the teacher, using CFG 4–5 at 50 steps, rather than CFG 3.

Either way, thanks a lot for all the amazing LoRA work you've been doing!

2

u/TimeTruth2490 7h ago edited 7h ago

I'll think about it. Btw Base official recommendation is still CFG 3 - https://huggingface.co/OpenMOSS-Team/MOSS-Image-Base

"... A lot of the demo images and examples shared by the dev team were generated using Base, and I noticed their settings were around CFG 4." - can you show me where/which images?

1

u/gago_gaamdhani 7h ago

Sure checkout out there demo space that's where I found there 20 or so example images and when you tap on them you can see there exact settings most of them uses 3-5 as there cfg with base as a main model,hope that helps also there where more example images I think in there technical paper where the settings did range on higher side of cfg but this is the most easily accessible.also the comfyui gives the bare minimum settings same stuff happend during qwen image 2.1 as well when they gave settings as cfg1 and steps 25.

1

u/TimeTruth2490 7h ago edited 6h ago

Yes, they have a wide variety of CFG mostly 3, 4 and 5 (I did render in ComfyUI few of my test prompts at CFG 4, they do look pale and un-punchy :) compared to SFT versions) - almost all of the demo space images lack detail and sharpness out of the box, borderline blurred (I think I saw this even mentioned by moss team when it was launched, that SFT gives more detail).

CFG 5 with Moss Base is the lowest I can get any reasonable images with and Base ...

1

u/gago_gaamdhani 6h ago

I would suggest you to check this post out!

2

u/TimeTruth2490 6h ago

I've seen those :) If I consider LoRA for Base it would be at CFG 5/50 steps as teacher and if it works, it works, but I won't train long (as I do for SFT), so likely small numbered checkpoint 6-12K max. Even this would cost a lot of time, effort and money.

1

u/gago_gaamdhani 6h ago

It's totally up to you! I completely understand the time, effort, and money that goes into training these LoRAs. I am just suggesting it as an experiment.

Either way, I can't thank you enough for all the amazing LoRAs you've shared!

2

u/TimeTruth2490 4h ago

sure, I'll let you know here if something does work out and it's not total failure :)

1

u/TimeTruth2490 7h ago

ComfyUI workflow even defaults it to CFG 2.5 so lower than the official 3, not higher. I suppose you like more punchy images hence you go for higher 4?

-2

u/Symbiote69 2h ago

this is amazing