Cuiunbo commited on
Commit
f343679
·
verified ·
1 Parent(s): 954cd56

Update modeling_minicpmo.py

Browse files
Files changed (1) hide show
  1. 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(omni_input)
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: