Instructions to use FacebookAI/roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FacebookAI/roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="FacebookAI/roberta-base")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("FacebookAI/roberta-base") model = AutoModelForMaskedLM.from_pretrained("FacebookAI/roberta-base") - Inference
- Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -14,6 +14,6 @@
|
|
| 14 |
"output_attentions": false,
|
| 15 |
"output_hidden_states": false,
|
| 16 |
"torchscript": false,
|
| 17 |
-
"type_vocab_size":
|
| 18 |
"vocab_size": 50265
|
| 19 |
}
|
|
|
|
| 14 |
"output_attentions": false,
|
| 15 |
"output_hidden_states": false,
|
| 16 |
"torchscript": false,
|
| 17 |
+
"type_vocab_size": 1,
|
| 18 |
"vocab_size": 50265
|
| 19 |
}
|