Skip to content

V100 not support FlashAttention,how to disable FlashAttention function? #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mishaogui opened this issue Feb 18, 2025 · 2 comments

Comments

@mishaogui
Copy link

Image

@mishaogui
Copy link
Author

run demo.py python demo/demo.py ./images --model_path ./Sa2VA-4B --work-dir ./OUTPUT_DIR --text "Please describe the video content."

@Subcode
Copy link

Subcode commented Mar 31, 2025

model = AutoModel.from_pretrained(
model_path,
torch_dtype=torch.bfloat16,
low_cpu_mem_usage=True,
use_flash_attn=False,
trust_remote_code=True,
).eval().cuda()

in projects/llava_sam2/gradio/app.py

for demo.py add use_flash_attn=False to AutoModelFromCausalLLM.from_pretrained().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants