jagadeesr commited on
Commit
6ebfec4
·
1 Parent(s): 388fea2

jagadeesr/ms-deberta-v3-small-rvl-cdip

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- license: apache-2.0
3
- base_model: distilbert-base-uncased
4
  tags:
5
  - generated_from_trainer
6
  metrics:
@@ -15,10 +15,10 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # text_classifier
17
 
18
- This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 1.5131
21
- - Accuracy: 0.6982
22
 
23
  ## Model description
24
 
@@ -38,8 +38,8 @@ More information needed
38
 
39
  The following hyperparameters were used during training:
40
  - learning_rate: 5e-05
41
- - train_batch_size: 16
42
- - eval_batch_size: 16
43
  - seed: 42
44
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
  - lr_scheduler_type: linear
@@ -47,28 +47,28 @@ The following hyperparameters were used during training:
47
 
48
  ### Training results
49
 
50
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
- |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
- | No log | 1.0 | 96 | 1.2437 | 0.6404 |
53
- | No log | 2.0 | 192 | 1.0802 | 0.6798 |
54
- | No log | 3.0 | 288 | 1.0126 | 0.6772 |
55
- | No log | 4.0 | 384 | 1.0858 | 0.6745 |
56
- | No log | 5.0 | 480 | 1.2306 | 0.6850 |
57
- | 0.7338 | 6.0 | 576 | 1.3097 | 0.6824 |
58
- | 0.7338 | 7.0 | 672 | 1.3371 | 0.6850 |
59
- | 0.7338 | 8.0 | 768 | 1.4222 | 0.7034 |
60
- | 0.7338 | 9.0 | 864 | 1.3962 | 0.7060 |
61
- | 0.7338 | 10.0 | 960 | 1.4529 | 0.6955 |
62
- | 0.0955 | 11.0 | 1056 | 1.4697 | 0.6955 |
63
- | 0.0955 | 12.0 | 1152 | 1.4944 | 0.7008 |
64
- | 0.0955 | 13.0 | 1248 | 1.5037 | 0.6982 |
65
- | 0.0955 | 14.0 | 1344 | 1.5129 | 0.7008 |
66
- | 0.0955 | 15.0 | 1440 | 1.5131 | 0.6982 |
67
 
68
 
69
  ### Framework versions
70
 
71
- - Transformers 4.35.2
72
  - Pytorch 2.1.0+cu118
73
  - Datasets 2.15.0
74
  - Tokenizers 0.15.0
 
1
  ---
2
+ license: mit
3
+ base_model: microsoft/deberta-v3-small
4
  tags:
5
  - generated_from_trainer
6
  metrics:
 
15
 
16
  # text_classifier
17
 
18
+ This model is a fine-tuned version of [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small) on the None dataset.
19
  It achieves the following results on the evaluation set:
20
+ - Loss: 3.2472
21
+ - Accuracy: 0.6158
22
 
23
  ## Model description
24
 
 
38
 
39
  The following hyperparameters were used during training:
40
  - learning_rate: 5e-05
41
+ - train_batch_size: 2
42
+ - eval_batch_size: 2
43
  - seed: 42
44
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
  - lr_scheduler_type: linear
 
47
 
48
  ### Training results
49
 
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
52
+ | 2.4863 | 1.0 | 760 | 2.0973 | 0.2474 |
53
+ | 1.8132 | 2.0 | 1520 | 1.7995 | 0.4237 |
54
+ | 1.5143 | 3.0 | 2280 | 1.5842 | 0.5053 |
55
+ | 1.3095 | 4.0 | 3040 | 1.8946 | 0.5553 |
56
+ | 1.0743 | 5.0 | 3800 | 1.9189 | 0.5684 |
57
+ | 0.9554 | 6.0 | 4560 | 2.1748 | 0.5974 |
58
+ | 0.7778 | 7.0 | 5320 | 2.2701 | 0.6263 |
59
+ | 0.5849 | 8.0 | 6080 | 2.5282 | 0.6237 |
60
+ | 0.5472 | 9.0 | 6840 | 2.7330 | 0.6184 |
61
+ | 0.4232 | 10.0 | 7600 | 2.9518 | 0.6079 |
62
+ | 0.2858 | 11.0 | 8360 | 2.8892 | 0.6263 |
63
+ | 0.2908 | 12.0 | 9120 | 3.0251 | 0.6289 |
64
+ | 0.2391 | 13.0 | 9880 | 3.1414 | 0.6211 |
65
+ | 0.1569 | 14.0 | 10640 | 3.2581 | 0.6184 |
66
+ | 0.1405 | 15.0 | 11400 | 3.2472 | 0.6158 |
67
 
68
 
69
  ### Framework versions
70
 
71
+ - Transformers 4.36.0
72
  - Pytorch 2.1.0+cu118
73
  - Datasets 2.15.0
74
  - Tokenizers 0.15.0
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
config.json CHANGED
@@ -1,13 +1,12 @@
1
  {
2
- "_name_or_path": "distilbert-base-uncased",
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": "presentation",
13
  "1": "budget",
@@ -27,6 +26,7 @@
27
  "15": "advertisement"
28
  },
29
  "initializer_range": 0.02,
 
30
  "label2id": {
31
  "advertisement": 15,
32
  "budget": 1,
@@ -45,17 +45,27 @@
45
  "scientific report": 13,
46
  "specification": 9
47
  },
 
48
  "max_position_embeddings": 512,
49
- "model_type": "distilbert",
50
- "n_heads": 12,
51
- "n_layers": 6,
 
 
52
  "pad_token_id": 0,
