Skip to content

Conversation

h-sugi
Copy link
Contributor

@h-sugi h-sugi commented Mar 20, 2025

When using Alibi-based models like MPT, the following assertion error causes.

AssertionError: Cascade attention does not support ALiBi.

This is because that the determination logic for use_cascade in gpu_model_runner.py incorrectly uses a hard-coded use_alibi=False. Therefore, cascade_attention is wrongly enabled.

This PR allows setting use_alibi based on the alibi configuration specified in the config.json for MPT models.

Copy link

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

@mergify mergify bot added the v1 label Mar 20, 2025
Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@h-sugi Thanks for the PR! Left some minor comments.

h-sugi and others added 4 commits March 21, 2025 09:00
Signed-off-by: h-sugi <[email protected]>
Copy link

mergify bot commented Mar 22, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @h-sugi.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Mar 22, 2025
@mergify mergify bot removed the needs-rebase label Mar 22, 2025
@WoosukKwon WoosukKwon added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 27, 2025
@WoosukKwon
Copy link
Collaborator

@h-sugi Thanks for updating the PR! I will merge if the tests go well.

@DarkLight1337 DarkLight1337 merged commit 8958217 into vllm-project:main Mar 27, 2025
39 checks passed
Alex4210987 pushed a commit to LeiWang1999/vllm-bitblas that referenced this pull request Apr 5, 2025
… vllm/v1 (vllm-project#15211)

Signed-off-by: h-sugi <[email protected]>
Co-authored-by: Woosuk Kwon <[email protected]>
Signed-off-by: xinyuxiao <[email protected]>
lulmer pushed a commit to lulmer/vllm that referenced this pull request Apr 7, 2025
… vllm/v1 (vllm-project#15211)

Signed-off-by: h-sugi <[email protected]>
Co-authored-by: Woosuk Kwon <[email protected]>
Signed-off-by: Louis Ulmer <[email protected]>
lk-chen pushed a commit to lk-chen/vllm that referenced this pull request Apr 29, 2025
shreyankg pushed a commit to shreyankg/vllm that referenced this pull request May 3, 2025
RichardoMrMu pushed a commit to RichardoMrMu/vllm that referenced this pull request May 12, 2025
… vllm/v1 (vllm-project#15211)

Signed-off-by: h-sugi <[email protected]>
Co-authored-by: Woosuk Kwon <[email protected]>
Signed-off-by: Mu Huai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants