-
Notifications
You must be signed in to change notification settings - Fork 377
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
chore: added telemetry to ArgillaTrainer #3336
chore: added telemetry to ArgillaTrainer #3336
Conversation
Before tackling this I guess we should talk about whether adding telemetry in the Python client side is something we want to do @frascuchon, as for now we just have that in the API |
I briefly discussed this with @frascuchon and @dvsrepo before. For me it makes sense to do so in order to keep track of integrations like the trainer and the callbacks/plugins. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #3336 +/- ##
===========================================
+ Coverage 90.45% 90.47% +0.01%
===========================================
Files 239 239
Lines 12828 12834 +6
===========================================
+ Hits 11604 11611 +7
+ Misses 1224 1223 -1
☔ View full report in Codecov by Sentry. |
chore: used get_telemetry_client method
@frascuchon I opted for moving telemetry to |
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.
Cool!!
I've included some comments
Also, maybe the changes referring to the training import issue should be removed, or wait to merge first #3346 ?
@frascuchon I assumed #3346 would be resolved during the patch. |
chore: remove client init if-statement
* develop: feat: disable concurrency tests GitHub (#3355) feat: improve protected fields (#3342) chore: added telemetry to ArgillaTrainer (#3336) Feat/update start page code (#3327) [DOCS] Added information about tests in developer documentation (#3147) # Conflicts: # docs/_source/_common/snippets/start_page.md # frontend/components/commons/datasets-list/DatasetsEmpty.vue
* develop: feat: disable concurrency tests GitHub (#3355) feat: improve protected fields (#3342) chore: added telemetry to ArgillaTrainer (#3336) Feat/update start page code (#3327) [DOCS] Added information about tests in developer documentation (#3147) # Conflicts: # docs/_source/_common/snippets/start_page.md # frontend/components/commons/datasets-list/DatasetsEmpty.vue
# Description This PRs fixes the `ModuleNotFoundError` and `ImportError` that occurred when trying to import something from `argilla.feedback` module. The first error was caused because in #3336 the telemetry was included in the `ArgillaTrainer`, but in the `argilla.utils.telemetry` module some optional dependencies used by the server were being imported. The second one was caused because the module in which `HuggingFaceDatasetMixin` (and from which `FeedbackDataset` is inheriting) class lives was importing classes from the `argilla.client.feedback.config` module, which was importing `pyyaml` in its root causing the `ImportError`. Closes #3468 **Type of change** - [x] Bug fix (non-breaking change which fixes an issue) **How Has This Been Tested** I've created a wheel of this branch, installed in a new virtual environment and I was able to import something `argilla.feedback` module without errors. **Checklist** - [ ] I added relevant documentation - [x] follows the style guidelines of this project - [x] I did a self-review of my code - [ ] I made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK) (see text above) - [x] I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --------- Co-authored-by: Francisco Aranda <[email protected]>
Description
argilla.server.commons.telemetry
toargilla.utils.telemetry
telemetry
toArgillaTrainer
for Framework and NLP-taskCloses #3325
Type of change
How Has This Been Tested
N.A.
Checklist
N.A.