Skip to content

Segmentation Fault with Qwen-7B and Specific Attention Mechanisms #5

Description

@RuiZiHan

First off, I want to express my appreciation for your excellent work on this project! It's been incredibly helpful.

I'm encountering a Segmentation fault (core dumped) error when running the Qwen-7B model on the ruler-niah task. This issue specifically occurs when using the quest, flexprefill, vertival_and_slash, and block_sparse attention mechanisms. Interestingly, the dense, snapkv, and ada_snapkv attention types do not produce this error and run successfully.

I've traced the segmentation fault to line 96 in sparse-frontier/sparse_frontier/modelling/models/vllm_model.py, within the section wrapped by vllm. My environment is nearly identical to yours, including the versions of CUDA, PyTorch, Python, FlashAttention, and vLLM.

Could you please provide some guidance on what might be causing this or suggest any potential workarounds? Any insights would be greatly appreciated.

Thank you for your time and help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions