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
eb58f595
Unverified
Commit
eb58f595
authored
Jul 09, 2025
by
Chengji Yao
Committed by
GitHub
Jul 09, 2025
Browse files
[TPU][Bugfix] fix test_pallas (#20666)
Signed-off-by:
Chengji Yao
<
chengjiyao@google.com
>
parent
4ac9c33f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/v1/tpu/test_pallas.py
tests/v1/tpu/test_pallas.py
+2
-0
No files found.
tests/v1/tpu/test_pallas.py
View file @
eb58f595
...
@@ -50,6 +50,7 @@ def test_ragged_paged_attention():
...
@@ -50,6 +50,7 @@ def test_ragged_paged_attention():
slot_mapping
=
torch
.
zeros
((
3
,
num_tokens
),
dtype
=
torch
.
int64
)
slot_mapping
=
torch
.
zeros
((
3
,
num_tokens
),
dtype
=
torch
.
int64
)
max_num_reqs
=
8
max_num_reqs
=
8
max_num_blocks_per_req
=
8
max_num_blocks_per_req
=
8
num_kv_update_slices
=
torch
.
tensor
([
num_tokens
],
dtype
=
torch
.
int32
)
block_tables
=
torch
.
zeros
((
max_num_reqs
,
max_num_blocks_per_req
),
block_tables
=
torch
.
zeros
((
max_num_reqs
,
max_num_blocks_per_req
),
dtype
=
torch
.
int32
)
dtype
=
torch
.
int32
)
context_lens
=
torch
.
ones
((
max_num_reqs
,
),
dtype
=
torch
.
int32
)
context_lens
=
torch
.
ones
((
max_num_reqs
,
),
dtype
=
torch
.
int32
)
...
@@ -65,6 +66,7 @@ def test_ragged_paged_attention():
...
@@ -65,6 +66,7 @@ def test_ragged_paged_attention():
context_lens
=
context_lens
,
context_lens
=
context_lens
,
query_start_loc
=
query_start_loc
,
query_start_loc
=
query_start_loc
,
num_seqs
=
num_seqs
,
num_seqs
=
num_seqs
,
num_kv_update_slices
=
num_kv_update_slices
,
num_slices_per_kv_cache_update_block
=
8
,
num_slices_per_kv_cache_update_block
=
8
,
)
)
...
...
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