Skip to content

Commit

Permalink
fix merging
Browse files Browse the repository at this point in the history
  • Loading branch information
justheuristic authored Jul 21, 2024
1 parent 04bd8f2 commit fe7e012
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/petals/client/inference_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ def step(
if self.closed:
raise Exception("Session is closed, cannot perform step")

if start_from_position is not None:
assert start_from_position <= self._position
self._position = start_from_position
if self.history is not None and self.history.shape[1] >= start_from_position:
self.history = self.history[:, :start_from_position, :] if start_from_position > 0 else None

n_input_tokens = inputs.shape[1]
if self.history is None:
self.history = inputs
Expand Down

0 comments on commit fe7e012

Please sign in to comment.