Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xtinkt committed Jul 2, 2024
1 parent b6801af commit de2c38a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/petals/server/block_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ async def iterate_rpc_inference(

async for request, step_metadata in input_iterator:
if "last_validated_position" in step_metadata:
last_validated_position = min(step_metadata["last_validated_position"], prefix_length)
assert prefix_length >= last_validated_position, f"prefix_length={prefix_length}, last_validated_position={last_validated_position}"
prefix_length = last_validated_position

Expand Down

0 comments on commit de2c38a

Please sign in to comment.