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

[Usage]: how to use vllm to output code only #10309

Open
1 task done
shaoyuyoung opened this issue Nov 14, 2024 · 0 comments
Open
1 task done

[Usage]: how to use vllm to output code only #10309

shaoyuyoung opened this issue Nov 14, 2024 · 0 comments
Labels
usage How to use vllm

Comments

@shaoyuyoung
Copy link

shaoyuyoung commented Nov 14, 2024

Your current environment

None

How would you like to use vllm

Hi, guys!
How can I use vLLM to output the code only, preventing additional explanations from the model.

It seems that the deepseek API supports this function (refer to https://api-docs.deepseek.com/guides/chat_prefix_completion)

I didn't find any instructions about this in the doc of vLLM. Does vLLM support this? (I know one possible way is to extract the code using re, match the pattern ```python\s([\s\S]*?)``` )
Thx if anybody can help me.

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@shaoyuyoung shaoyuyoung added the usage How to use vllm label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage How to use vllm
Projects
None yet
Development

No branches or pull requests

1 participant