Added model
Browse files- README.md +38 -0
- config.json +28 -0
- pytorch_model.bin +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +20 -0
README.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- is
|
4 |
+
- da
|
5 |
+
- sv
|
6 |
+
- no
|
7 |
+
- fo
|
8 |
+
widget:
|
9 |
+
- text: Fina lilla<mask>, jag vill inte bliva stur.
|
10 |
+
- text: Nu ved jeg, at du frygter<mask> og end ikke vil nægte mig din eneste søn..
|
11 |
+
- text: Það er vorhret á<mask>, napur vindur sem hvín.
|
12 |
+
- text: Ja, Gud signi<mask>, mítt land.
|
13 |
+
- text: Alle dyrene i<mask> må være venner.
|
14 |
+
tags:
|
15 |
+
- roberta
|
16 |
+
- icelandic
|
17 |
+
- norwegian
|
18 |
+
- faroese
|
19 |
+
- danish
|
20 |
+
- swedish
|
21 |
+
- masked-lm
|
22 |
+
- pytorch
|
23 |
+
license: agpl-3.0
|
24 |
+
---
|
25 |
+
|
26 |
+
# ScandiBERT-no-faroese
|
27 |
+
|
28 |
+
This is a version of the ScandiBERT model trained without any Faroese data and a different subword tokenizer.
|
29 |
+
|
30 |
+
The model was trained on the data shown in the table below. Batch size was 8.8k, the model was trained for 72 epochs on 24 V100 cards for about 2 weeks.
|
31 |
+
|
32 |
+
| Language | Data | Size |
|
33 |
+
|-----------|---------------------------------------|--------|
|
34 |
+
| Icelandic | See IceBERT paper | 16 GB |
|
35 |
+
| Danish | Danish Gigaword Corpus (incl Twitter) | 4,7 GB |
|
36 |
+
| Norwegian | NCC corpus | 42 GB |
|
37 |
+
| Swedish | Swedish Gigaword Corpus | 3,4 GB |
|
38 |
+
|
config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./scandibert_nofo-hf/",
|
3 |
+
"architectures": [
|
4 |
+
"XLMRobertaForMaskedLM"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 3072,
|
16 |
+
"layer_norm_eps": 1e-05,
|
17 |
+
"max_position_embeddings": 514,
|
18 |
+
"model_type": "xlm-roberta",
|
19 |
+
"num_attention_heads": 12,
|
20 |
+
"num_hidden_layers": 12,
|
21 |
+
"pad_token_id": 1,
|
22 |
+
"position_embedding_type": "absolute",
|
23 |
+
"torch_dtype": "float32",
|
24 |
+
"transformers_version": "4.20.1",
|
25 |
+
"type_vocab_size": 1,
|
26 |
+
"use_cache": true,
|
27 |
+
"vocab_size": 50005
|
28 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2cc460411123f0b9406dee97a917352634f3afe5df92e321748e1fb42e22803b
|
3 |
+
size 498059115
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5c47e92f7b588b911aa98695b4795a0224b7bec4dd37c39bbba06b9129ac43c1
|
3 |
+
size 1084283
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"__type": "AddedToken",
|
7 |
+
"content": "<mask>",
|
8 |
+
"lstrip": true,
|
9 |
+
"normalized": true,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"name_or_path": "./scandibert_nofo-hf/",
|
14 |
+
"pad_token": "<pad>",
|
15 |
+
"sep_token": "</s>",
|
16 |
+
"sp_model_kwargs": {},
|
17 |
+
"special_tokens_map_file": null,
|
18 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
19 |
+
"unk_token": "<unk>"
|
20 |
+
}
|