Skip to content

Commit

Permalink
Delete endpoint on InferenceEndpointTimeoutError
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Dec 23, 2024
1 parent 8568e72 commit 9adca24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lighteval/models/endpoints/endpoint_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def __init__( # noqa: C901
logger.error(
"Endpoint did not start within 30 minutes, there was a timeout. Please inspect the logs."
)
self.cleanup()
raise e
except HfHubHTTPError as e:
# The endpoint actually already exists, we'll spin it up instead of trying to create a new one
Expand Down

0 comments on commit 9adca24

Please sign in to comment.