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
33d5e29b
Unverified
Commit
33d5e29b
authored
Jun 23, 2025
by
Chenyaaang
Committed by
GitHub
Jun 23, 2025
Browse files
[TPU] Fix tpu model runner test (#19995)
Signed-off-by:
Chenyaaang
<
chenyangli@google.com
>
parent
4671ac6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/v1/tpu/worker/test_tpu_model_runner.py
tests/v1/tpu/worker/test_tpu_model_runner.py
+2
-0
No files found.
tests/v1/tpu/worker/test_tpu_model_runner.py
View file @
33d5e29b
...
@@ -6,6 +6,7 @@ import pytest
...
@@ -6,6 +6,7 @@ import pytest
from
vllm.attention.layer
import
Attention
from
vllm.attention.layer
import
Attention
from
vllm.config
import
(
CacheConfig
,
ModelConfig
,
SchedulerConfig
,
VllmConfig
,
from
vllm.config
import
(
CacheConfig
,
ModelConfig
,
SchedulerConfig
,
VllmConfig
,
set_current_vllm_config
)
set_current_vllm_config
)
from
vllm.pooling_params
import
PoolingParams
from
vllm.sampling_params
import
SamplingParams
from
vllm.sampling_params
import
SamplingParams
from
vllm.utils
import
GiB_bytes
from
vllm.utils
import
GiB_bytes
from
vllm.v1.core.kv_cache_utils
import
(
estimate_max_model_len
,
from
vllm.v1.core.kv_cache_utils
import
(
estimate_max_model_len
,
...
@@ -71,6 +72,7 @@ def _schedule_new_request(*req_ids: str) -> SchedulerOutput:
...
@@ -71,6 +72,7 @@ def _schedule_new_request(*req_ids: str) -> SchedulerOutput:
mm_hashes
=
[],
mm_hashes
=
[],
mm_positions
=
[],
mm_positions
=
[],
sampling_params
=
SamplingParams
(),
sampling_params
=
SamplingParams
(),
pooling_params
=
PoolingParams
(),
block_ids
=
([
0
],
),
# block_ids should be tuple[list[int]]
block_ids
=
([
0
],
),
# block_ids should be tuple[list[int]]
num_computed_tokens
=
0
,
num_computed_tokens
=
0
,
lora_request
=
None
,
lora_request
=
None
,
...
...
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