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
a463555d
"docs/kubernetes/vscode:/vscode.git/clone" did not exist on "f9050aae852b2f4985f8194cd775be432d8312e7"
Unverified
Commit
a463555d
authored
May 08, 2025
by
Jevin Jiang
Committed by
GitHub
May 08, 2025
Browse files
[TPU] Fix the test_sampler (#17820)
parent
ca04b97c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tests/v1/tpu/test_sampler.py
tests/v1/tpu/test_sampler.py
+1
-1
vllm/v1/attention/backends/pallas.py
vllm/v1/attention/backends/pallas.py
+1
-1
No files found.
tests/v1/tpu/test_sampler.py
View file @
a463555d
...
@@ -26,7 +26,7 @@ def test_sampler_different(model_name: str):
...
@@ -26,7 +26,7 @@ def test_sampler_different(model_name: str):
enforce_eager
=
False
,
enforce_eager
=
False
,
max_num_seqs
=
1
,
max_num_seqs
=
1
,
max_model_len
=
512
,
max_model_len
=
512
,
max_num_batched_tokens
=
512
)
max_num_batched_tokens
=
256
)
prompts
=
[
prompts
=
[
"Write a short story about a robot that dreams for the first time."
"Write a short story about a robot that dreams for the first time."
]
]
...
...
vllm/v1/attention/backends/pallas.py
View file @
a463555d
...
@@ -95,7 +95,7 @@ class PallasMetadata:
...
@@ -95,7 +95,7 @@ class PallasMetadata:
block_tables
:
torch
.
Tensor
block_tables
:
torch
.
Tensor
context_lens
:
torch
.
Tensor
context_lens
:
torch
.
Tensor
query_start_loc
:
torch
.
Tensor
query_start_loc
:
torch
.
Tensor
num_seqs
:
int
num_seqs
:
torch
.
Tensor
class
PallasAttentionBackendImpl
(
AttentionImpl
):
class
PallasAttentionBackendImpl
(
AttentionImpl
):
...
...
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