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
a25866ac
Unverified
Commit
a25866ac
authored
Apr 10, 2025
by
zh Wang
Committed by
GitHub
Apr 09, 2025
Browse files
[Bugfix] Fix profiling.py (#16202)
Signed-off-by:
zh Wang
<
rekind133@outlook.com
>
parent
098900d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
examples/offline_inference/profiling.py
examples/offline_inference/profiling.py
+2
-3
No files found.
examples/offline_inference/profiling.py
View file @
a25866ac
...
...
@@ -234,9 +234,8 @@ def run_profile(context: ProfileContext, csv_output: Optional[str],
sampling_params
.
max_tokens
=
next
(
output_len_generator
)
assert
isinstance
(
sampling_params
.
max_tokens
,
int
)
prompt_token_ids
=
torch
.
randint
(
llm
.
llm_engine
.
model_config
.
get_vocab_size
(),
size
=
(
prompt_len
,
)).
tolist
()
prompt_token_ids
=
torch
.
randint
(
llm
.
get_tokenizer
().
vocab_size
,
size
=
(
prompt_len
,
)).
tolist
()
llm
.
llm_engine
.
add_request
(
request_id
=
f
"seq
{
i
}
"
,
...
...
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