select runpod template

RunPod Pytorch 2.1
runpod/pytorch
:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04

edit pod
make volume disk 50 gb

add expose HTTP ports 7860

upload all files into the workspace folder

to install run below command

cd /workspace
export HF_HOME="/workspace"
chmod +x runpod_installer.sh
./runpod_installer.sh


to use after install

open a new terminal

Execute below code

cd /workspace/PixArt-alpha
export HF_HOME="/workspace"
source venv/bin/activate
python app.py --share

run the app on runpod with share to not have any issues

for 8 bit use below

cd /workspace/PixArt-alpha
export HF_HOME="/workspace"
source venv/bin/activate
python app.py --use_8bit --share

other options are --use_512model , --use_DallE_VAE

--use_DallE_VAE = uses huge VRAM make sure to have at least 48 GB A6000 machine

