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

sapadev13/SAPA_model_case_v1

Browse files
Files changed (6) hide show
  1. README.md +12 -12
  2. config.json +26 -15
  3. model.safetensors +2 -2
  4. special_tokens_map.json +9 -1
  5. tokenizer.json +0 -0
  6. tokenizer_config.json +17 -14
README.md CHANGED
@@ -1,7 +1,7 @@
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,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 [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
 
@@ -58,10 +58,10 @@ The following hyperparameters were used during training:
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
 
1
  ---
2
  library_name: transformers
3
+ license: mit
4
+ base_model: microsoft/deberta-v3-small
5
  tags:
6
  - generated_from_trainer
7
  metrics:
 
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.1435
25
+ - Accuracy: 0.9485
26
+ - Precision: 0.9559
27
+ - Recall: 0.9405
28
+ - F1: 0.9481
29
 
30
  ## Model description
31
 
 
58
 
59
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
60
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
61
+ | 0.344 | 1.0 | 782 | 0.1528 | 0.9438 | 0.9444 | 0.9430 | 0.9437 |
62
+ | 0.1362 | 2.0 | 1564 | 0.1435 | 0.9485 | 0.9559 | 0.9405 | 0.9481 |
63
+ | 0.1 | 3.0 | 2346 | 0.1799 | 0.9503 | 0.9533 | 0.9470 | 0.9501 |
64
+ | 0.0574 | 4.0 | 3128 | 0.2148 | 0.9516 | 0.9511 | 0.9521 | 0.9516 |
65
 
66
 
67
  ### Framework versions
config.json CHANGED
@@ -1,24 +1,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
  }
 
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
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e7e0136aea2542c637d994bd82c73bb7486cfb11a3033dcb06c2df4d77e205e5
3
- size 267832560
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:956446865b7811afc97cace808a8c2a819f45ea2d6c9fca3644bce7602d40baa
3
+ size 567598552
special_tokens_map.json CHANGED
@@ -1,7 +1,15 @@
1
  {
 
2
  "cls_token": "[CLS]",
 
3
  "mask_token": "[MASK]",
4
  "pad_token": "[PAD]",
5
  "sep_token": "[SEP]",
6
- "unk_token": "[UNK]"
 
 
 
 
 
 
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
  }
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,16 +41,19 @@
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
  }
 
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": 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
  }