Gertie01 John6666 commited on
Commit
4315394
Β·
verified Β·
1 Parent(s): 3de2631

Update models.py (#2)

Browse files

- Update models.py (5b349aca014f8d204c87e7bdd4c9970bff5ff500)


Co-authored-by: John Smith <John6666@users.noreply.huggingface.co>

Files changed (1) hide show
  1. models.py +1 -1
models.py CHANGED
@@ -36,7 +36,7 @@ def load_and_compile_models():
36
  )
37
  # Load VAE separately as recommended for stabilityai models
38
  pipe_global.vae = AutoencoderKL.from_pretrained(
39
- "stabilityai/sdxl-vae", torch_dtype=torch.float16, variant="fp16"
40
  )
41
  pipe_global.to("cuda")
42
  print("SDXL base model loaded and moved to CUDA.")
 
36
  )
37
  # Load VAE separately as recommended for stabilityai models
38
  pipe_global.vae = AutoencoderKL.from_pretrained(
39
+ "madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16,
40
  )
41
  pipe_global.to("cuda")
42
  print("SDXL base model loaded and moved to CUDA.")