Instructions to use MMG/mlm-spanish-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MMG/mlm-spanish-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="MMG/mlm-spanish-roberta-base")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("MMG/mlm-spanish-roberta-base") model = AutoModelForMaskedLM.from_pretrained("MMG/mlm-spanish-roberta-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,3 +6,18 @@ widget:
|
|
| 6 |
- text: "MMG se dedica a la <mask> artificial."
|
| 7 |
|
| 8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- text: "MMG se dedica a la <mask> artificial."
|
| 7 |
|
| 8 |
---
|
| 9 |
+
|
| 10 |
+
# mlm-spanish-roberta-base
|
| 11 |
+
|
| 12 |
+
This model has a RoBERTa base architecture and was trained from scratch with 3.6 GB of raw text over 10 epochs. 4 Tesla V-100 GPUs were used for the training.
|
| 13 |
+
|
| 14 |
+
To test the quality of the resulting model we evaluate it over the [GLUES](https://github.com/dccuchile/GLUES) benchmark for Spanish NLU. The results are the following:
|
| 15 |
+
|
| 16 |
+
| Tarea | Score (metric) |
|
| 17 |
+
|:-----------------------:|:---------------------:|
|
| 18 |
+
| XNLI | 71.99 (accuracy) |
|
| 19 |
+
| Paraphrasing | 74.85 (accuracy) |
|
| 20 |
+
| NER | 85.34 (F1) |
|
| 21 |
+
| POS | 97.49 (accuracy) |
|
| 22 |
+
| Dependency Parsing | 85.14/81.08 (UAS/LAS) |
|
| 23 |
+
| Document Classification | 93.00 (accuracy) |
|