eysharaazia commited on
Commit
5be9573
1 Parent(s): 8745a72

sentiment_deberta

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- license: mit
3
- base_model: MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7
4
  tags:
5
  - generated_from_trainer
6
  metrics:
@@ -18,13 +18,13 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  # sentiment_deberta
20
 
21
- This model is a fine-tuned version of [MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7](https://huggingface.co/MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: 0.6252
24
- - Accuracy: 0.7418
25
- - F1: 0.6848
26
- - Precision: 0.6668
27
- - Recall: 0.7317
28
 
29
  ## Model description
30
 
@@ -47,20 +47,28 @@ The following hyperparameters were used during training:
47
  - train_batch_size: 64
48
  - eval_batch_size: 64
49
  - seed: 42
 
 
50
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
- - lr_scheduler_type: linear
52
- - num_epochs: 5
 
53
  - mixed_precision_training: Native AMP
54
 
55
  ### Training results
56
 
57
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
58
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
59
- | 0.7168 | 1.0 | 94 | 0.8071 | 0.6421 | 0.6022 | 0.6012 | 0.6733 |
60
- | 0.6442 | 2.0 | 188 | 0.6195 | 0.7428 | 0.6789 | 0.6617 | 0.7176 |
61
- | 0.5657 | 3.0 | 282 | 0.7655 | 0.6615 | 0.6319 | 0.6301 | 0.7172 |
62
- | 0.5001 | 4.0 | 376 | 0.6058 | 0.7465 | 0.6896 | 0.6717 | 0.7352 |
63
- | 0.5145 | 5.0 | 470 | 0.6252 | 0.7418 | 0.6848 | 0.6668 | 0.7317 |
 
 
 
 
 
64
 
65
 
66
  ### Framework versions
 
1
  ---
2
+ license: apache-2.0
3
+ base_model: google-bert/bert-base-multilingual-cased
4
  tags:
5
  - generated_from_trainer
6
  metrics:
 
18
 
19
  # sentiment_deberta
20
 
21
+ This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.7123
24
+ - Accuracy: 0.6938
25
+ - F1: 0.6401
26
+ - Precision: 0.6262
27
+ - Recall: 0.6854
28
 
29
  ## Model description
30
 
 
47
  - train_batch_size: 64
48
  - eval_batch_size: 64
49
  - seed: 42
50
+ - gradient_accumulation_steps: 2
51
+ - total_train_batch_size: 128
52
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
53
+ - lr_scheduler_type: cosine
54
+ - lr_scheduler_warmup_steps: 500
55
+ - num_epochs: 10
56
  - mixed_precision_training: Native AMP
57
 
58
  ### Training results
59
 
60
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
61
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
62
+ | 1.087 | 1.0 | 47 | 1.1008 | 0.2551 | 0.3042 | 0.4734 | 0.4956 |
63
+ | 0.9933 | 2.0 | 94 | 0.9692 | 0.5545 | 0.5098 | 0.5126 | 0.5496 |
64
+ | 0.8709 | 3.0 | 141 | 0.9352 | 0.5003 | 0.5003 | 0.5301 | 0.5804 |
65
+ | 0.8444 | 4.0 | 188 | 0.8729 | 0.5874 | 0.5602 | 0.5671 | 0.6204 |
66
+ | 0.7833 | 5.0 | 235 | 0.9394 | 0.4778 | 0.4980 | 0.5643 | 0.6353 |
67
+ | 0.7003 | 6.0 | 282 | 0.7279 | 0.6834 | 0.6306 | 0.6150 | 0.6828 |
68
+ | 0.6383 | 7.0 | 329 | 0.7808 | 0.6390 | 0.6123 | 0.6073 | 0.7007 |
69
+ | 0.5996 | 8.0 | 376 | 0.7379 | 0.6802 | 0.6367 | 0.6231 | 0.6993 |
70
+ | 0.5514 | 9.0 | 423 | 0.7846 | 0.6745 | 0.6204 | 0.6015 | 0.6901 |
71
+ | 0.4837 | 10.0 | 470 | 0.7123 | 0.6938 | 0.6401 | 0.6262 | 0.6854 |
72
 
73
 
74
  ### Framework versions
config.json CHANGED
@@ -1,9 +1,11 @@
1
  {
2
- "_name_or_path": "MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7",
3
  "architectures": [
4
- "DebertaV2ForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
 
 
7
  "hidden_act": "gelu",
8
  "hidden_dropout_prob": 0.1,
9
  "hidden_size": 768,
@@ -19,27 +21,22 @@
19
  "NEUTRAL": 1,
20
  "POSITIVE": 2
21
  },
22
- "layer_norm_eps": 1e-07,
23
  "max_position_embeddings": 512,
24
- "max_relative_positions": -1,
25
- "model_type": "deberta-v2",
26
- "norm_rel_ebd": "layer_norm",
27
  "num_attention_heads": 12,
28
  "num_hidden_layers": 12,
29
  "pad_token_id": 0,
30
- "pooler_dropout": 0,
31
- "pooler_hidden_act": "gelu",
32
- "pooler_hidden_size": 768,
33
- "pos_att_type": [
34
- "p2c",
35
- "c2p"
36
- ],
37
- "position_biased_input": false,
38
- "position_buckets": 256,
39
- "relative_attention": true,
40
- "share_att_key": true,
41
  "torch_dtype": "float32",
42
  "transformers_version": "4.41.2",
43
- "type_vocab_size": 0,
44
- "vocab_size": 251000
 
45
  }
 
1
  {
2
+ "_name_or_path": "google-bert/bert-base-multilingual-cased",
3
  "architectures": [
4
+ "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
 
21
  "NEUTRAL": 1,
22
  "POSITIVE": 2
23
  },
24
+ "layer_norm_eps": 1e-12,
25
  "max_position_embeddings": 512,
26
+ "model_type": "bert",
 
 
27
  "num_attention_heads": 12,
28
  "num_hidden_layers": 12,
29
  "pad_token_id": 0,
30
+ "pooler_fc_size": 768,
31
+ "pooler_num_attention_heads": 12,
32
+ "pooler_num_fc_layers": 3,
33
+ "pooler_size_per_head": 128,
34
+ "pooler_type": "first_token_transform",
35
+ "position_embedding_type": "absolute",
36
+ "problem_type": "single_label_classification",
 
 
 
 
37
  "torch_dtype": "float32",
38
  "transformers_version": "4.41.2",
39
+ "type_vocab_size": 2,
40
+ "use_cache": true,
41
+ "vocab_size": 119547
42
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ebd4dcbd3cd844a07267d750b94ee13ab85843274318442b88a3acf0495c7c5b
3
- size 1115271284
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e391cc2742fcb1e3c2817cc7fe8c73686914afc3ba0df47f05fb6129409c0649
3
+ size 711446532
special_tokens_map.json CHANGED
@@ -1,51 +1,7 @@
1
  {
2
- "bos_token": {
3
- "content": "[CLS]",
4
- "lstrip": false,
5
- "normalized": false,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "cls_token": {
10
- "content": "[CLS]",
11
- "lstrip": false,
12
- "normalized": false,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "eos_token": {
17
- "content": "[SEP]",
18
- "lstrip": false,
19
- "normalized": false,
20
- "rstrip": false,
21
- "single_word": false
22
- },
23
- "mask_token": {
24
- "content": "[MASK]",
25
- "lstrip": false,
26
- "normalized": false,
27
- "rstrip": false,
28
- "single_word": false
29
- },
30
- "pad_token": {
31
- "content": "[PAD]",
32
- "lstrip": false,
33
- "normalized": false,
34
- "rstrip": false,
35
- "single_word": false
36
- },
37
- "sep_token": {
38
- "content": "[SEP]",
39
- "lstrip": false,
40
- "normalized": false,
41
- "rstrip": false,
42
- "single_word": false
43
- },
44
- "unk_token": {
45
- "content": "[UNK]",
46
- "lstrip": false,
47
- "normalized": false,
48
- "rstrip": false,
49
- "single_word": false
50
- }
51
  }
 
1
  {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ac9bd80d04d21b4df95917bdf7c750cbea28acc30a4462c76ca2b9c86d371863
3
- size 16316225
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf1b59b7b11c95f194f51708d918eea378e09d05f84c0e1656dc5180e8117088
3
+ size 2919362
tokenizer_config.json CHANGED
@@ -8,31 +8,31 @@
8
  "single_word": false,
9
  "special": true
10
  },
11
- "1": {
12
- "content": "[CLS]",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
- "2": {
20
- "content": "[SEP]",
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
- "250101": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
@@ -41,22 +41,15 @@
41
  "special": true
42
  }
43
  },
44
- "bos_token": "[CLS]",
45
  "clean_up_tokenization_spaces": true,
46
  "cls_token": "[CLS]",
47
  "do_lower_case": false,
48
- "eos_token": "[SEP]",
49
  "mask_token": "[MASK]",
50
- "max_length": 512,
51
  "model_max_length": 512,
52
  "pad_token": "[PAD]",
53
  "sep_token": "[SEP]",
54
- "sp_model_kwargs": {},
55
- "split_by_punct": false,
56
- "stride": 0,
57
- "tokenizer_class": "DebertaV2Tokenizer",
58
- "truncation_side": "right",
59
- "truncation_strategy": "longest_first",
60
- "unk_token": "[UNK]",
61
- "vocab_type": "spm"
62
  }
 
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,
 
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": "BertTokenizer",
54
+ "unk_token": "[UNK]"
 
 
 
 
55
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:18c5ceef72839a46609d9466fc3866ccfdde6c8fc80e4b8efa5ced51cbd630a6
3
- size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:464da6ad6afc0fcad8c68a2ca16a6073f0d6e6bdb18fa948527aa68b83f97e71
3
+ size 5048
vocab.txt ADDED
The diff for this file is too large to render. See raw diff