Skip to content

Commit

Permalink
[V1][Bugfix] Fix assertion when mm hashing is turned off (vllm-projec…
Browse files Browse the repository at this point in the history
…t#12439)

Signed-off-by: Roger Wang <ywang@roblox.com>
  • Loading branch information
ywang96 authored Jan 26, 2025
1 parent fa63e71 commit 0ee349b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/v1/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def __init__(

# Sanity check
assert len(self.mm_inputs) == len(self.mm_positions)
assert len(self.mm_inputs) == len(self.mm_hashes)
if self.mm_hashes:
assert len(self.mm_inputs) == len(self.mm_hashes)

# Cache the computed kv block hashes of the request to avoid
# recomputing.
Expand Down

0 comments on commit 0ee349b

Please sign in to comment.