Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
11–20 of 184 posts
Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#12Earlier quoted context omitted.
MacOS has transparent memory compression. Unclear to me if that's made its way to iPhone, but if it hasn't yet it will sooner or later.
Memory compression? I can't find any good resources to read about it, any hints? I'm having trouble imaging how could it possibly work without totally destroying performance.
It’s something similar to swap - apps do not need to have built in support for it.
Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#13Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#14Could in-memory compression used to bring down the RAM requirements? There are some performance compressors like Blosch tuned for this: https://www.blosc.org/pages/blosc-in-depth/ “Faster than memcpy” is the slogan.
MacOS has transparent memory compression. Unclear to me if that's made its way to iPhone, but if it hasn't yet it will sooner or later.
Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#15This is absolutely incredible. It takes about 45 seconds to generate a whole image on my iPhone SE3 - which is about as fast as my M1 Pro macbook was doing it with the original version!
Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#16Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#17Earlier quoted context omitted.
Memory compression? I can't find any good resources to read about it, any hints? I'm having trouble imaging how could it possibly work without totally destroying performance.
On Mac, you can find Compressed memory in Activity monitor. It’s something similar to swap - apps do not need to have built in support for it.
Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#18Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#19Earlier quoted context omitted.
Memory compression? I can't find any good resources to read about it, any hints? I'm having trouble imaging how could it possibly work without totally destroying performance.
On Mac, you can find Compressed memory in Activity monitor. It’s something similar to swap - apps do not need to have built in support for it.
Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
#20Earlier quoted context omitted.
MacOS has transparent memory compression. Unclear to me if that's made its way to iPhone, but if it hasn't yet it will sooner or later.
My guess is that iPhone is purely “kill app” instead of “compress memory / swap” OOM model. This makes more sense for mobile.
Seems to mesh well with the iOS idea of using a single app at a time and minimizing background processing in apps that you aren't actively using.
In an out of memory situation I think apps just get killed as you suggest.