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

Fix Semaphore release Issue in api_generate_stream Function of vllm_worker #3390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

coolbeevip
Copy link

Why are these changes needed?

This PR addresses a potential issue in the api_generate_stream function where the semaphore might not be properly released in all scenarios. Specifically, if an exception occurs during the execution of worker.generate_stream(params), the create_background_tasks(request_id) function might not be called. This could lead to the semaphore not being properly released.

Related issue number (if applicable)

Closes #3389

Checks

  • I've run format.sh to lint the changes in this PR.
  • I've included any doc changes needed.
  • I've made sure the relevant tests are passing (if applicable).

@coolbeevip
Copy link
Author

coolbeevip commented Jun 9, 2024

When you have a moment. Could you please take a look at this PR? @merrymercy @infwinston @BabyChouSr

@BabyChouSr BabyChouSr self-assigned this Aug 19, 2024
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.

Semaphore release Issue in api_generate_stream Function of vllm_worker
2 participants