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
1dafb29f
Unverified
Commit
1dafb29f
authored
Mar 01, 2026
by
Cyrus Leung
Committed by
GitHub
Feb 28, 2026
Browse files
[Benchmark] Avoid unnecessary video download in MMVU (#35618)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
49b9ae32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
vllm/benchmarks/datasets.py
vllm/benchmarks/datasets.py
+12
-1
No files found.
vllm/benchmarks/datasets.py
View file @
1dafb29f
...
...
@@ -31,6 +31,7 @@ from tempfile import NamedTemporaryFile
from
typing
import
Any
,
cast
import
numpy
as
np
from
huggingface_hub
import
snapshot_download
from
PIL
import
Image
from
typing_extensions
import
deprecated
...
...
@@ -2680,6 +2681,14 @@ class MMVUDataset(HuggingFaceDataset):
+
(
" "
.
join
(
f
"
{
k
}
.
{
v
}
"
for
k
,
v
in
x
[
"choices"
].
items
())),
}
def
__init__
(
self
,
**
kwargs
)
->
None
:
super
().
__init__
(
**
kwargs
)
self
.
_remote_path_root
=
(
f
"https://huggingface.co/datasets/
{
self
.
hf_name
}
/resolve/main"
)
self
.
_local_path_root
=
snapshot_download
(
self
.
hf_name
,
repo_type
=
"dataset"
)
def
sample
(
self
,
tokenizer
:
TokenizerLike
,
...
...
@@ -2702,7 +2711,9 @@ class MMVUDataset(HuggingFaceDataset):
break
prompt
=
parser_fn
(
item
)
mm_content
=
process_video
(
item
[
"video"
])
mm_content
=
process_video
(
item
[
"video"
].
replace
(
self
.
_remote_path_root
,
self
.
_local_path_root
)
)
prompt_len
=
len
(
tokenizer
.
encode
(
prompt
))
if
enable_multimodal_chat
:
# Note: when chat is enabled the request prompt_len is no longer
...
...
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