Skip to content

Commit

Permalink
Better backoff factor by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jogonba2 authored May 2, 2024
1 parent 4aab84c commit b6025d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text_machina/src/models/hf_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, model_config: ModelConfig):
max_retries=Retry(
total=getattr(self.model_config, "max_retries", 5),
backoff_factor=getattr(
self.model_config, "backoff_factor", 0.5
self.model_config, "backoff_factor", 2
),
status_forcelist=[
code for code in requests.status_codes._codes if code != 200
Expand Down

0 comments on commit b6025d9

Please sign in to comment.