Skip to content

Instantly share code, notes, and snippets.

@evshiron
Last active July 23, 2023 14:43
Show Gist options
  • Save evshiron/8cf4de34aa01e217ce178b8ed54a2c43 to your computer and use it in GitHub Desktop.
Save evshiron/8cf4de34aa01e217ce178b8ed54a2c43 to your computer and use it in GitHub Desktop.
A launch script for stable-diffusion-webui used by myself.
#!/bin/sh
source venv/bin/activate
export HSA_OVERRIDE_GFX_VERSION=11.0.0
export HIP_VISIBLE_DEVICES=0
export PYTORCH_HIP_ALLOC_CONF=garbage_collection_threshold:0.8,max_split_size_mb:512
python3 launch.py --listen --enable-insecure-extension-access --opt-sdp-attention
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment