Skip to content

Commit

Permalink
fix sequences_pre
Browse files Browse the repository at this point in the history
Signed-off-by: Charlene Yang <[email protected]>
  • Loading branch information
cyanguwa committed Feb 25, 2025
1 parent 583b76f commit f13b861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transformer_engine/pytorch/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def pre_step(
self.batch_size = len(step_dict)

self.sequences = self.cache_manager.pre_step(step_dict)
for k, v in enumerate(self.sequences):
self.sequences_pre = OrderedDict()
for k, v in self.sequences.items():
self.sequences_pre[k] = v - self.step_dict[k]

actual_batch_size = len(step_dict)
Expand Down

0 comments on commit f13b861

Please sign in to comment.