LPX55 commited on
Commit
0c8e08c
·
verified ·
1 Parent(s): 096063b

Update optimized.py

Browse files
Files changed (1) hide show
  1. optimized.py +1 -1
optimized.py CHANGED
@@ -34,7 +34,7 @@ def self_attention_slicing(module, slice_size=3):
34
 
35
  return output
36
  return sliced_attention
37
-
38
 
39
  huggingface_token = os.getenv("HUGGINFACE_TOKEN")
40
  good_vae = AutoencoderKL.from_pretrained(
 
34
 
35
  return output
36
  return sliced_attention
37
+ device = "cuda"
38
 
39
  huggingface_token = os.getenv("HUGGINFACE_TOKEN")
40
  good_vae = AutoencoderKL.from_pretrained(