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
5d5b4c5f
Unverified
Commit
5d5b4c5f
authored
Jul 09, 2024
by
Woosuk Kwon
Committed by
GitHub
Jul 09, 2024
Browse files
[Bugfix][TPU] Add missing None to model input (#6245)
parent
70c232f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/worker/tpu_model_runner.py
vllm/worker/tpu_model_runner.py
+1
-1
No files found.
vllm/worker/tpu_model_runner.py
View file @
5d5b4c5f
...
@@ -154,7 +154,7 @@ class TPUModelRunner:
...
@@ -154,7 +154,7 @@ class TPUModelRunner:
# Dummy run.
# Dummy run.
num_samples
=
_MAX_NUM_SAMPLES
if
is_prompt
else
1
num_samples
=
_MAX_NUM_SAMPLES
if
is_prompt
else
1
self
.
model
(
token_ids
,
position_ids
,
kv_caches
,
attn_metadata
,
self
.
model
(
token_ids
,
position_ids
,
kv_caches
,
attn_metadata
,
input_lens
,
t
,
p
,
num_samples
)
input_lens
,
None
,
t
,
p
,
num_samples
)
def
warmup_model
(
def
warmup_model
(
self
,
self
,
...
...
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