This commit is contained in:
Shenghai Yuan
2026-03-06 17:33:50 +08:00
+5 -3
View File
@@ -31,8 +31,10 @@ pipe = HeliosPyramidPipeline.from_pretrained(
)
pipe.to("cuda")
# pipe.transformer.set_attention_backend("flash_hub")
pipe.transformer.set_attention_backend("_flash_3_hub")
try:
pipe.transformer.set_attention_backend("_flash_3_hub")
except Exception:
pipe.transformer.set_attention_backend("flash_hub")
# @spaces.GPU(duration=1500)
# def compile_transformer():
@@ -260,4 +262,4 @@ with gr.Blocks(css=CSS, title="Helios Video Generation", theme=gr.themes.Soft())
if __name__ == "__main__":
# demo.launch(share=True, allowed_paths=["./examples"])
demo.launch(share=True)
demo.launch(share=True)