Live data from Hacker News

Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device

liuliu.me

21–30 of 184 posts

Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device

#24

Crashes every time... am I doing something wrong? iPhone 11 Pro.

Does it crash upon downloading models, or generating? I haven't tested on all the devices, but 11 Pro seems have 4GiB RAM, and should run with 384x384 resolution (check if that is the selected resolution at top right).

There are reports that iOS is not happy with how I computing SHA256 for downloaded model file by loading them all in memory for Xr (3GiB RAM). If this is happening for other devices, I may need to do streaming hash computing and put up a bugfix.

Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device

#25
post #22

Aww man, no ipad version? Tsk what did I get this 16gb of ram for?

Given couple of weeks. Still playing to see what's the optimal UI looks like for such large screen. 16GiB should be able to generate several images to select from at once.

Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device

#26
post #21

This looks so cool! Unfortunately, my 16.1 11pro is crashing before an image can be generated, let me know if I can do anything to debug/test this.

Which generation of iPad is that? Honestly I haven't tested iPad yet, still in designing phase.

Re: Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device

#29
post #24

Crashes every time... am I doing something wrong? iPhone 11 Pro.

Does it crash upon downloading models, or generating? I haven't tested on all the devices, but 11 Pro seems have 4GiB RAM, and should run with 384x384 resolution (check if that is the selected resolution at top right). There are reports that iOS is not happy with how I computing SHA256 for downloaded model file by loading them all in memory for Xr (3GiB RAM). If this is happening for other devices, I may need to do s…

It _might_ be easier just to use mmio and save any futzing around rewriting the actual code.
Post reply on HN