Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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...")
|