Skip to content

Commit

Permalink
fix infer engine (#2898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang authored Jan 9, 2025
1 parent 005674f commit c133e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift/llm/infer/infer_engine/infer_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _gen_wrapper():
result += res
i += max_batch_size
prog_bar.update(len(tasks_samples))
return self._update_metrics(res, metrics)
return self._update_metrics(result, metrics)

def _get_toolcall(self,
response: Union[str, List[Dict[str, Any]]],
Expand Down

0 comments on commit c133e41

Please sign in to comment.