01-ai / Yi-1.5

Yi-1.5 is an upgraded version of Yi, delivering stronger performance in coding, math, reasoning, and instruction-following capability.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

从transformers推理切换到vllm推理效果变差

HIT-Owen opened this issue · comments

**模型:**01ai/Yi-1.5-9B-Chat
**代码:**均为官方提供的代码
**生成参数:**transformers和vllm生成参数均设置为temperature=0.3, top_p=0.7
**问题:**鸡柳是鸡身上哪个部位?

transformers生成结果:
image

vllm生成结果:
image

其中vllm试了很多种生成参数,生成了多次,但是没有一次是对的结果。。。

个人感觉和vllm的chat_template有关,参考QwenLM/Qwen#728 vllm-project/vllm#2051 这两个网页