Skip to content

Commit

Permalink
remove llama2 dup in chat task
Browse files Browse the repository at this point in the history
  • Loading branch information
mulin.lyh committed Oct 19, 2023
1 parent f493ed0 commit 8e187bd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modelscope/models/nlp/llama/text_generation.py
Expand Up @@ -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):

Expand Down

0 comments on commit 8e187bd

Please sign in to comment.