Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuT committed Jul 4, 2024
1 parent fdc87df commit 7e74090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/src/ipex_llm/transformers/pipeline_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def model_step(self, input, cur_batch):
_pre_output = torch.cat((_pre_output, tmp_output), dim=0)
self.partial_output_dict[cur_id] = _pre_output
else:
_past_key_values = self.update_kv_cache(_past_key_values, cur_id)
_past_key_values = self.update_kv_cache(output.past_key_values, cur_id)
self.past_key_values_dict[cur_id] = _past_key_values
torch.xpu.synchronize()
if not self.pp_config.is_tail:
Expand Down

0 comments on commit 7e74090

Please sign in to comment.