-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
usage stats and crash reports #2220
Conversation
9e22816
to
0c16204
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Can you also send error events on InferError::Generation
?
It's deeper in the stack but these errors are super important to catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool 👏 !!
I think that container detection needs to be improved as I think it only works in specific Docker envs and not with all container engines.
Co-authored-by: Hugo Larcher <[email protected]>
Co-authored-by: Hugo Larcher <[email protected]>
Notes from offline discussion with @OlivierDehaene
--> better to get this forward now and not to block on things |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool! 👍
Tried e2e telemetry and a header is missing.
Co-authored-by: Hugo Larcher <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great job 🥳
* draft of usage stats * fix wrong link * launcher doesn't need sysinfo dep * only tokenizer class instead of hole struct * unused import * fix clippy errors * update openAPI doc * cargo fmt * fix error in passing flags to router * try again to update docs * run pre-commit locally * Update router/src/main.rs Co-authored-by: Hugo Larcher <[email protected]> * Update router/src/main.rs Co-authored-by: Hugo Larcher <[email protected]> * on crash use anonymous error event * delete json_output and ngrok * more robust way of checking if is in container * more robust nvidia smi * parse xpu more robustly * fix errors * add nvidia-smi details in docs * cargo fmt * fix clippy * should make docs check pass * Update router/src/usage_stats.rs Co-authored-by: Hugo Larcher <[email protected]> * error reason can't be in nested json * cargo fmt --------- Co-authored-by: Hugo Larcher <[email protected]> Co-authored-by: Erik Kaunismäki <[email protected]>
* draft of usage stats * fix wrong link * launcher doesn't need sysinfo dep * only tokenizer class instead of hole struct * unused import * fix clippy errors * update openAPI doc * cargo fmt * fix error in passing flags to router * try again to update docs * run pre-commit locally * Update router/src/main.rs Co-authored-by: Hugo Larcher <[email protected]> * Update router/src/main.rs Co-authored-by: Hugo Larcher <[email protected]> * on crash use anonymous error event * delete json_output and ngrok * more robust way of checking if is in container * more robust nvidia smi * parse xpu more robustly * fix errors * add nvidia-smi details in docs * cargo fmt * fix clippy * should make docs check pass * Update router/src/usage_stats.rs Co-authored-by: Hugo Larcher <[email protected]> * error reason can't be in nested json * cargo fmt --------- Co-authored-by: Hugo Larcher <[email protected]> Co-authored-by: Erik Kaunismäki <[email protected]>
* draft of usage stats * fix wrong link * launcher doesn't need sysinfo dep * only tokenizer class instead of hole struct * unused import * fix clippy errors * update openAPI doc * cargo fmt * fix error in passing flags to router * try again to update docs * run pre-commit locally * Update router/src/main.rs Co-authored-by: Hugo Larcher <[email protected]> * Update router/src/main.rs Co-authored-by: Hugo Larcher <[email protected]> * on crash use anonymous error event * delete json_output and ngrok * more robust way of checking if is in container * more robust nvidia smi * parse xpu more robustly * fix errors * add nvidia-smi details in docs * cargo fmt * fix clippy * should make docs check pass * Update router/src/usage_stats.rs Co-authored-by: Hugo Larcher <[email protected]> * error reason can't be in nested json * cargo fmt --------- Co-authored-by: Hugo Larcher <[email protected]> Co-authored-by: Erik Kaunismäki <[email protected]>
What does this PR do?
High level:
router
+ docs--disable-usage-stats
flag, can also partially opt out with flag--disable-crash-reports
which only allows sending of usage stats.Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.