Skip to content

Conversation

sumukshashidhar
Copy link
Collaborator

When there's a failed inference (without .choices, an error must be raised so that it can be retried).

Also change the timeout, so it's 5 minutes, instead of 1 hour.

logger.warning("Empty response or missing .choices from model {}", model.model_name)
return ""
logger.error("Empty response or missing .choices from model {}", model.model_name)
raise Exception("Failed Inference")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this error caught for a retry?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually caught in the outer function from where it's called

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sumukshashidhar sumukshashidhar merged commit d7aac71 into main Apr 10, 2025
2 checks passed
Josephrp pushed a commit to Josephrp/yourbench that referenced this pull request Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants