Skip to content

Commit baa4e39

Browse files
committed
Try 5% fails
1 parent 82a97d6 commit baa4e39

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
@@ -144,6 +144,11 @@ def step(
144144
)
145145
)
146146
)
147+
148+
import random
149+
if random.random() < 0.05:
150+
raise Exception("fail")
151+
147152
outputs = list(map(deserialize_torch_tensor, outputs_serialized.tensors))
148153
assert (
149154
outputs[0].shape == inputs.shape

0 commit comments

Comments
 (0)