r/StableDiffusion • • 9d ago

News dflow_2b small indie t2i model

Hi sub,

Showcasing a preview of my t2i model. It's still in training but already pretty usable.

https://huggingface.co/data-archetype/dflow_2b

2b params, using small text encoder (t5gemma 2), both model and VAE designed and trained by myself, on a single GPU.
It's mostly photography oriented.

It takes natural captions and json layouts (same format as MOSS).

Example gallery here, all with comfyUI workflow included.

https://huggingface.co/data-archetype/dflow_2b/blob/main/GALLERY.md

45 Upvotes

23 comments sorted by

2

u/TimeTruth2490 9d ago edited 9d ago

I know this model is still a work in progress, but I find it cool and fun for the size, so I decided to start training a 4 step LoRA (eDMD+LADD) for it (vs the default 50).

It is still very early on training but here is a sneak peak result from 4 steps using my LoRA:

Don't worry, I will share small custom ComfyUI node for loading LoRA files with DFlow2.

1

u/quantiler 9d ago

Nice, beat me to it ! What's LAD ?
I tried eDMD but found DMD2 to work better in my testing.

1

u/TimeTruth2490 9d ago

I did misspell :) LADD - latent adversarial diffusion distillation (see my MOSS LORA post - https://www.reddit.com/r/StableDiffusion/comments/1y06n27/mossimage_sft_new_4step_distillation_lora_using/ ), I used similar approach for this LoRA.

1

u/TimeTruth2490 9d ago

Portrait too

1

u/TimeTruth2490 8d ago edited 8d ago

I'm even throwing in MLX ComfyUI node for the Apple Silicon fans out there

~This will make your model even more popular :) Expect a separate post to bring some more attention to your model (and my LoRA).

You are welcome to add link to my LoRA too, so we can cross promote :)

https://huggingface.co/lvladikov/DFlow2-Distill-4steps-eDMD-LADD-LoRA

I might update the LoRA checkpoint one more time tonight ...

1

u/quantiler 2d ago

Model has been updated - made a bit of training progress + found some better sampler defaults, take a look at the latest gallery the workflows are embedded.

4

u/TizocWarrior 9d ago

The preview images look pretty good for a solo-trained model. Impressive!.

4

u/ApprehensiveTart3158 9d ago

This is insanely impressive, nice work!

1

u/TimeTruth2490 9d ago edited 9d ago

Looks good so far, what photo datasets did you use, if public ones? Based on your demo images this looks like the best looking small t2i model, which is not restricted to 512x512. Tell us more :)

2

u/quantiler 9d ago

A lot of the usual public datasets including common catalog, cc12m, imagenet + a lot of pexels + some scrapes, and a focus on quality over quantity. I've made most of the captioned datasets available on my HF.

1

u/FullOf_Bad_Ideas 9d ago

Wow, the text alignment is great. Overall image generation quality looks nice too. I assume it's due to how the architecture was tuned for strong text conditioning, right?

What GPU are you training it on and how many GPU hours it approximately took to get there?

3

u/quantiler 9d ago

Thanks, about 640 hours of GH200 at the current 584k steps checkpoint. That's excluding ablations etc.
I expect to stop training between 1k and 1.5k hours depending on budget considerations, though in an ideal world it could probably do with 3-5k hours to be fully converged.

2

u/quantiler 9d ago

Regarding the architecture : it was mostly tuned for fast convergence and PDG guidance with a modified version of the SPRINT paper, it's a form of weak model guidance ( or skip layer guidance but where you skip two thirds of the layers ) that converges much faster than CFG when trained properly. It's otherwise relatively standard single stream DiT architecture, close to MOSS or Z-image.
Text alignment was targeted a bit with some inference tricks, but otherwise is mostly a function of the caption quality I think.

2

u/TimeTruth2490 8d ago

1

u/TimeTruth2490 8d ago

Completed my LoRA training, now settled at chk00011000 (redownload if you already pulled previous chk00003000)