-
Notifications
You must be signed in to change notification settings - Fork 25
feat: allow get_kernel to log telemetry. #167
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
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. |
| "kernels": __version__, | ||
| "torch": torch.__version__, | ||
| "build_variant": build_variant(), | ||
| "file_type": "kernel", |
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.
Looks non-revealing 👍, though I would be in favor of mentioning in the docs that we are collecting this information + how to switch it off.
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.
Sure! Which part of the docs should we put this in?
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.
Not sure. Maybe an item here https://huggingface.co/docs/kernels/faq with an additional question like How can I disable kernel reporting in the user-agent?
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.
Done.
Co-authored-by: Daniël de Kok <me@danieldk.eu>
The values in
user_agentare pretty non-identifiable. But LMK if you think otherwise.I have also made it so that the logging is configurable through an env var.