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

使用vllm加速inference后输出容易不符合格式要求 #158

Open
zhengrongz opened this issue Apr 25, 2024 · 0 comments
Open

使用vllm加速inference后输出容易不符合格式要求 #158

zhengrongz opened this issue Apr 25, 2024 · 0 comments

Comments

@zhengrongz
Copy link

zhengrongz commented Apr 25, 2024

我在prompt中要求模型仅输出以def execute_command为开头的python函数,在原生的模型中测试没有问题,但是在利用vllm加速之后,容易输出类似如图
iShot_2024-04-25_18 18 59
不符合格式要求的输出。
以及也有可能输出对函数为什么要这么写的解释,但我不需要这些额外的输出。
请问有什么办法抑制这样的输出,使其符合我的格式要求吗?

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

No branches or pull requests

1 participant