mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 14:06:39 +08:00
[fix] fix correct assertion syntax error in attention utils. (#22154)
Signed-off-by: zitian.zhao <zitian.zhao@tencentmusic.com>
This commit is contained in:
parent
6f5478298d
commit
e27d25a0dc
@ -97,7 +97,9 @@ def _make_metadata_with_slice(
|
||||
|
||||
query_start_loc = slice_query_start_locs(attn_metadata.query_start_loc,
|
||||
request_slice)
|
||||
assert len(query_start_loc >= 2)
|
||||
assert len(query_start_loc) >= 2, (
|
||||
f"query_start_loc must have at least 2 elements, "
|
||||
f"got {len(query_start_loc)}")
|
||||
query_start_loc_cpu = slice_query_start_locs(
|
||||
attn_metadata.query_start_loc_cpu, request_slice)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user