Program not working on GPU but works on CPU

Upgrading the CUDA toolkit is a last resort, so I’ll try these first. Also, the above error may simply be due to insufficient VRAM…

pip install -U accelerate
pip install diffusers==0.32.2 transformers<=4.48.3