Skip to content

Instantly share code, notes, and snippets.

@cpietsch
Created January 18, 2023 12:35
Show Gist options
  • Save cpietsch/adf6ce085d8b42e776afdd073c4ab89f to your computer and use it in GitHub Desktop.
Save cpietsch/adf6ce085d8b42e776afdd073c4ab89f to your computer and use it in GitHub Desktop.
Lovelace Optimization for Stable Diffusion on Linux (Automatic1111/InvokeAI)

Lovelace Optimization for Stable Diffusion

Currently you will need to hotfix/manually update some packages in order to get the performance you deserve when using a lovelace gpu (4080/4090/etc)

Automatic1111

InvokeAI

  • using conda env
  • conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
  • copy cudnn-linux-x86_64-8.7.0.84_cuda11-archive/lib/* to /home/YOURUSER/miniconda3/envs/invokeai/lib/python3.9/site-packages/nvidia/cudnn

Performance after optmizations

@cpietsch
Copy link
Author

latest pip install xformers==0.0.21.dev584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment