jarodrigues
commited on
Commit
•
316461e
1
Parent(s):
7127f6e
Update README.md
Browse files
README.md
CHANGED
@@ -25,16 +25,16 @@ widget:
|
|
25 |
---
|
26 |
---
|
27 |
<img align="left" width="40" height="40" src="https://github.githubassets.com/images/icons/emoji/unicode/1f917.png">
|
28 |
-
<p style="text-align: center;"> This is the model card for Albertina PT-PT
|
29 |
You may be interested in some of the other models in the <a href="https://huggingface.co/PORTULAN">Albertina family</a>.
|
30 |
</p>
|
31 |
|
32 |
---
|
33 |
|
34 |
-
# Albertina PT-PT
|
35 |
|
36 |
|
37 |
-
**Albertina PT-PT
|
38 |
|
39 |
It is an **encoder** of the BERT family, based on the neural architecture Transformer and
|
40 |
developed over the DeBERTa model, with most competitive performance for this language.
|
@@ -46,7 +46,7 @@ and to the best of our knowledge, this is an encoder specifically for this langu
|
|
46 |
that, at the time of its initial distribution, sets a new state of the art for it, and is made publicly available
|
47 |
and distributed for reuse.
|
48 |
|
49 |
-
**Albertina PT-PT
|
50 |
For further details, check the respective [publication](https://arxiv.org/abs/2305.06721):
|
51 |
|
52 |
``` latex
|
@@ -70,9 +70,9 @@ Please use the above cannonical reference when using or citing this model.
|
|
70 |
|
71 |
# Model Description
|
72 |
|
73 |
-
**This model card is for Albertina-PT-PT
|
74 |
|
75 |
-
Albertina-PT-PT
|
76 |
|
77 |
DeBERTa is distributed under an [MIT license](https://github.com/microsoft/DeBERTa/blob/master/LICENSE).
|
78 |
|
@@ -81,7 +81,7 @@ DeBERTa is distributed under an [MIT license](https://github.com/microsoft/DeBER
|
|
81 |
|
82 |
# Training Data
|
83 |
|
84 |
-
[**Albertina-PT-PT
|
85 |
|
86 |
- [OSCAR](https://huggingface.co/datasets/oscar-corpus/OSCAR-2301): the OSCAR data set includes documents in more than one hundred languages, including Portuguese, and it is widely used in the literature. It is the result of a selection performed over the [Common Crawl](https://commoncrawl.org/) data set, crawled from the Web, that retains only pages whose metadata indicates permission to be crawled, that performs deduplication, and that removes some boilerplate, among other filters. Given that it does not discriminate between the Portuguese variants, we performed extra filtering by retaining only documents whose meta-data indicate the Internet country code top-level domain of Portugal. We used the January 2023 version of OSCAR, which is based on the November/December 2022 version of Common Crawl.
|
87 |
- [DCEP](https://joint-research-centre.ec.europa.eu/language-technology-resources/dcep-digital-corpus-european-parliament_en): the Digital Corpus of the European Parliament is a multilingual corpus including documents in all official EU languages published on the European Parliament's official website. We retained its European Portuguese portion.
|
@@ -97,9 +97,9 @@ We skipped the default filtering of stopwords since it would disrupt the syntact
|
|
97 |
|
98 |
## Training
|
99 |
|
100 |
-
As codebase, we resorted to the [DeBERTa V1
|
101 |
|
102 |
-
To train [**Albertina-PT-PT
|
103 |
The model was trained using the maximum available memory capacity resulting in a batch size of 3072 samples (192 samples per GPU).
|
104 |
We opted for a learning rate of 1e-5 with linear decay and 10k warm-up steps.
|
105 |
A total of 200 training epochs were performed resulting in approximately 180k steps.
|
@@ -122,7 +122,7 @@ We automatically translated the same four tasks from GLUE using [DeepL Translate
|
|
122 |
| Model | RTE (Accuracy) | WNLI (Accuracy)| MRPC (F1) | STS-B (Pearson) |
|
123 |
|--------------------------|----------------|----------------|-----------|-----------------|
|
124 |
| **Albertina-PT-PT** | **0.8339** | 0.4225 | **0.9171**| **0.8801** |
|
125 |
-
| **Albertina-PT-PT
|
126 |
|
127 |
<br>
|
128 |
|
|
|
25 |
---
|
26 |
---
|
27 |
<img align="left" width="40" height="40" src="https://github.githubassets.com/images/icons/emoji/unicode/1f917.png">
|
28 |
+
<p style="text-align: center;"> This is the model card for Albertina PT-PT base.
|
29 |
You may be interested in some of the other models in the <a href="https://huggingface.co/PORTULAN">Albertina family</a>.
|
30 |
</p>
|
31 |
|
32 |
---
|
33 |
|
34 |
+
# Albertina PT-PT base
|
35 |
|
36 |
|
37 |
+
**Albertina PT-PT base** is a foundation, large language model for European **Portuguese** from **Portugal**.
|
38 |
|
39 |
It is an **encoder** of the BERT family, based on the neural architecture Transformer and
|
40 |
developed over the DeBERTa model, with most competitive performance for this language.
|
|
|
46 |
that, at the time of its initial distribution, sets a new state of the art for it, and is made publicly available
|
47 |
and distributed for reuse.
|
48 |
|
49 |
+
**Albertina PT-PT base** is developed by a joint team from the University of Lisbon and the University of Porto, Portugal.
|
50 |
For further details, check the respective [publication](https://arxiv.org/abs/2305.06721):
|
51 |
|
52 |
``` latex
|
|
|
70 |
|
71 |
# Model Description
|
72 |
|
73 |
+
**This model card is for Albertina-PT-PT base**, with 100M parameters, 12 layers and a hidden size of 768.
|
74 |
|
75 |
+
Albertina-PT-PT base is distributed under an [MIT license](https://huggingface.co/PORTULAN/albertina-ptpt/blob/main/LICENSE).
|
76 |
|
77 |
DeBERTa is distributed under an [MIT license](https://github.com/microsoft/DeBERTa/blob/master/LICENSE).
|
78 |
|
|
|
81 |
|
82 |
# Training Data
|
83 |
|
84 |
+
[**Albertina-PT-PT base**](https://huggingface.co/PORTULAN/albertina-ptpt-base) was trained over a 2.2 billion token data set that resulted from gathering some openly available corpora of European Portuguese from the following sources:
|
85 |
|
86 |
- [OSCAR](https://huggingface.co/datasets/oscar-corpus/OSCAR-2301): the OSCAR data set includes documents in more than one hundred languages, including Portuguese, and it is widely used in the literature. It is the result of a selection performed over the [Common Crawl](https://commoncrawl.org/) data set, crawled from the Web, that retains only pages whose metadata indicates permission to be crawled, that performs deduplication, and that removes some boilerplate, among other filters. Given that it does not discriminate between the Portuguese variants, we performed extra filtering by retaining only documents whose meta-data indicate the Internet country code top-level domain of Portugal. We used the January 2023 version of OSCAR, which is based on the November/December 2022 version of Common Crawl.
|
87 |
- [DCEP](https://joint-research-centre.ec.europa.eu/language-technology-resources/dcep-digital-corpus-european-parliament_en): the Digital Corpus of the European Parliament is a multilingual corpus including documents in all official EU languages published on the European Parliament's official website. We retained its European Portuguese portion.
|
|
|
97 |
|
98 |
## Training
|
99 |
|
100 |
+
As codebase, we resorted to the [DeBERTa V1 base](https://huggingface.co/microsoft/deberta-base), for English.
|
101 |
|
102 |
+
To train [**Albertina-PT-PT base**](https://huggingface.co/PORTULAN/albertina-ptpt-base), the data set was tokenized with the original DeBERTa tokenizer with a 128 token sequence truncation and dynamic padding.
|
103 |
The model was trained using the maximum available memory capacity resulting in a batch size of 3072 samples (192 samples per GPU).
|
104 |
We opted for a learning rate of 1e-5 with linear decay and 10k warm-up steps.
|
105 |
A total of 200 training epochs were performed resulting in approximately 180k steps.
|
|
|
122 |
| Model | RTE (Accuracy) | WNLI (Accuracy)| MRPC (F1) | STS-B (Pearson) |
|
123 |
|--------------------------|----------------|----------------|-----------|-----------------|
|
124 |
| **Albertina-PT-PT** | **0.8339** | 0.4225 | **0.9171**| **0.8801** |
|
125 |
+
| **Albertina-PT-PT base** | 0.6787 | **0.4507** | 0.8829 | 0.8581 |
|
126 |
|
127 |
<br>
|
128 |
|