brenomatos commited on
Commit
c870bf8
·
verified ·
1 Parent(s): 219c531

brenomatos/distilbert-base-multilingual-cased

Browse files
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: distilbert-base-multilingual-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ model-index:
10
+ - name: distilbert-base-multilingual-cased
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # distilbert-base-multilingual-cased
18
+
19
+ This model is a fine-tuned version of [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0472
22
+ - Accuracy: 0.9936
23
+ - F1: 0.9936
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 2e-05
43
+ - train_batch_size: 64
44
+ - eval_batch_size: 128
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 3
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
55
+ | 0.1749 | 1.0 | 1094 | 0.0427 | 0.9935 | 0.9935 |
56
+ | 0.006 | 2.0 | 2188 | 0.0421 | 0.9936 | 0.9936 |
57
+ | 0.0023 | 3.0 | 3282 | 0.0472 | 0.9936 | 0.9936 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.35.2
63
+ - Pytorch 2.1.0+cu121
64
+ - Datasets 2.16.1
65
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-multilingual-cased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "ar",
13
+ "1": "bg",
14
+ "2": "de",
15
+ "3": "el",
16
+ "4": "en",
17
+ "5": "es",
18
+ "6": "fr",
19
+ "7": "hi",
20
+ "8": "it",
21
+ "9": "ja",
22
+ "10": "nl",
23
+ "11": "pl",
24
+ "12": "pt",
25
+ "13": "ru",
26
+ "14": "sw",
27
+ "15": "th",
28
+ "16": "tr",
29
+ "17": "ur",
30
+ "18": "vi",
31
+ "19": "zh"
32
+ },
33
+ "initializer_range": 0.02,
34
+ "label2id": {
35
+ "ar": 0,
36
+ "bg": 1,
37
+ "de": 2,
38
+ "el": 3,
39
+ "en": 4,
40
+ "es": 5,
41
+ "fr": 6,
42
+ "hi": 7,
43
+ "it": 8,
44
+ "ja": 9,
45
+ "nl": 10,
46
+ "pl": 11,
47
+ "pt": 12,
48
+ "ru": 13,
49
+ "sw": 14,
50
+ "th": 15,
51
+ "tr": 16,
52
+ "ur": 17,
53
+ "vi": 18,
54
+ "zh": 19
55
+ },
56
+ "max_position_embeddings": 512,
57
+ "model_type": "distilbert",
58
+ "n_heads": 12,
59
+ "n_layers": 6,
60
+ "output_past": true,
61
+ "pad_token_id": 0,
62
+ "problem_type": "single_label_classification",
63
+ "qa_dropout": 0.1,
64
+ "seq_classif_dropout": 0.2,
65
+ "sinusoidal_pos_embds": false,
66
+ "tie_weights_": true,
67
+ "torch_dtype": "float32",
68
+ "transformers_version": "4.35.2",
69
+ "vocab_size": 119547
70
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9fb29d2c99b8b42c69d52905d96d1e58b7c5840e2a34c606c834b9ed6cb9496
3
+ size 541372744
runs/Jan20_14-18-32_4f99bf91cef0/events.out.tfevents.1705760313.4f99bf91cef0.27012.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:604377dc34c269a69109d9b6eb4c2be44ab902edace6a0937b05383ee616e85f
3
+ size 6790
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": false,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "DistilBertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fab081a0be10775098b709f7fef4a9649c432d048b4d79e7ab0f06f034451a2
3
+ size 4664
vocab.txt ADDED
The diff for this file is too large to render. See raw diff