PKU-YuanGroup / Open-Sora-Plan

This project aim to reproduce Sora (Open AI T2V model), we wish the open source community contribute to this project.
MIT License
11.55k stars 1.03k forks source link

Inference failed with "RuntimeError: cutlassF: no kernel found to launch!" #454

Open NuanBaobao opened 1 month ago

NuanBaobao commented 1 month ago

Issue Title: RuntimeError: cutlassF: No kernel found to launch in sample_t2v.py

Description:

I encountered an error when running the code in opensora/sample/sample_t2v.py. The specific segment of code is as follows:

with torch.backends.cuda.sdp_kernel(enable_math=False, enable_flash=False, enable_mem_efficient=True):
    hidden_states = F.scaled_dot_product_attention(
        query, key, value, attn_mask=attention_mask, dropout_p=0.0, is_causal=False
    )

The error message I receive is:

RuntimeError: cutlassF: no kernel found to launch!

Environment Details:

Request for Assistance: Could you please help me troubleshoot this issue? Any guidance on resolving this error would be greatly appreciated.

Thank you!

LinB203 commented 1 month ago

You can pass pip install -e . or pip install xformers==0.0.22.post7.