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
ee52a327
Unverified
Commit
ee52a327
authored
Aug 29, 2025
by
Roger Wang
Committed by
GitHub
Aug 29, 2025
Browse files
[CI] Move testing image from remote URL to S3 (#23980)
Signed-off-by:
Roger Wang
<
hey@rogerw.io
>
parent
8fb85b7b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
tests/models/multimodal/generation/vlm_utils/custom_inputs.py
...s/models/multimodal/generation/vlm_utils/custom_inputs.py
+4
-7
vllm/assets/image.py
vllm/assets/image.py
+1
-1
No files found.
tests/models/multimodal/generation/vlm_utils/custom_inputs.py
View file @
ee52a327
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
"""Custom input builders for edge-cases in different models."""
from
io
import
BytesIO
from
typing
import
Callable
import
requests
from
PIL
import
Image
from
vllm.assets.image
import
ImageAsset
from
vllm.multimodal.image
import
rescale_image_size
from
vllm.multimodal.video
import
(
rescale_video_size
,
resize_video
,
sample_frames_from_video
)
...
...
@@ -118,9 +115,9 @@ def different_patch_input_cases_internvl():
def
windows_attention_image_qwen2_5_vl
():
# image from regression issue: https://github.com/vllm-project/vllm/issues/15122
image
_url
=
"https://github.com/AOMediaCodec/av1-avif/blob/main/testFiles/Link-U/hato.jpg?raw=true"
image
=
Image
.
open
(
BytesIO
(
requests
.
get
(
image_url
).
content
))
#
image
from regression issue: https://github.com/vllm-project/vllm/issues/15122 # noqa: E501
image
=
Image
Asset
(
"hato"
).
pil_image
question
=
"Describe the image."
img_prompt
=
"<|vision_start|><|image_pad|><|vision_end|>"
...
...
vllm/assets/image.py
View file @
ee52a327
...
...
@@ -11,7 +11,7 @@ from .base import get_vllm_public_assets
VLM_IMAGES_DIR
=
"vision_model_images"
ImageAssetName
=
Literal
[
"stop_sign"
,
"cherry_blossom"
]
ImageAssetName
=
Literal
[
"stop_sign"
,
"cherry_blossom"
,
"hato"
]
@
dataclass
(
frozen
=
True
)
...
...
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