Instructions to use google/electra-small-discriminator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/electra-small-discriminator with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("google/electra-small-discriminator") model = AutoModelForPreTraining.from_pretrained("google/electra-small-discriminator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Updates incorrect tokenizer configuration file (#1)
Browse files- Adds tokenizer_config.json file (59e78c9de82469c307a9ef89ab282d6f73182b8f)
- tokenizer_config.json +1 -4
tokenizer_config.json
CHANGED
|
@@ -1,4 +1 @@
|
|
| 1 |
-
{
|
| 2 |
-
"do_lower_case": true
|
| 3 |
-
}
|
| 4 |
-
|
|
|
|
| 1 |
+
{"do_lower_case": true, "model_max_length": 512}
|
|
|
|
|
|
|
|
|