PixArt-α with less than 8GB VRAM

I know this is the Stable Diffusion Reddit community (and all my website posts have been about SD) but I wanted to share this one here too because it's a continuation of https://www.felixsanz.dev/articles/how-to-implement-stable-diffusion, and because what I explain here can also be used with any diffusion model, including SD. I just wanted to optimize another model to not repeat myself all the time.

This new article is about running PixArt-α model using 6.4GB of VRAM, something that fits in my tortured 2070. As always... I hope you like it, that it is useful, and if you give me any feedback it is welcome.

Link: https://www.felixsanz.dev/articles/pixart-a-with-less-than-8gb-vram

https://preview.redd.it/9xq8d3kxmmdc1.jpg?width=1200&format=pjpg&auto=webp&s=00830aaaf544d3e66823cb2b6aa728b54aee4d39