Skywork-R1V icon indicating copy to clipboard operation
Skywork-R1V copied to clipboard

vllm支持skywork添加系统提示词吗

Open lowrance0118 opened this issue 1 year ago • 1 comments

vllm支持skywork添加系统提示词吗?能否给出一个带有系统提示词的代码示例,非常感谢!

lowrance0118 avatar Apr 10 '25 06:04 lowrance0118

按 #9 中提到的方式可以直接加system prompt,迁移到vllm的方式只需改动prompt

question = "<image>\n" * len(images) + question
system_prompt = 'You are a helpful assistant.'
prompt = f"<|begin▁of▁sentence|>{system_prompt}<|User|>\n{question}<|Assistant|><think>\n"

SteadfastAsArt avatar Apr 13 '25 15:04 SteadfastAsArt