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:
2727
2828 max_retries : Optional [int ] = DEFAULT_MAX_RETRIES # max number of retries before an exception (default: inf)
2929 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
3131 ban_timeout : float = 15 # when a remote peer fails to respond, prevent routing to that peer for this many seconds
3232 active_adapter : Optional [str ] = None # name of active LoRA adapter (usually, Hugging Face repo)
3333
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments