-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[Misc] Replace flaky image urls in pixtral test #22574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Isotr0py <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request aims to improve the reliability of the pixtral
test by replacing image URLs from picsum.photos
with more stable ones hosted on Hugging Face. While this is a positive change for CI stability, it introduces a potential issue with the existing test fixtures. The test_chat
test relies on fixture files with pre-computed logprobs, which are sensitive to the exact pixel data of the input images. Any change in the images, including re-encoding, will likely cause these tests to fail. The fixture files may need to be regenerated and included in this PR.
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/237-400x300.jpg", | ||
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/231-200x300.jpg", | ||
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/27-500x500.jpg", | ||
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/17-150x600.jpg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing the flaky picsum.photos
URLs is a good step for test reliability. However, this change will likely break the test_chat
test, which validates model outputs against fixture files with pre-computed logprobs (pixtral_chat.json
and mistral_small_3_chat.json
).
Unless the new images are byte-for-byte identical to the originals, the model's output will differ, causing the logprob comparison to fail. The corresponding fixture files must be regenerated using the new images and included in this pull request to ensure the tests pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have verified that test_chat
test can still pass locally after replacing image urls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to regenerate the expected results which are stored under FIXTURE_LOGPROBS_CHAT
Hmmm, they are still same images, so I think the results are still same unless these images lost quality during transferring. Anyway, let me double check it locally tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also defer the _create_engine_inputs
calls. I just realized the tests in this file are not actually being run in CI, so it makes no sense for the CI to be broken because of it
Signed-off-by: Isotr0py <[email protected]>
name_1="output") | ||
|
||
|
||
@large_gpu_test(min_gb=48) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to load the complete model for this test, because we only compare the Placeholder. We can use a quite samll dummy model to run this test on CI.
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/237-400x300.jpg", | ||
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/231-200x300.jpg", | ||
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/27-500x500.jpg", | ||
"https://huggingface.co/datasets/Isotr0py/mistral-test-images/resolve/main/17-150x600.jpg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have verified that test_chat
test can still pass locally after replacing image urls.
Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Paul Pak <[email protected]>
Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Diego-Castan <[email protected]>
Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Xiao Yu <[email protected]>
Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Isotr0py <[email protected]>
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.Purpose
Test Plan
Test Result
(Optional) Documentation Update