remove llama2 dup in chat task

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/14359280
* remove llama2 dup in chat task
This commit is contained in:
mulin.lyh
2023-10-19 12:12:35 +08:00
committed by wenmeng.zwm
parent 2c3bf9629d
commit 0390bdea67

View File

@@ -74,7 +74,6 @@ def get_chat_prompt(system: str, text: str, history: List[Tuple[str, str]],
@MODELS.register_module(Tasks.chat, module_name=Models.llama2)
@MODELS.register_module(Tasks.chat, module_name=Models.llama)
@MODELS.register_module(Tasks.text_generation, module_name=Models.llama2)
@MODELS.register_module(Tasks.chat, module_name=Models.llama2)
@MODELS.register_module(Tasks.text_generation, module_name=Models.llama)
class LlamaForTextGeneration(MsModelMixin, LlamaForCausalLM, TorchModel):