Add support for ModernBertForMultipleChoice (#39232)

* implement ModernBertForMultipleChoice

* fixup, style, repo consistency

* generate modeling_modernbert

* add tests + docs

* fix test
This commit is contained in:
Jan Netík
2025-08-04 20:45:43 +02:00
committed by GitHub
parent 801e869b67
commit 0bd91cc822
5 changed files with 279 additions and 2 deletions

View File

@@ -115,6 +115,11 @@ echo -e "Plants create [MASK] through a process known as photosynthesis." | tran
[[autodoc]] ModernBertForTokenClassification
- forward
## ModernBertForMultipleChoice
[[autodoc]] ModernBertForMultipleChoice
- forward
## ModernBertForQuestionAnswering
[[autodoc]] ModernBertForQuestionAnswering