r/StableDiffusion • • 3d ago • Bravo 1

Discussion I built a SOTA 330M parameter image generation and editing model from scratch

Post image

I pretrained HobbyLM-Image on this year june month and released it but it was not good , it was not able to generate quality with proper structure such as broken car etc so I over this thanks giving weekend I decided to build the better version so post trained from existing weights and used training mixture from dataset such as COCO , flux 8M reason , JourneyDB , gpt4o images dataset , LAION for more than 100k steps it was able to improve object structure but human images it generated was distorted so then I took pexels datasets filtered to get images which has only humans and trained for 50k steps this improved but not at the level of larger models

for image editing I took training mix dataset of gpt-omni-edit-6M and ImagenHub/Text_Guided_Image_Editing model was able to change seasons , colour , add objects to scenes etc

for text rendering in generated images I filtered rendered text images alone using Qwen VL model and trained for 40k steps

Benchmarks (I know it does not matter) : Gen Eval 1 it score 0.83 which beats all sub 1B model I was able to find in arxiv , huggingface and Gen Evals 2 it scores 15.92 / 61.06 it again beats all sub 1B models and Stable diffusion SDXL 2.6B

model weight for hobbyLM-image-2 https://huggingface.co/rootxhacker/HobbyLM-image-2

hugginface Space for hobbyLM-image-2 : https://huggingface.co/spaces/rootxhacker/HobbyLM-Image-2

initial weights I released on June : https://huggingface.co/rootxhacker/HobbyLM-Image

HobbyLM image training code and inference code : https://github.com/harishsg993010/HobbyLM

you can also find all images it generated on readme of hugginface repo

139 Upvotes

50 comments sorted by

9

u/AeroInsightMedia 3d ago

Is this really less than 3GB? Really cool

12

u/Altruistic-Tea-5612 3d ago

Yeah 1.5GB excluding auto encoder etc

1

u/alex20_202020 3d ago

Yeah 1.5GB excluding auto encoder etc

Why so large? F32? What quality will it give at Q4 I run MOSS (3.3GB is only 2x larger than yours).

2

u/Altruistic-Tea-5612 3d ago

Yeag fp32

1

u/alex20_202020 2d ago

How long in comparison will it take to train 100M F128?

6

u/Aaron_rowe81 3d ago

what resolution are these examples at? with a 330M model, that'd help put the image quality in context

8

u/Altruistic-Tea-5612 3d ago

512

8

u/Aaron_rowe81 3d ago

512, got it. that makes the image quality more impressive for a 330M model

36

u/cderm 3d ago

I appreciate you sharing this, even if the quality isn’t top notch, nice work. Keep going

50

u/Ok_Roll_8698 3d ago

will smith eating spaghetti

2

u/kopimashin 2d ago

that's ishowspeed

79

u/And-Bee 3d ago • Bravo

17

u/lumos_AI_77 3d ago

Bro you must compare a 1b parameter model with other 1b model, and if it performs better it's considered SOTA

34

u/gutster_95 3d ago

"SOTA"

46

u/ApprehensiveTart3158 3d ago

SOTA for the size, he isn't claiming this model is better than something like krea2.

15

u/TopTippityTop 3d ago

Have you seen better for a 330m parameter model, by any chance?

7

u/Fickle-Indication148 3d ago

Sota in 300 MB.

9

u/RevenantLadder 3d ago

What, this isn't state of the art to you? Look at the state of that art.

25

u/RalFingerLP 3d ago

I am tired boss. But beside the pun, keep up the good work!

19

u/Uncle___Marty 3d ago

Some of those example images are pretty damn impressive for the model size. Appreciate you sharing and keep up the great work!

19

u/SOCSChamp 3d ago

To everyone jumping on the SOTA claim:

This does appear to be likely SOTA at first glance.  Its 330m parameters, we would compare it with anything relatively close to that size.  

SOTA doesn't necessarily mean frontier.  If its better than any sub 1b model, its SOTA.

4

u/Fast-Satisfaction482 3d ago

