transformers
transformers copied to clipboard
Fix `wandb` integration with `SetFit` model
What does this PR do?
This PR fixes an error popping up while training a SetFitModelwhile reporting to wandb.
To fix this issue, we could also subclass and override the setup method specifically in the setfit repository, but that would be a much bigger job. @tomaarsen if think you're the one who should decide on that.
Fixes # (issue) https://github.com/huggingface/setfit/issues/498
Before submitting
- [x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the contributor guideline, Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the forum? Please add a link to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the documentation guidelines, and here are tips on formatting docstrings.
- [ ] Did you write any new necessary tests?
Who can review?
@tomaarsen @ArthurZucker
@ArthurZucker Done!
Just need the CIs to go Green 😉 you can rebase on main and run make fixup! 🤗
@ArthurZucker That's what I did, but run_testsand ci/circleci: tests_tf are still failing, as it on the main branch. 😄
Just re-triggered them!
the test seems unrelated so I think we can merge!
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.