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|>',
user='<|User|>',
eoh='',
eoh='',
eoa='<eoa>',
eoa='<eoa>',
...
@@ -183,6 +188,7 @@ class InternLMChat7B(BaseModel):
...
@@ -183,6 +188,7 @@ class InternLMChat7B(BaseModel):
**kwargs):
**kwargs):
super().__init__(**kwargs)
super().__init__(**kwargs)
self.system=system
self.system=system
self.meta_instruction=meta_instruction
self.user=user
self.user=user
self.eoh=eoh
self.eoh=eoh
self.eoa=eoa
self.eoa=eoa
...
@@ -202,7 +208,8 @@ class InternLMChat7B(BaseModel):
...
@@ -202,7 +208,8 @@ class InternLMChat7B(BaseModel):
assertself.capability=='chat', \
assertself.capability=='chat', \
f'{type(self).__name__} has no capability of {self.capability}'
f'{type(self).__name__} has no capability of {self.capability}'