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
20445327
Unverified
Commit
20445327
authored
Aug 31, 2025
by
Pawel Kowalski
Committed by
GitHub
Aug 31, 2025
Browse files
fix inconsistent arguments for generated shared prefix bench (#9073)
Co-authored-by:
Pawel Kowalski
<
pawel.kowalski@silo.ai
>
parent
6d3c20cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
benchmark/hicache/data_processing.py
benchmark/hicache/data_processing.py
+7
-7
No files found.
benchmark/hicache/data_processing.py
View file @
20445327
...
@@ -439,8 +439,8 @@ def get_gen_prefix_cache_path(args, tokenizer):
...
@@ -439,8 +439,8 @@ def get_gen_prefix_cache_path(args, tokenizer):
# Create a unique cache filename based on the generation parameters
# Create a unique cache filename based on the generation parameters
cache_key
=
(
cache_key
=
(
f
"g
en
_prefix_
{
args
.
g
en
_num_groups
}
_
{
args
.
g
en
_prompts_per_group
}
_"
f
"g
sp
_prefix_
{
args
.
g
sp
_num_groups
}
_
{
args
.
g
sp
_prompts_per_group
}
_"
f
"
{
args
.
g
en
_system_prompt_len
}
_
{
args
.
g
en
_question_len
}
_
{
args
.
g
en
_output_len
}
_"
f
"
{
args
.
g
sp
_system_prompt_len
}
_
{
args
.
g
sp
_question_len
}
_
{
args
.
g
sp
_output_len
}
_"
f
"
{
tokenizer
.
__class__
.
__name__
}
.pkl"
f
"
{
tokenizer
.
__class__
.
__name__
}
.pkl"
)
)
return
cache_dir
/
cache_key
return
cache_dir
/
cache_key
...
@@ -577,11 +577,11 @@ def get_dataset(args, tokenizer):
...
@@ -577,11 +577,11 @@ def get_dataset(args, tokenizer):
)
)
elif
args
.
dataset_name
==
"generated-shared-prefix"
:
elif
args
.
dataset_name
==
"generated-shared-prefix"
:
input_requests
=
sample_generated_shared_prefix_requests
(
input_requests
=
sample_generated_shared_prefix_requests
(
num_groups
=
args
.
g
en
_num_groups
,
num_groups
=
args
.
g
sp
_num_groups
,
prompts_per_group
=
args
.
g
en
_prompts_per_group
,
prompts_per_group
=
args
.
g
sp
_prompts_per_group
,
system_prompt_len
=
args
.
g
en
_system_prompt_len
,
system_prompt_len
=
args
.
g
sp
_system_prompt_len
,
question_len
=
args
.
g
en
_question_len
,
question_len
=
args
.
g
sp
_question_len
,
output_len
=
args
.
g
en
_output_len
,
output_len
=
args
.
g
sp
_output_len
,
args
=
args
,
args
=
args
,
tokenizer
=
tokenizer
,
tokenizer
=
tokenizer
,
)
)
...
...
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