Skip to content

Commit

Permalink
Try 5% fails
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Sep 28, 2023
1 parent 3547b57 commit 567e34b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/petals/client/inference_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ def step(
)
)
)

import random
if random.random() < 0.05:
raise Exception("fail")

outputs = list(map(deserialize_torch_tensor, outputs_serialized.tensors))
assert (
outputs[0].shape == inputs.shape
Expand Down

0 comments on commit 567e34b

Please sign in to comment.