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

Correct a traceback in vllm #366

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

stevegrubb
Copy link
Contributor

@stevegrubb stevegrubb commented Nov 4, 2024

What does this PR do?

We get this traceback:

File "/usr/local/lib/python3.10/site-packages/llama_stack/providers/adapters/inference/vllm/vllm.py", line 136, in _stream_chat_completion async for chunk in process_chat_completion_stream_response( TypeError: process_chat_completion_stream_response() takes 2 positional arguments but 3 were given

This corrects the error by deleting the "request" variable to match other inference adapters.
Mentioned in #357

Feature/Issue validation/testing/test plan

Please describe the tests that you ran to verify your changes and relevant result summary.
python -m llama_stack.apis.safety.client localhost 5000

File "/usr/local/lib/python3.10/site-packages/llama_stack/providers/adapters/inference/vllm/vllm.py", line 136, in _stream_chat_completion
async for chunk in process_chat_completion_stream_response(
TypeError: process_chat_completion_stream_response() takes 2 positional arguments but 3 were given

This corrects the error by deleting the requesr variable
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 4, 2024
Copy link
Contributor

@ashwinb ashwinb left a comment

Choose a reason for hiding this comment

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

thanks!

@ashwinb ashwinb merged commit 122793a into meta-llama:main Nov 5, 2024
2 checks passed
@terrytangyuan
Copy link
Contributor

Thanks for the fix! This was due to #240 while remote:vllm wasn't merged yet at that time.

@stevegrubb stevegrubb deleted the vllm-traceback branch November 5, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants