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
e63fd445
Unverified
Commit
e63fd445
authored
Nov 13, 2025
by
Di Wu
Committed by
GitHub
Nov 13, 2025
Browse files
Fix: Correctly filter special tokens in benchmark_prefix_caching (#28615)
Signed-off-by:
Di Wu
<
dw2761@nyu.edu
>
parent
11ac9ddd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmarks/benchmark_prefix_caching.py
benchmarks/benchmark_prefix_caching.py
+1
-1
No files found.
benchmarks/benchmark_prefix_caching.py
View file @
e63fd445
...
...
@@ -69,7 +69,7 @@ def sample_tokens(tokenizer: PreTrainedTokenizerBase, length: int) -> list[int]:
# Remove the special tokens.
return
random
.
choices
(
[
v
for
k
,
v
in
vocab
.
item
s
()
if
k
not
in
all_special_ids
],
[
v
for
v
in
vocab
.
value
s
()
if
v
not
in
all_special_ids
],
k
=
length
,
)
...
...
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