Impressive! Open source efficiency gains really excite me. 

2

u/ExorayTracer 3d ago

I came here for comments and didnt left dissapointed

2

u/Fickle-Indication148 3d ago

Some people dont understand what SOTA means and that SOTA is a relative word not absolute... like it doesnt mean GOAT or SOTA frontier... He clearly said SOTA and followed by model size. Means SOTA of that size, compare it to models in 330 and less.

1

u/Cukidzsi 3d ago

That's neat and all but can we stop overusing SOTA

1

u/lxe 3d ago

Retro!

1

u/Dry-Resist-4426 3d ago

Too true to be good. These must be cherry picked outputs. Get rekt.

P.S. happy to see, keep going champ.

1

u/venusredditads 2d ago

its somehow good and bad, in some examples: good, others? ...alright?
for 300m parameters, honestly? this is really good

-1

u/Green-Ad-3964 3d ago

what I've been saying for at least 3.5 years, now, is that OpenAI and Antrhopic didn't do anything "incredible". They just had a lot of computational power (thanks to Jansen and investors) and they were able to "steal" from the internet a lot of data. Add this to the 2017 paper "attention is all you need" and you have LLMs. Same for image generators.

Nothing more than that.

3

u/SimonBarfunkle 3d ago

Dumbest possible take imaginable. Not sure why you’re being upvoted lmao.

0

u/Green-Ad-3964 3d ago

prove me wrong. What did they do original? what did they do more than a GPT2? They simply added computational power and data.

1

u/RevenantLadder 3d ago

Is this satire?

3

u/Green-Ad-3964 3d ago

for those not understanding, yes

2

u/RevenantLadder 3d ago

What did they do more than a GPT2

Let's talk about your level of understanding first.

-3

u/Green-Ad-3964 3d ago

as I said, "They simply added computational power and data". GPT 2 was tiny. Today's models are huge. Claude and Astra are like a pentium with 1 million cores. They didn't radically evolve their architectures or alghoritms. Sure, they improved them and used the same models to build fancy interfaces...but all this thanks to huge capitals and...GPUs.

4

u/SimonBarfunkle 3d ago

You just said it’s satire but are now continuing earnestly. Which is it?

-1

u/ieatdownvotes4food 3d ago

yep.. it's not an invention, it's a discovery

1

u/Green-Ad-3964 3d ago

lol, no. "attention is all you need" was a discovery. Nothing that the greedy companies did later is a discovery. It's an implementation, at most.

5

u/ieatdownvotes4food 3d ago

greedy companies haven't done jack shit except vibe code harnesses, stumble on chain of thought loops, locked down all the hardware, and acquired funding to pay off all the lawsuits after stealing the world's data.

even long horizon tasks started with Ralph loops.

1

u/dilinjabass 3d ago

ok, but to be clear they didnt start off vibe coding anything, vibe coding came along later due to their product... They (humans) coded harnesses...

1

u/ieatdownvotes4food 3d ago

yeah, everyone was.. because of the 'discovery' .. not too much magic in there.

-1

u/Upper-Reflection7997 3d ago

Why are you calling this "state of the art" Op?

6

u/Altruistic-Tea-5612 3d ago

Hey I meant SOTA among sub 1B model

2

u/Additional_Drive1915 3d ago

You don't need to answer the idiots that have no clue.

Let them wander the world thinking they are smart, while the rest of us can laugh at them.

Interesting thought experiment though, what if only one sota would be allowed to exist in the world, I wonder if it would be a LLM, a car, a spaceship or a fantastic apple pie.

Thanks for an interesting post and keep up the good work.

0

u/[deleted] 3d ago

[deleted] — view deleted comment

12

u/Altruistic-Tea-5612 3d ago

Sorry
Here I meant SOTA among sub 1B models

8

u/Additional_Drive1915 3d ago

You are the one who should look it up.

OP is right, you are wrong.

5

u/TopTippityTop 3d ago

Obviously it is SOTA for a 330m parameter model.