Merge branch 'main' of https://github.com/PKU-YuanGroup/Helios
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user