rahul7star commited on
Commit
e24aa73
·
verified ·
1 Parent(s): 621a2e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,10 +11,11 @@ pipe = DiffusionPipeline.from_pretrained(
11
  "Tongyi-MAI/Z-Image-Turbo",#"T5B/Z-Image-Turbo-FP8",
12
  torch_dtype=torch.bfloat16,
13
  low_cpu_mem_usage=False,
 
14
  )
15
 
16
 
17
- pipe.transformer.set_attention_backend(attention_backend)
18
 
19
  if enable_compile:
20
  print("Compiling transformer...")
 
11
  "Tongyi-MAI/Z-Image-Turbo",#"T5B/Z-Image-Turbo-FP8",
12
  torch_dtype=torch.bfloat16,
13
  low_cpu_mem_usage=False,
14
+ attn_implementation="kernels-community/vllm-flash-attn3",
15
  )
16
 
17
 
18
+ #pipe.transformer.set_attention_backend(attention_backend)
19
 
20
  if enable_compile:
21
  print("Compiling transformer...")