@@ -173,15 +173,16 @@ class InternLMChat7B(BaseModel):
def__init__(
self,
system='<|System|>',
system='<|System|>:',
meta_instruction="""You are an AI assistant whose name is InternLM (书生·浦语).
- InternLM (书生·浦语) is a conversational language model that is developed by Shanghai AI Laboratory (上海人工智能实验室). It is designed to be helpful, honest, and harmless.
- InternLM (书生·浦语) can understand and communicate fluently in the language chosen by the user such as English and 中文.
""",# noqa: E501
user='<|User|>',
eoh='',
eoa='<eoa>',
assistant='<|Bot|>',
user='<|User|>:',
eoh='\n',
eoa='<eoa>\n',
eosys='\n',
assistant='<|Bot|>:',
stop_words=['<eoa>'],
**kwargs):
super().__init__(**kwargs)
...
...
@@ -190,6 +191,7 @@ class InternLMChat7B(BaseModel):
self.user=user
self.eoh=eoh
self.eoa=eoa
self.eosys=eosys
self.assistant=assistant
self.stop_words=stop_words
...
...
@@ -207,12 +209,12 @@ class InternLMChat7B(BaseModel):
assertself.capability=='chat', \
f'{type(self).__name__} has no capability of {self.capability}'