-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[Bug]: benchmarking serving returns index -1 is out of bounds #4987
Comments
@samos123 It seems to me that the server never received these requests or rejected them since it's not possible to actually process all 1000 requests within 10 seconds ( Could you also share the command that you used to launch the API server? Have you checked the logs from the API server as well? |
@samos123 Following up - if you're able to find out other issues please let me know - I don't think this is a bug otherwise. |
I was missing Thanks @ywang96 for catching that it was processing all 1000 requests within 10 seconds. That gave me the hint that it was indeed likely not sending any requests! It would be helpful to catch an incorrect endpoint configuration early and provide a more helpful error message. |
Yea - the error is essentially saying it's trying to compute mean of an empty list when calculating the metrics, and I guess I could add a catch on that to provide a better error message! |
You could also do a single request and ensuring a valid response before starting the benchmark. Report back the error message with whatever the response was so the end-user can easily identify the issue. |
Your current environment
🐛 Describe the bug
Steps to reproduce:
Error observed:
The text was updated successfully, but these errors were encountered: