Update modeling_codeshell.py
Browse files- modeling_codeshell.py +2 -2
modeling_codeshell.py
CHANGED
@@ -947,8 +947,8 @@ class CodeShellForCausalLM(CodeShellPreTrainedModel):
|
|
947 |
|
948 |
|
949 |
def build_chat_input(self, query, history, tokenizer, max_new_tokens=None):
|
950 |
-
user_name = "
|
951 |
-
ai_name = "
|
952 |
stop = '|<end>|'
|
953 |
|
954 |
prompt = ''
|
|
|
947 |
|
948 |
|
949 |
def build_chat_input(self, query, history, tokenizer, max_new_tokens=None):
|
950 |
+
user_name = "## human:"
|
951 |
+
ai_name = "## assistant: "
|
952 |
stop = '|<end>|'
|
953 |
|
954 |
prompt = ''
|