transformers icon indicating copy to clipboard operation
transformers copied to clipboard

Fix for issue #12182 to ensure that the tutorial for zero shot distillation works

Open pramodith opened this issue 3 years ago • 2 comments

What does this PR do?

The code for training models via zero shot distillation was breaking because the .map() function was removing the labels field from the dataset object. This PR fixes the issue by changing the way the tokenizer is called via the map() function.

Fixes https://github.com/huggingface/transformers/issues/12182

Before submitting

  • [ ] 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?
  • [X] 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?

Anyone in the community is free to review the PR once the tests have passed. @patil-suraj @VictorSanh

pramodith avatar Aug 16 '22 21:08 pramodith

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Sep 16 '22 15:09 github-actions[bot]