53
- "problem_type": "single_label_classification",
54
- "qa_dropout": 0.1,
55
- "seq_classif_dropout": 0.2,
56
- "sinusoidal_pos_embds": false,
57
- "tie_weights_": true,
 
 
 
 
 
 
58
  "torch_dtype": "float32",
59
- "transformers_version": "4.35.2",
60
- "vocab_size": 30522
 
61
  }
 
1
  {
2
+ "_name_or_path": "microsoft/deberta-v3-small",
 
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,
10
  "id2label": {
11
  "0": "presentation",
12
  "1": "budget",
 
26
  "15": "advertisement"
27
  },
28
  "initializer_range": 0.02,
29
+ "intermediate_size": 3072,
30
  "label2id": {
31
  "advertisement": 15,
32
  "budget": 1,
 
45
  "scientific report": 13,
46
  "specification": 9
47
  },
48
+ "layer_norm_eps": 1e-07,
49
  "max_position_embeddings": 512,
50
+ "max_relative_positions": -1,
51
+ "model_type": "deberta-v2",
52
+ "norm_rel_ebd": "layer_norm",
53
+ "num_attention_heads": 12,
54
+ "num_hidden_layers": 6,
55
  "pad_token_id": 0,
56
+ "pooler_dropout": 0,
57
+ "pooler_hidden_act": "gelu",
58
+ "pooler_hidden_size": 768,
59
+ "pos_att_type": [
60
+ "p2c",
61
+ "c2p"
62
+ ],
63
+ "position_biased_input": false,
64
+ "position_buckets": 256,
65
+ "relative_attention": true,
66
+ "share_att_key": true,
67
  "torch_dtype": "float32",
68
+ "transformers_version": "4.36.0",
69
+ "type_vocab_size": 0,
70
+ "vocab_size": 128100
71
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9798b95964b34ce705758aa9d808d1a9d6ad878513545ed667eccb2a148ee770
3
- size 267875632
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c856baa9ad988689a21395fa6b423bc53f1f7b51073906ba90a08de2e7515c4
3
+ size 567641624
runs/Dec13_22-46-36_48edafdfd1b1/events.out.tfevents.1702507617.48edafdfd1b1.4828.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de101ccb57fc12d2bb6cba6a2b6dde8146b077223628014a6575256d857e75f2
3
+ size 4184
runs/Dec13_22-50-04_48edafdfd1b1/events.out.tfevents.1702507810.48edafdfd1b1.7253.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:335d0483dc2eb7569b19cee56f982391bc7eeec302f65b347b3881f532bb6501
3
+ size 4184
runs/Dec13_22-52-06_48edafdfd1b1/events.out.tfevents.1702507938.48edafdfd1b1.8113.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d91705b3b26947a54b585cdcad5610cc6543d8b01d569cbe0d483d33fa94449
3
+ size 5252
runs/Dec13_22-53-57_48edafdfd1b1/events.out.tfevents.1702508046.48edafdfd1b1.8726.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bc22c635c18f383c966803a76828385b847fe668d7834f25f21619b10dc60e4
3
+ size 13905
special_tokens_map.json CHANGED
@@ -1,36 +1,14 @@
1
  {
2
- "cls_token": {
3
- "content": "[CLS]",
4
- "lstrip": false,
5
- "normalized": false,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "mask_token": {
10
- "content": "[MASK]",
11
- "lstrip": false,
12
- "normalized": false,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": {
17
- "content": "[PAD]",
18
- "lstrip": false,
19
- "normalized": false,
20
- "rstrip": false,
21
- "single_word": false
22
- },
23
- "sep_token": {
24
- "content": "[SEP]",
25
- "lstrip": false,
26
- "normalized": false,
27
- "rstrip": false,
28
- "single_word": false
29
- },
30
  "unk_token": {
31
  "content": "[UNK]",
32
  "lstrip": false,
33
- "normalized": false,
34
  "rstrip": false,
35
  "single_word": false
36
  }
 
1
  {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  "unk_token": {
9
  "content": "[UNK]",
10
  "lstrip": false,
11
+ "normalized": true,
12
  "rstrip": false,
13
  "single_word": false
14
  }
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -8,31 +8,31 @@
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,19 +41,18 @@
41
  "special": true
42
  }
43
  },
 
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
46
- "do_lower_case": true,
 
47
  "mask_token": "[MASK]",
48
- "max_length": 512,
49
- "model_max_length": 512,
50
  "pad_token": "[PAD]",
51
  "sep_token": "[SEP]",
52
- "stride": 0,
53
- "strip_accents": null,
54
- "tokenize_chinese_chars": true,
55
- "tokenizer_class": "DistilBertTokenizer",
56
- "truncation_side": "right",
57
- "truncation_strategy": "longest_first",
58
- "unk_token": "[UNK]"
59
  }
 
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": true,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
+ "128000": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
 
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
+ "model_max_length": 1000000000000000019884624838656,
 
51
  "pad_token": "[PAD]",
52
  "sep_token": "[SEP]",
53
+ "sp_model_kwargs": {},
54
+ "split_by_punct": false,
55
+ "tokenizer_class": "DebertaV2Tokenizer",
56
+ "unk_token": "[UNK]",
57
+ "vocab_type": "spm"
 
 
58
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:21a81ba304876357ec35fcf77fa9e192b2d6493d49088556e2633fd3c2548f0f
3
- size 4600
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93d5ba6c460dbbe882331b09954dde125a68be2139f12502e0469c70d79957f8
3
+ size 4728