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

hotfix - Revert vllm/attention/layer.py changes from 0f8cafe - fix torch.compile recompilations #709

Open
wants to merge 4 commits into
base: habana_main
Choose a base branch
from

Conversation

RafLit
Copy link

@RafLit RafLit commented Jan 20, 2025

0f8cafe change from upstream modified the Attention vllm layer to use unified_attention which uses self.layer_name for layer device dispatch. This causes recompilations as each layer has a different name.

@anko-intel anko-intel changed the title [SW-216341] hotfix - Revert vllm/attention/layer.py changes from 0f8cafe - fix torch.compile recompilations hotfix - Revert vllm/attention/layer.py changes from 0f8cafe - fix torch.compile recompilations Jan 24, 2025
Comment on lines +139 to +142
if self.use_direct_call:
return self.impl.forward(query, key, value, kv_cache,
attn_metadata, self._k_scale,
self._v_scale)

Choose a reason for hiding this comment

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

Could we add only those lines and left the rest unattached?

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

Successfully merging this pull request may close these issues.

2 participants