Skip to content

Conversation

@njhill
Copy link
Member

@njhill njhill commented Nov 12, 2025

Issue introduced in #26016.

This was in particular breaking --api-server-count > 1 with cudagraph size related args.

Thanks to @elvischenv for finding this!

@njhill njhill added the bug Something isn't working label Nov 12, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 addresses a bug where EngineArgs.create_engine_config was not idempotent, as it was mutating self.compilation_config. This mutation caused issues when the method was called multiple times, for instance, when setting up multiple API servers. The fix correctly resolves this by creating a deep copy of self.compilation_config and applying overrides to this copy, leaving the original object unmodified. This ensures the method can be called repeatedly without side effects. The change is correct and effectively solves the problem.

@njhill njhill changed the title [BugFix] Ensure EngineArgs.create_engine_config can be called >1 time [BugFix] Ensure EngineArgs.create_engine_config is idempotent Nov 12, 2025
@DarkLight1337
Copy link
Member

Should we add a test for this?

@njhill
Copy link
Member Author

njhill commented Nov 12, 2025

@DarkLight1337 I was thinking about a test but a basic test wouldn't have caught this particular bug... it happened to apply only to these specific 3-4 args if they were specified in a standalone way.

@njhill njhill added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 12, 2025
@njhill njhill enabled auto-merge (squash) November 12, 2025 05:30
@DarkLight1337
Copy link
Member

Alright let's just merge this then

@njhill njhill added this to the v0.11.1 milestone Nov 13, 2025
@njhill njhill merged commit 327c0a9 into vllm-project:main Nov 13, 2025
48 checks passed
@njhill njhill deleted the fix-cudagraph-config branch November 13, 2025 17:14
elizabetht pushed a commit to elizabetht/vllm that referenced this pull request Nov 13, 2025
…-project#28515)

Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Elizabeth Thomas <email2eliza@gmail.com>
geodavic pushed a commit to geodavic/vllm that referenced this pull request Nov 16, 2025
…-project#28515)

Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: George D. Torres <gdavtor@gmail.com>
khluu pushed a commit that referenced this pull request Nov 16, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
(cherry picked from commit 327c0a9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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