Skip to content

Conversation

@zou3519
Copy link
Collaborator

@zou3519 zou3519 commented Jun 10, 2025

Summary:
If a test dynamically changes VLLM_USE_V1, the default value of use_cudagraph doesn't get updated. This PR fixes that by setting a default factory for use_cudagraph. I'm not sure if this is relevant in real life but it is definitely relevant during testing (we dynamically set VLLM_USE_V1 all the time in tests).

Test Plan:

  • added new test (pytest tests/compile/test_config.py -v -k "use_cudagraphs_dynamic")

Summary:
If a test dynamically changes VLLM_USE_V1, the default value of
use_cudagraph doesn't get updated. This PR fixes that by setting a
default factory for use_cudagraph. I'm not sure if this is relevant in
real life but it is definitely relevant during testing (we dynamically
set VLLM_USE_V1 all the time in tests).

Test Plan:
- added new test (`pytest tests/compile/test_config.py -v -k "use_cudagraphs_dynamic"`)

Signed-off-by: rzou <zou3519@gmail.com>
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@zou3519 zou3519 changed the title [BugFix] Allow use_cudagraph to work with dyanmic VLLM_USE_V1 [BugFix] Allow use_cudagraph to work with dynamic VLLM_USE_V1 Jun 10, 2025
@github-actions
Copy link

👋 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 fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

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 ready label to the PR or enable auto-merge.

🚀

@zou3519 zou3519 requested a review from houseroad June 10, 2025 02:26
@zou3519 zou3519 marked this pull request as ready for review June 10, 2025 02:26
Copy link
Collaborator

@houseroad houseroad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@houseroad houseroad added the ready ONLY add when PR is ready to merge/full CI is needed label Jun 10, 2025
@zou3519
Copy link
Collaborator Author

zou3519 commented Jun 10, 2025

I kicked off a rerun of the entrypoints tests but as far as I can tell those pass locally for me.

@houseroad houseroad merged commit 77f0d46 into vllm-project:main Jun 10, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants