Skip to content

Optimum SDXL Usage

ClashSAN edited this page Aug 24, 2023 · 6 revisions

Here's a quick listing of things to tune for your setup:

Commandline arguments:

  • (nvidia) 8gb --medvram-sdxl --xformers
  • (nvidia) 12gb+ --xformers
  • (nvidia) 4gb --lowvram --xformers

System:

  • downgrade nvidia drivers to 531 or lower prevent extreme slowdowns for largest pictures
  • add a pagefile to prevent failure to load weights due to low cpu ram
  • (Linux) install tcmalloc - greatly reducing ram usage: sudo apt install --no-install-recommends google-perftools #10117
  • use an SSD, for faster loadtime, especially if a pagefile is required
  • converting .safetensors to .ckpt for reduced ram usage #12086

Model weights:

  • use vae that will not need to run in fp32 for increased speed and less vram usage: sdxl_vae.safetensors
  • use fp16 (~7gb) weights for less cpu ram usage
Clone this wiki locally