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

ValueError: Double free! PhysicalTokenBlock(device=Device.GPU, block_number=1859, ref_count=0) is already freed. #1584

Closed
DHOFM opened this issue Nov 7, 2023 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@DHOFM
Copy link

DHOFM commented Nov 7, 2023

Using Beam Search this Error can occur, if it is a large prompt. Workaround: in VLLM Core block_manager.py I returned 0 instead of the exception and beam search works:

def free(self, block: PhysicalTokenBlock) -> None: if block.ref_count == 0: return 0 raise ValueError(f"Double free! {block} is already freed.") block.ref_count -= 1 if block.ref_count == 0: self.free_blocks.append(block)

@hmellor hmellor added the duplicate This issue or pull request already exists label Mar 9, 2024
@hmellor hmellor closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants