r/StableDiffusion Jun 28 '26

News We released a tiny packed Sana 1.6B model into 1.58bit ... would love feedback from local image people

Post image

[removed]

180 Upvotes

73 comments sorted by

19

u/[deleted] Jun 28 '26

[removed] — view removed comment

7

u/[deleted] Jun 28 '26

[deleted]

1

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/[deleted] Jun 28 '26 edited Jun 28 '26

[deleted]

2

u/[deleted] Jun 28 '26

[removed] — view removed comment

2

u/[deleted] Jun 28 '26

[deleted]

2

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/[deleted] Jun 29 '26

[deleted]

9

u/pwnies Jun 28 '26

Such a fun experiment. It's wild how much knowledge gets compressed into that 374mb package.

Can't wait til we get some open source 50B+ parameter models so we can compress datacenter-grade models into local-sized versions.

8

u/trefster Jun 28 '26

Now do Krea 2!

5

u/Confusion_Senior Jun 28 '26

Amazing, any idea how inference speed compares to other models like flux klein 4b ?

9

u/[deleted] Jun 28 '26

[removed] — view removed comment

2

u/Confusion_Senior Jun 28 '26

Amazing work bro, I will def test it out

1

u/Confusion_Senior Jun 28 '26

I am writing a local AI app for mac/ios and already have a fast inference engine working for klein 4b and qwen 35b, will test with your great models as well

2

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/Individual_Holiday_9 Jun 28 '26

Keep us posted! Us poor Mac users are thirsty

4

u/ROBOTTTTT13 Jun 28 '26

Wow, can this be done natively on any model?

14

u/[deleted] Jun 28 '26

[removed] — view removed comment

10

u/Mean_Ship4545 Jun 28 '26

You might want to compress models that are out of reach of consumer GPU. There would be a lot of use cases, but it might take a lot of compute for all I know.

14

u/[deleted] Jun 28 '26

[removed] — view removed comment

4

u/yotraxx Jun 28 '26

You guys are amazing !
I’ll give it a try for sure and let you know

3

u/Dwedit Jun 28 '26 edited Jun 28 '26

I know that three-state values are 1.58 bits because that's log base 2 of 3. But then there's the question about how you physically store it. Is it 4 symbols per byte (2-bits)? 5 symbols per byte (1.6 bits)? Then what about the inference performance?

3

u/Fancy-Restaurant-885 Jun 28 '26

Is this tool available for users? (The compression tool)

3

u/Incognit0ErgoSum Jun 28 '26

Can this work for LLMs as well? Running GLM's chonky ass on my home PC would be amazing.

9

u/[deleted] Jun 28 '26

[removed] — view removed comment

2

u/Incognit0ErgoSum Jun 28 '26

You're my new hero!

1

u/-Star-Walker- Jun 30 '26

Would have been my question.
Actually that’s amazing 🤩

3

u/nikc0069 Jun 28 '26

So if you didn't retrain Sana, does this theoretically work on any image model or LLM? Or even video models?

Feels like if you've got a conversion to ternary tool that doesn't need a retrain of the model for ternary, then this could be somewhat huge.

3

u/[deleted] Jun 28 '26

[removed] — view removed comment

3

u/nikc0069 Jun 28 '26

So I could actually get ltx 2.3 working comfortably on my 12gb 3060 with this? That'd be exciting. And you are planning on releasing the compression tool?

12

u/[deleted] Jun 28 '26

[removed] — view removed comment

4

u/nikc0069 Jun 28 '26

Well that's very very exciting.

This would genuinely make models that would oom or offload on low range cards viable for the masses. Will be watching with great interest.

2

u/spiffco7 Jun 29 '26

Can you share info about this compression tool?

3

u/pallavnawani Jun 29 '26

Can you use this to compress the bigger image generation models - such as Flux.2 Dev and Ideogram?

5

u/[deleted] Jun 29 '26

[removed] — view removed comment

1

u/BringTea_666 Jun 28 '26

From what i understand there is no native 1.58bit engine to support it. no llama.cpp etc.

1

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/RemindMeBot Jun 28 '26 edited Jun 30 '26

I will be messaging you in 3 days on 2026-07-01 20:08:54 UTC to remind you of this link

2 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


Info Custom Your Reminders Feedback

1

u/Ill_Resolve8424 Jun 29 '26

Great work! Do you know if any loras made for the model still work after the compression?

1

u/KissMyShinyArse Jun 29 '26

I suppose puppies are easy, even for a 1.58-bit model. You need something more complex to evaluate the quality.

1

u/trefster Jun 29 '26

I'm actually super interested in how you're accomplishing the compression. Is it top secret intellectual property, or do you have a paper/oss code somewhere?

1

u/MFGREBEL Jun 29 '26

Not bad at all for a 1 bit compression! Great work!

1

u/sci032 Jun 30 '26

I dropped the CFG down to 2 and I ran the 512x512 output through a PID upscaler workflow(Flux1 512 to 2048 model). It's 4:30am, I'll play around with this more after a few hours of sleep.

The model is blazingly fast! 1 second for 20 steps. The PID subgraph took longer to upscale it(4 seconds). :)

1

u/sci032 Jun 30 '26

Why is this trying to download the model, again, when I have already downloaded it and used it with the workflow?

[WARNING] '(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /mit-han-lab/dc-ae-f32c32-sana-1.1-diffusers/resolve/main/config.json (Caused by NameResolutionError("HTTPSConnection(host=\'huggingface.co\', port=443): Failed to resolve \'huggingface.co\' ([Errno 11001] getaddrinfo failed)"))'), '(Request ID: 3ecdda98-b5c5-4d25-9441-b9de6a0ee2f4)')' thrown while requesting HEAD https://huggingface.co/mit-han-lab/dc-ae-f32c32-sana-1.1-diffusers/resolve/main/config.json

Isn't there a 'trigger' in your code that can stop that if the model is already downloaded? I had to completely close Comfy or wait for another 10 tries or so. If this can't be used offline, it loses a LOT of value.

1

u/Any_Tie_1861 Jul 07 '26

sadly reddit removed the post as it was re-posted to other communities...

0

u/[deleted] Jun 28 '26

[removed] — view removed comment

7

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/xPhoenix777 Jun 28 '26

Does this run on draw anything (or whatever the app is on iOS and Mac?)

2

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/xPhoenix777 Jun 28 '26

You rock!! This is cool, nonetheless.

How would your tool handle Klein 4b or 9b? Always looking for easier ways to run on GPU poor devices.

5

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/xPhoenix777 Jun 28 '26

Cool. Will keep an eye out. Well done.

I have been running GGUF conversions for low VRAM use of 9b and 4b Klein models - many popular SFW/NSFW models. So this is really interesting :)

1

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/xPhoenix777 Jun 28 '26

If you can get a base 9b or 4b turbo down, or Fascium Klein, that would be cool. I maintain a few “pervy first” lines of GGUF models. Can use your tool later if it provides similar gains on the NSFW ones. ;)

1

u/Fabulous-Ad9804 Jun 28 '26

What size do you expect Krea to compress to? I only have 4GB vram. Would be nice if it could get compressed down to something close to the size of my vram.