transformers icon indicating copy to clipboard operation
transformers copied to clipboard

added GPTNeoXForTokenClassification

Open peter-sk opened this issue 2 years ago • 2 comments

What does this PR do?

It adds the class GPTNeoXForTokenClassification, which allows using GPT NeoX models for token classification tasks. The implementation follows the one for other models (such as GPT2 and GPT Neo) closely and simply adds a linear layer after the hidden states.

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?
  • [ ] Was this discussed/approved via a Github issue or the forum? Please add a link to it if that's the case.
  • [X] Did you make sure to update the documentation with your changes? Here are the documentation guidelines, and here are tips on formatting docstrings.
  • [X] 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. Feel free to tag members/contributors who may be interested in your PR.

@ArthurZucker @younesbelkada

peter-sk avatar Apr 26 '23 08:04 peter-sk

The documentation is not available anymore as the PR was closed or merged.

Ready for review, @ArthurZucker and @younesbelkada 👍

peter-sk avatar Apr 26 '23 12:04 peter-sk