Skip to content
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

[Bugfix] Avoid import AttentionMetadata explicitly in Mllama and fix openvino import #10593

Merged
merged 5 commits into from
Nov 23, 2024

Conversation

Isotr0py
Copy link
Collaborator

@Isotr0py Isotr0py commented Nov 23, 2024

  • Since mllama is also supported on CPU backend, import FlashAttentionMetadata and XFormersMetadata on CPU backend will cause import error due to missing packages.
  • This PR modifies masked attention implementation selection to use _Backend instead of attn_metadata
  • Also fix broken kernel test due to import openvino

Signed-off-by: Isotr0py <2037008807@qq.com>
Signed-off-by: Isotr0py <2037008807@qq.com>
Copy link

👋 Hi! Thank you for contributing to the vLLM project.
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 do one of these:

  • Add ready label to the PR
  • Enable auto-merge.

🚀

@DarkLight1337
Copy link
Member

Hmm, seems that backend_name_to_enum isn't handling v1 properly.

Signed-off-by: Isotr0py <2037008807@qq.com>
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) November 23, 2024 15:10
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 23, 2024
@Isotr0py
Copy link
Collaborator Author

Seems that #10573 broke the kernel tests.

Signed-off-by: Isotr0py <2037008807@qq.com>
Signed-off-by: Isotr0py <2037008807@qq.com>
@Isotr0py Isotr0py changed the title [Bugfix] Avoid import AttentionMetadata explicitly in Mllama [Bugfix] Avoid import AttentionMetadata explicitly in Mllama and fix openvino import Nov 23, 2024
@DarkLight1337 DarkLight1337 merged commit 04668eb into vllm-project:main Nov 23, 2024
56 checks passed
@Isotr0py Isotr0py deleted the fix-mllama branch November 23, 2024 18:13
@Isotr0py Isotr0py restored the fix-mllama branch November 24, 2024 06:43
@Isotr0py Isotr0py deleted the fix-mllama branch November 24, 2024 06:43
@jikunshang
Copy link
Contributor

seems also break hpu code path due to lack of get_name. fix here #10593, please take a look, thanks!

mfournioux pushed a commit to mfournioux/vllm that referenced this pull request Nov 28, 2024
…oject#10593)

Signed-off-by: Isotr0py <2037008807@qq.com>
Signed-off-by: Maxime Fournioux <55544262+mfournioux@users.noreply.github.com>
sleepwalker2017 pushed a commit to sleepwalker2017/vllm that referenced this pull request Dec 13, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants