Skip to content

PagedAttentionWithALiBi uses wrong dtype for bias #995

@Yard1

Description

@Yard1
          This commit breaks PagedAttentionWithALiBi, where the bias from [set_attn_bias](https://github.com/vllm-project/vllm/blob/1117aa1411d9858ea5eef8a81e044379432e6d0e/vllm/model_executor/layers/attention.py#L343) is initialized to a wrong dtype, causing `RuntimeError: invalid dtype for bias - should match query's dtype`

Originally posted by @chu-tianxiang in #971 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions