Skip to content

Commit 567e34b

Browse files
committed
Try 5% fails
1 parent 3547b57 commit 567e34b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/petals/client/inference_session.py

+5
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ def step(
163163
)
164164
)
165165
)
166+
167+
import random
168+
if random.random() < 0.05:
169+
raise Exception("fail")
170+
166171
outputs = list(map(deserialize_torch_tensor, outputs_serialized.tensors))
167172
assert (
168173
outputs[0].shape == inputs.shape

0 commit comments

Comments
 (0)