Skip to content

Commit 801c21a

Browse files
Delete endpoint on InferenceEndpointTimeoutError (#475)
1 parent 8568e72 commit 801c21a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lighteval/models/endpoints/endpoint_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def __init__( # noqa: C901
257257
logger.error(
258258
"Endpoint did not start within 30 minutes, there was a timeout. Please inspect the logs."
259259
)
260+
self.cleanup()
260261
raise e
261262
except HfHubHTTPError as e:
262263
# The endpoint actually already exists, we'll spin it up instead of trying to create a new one

0 commit comments

Comments
 (0)