Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
43078301
Unverified
Commit
43078301
authored
May 11, 2025
by
Siyuan Liu
Committed by
GitHub
May 12, 2025
Browse files
[Bugfix][TPU] Use np array when updating cache slot_mapping (#17971)
Signed-off-by:
Siyuan Liu
<
lsiyuan@google.com
>
parent
19a3c78d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/worker/tpu_model_runner.py
vllm/v1/worker/tpu_model_runner.py
+1
-1
No files found.
vllm/v1/worker/tpu_model_runner.py
View file @
43078301
...
...
@@ -531,7 +531,7 @@ class TPUModelRunner(LoRAModelRunnerMixin):
np
.
add
(
block_numbers
*
self
.
block_size
,
block_offsets
,
out
=
self
.
input_batch
.
block_table
.
slot_mapping_
cpu
[:
total_num_scheduled_tokens
])
slot_mapping_
np
[:
total_num_scheduled_tokens
])
# Prepare the attention metadata.
self
.
query_start_loc_np
[
0
]
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment