sapadev13 commited on
Commit
3c1adbe
·
verified ·
1 Parent(s): 7110642

sapadev13/SAPA_model_case_v1

Browse files
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  library_name: transformers
3
- license: mit
4
- base_model: microsoft/deberta-v3-small
5
  tags:
6
  - generated_from_trainer
7
  metrics:
@@ -19,13 +19,13 @@ should probably proofread and complete it, then remove this comment. -->
19
 
20
  # results
21
 
22
- This model is a fine-tuned version of [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small) on an unknown dataset.
23
  It achieves the following results on the evaluation set:
24
- - Loss: 0.1979
25
- - Accuracy: 0.9294
26
- - Precision: 0.9535
27
- - Recall: 0.9030
28
- - F1: 0.9275
29
 
30
  ## Model description
31
 
@@ -45,21 +45,23 @@ More information needed
45
 
46
  The following hyperparameters were used during training:
47
  - learning_rate: 2e-05
48
- - train_batch_size: 16
49
- - eval_batch_size: 32
50
  - seed: 42
51
  - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
- - lr_scheduler_type: linear
53
- - num_epochs: 4
 
54
  - mixed_precision_training: Native AMP
55
 
56
  ### Training results
57
 
58
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
59
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
60
- | 0.2129 | 1.0 | 1563 | 0.1979 | 0.9294 | 0.9535 | 0.9030 | 0.9275 |
61
- | 0.1563 | 2.0 | 3126 | 0.2876 | 0.9181 | 0.9676 | 0.8651 | 0.9135 |
62
- | 0.0979 | 3.0 | 4689 | 0.2763 | 0.9361 | 0.9239 | 0.9506 | 0.9370 |
 
63
 
64
 
65
  ### Framework versions
 
1
  ---
2
  library_name: transformers
3
+ license: apache-2.0
4
+ base_model: distilbert-base-uncased
5
  tags:
6
  - generated_from_trainer
7
  metrics:
 
19
 
20
  # results
21
 
22
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
23
  It achieves the following results on the evaluation set:
24
+ - Loss: 0.1950
25
+ - Accuracy: 0.9279
26
+ - Precision: 0.9366
27
+ - Recall: 0.918
28
+ - F1: 0.9272
29
 
30
  ## Model description
31
 
 
45
 
46
  The following hyperparameters were used during training:
47
  - learning_rate: 2e-05
48
+ - train_batch_size: 32
49
+ - eval_batch_size: 64
50
  - seed: 42
51
  - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_steps: 500
54
+ - num_epochs: 6
55
  - mixed_precision_training: Native AMP
56
 
57
  ### Training results
58
 
59
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
60
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
61
+ | 0.3973 | 1.0 | 782 | 0.2365 | 0.9059 | 0.9528 | 0.8541 | 0.9007 |
62
+ | 0.1701 | 2.0 | 1564 | 0.1950 | 0.9279 | 0.9366 | 0.918 | 0.9272 |
63
+ | 0.1073 | 3.0 | 2346 | 0.2522 | 0.9319 | 0.9358 | 0.9274 | 0.9316 |
64
+ | 0.0574 | 4.0 | 3128 | 0.2988 | 0.9301 | 0.9278 | 0.9328 | 0.9303 |
65
 
66
 
67
  ### Framework versions
config.json CHANGED
@@ -1,35 +1,24 @@
1
  {
 
2
  "architectures": [
3
- "DebertaV2ForSequenceClassification"
4
  ],
5
- "attention_probs_dropout_prob": 0.1,
6
- "hidden_act": "gelu",
7
- "hidden_dropout_prob": 0.1,
8
- "hidden_size": 768,
9
  "initializer_range": 0.02,
10
- "intermediate_size": 3072,
11
- "layer_norm_eps": 1e-07,
12
- "legacy": true,
13
  "max_position_embeddings": 512,
14
- "max_relative_positions": -1,
15
- "model_type": "deberta-v2",
16
- "norm_rel_ebd": "layer_norm",
17
- "num_attention_heads": 12,
18
- "num_hidden_layers": 6,
19
  "pad_token_id": 0,
20
- "pooler_dropout": 0,
21
- "pooler_hidden_act": "gelu",
22
- "pooler_hidden_size": 768,
23
- "pos_att_type": [
24
- "p2c",
25
- "c2p"
26
- ],
27
- "position_biased_input": false,
28
- "position_buckets": 256,
29
- "relative_attention": true,
30
- "share_att_key": true,
31
  "torch_dtype": "float32",
32
  "transformers_version": "4.50.3",
33
- "type_vocab_size": 0,
34
- "vocab_size": 128100
35
  }
 
1
  {
2
+ "activation": "gelu",
3
  "architectures": [
4
+ "DistilBertForSequenceClassification"
5
  ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "hidden_dim": 3072,
10
  "initializer_range": 0.02,
 
 
 
11
  "max_position_embeddings": 512,
12
+ "model_type": "distilbert",
13
+ "n_heads": 12,
14
+ "n_layers": 6,
 
 
15
  "pad_token_id": 0,
16
+ "problem_type": "single_label_classification",
17
+ "qa_dropout": 0.1,
18
+ "seq_classif_dropout": 0.2,
19
+ "sinusoidal_pos_embds": false,
20
+ "tie_weights_": true,
 
 
 
 
 
 
21
  "torch_dtype": "float32",
22
  "transformers_version": "4.50.3",
23
+ "vocab_size": 30522
 
24
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fbf5d2f66af8ed169c8949c561541decdaef7ce22401338bf47cf99db49583b5
3
- size 567598552
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7e0136aea2542c637d994bd82c73bb7486cfb11a3033dcb06c2df4d77e205e5
3
+ size 267832560
special_tokens_map.json CHANGED
@@ -1,15 +1,7 @@
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
- }
15
  }
 
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
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
- "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,19 +41,16 @@
41
  "special": true
42
  }
43
  },
44
- "bos_token": "[CLS]",
45
  "clean_up_tokenization_spaces": false,
46
  "cls_token": "[CLS]",
47
- "do_lower_case": false,
48
- "eos_token": "[SEP]",
49
  "extra_special_tokens": {},
50
  "mask_token": "[MASK]",
51
- "model_max_length": 1000000000000000019884624838656,
52
  "pad_token": "[PAD]",
53
  "sep_token": "[SEP]",
54
- "sp_model_kwargs": {},
55
- "split_by_punct": false,
56
- "tokenizer_class": "DebertaV2Tokenizer",
57
- "unk_token": "[UNK]",
58
- "vocab_type": "spm"
59
  }
 
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": false,
45
  "cls_token": "[CLS]",
46
+ "do_lower_case": true,
 
47
  "extra_special_tokens": {},
48
  "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
  "pad_token": "[PAD]",
51
  "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "DistilBertTokenizer",
55
+ "unk_token": "[UNK]"
 
56
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:abb9121c87b9c5bcea1e91d25147d48767aead3948f755a5190c8ce8b122e554
3
  size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:107127070bb785b486d743be52ea6ccc7f9db641459874c8457dd4267793b2cf
3
  size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff