Live data from Hacker News

Running Stable Diffusion XL 1.0 in 298MB of RAM

github.com

1–10 of 166 posts

Re: Running Stable Diffusion XL 1.0 in 298MB of RAM

#3
Fascinating. The money quote:

"OnnxStream can consume even 55x less memory than OnnxRuntime while being only 0.5-2x slower"

The trade-off between (V)RAM use and inference time sounds like it could be advantageous in some scenarios, and not just when RAM is constrained like in the RPi case.

I actually wonder if this weight unloading approach can be used to handle larger batch sizes in the same amount of RAM, in effect increasing throughput massively at the cost of latency.

Re: Running Stable Diffusion XL 1.0 in 298MB of RAM

#7
post #3

Fascinating. The money quote: "OnnxStream can consume even 55x less memory than OnnxRuntime while being only 0.5-2x slower" The trade-off between (V)RAM use and inference time sounds like it could be advantageous in some scenarios, and not just when RAM is constrained like in the RPi case. I actually wonder if this weight unloading approach can be used to handle larger batch sizes in the same amount of RAM, in effect…

"0.5-2x slower" must be a typo on their part right? If something is 0.5x slower, then it is 2x faster.

I assume they meant to say "1.5-2x slower".

Re: Running Stable Diffusion XL 1.0 in 298MB of RAM

#9
So this should be it for trying to regulate stable diffusion type tech, right? If these models and their inference infra can be shrunk down to be runnable on a PS2, it doesn't seem like it's possible to stop this tech without a totalitarian surveillance state (and barely even then!).
Post reply on HN