Commit
·
10e578b
1
Parent(s):
7d9b398
v1.0
Browse files- .gitattributes +1 -0
- README.md +90 -0
- config.json +125 -0
- model.safetensors +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +3 -0
- tokenizer_config.json +54 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: xlm-roberta-base
|
| 4 |
+
metrics:
|
| 5 |
+
- accuracy
|
| 6 |
+
model-index:
|
| 7 |
+
- name: xlm-roberta-base-language-detection-silvanus
|
| 8 |
+
results: []
|
| 9 |
+
widget:
|
| 10 |
+
- text: >-
|
| 11 |
+
Kebakaran hutan dan lahan terus terjadi dan semakin meluas di Kota
|
| 12 |
+
Palangkaraya, Kalimantan Tengah (Kalteng) pada hari Rabu, 15 Nopember 2023
|
| 13 |
+
20.00 WIB. Bahkan kobaran api mulai membakar pondok warga dan mendekati
|
| 14 |
+
permukiman. BZK #RCTINews #SeputariNews #News #Karhutla #KebakaranHutan
|
| 15 |
+
#HutanKalimantan #SILVANUS_Italian_Pilot_Testing
|
| 16 |
+
example_title: Indonesia
|
| 17 |
+
- text: >-
|
| 18 |
+
Wildfire rages for a second day in Evia destroying a Natura 2000 protected
|
| 19 |
+
pine forest. - 5:51 PM Aug 14, 2019
|
| 20 |
+
example_title: English
|
| 21 |
+
- text: >-
|
| 22 |
+
3 nov 2023 21:57 - Incendio forestal obliga a la evacuación de hasta 850
|
| 23 |
+
personas cerca del pueblo de Montichelvo en Valencia.
|
| 24 |
+
example_title: Spanish
|
| 25 |
+
- text: >-
|
| 26 |
+
Incendi boschivi nell'est del Paese: 2 morti e oltre 50 case distrutte nello
|
| 27 |
+
stato del Queensland.
|
| 28 |
+
example_title: Italian
|
| 29 |
+
- text: >-
|
| 30 |
+
Lesné požiare na Sicílii si vyžiadali dva ľudské životy a evakuáciu hotela
|
| 31 |
+
http://dlvr.it/SwW3sC - 23. septembra 2023 20:57
|
| 32 |
+
example_title: Slovak
|
| 33 |
+
language:
|
| 34 |
+
- id
|
| 35 |
+
- en
|
| 36 |
+
- es
|
| 37 |
+
- it
|
| 38 |
+
- sk
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 42 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 43 |
+
|
| 44 |
+
# xlm-roberta-base-language-detection-silvanus
|
| 45 |
+
|
| 46 |
+
This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the common language and kiviki/SlovakSum datasets.
|
| 47 |
+
It achieves the following results on the evaluation set:
|
| 48 |
+
- Loss: 0.0866
|
| 49 |
+
- Accuracy: 0.9868
|
| 50 |
+
|
| 51 |
+
## Model description
|
| 52 |
+
|
| 53 |
+
More information needed
|
| 54 |
+
|
| 55 |
+
## Intended uses & limitations
|
| 56 |
+
|
| 57 |
+
More information needed
|
| 58 |
+
|
| 59 |
+
## Training and evaluation data
|
| 60 |
+
|
| 61 |
+
More information needed
|
| 62 |
+
|
| 63 |
+
## Training procedure
|
| 64 |
+
|
| 65 |
+
### Training hyperparameters
|
| 66 |
+
|
| 67 |
+
The following hyperparameters were used during training:
|
| 68 |
+
- learning_rate: 3e-05
|
| 69 |
+
- train_batch_size: 8
|
| 70 |
+
- eval_batch_size: 8
|
| 71 |
+
- seed: 42
|
| 72 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 73 |
+
- lr_scheduler_type: linear
|
| 74 |
+
- num_epochs: 3
|
| 75 |
+
|
| 76 |
+
### Training results
|
| 77 |
+
|
| 78 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 79 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 80 |
+
| 0.078 | 1.0 | 3188 | 0.1239 | 0.9784 |
|
| 81 |
+
| 0.0703 | 2.0 | 6376 | 0.1035 | 0.9830 |
|
| 82 |
+
| 0.0375 | 3.0 | 9564 | 0.0866 | 0.9868 |
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
### Framework versions
|
| 86 |
+
|
| 87 |
+
- Transformers 4.35.0
|
| 88 |
+
- Pytorch 2.1.0+cu118
|
| 89 |
+
- Datasets 2.14.6
|
| 90 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "xlm-roberta-base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"XLMRobertaForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "Arabic",
|
| 15 |
+
"1": "Basque",
|
| 16 |
+
"2": "Breton",
|
| 17 |
+
"3": "Catalan",
|
| 18 |
+
"4": "Chinese_China",
|
| 19 |
+
"5": "Chinese_Hongkong",
|
| 20 |
+
"6": "Chinese_Taiwan",
|
| 21 |
+
"7": "Chuvash",
|
| 22 |
+
"8": "Czech",
|
| 23 |
+
"9": "Dhivehi",
|
| 24 |
+
"10": "Dutch",
|
| 25 |
+
"11": "English",
|
| 26 |
+
"12": "Esperanto",
|
| 27 |
+
"13": "Estonian",
|
| 28 |
+
"14": "French",
|
| 29 |
+
"15": "Frisian",
|
| 30 |
+
"16": "Georgian",
|
| 31 |
+
"17": "German",
|
| 32 |
+
"18": "Greek",
|
| 33 |
+
"19": "Hakha_Chin",
|
| 34 |
+
"20": "Indonesian",
|
| 35 |
+
"21": "Interlingua",
|
| 36 |
+
"22": "Italian",
|
| 37 |
+
"23": "Japanese",
|
| 38 |
+
"24": "Kabyle",
|
| 39 |
+
"25": "Kinyarwanda",
|
| 40 |
+
"26": "Kyrgyz",
|
| 41 |
+
"27": "Latvian",
|
| 42 |
+
"28": "Maltese",
|
| 43 |
+
"29": "Mangolian",
|
| 44 |
+
"30": "Persian",
|
| 45 |
+
"31": "Polish",
|
| 46 |
+
"32": "Portuguese",
|
| 47 |
+
"33": "Romanian",
|
| 48 |
+
"34": "Romansh_Sursilvan",
|
| 49 |
+
"35": "Russian",
|
| 50 |
+
"36": "Sakha",
|
| 51 |
+
"37": "Slovenian",
|
| 52 |
+
"38": "Spanish",
|
| 53 |
+
"39": "Swedish",
|
| 54 |
+
"40": "Tamil",
|
| 55 |
+
"41": "Tatar",
|
| 56 |
+
"42": "Turkish",
|
| 57 |
+
"43": "Ukranian",
|
| 58 |
+
"44": "Welsh",
|
| 59 |
+
"45": "Slovak"
|
| 60 |
+
},
|
| 61 |
+
"initializer_range": 0.02,
|
| 62 |
+
"intermediate_size": 3072,
|
| 63 |
+
"label2id": {
|
| 64 |
+
"Arabic": 0,
|
| 65 |
+
"Basque": 1,
|
| 66 |
+
"Breton": 2,
|
| 67 |
+
"Catalan": 3,
|
| 68 |
+
"Chinese_China": 4,
|
| 69 |
+
"Chinese_Hongkong": 5,
|
| 70 |
+
"Chinese_Taiwan": 6,
|
| 71 |
+
"Chuvash": 7,
|
| 72 |
+
"Czech": 8,
|
| 73 |
+
"Dhivehi": 9,
|
| 74 |
+
"Dutch": 10,
|
| 75 |
+
"English": 11,
|
| 76 |
+
"Esperanto": 12,
|
| 77 |
+
"Estonian": 13,
|
| 78 |
+
"French": 14,
|
| 79 |
+
"Frisian": 15,
|
| 80 |
+
"Georgian": 16,
|
| 81 |
+
"German": 17,
|
| 82 |
+
"Greek": 18,
|
| 83 |
+
"Hakha_Chin": 19,
|
| 84 |
+
"Indonesian": 20,
|
| 85 |
+
"Interlingua": 21,
|
| 86 |
+
"Italian": 22,
|
| 87 |
+
"Japanese": 23,
|
| 88 |
+
"Kabyle": 24,
|
| 89 |
+
"Kinyarwanda": 25,
|
| 90 |
+
"Kyrgyz": 26,
|
| 91 |
+
"Latvian": 27,
|
| 92 |
+
"Maltese": 28,
|
| 93 |
+
"Mangolian": 29,
|
| 94 |
+
"Persian": 30,
|
| 95 |
+
"Polish": 31,
|
| 96 |
+
"Portuguese": 32,
|
| 97 |
+
"Romanian": 33,
|
| 98 |
+
"Romansh_Sursilvan": 34,
|
| 99 |
+
"Russian": 35,
|
| 100 |
+
"Sakha": 36,
|
| 101 |
+
"Slovak": 45,
|
| 102 |
+
"Slovenian": 37,
|
| 103 |
+
"Spanish": 38,
|
| 104 |
+
"Swedish": 39,
|
| 105 |
+
"Tamil": 40,
|
| 106 |
+
"Tatar": 41,
|
| 107 |
+
"Turkish": 42,
|
| 108 |
+
"Ukranian": 43,
|
| 109 |
+
"Welsh": 44
|
| 110 |
+
},
|
| 111 |
+
"layer_norm_eps": 1e-05,
|
| 112 |
+
"max_position_embeddings": 514,
|
| 113 |
+
"model_type": "xlm-roberta",
|
| 114 |
+
"num_attention_heads": 12,
|
| 115 |
+
"num_hidden_layers": 12,
|
| 116 |
+
"output_past": true,
|
| 117 |
+
"pad_token_id": 1,
|
| 118 |
+
"position_embedding_type": "absolute",
|
| 119 |
+
"problem_type": "single_label_classification",
|
| 120 |
+
"torch_dtype": "float32",
|
| 121 |
+
"transformers_version": "4.35.0",
|
| 122 |
+
"type_vocab_size": 1,
|
| 123 |
+
"use_cache": true,
|
| 124 |
+
"vocab_size": 250002
|
| 125 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:682f2d74fcb5ac4d168cdc0d0514d0304d39d1c841dd7954b72d64f37a89b86b
|
| 3 |
+
size 1112340352
|
sentencepiece.bpe.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
| 3 |
+
size 5069051
|
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": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"unk_token": "<unk>"
|
| 15 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:003498ab0695fbf35aedc8bbbae1e20a6033a1b3914e49c6d2fbe1d54d7d93b9
|
| 3 |
+
size 17082786
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<s>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<pad>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "</s>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "<unk>",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"250001": {
|
| 36 |
+
"content": "<mask>",
|
| 37 |
+
"lstrip": true,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"bos_token": "<s>",
|
| 45 |
+
"clean_up_tokenization_spaces": true,
|
| 46 |
+
"cls_token": "<s>",
|
| 47 |
+
"eos_token": "</s>",
|
| 48 |
+
"mask_token": "<mask>",
|
| 49 |
+
"model_max_length": 512,
|
| 50 |
+
"pad_token": "<pad>",
|
| 51 |
+
"sep_token": "</s>",
|
| 52 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 53 |
+
"unk_token": "<unk>"
|
| 54 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c604139e4a83f290b70282279d18668290438565d95e208956d853d806b90aa
|
| 3 |
+
size 4664
|