File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class ClientConfig:
27
27
28
28
max_retries : Optional [int ] = DEFAULT_MAX_RETRIES # max number of retries before an exception (default: inf)
29
29
min_backoff : float = 1 # after a repeated failure, sleep for this many seconds times 2 ** (num_failures - 1)
30
- max_backoff : float = 60 # limit maximal sleep time between retries to this value
30
+ max_backoff : float = 5 # limit maximal sleep time between retries to this value
31
31
ban_timeout : float = 15 # when a remote peer fails to respond, prevent routing to that peer for this many seconds
32
32
active_adapter : Optional [str ] = None # name of active LoRA adapter (usually, Hugging Face repo)
33
33
Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ def step(
144
144
)
145
145
)
146
146
)
147
+
148
+ import random
149
+ if random .random () < 0.05 :
150
+ raise Exception ("fail" )
151
+
147
152
outputs = list (map (deserialize_torch_tensor , outputs_serialized .tensors ))
148
153
assert (
149
154
outputs [0 ].shape == inputs .shape
You can’t perform that action at this time.
0 commit comments