Mukesh97 commited on
Commit
947097e
·
verified ·
1 Parent(s): ecbee61

Mukesh97/severity-classification-v2

Browse files
Files changed (4) hide show
  1. README.md +68 -0
  2. config.json +40 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: distilbert-base-uncased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: severity_model_checkpoints
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
+ # severity_model_checkpoints
18
+
19
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.2546
22
+ - Accuracy: 0.9178
23
+ - F1 Macro: 0.9182
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: 16
44
+ - eval_batch_size: 32
45
+ - seed: 42
46
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_steps: 0.1
49
+ - num_epochs: 5
50
+ - mixed_precision_training: Native AMP
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
55
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
56
+ | 1.0472 | 1.0 | 95 | 0.7069 | 0.7586 | 0.7333 |
57
+ | 0.3394 | 2.0 | 190 | 0.3109 | 0.8939 | 0.8929 |
58
+ | 0.1783 | 3.0 | 285 | 0.2663 | 0.8992 | 0.8983 |
59
+ | 0.0668 | 4.0 | 380 | 0.2634 | 0.9098 | 0.9102 |
60
+ | 0.0748 | 5.0 | 475 | 0.2546 | 0.9178 | 0.9182 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 5.0.0
66
+ - Pytorch 2.10.0+cu128
67
+ - Datasets 4.0.0
68
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForSequenceClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "bos_token_id": null,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "dtype": "float32",
11
+ "eos_token_id": null,
12
+ "hidden_dim": 3072,
13
+ "id2label": {
14
+ "0": "LOW",
15
+ "1": "MEDIUM",
16
+ "2": "HIGH",
17
+ "3": "CRITICAL"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "label2id": {
21
+ "CRITICAL": 3,
22
+ "HIGH": 2,
23
+ "LOW": 0,
24
+ "MEDIUM": 1
25
+ },
26
+ "max_position_embeddings": 512,
27
+ "model_type": "distilbert",
28
+ "n_heads": 12,
29
+ "n_layers": 6,
30
+ "pad_token_id": 0,
31
+ "problem_type": "single_label_classification",
32
+ "qa_dropout": 0.1,
33
+ "seq_classif_dropout": 0.2,
34
+ "sinusoidal_pos_embds": false,
35
+ "tie_weights_": true,
36
+ "tie_word_embeddings": true,
37
+ "transformers_version": "5.0.0",
38
+ "use_cache": false,
39
+ "vocab_size": 30522
40
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa0dea43c02856f8cd0d562904a5975854a51a2e746731eb1fcaecde10dc465f
3
+ size 267838720
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0736313cd476a77fc392366ec3cbf6dd3c4851ede57f190dd1501f3efa67a51
3
+ size 5201