Update modeling_minicpmo.py
Browse files- modeling_minicpmo.py +1 -1
modeling_minicpmo.py
CHANGED
@@ -1092,7 +1092,7 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
|
|
1092 |
else:
|
1093 |
logger.error("Invalid content type:", c)
|
1094 |
|
1095 |
-
cur_contents = "".join(cur_msgs) if omni_input else "\n".join(
|
1096 |
if not self.is_first and self.new_user_msg and msg["role"] == "user": # new user add im_start
|
1097 |
if self.llm_generated:
|
1098 |
if self.llm_generate_completed:
|
|
|
1092 |
else:
|
1093 |
logger.error("Invalid content type:", c)
|
1094 |
|
1095 |
+
cur_contents = "".join(cur_msgs) if omni_input else "\n".join(cur_msgs)
|
1096 |
if not self.is_first and self.new_user_msg and msg["role"] == "user": # new user add im_start
|
1097 |
if self.llm_generated:
|
1098 |
if self.llm_generate_completed:
|