Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
b783c1cb
Unverified
Commit
b783c1cb
authored
Jun 17, 2025
by
Binyao Jiang
Committed by
GitHub
Jun 17, 2025
Browse files
Fix hicache benchmark script bug - some sampled input_request is [] (#7300)
parent
094c116f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
benchmark/hicache/data_processing.py
benchmark/hicache/data_processing.py
+3
-2
No files found.
benchmark/hicache/data_processing.py
View file @
b783c1cb
...
@@ -83,8 +83,9 @@ def common_filter_chat(
...
@@ -83,8 +83,9 @@ def common_filter_chat(
input_tokens
+=
prompt_len
input_tokens
+=
prompt_len
output_tokens
+=
output_len
output_tokens
+=
output_len
processed
.
append
((
prompt
,
prompt_len
,
output_len
))
processed
.
append
((
prompt
,
prompt_len
,
output_len
))
filtered_dataset
.
append
(
processed
)
if
len
(
processed
)
!=
0
:
l
+=
1
filtered_dataset
.
append
(
processed
)
l
+=
1
print
(
f
"#Input tokens:
{
input_tokens
}
"
)
print
(
f
"#Input tokens:
{
input_tokens
}
"
)
print
(
f
"#Output tokens:
{
output_tokens
}
"
)
print
(
f
"#Output tokens:
{
output_tokens
}
"
)
...
...
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