-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align code with error message and raise timeout after 30 min #477
base: main
Are you sure you want to change the base?
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Hmm, just re-read the code, and the maximum amount of time is managed by
This allows to wait in total for 30 min |
I have re-read the code and I think there is an error in its logic:
|
You're right, the |
except InferenceEndpointTimeoutError as e:
logger.error(
"Endpoint did not start within 30 minutes, there was a timeout. Please inspect the logs."
)
raise e should be except InferenceEndpointTimeoutError as e:
logger.warning(
"Endpoint did not start within 10 minutes, there was a timeout. Trying for 10 extra minutes, or stopping if we passed 30 min."
) |
@clefourrier with the suggestion above, no error will be raised even after 30 min timeout. |
Let me try to simplify the logic as much as possible so that we are sure it works as expected. |
While refactoring, I also got confused about the |
Align code with error message and raise timeout after 30 min.
Note current error message says:
lighteval/src/lighteval/models/endpoints/endpoint_model.py
Line 258 in 2ef9740