unify engine initialization in pipeline #1085
Merged
+43
−16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After PR 1064
Motivation
既然 turbomind 加载 hf 模型的时候已经不依赖 model_name 了,那么 pipeline 初始化 turbomind engine 的时候,对于对话模版的处理,应该同 pytorch engine 一致。
修改之后,对于使用 pipeline 接口而言,pytorch / turbomind 的行为是一致的了,对话模版由 pipeline 处理。