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

Allocate blocks from id=1 #155

Conversation

kdamaszk
Copy link

@kdamaszk kdamaszk commented Aug 5, 2024

When using BlockManagerV2, blocks are allocated from id=0, which can cause undefined behavior in reuse_and_cache function. This issue is better visible with --tensor-parallel-size > 1.
This change moves the first block id from 0 to 1.

Copy link

@kzawora-intel kzawora-intel left a comment

Choose a reason for hiding this comment

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

LGTM for habana_next - can you add similar PR for habana_main with platform checks?

@kdamaszk kdamaszk merged commit b00fac5 into HabanaAI:habana_next Aug 6, 2024
kdamaszk added a commit that referenced this pull request Aug 6, 2024
kdamaszk added a commit that referenced this pull request Aug 8, 2024
zhouyu5 pushed a commit to zhouyu5/vllm-fork that referenced this pull request Aug 28, 2024
zhouyu5 pushed a commit to zhouyu5/vllm-fork that referenced this pull request Oct 9, 2024
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