-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Update model card for electra #37063
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
Conversation
Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the |
958a242
to
8d3caff
Compare
8d3caff
to
fec39c0
Compare
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.
Nice work, love the Notes section! 🚀 No worries about the AttentionMaskVisualizer
which hasn't been implemented for ELECTRA yet.
I think you can include a transformers-cli
example for text classification:
echo -e "This restaurant has amazing food." | transformers-cli run --task text-classification --model bhadresh-savani/electra-base-emotion --device 0
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
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. |
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.
One more comment + a few other unresolved comments. Otherwise, we should be ready to merge soon! 👍
Co-authored-by: Steven Liu <[email protected]>
…transformers into update-electra-model-card
I've implemented all the requested changes. |
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.
Thanks! I hope you don't mind I closed one of the <hfoption>
blocks for you 😄
* Update ELECTRA model card with new format * Update ELECTRA model card with new format * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * close hfoption block --------- Co-authored-by: Wun0 <[email protected]> Co-authored-by: Steven Liu <[email protected]>
* Update ELECTRA model card with new format * Update ELECTRA model card with new format * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/electra.md Co-authored-by: Steven Liu <[email protected]> * close hfoption block --------- Co-authored-by: Wun0 <[email protected]> Co-authored-by: Steven Liu <[email protected]>
What does this PR do?
This PR updates the ELECTRA model card to follow the standardized format outlined in issue #36979. The updated model card includes:
Note: I did not include a transformers-cli example because ELECTRA is a discriminative model for classification tasks rather than text generation, making it less suitable for CLI interaction.
I also couldn't include an AttentionMaskVisualizer example because it's not currently supported with ELECTRA. When attempting to implement it locally, I encountered this error:
AttributeError: '_ModelWrapper' object has no attribute '_update_causal_mask'
Before submitting
Who can review?
@stevhliu