Instructions to use google/electra-small-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/electra-small-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="google/electra-small-generator")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("google/electra-small-generator") model = AutoModelForMaskedLM.from_pretrained("google/electra-small-generator", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding Neuron-optimized model files
Verified signature🤖 Neuron Export Bot: On behalf of [badaoui](https://huggingface.co/badaoui), adding AWS Neuron-optimized model files. Neuron-optimized models can achieve high-performance inference on AWS Inferentia and Trainium chips. Learn more: - [AWS Neuron Documentation](https://awsdocs-neuron.readthedocs-hosted.com) - [🤗 Optimum Neuron Guide](https://huggingface.co/docs/optimum-neuron/index)cc92f3a
-
Updates incorrect tokenizer configuration file (#4)
Verified signature- Adds tokenizer_config.json file (bd8a572b79ffd8a4a205fb2196710da37f96661a)0dbbbf9
-
Warn about config mismatch for pre-training (#2)
- Warn about config mismatch for pre-training (d451554b67f6166d87fbc24e531ae0bafbdae139) - Update README.md (72aaf32cc7c56230df94f899d9e66bf3880f502c) - Update README.md (a050549b8d5f3e26eed43efc46012ee7c5e6d8f7) Co-authored-by: Nathan Godey <nthngdy@users.noreply.huggingface.co>b3cb16e
-
update model
c04c64e -
add gitaatr
71a1cf3
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/google/electra-small-generator/README.md3c02135
-
Create tokenizer_config.json
e58d55a
-
Update tokenizer.json
c212f9b
-
Update config.json
0f903b5
-
Update tf_model.h5
b1a6876
-
Update pytorch_model.bin
8c96b45
-
Update vocab.txt
15e5864 -
Update config.json
71ab435 -
initial commit
e3fd9cb