mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-27 09:47:17 +08:00
[V1][Bugfix] Fix assertion when mm hashing is turned off (#12439)
Signed-off-by: Roger Wang <ywang@roblox.com>
This commit is contained in:
parent
fa63e710c7
commit
0ee349b553
@ -58,7 +58,8 @@ class Request:
|
|||||||
|
|
||||||
# Sanity check
|
# Sanity check
|
||||||
assert len(self.mm_inputs) == len(self.mm_positions)
|
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
|
# Cache the computed kv block hashes of the request to avoid
|
||||||
# recomputing.
|
# recomputing.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user