Skip to content
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

Defensively copy sampling_params #2881

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

njhill
Copy link
Member

@njhill njhill commented Feb 15, 2024

If the SamplingParams object passed to LLMEngine.add_request() is mutated after that method returns, it could affect the async sampling process for that request.

Suggested by @Yard1 in #2514 (comment)

If the SamplingParams object passed to LLMEngine.add_request() is mutated after it returns, it could affect the async sampling process for that request.

Suggested by @Yard1 vllm-project#2514 (comment)
@Yard1 Yard1 merged commit 185b2c2 into vllm-project:main Feb 17, 2024
19 checks passed
xjpang pushed a commit to xjpang/vllm that referenced this pull request Feb 22, 2024
If the SamplingParams object passed to LLMEngine.add_request() is mutated after it returns, it could affect the async sampling process for that request.

Suggested by @Yard1 vllm-project#2514 (comment)
xjpang pushed a commit to xjpang/vllm that referenced this pull request Mar 4, 2024
If the SamplingParams object passed to LLMEngine.add_request() is mutated after it returns, it could affect the async sampling process for that request.

Suggested by @Yard1 vllm-project#2514 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants