Instructions to use Pinkstack/LiliPixel-V1-190M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Pinkstack/LiliPixel-V1-190M with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Pinkstack/LiliPixel-V1-190M", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
LiliPixel V1 running on a 32-bit Samsung Galaxy A02 β CPU-only! π₯
Hi Pinkstack!
First of all, thank you for creating and open-sourcing LiliPixel V1!
We wanted to share a rather unusual experiment: we successfully adapted LiliPixel V1 190M to run entirely on a Samsung Galaxy A02, a low-end 32-bit Android phone, using only its CPU! π₯
With AI-assisted engineering, we developed a lightweight Python + NumPy + OpenBLAS inference implementation, including memory-conscious attention processing.
Test device:
- Samsung Galaxy A02 (SM-A022F)
- Android 11, 32-bit ARM
- MediaTek MT6739
- CPU-only inference, no GPU or cloud processing
Results:
- 16Γ16, 4 steps: 11 minutes 32 seconds
- Successfully generated 12 images on the phone
- Tested 16Γ16, 32Γ32 and 64Γ64 resolutions
- Also completed a 30-step generation test
It's definitely not fast, but the fact that it works on such modest hardware is what makes this experiment exciting! π
We've published the source code, installation instructions, device measurements and all 12 generated images on GitHub:
https://github.com/NocchiLee/LiliPixel-on-Potato-Android
This is an experimental adaptation rather than a performance benchmark. We haven't exhaustively verified numerical equivalence with the original PyTorch pipeline.
We thought you might enjoy seeing your model running on hardware that probably wasn't part of the original plan!
Thank you again for making LiliPixel available to the community.
Cheers,
NocchiLee
Hey @NocchiLee , this is a really cool project and showcase using LiliPixel! π π₯
Running this model on an edge low-powered mobile is awesome. I've looked around your GitHub repo and it looks quite well made, props for that! For 64x64 it's not surprising that you couldn't generate anything coherent with just 4 steps (try 16?) but the other sprites with just 4 steps look surprisingly good, so that's awesome. Plus the "benchmark" speed results are interesting to look at.
Nice work! I definitely enjoyed seeing it run on unplanned hardware so well! (considering the size of the model 11 minutes is not bad at all)
And you're welcome, this is exactly the kinds of tinkering small models are meant for. If you have any kinds of questions feel free to ask.
Have a good one and stay awesome,
- Nate.