senthil2002
commited on
Commit
•
7d3d62f
1
Parent(s):
79522ed
End of training
Browse files- README.md +82 -0
- config.json +49 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
model-index:
|
12 |
+
- name: distil_bert_own_txt_clf_model
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# distil_bert_own_txt_clf_model
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.0454
|
24 |
+
- Accuracy: 0.8167
|
25 |
+
- F1: 0.8125
|
26 |
+
- Precision: 0.8152
|
27 |
+
- Recall: 0.8127
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 5e-05
|
47 |
+
- train_batch_size: 16
|
48 |
+
- eval_batch_size: 32
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_steps: 100
|
53 |
+
- num_epochs: 50
|
54 |
+
- mixed_precision_training: Native AMP
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
60 |
+
| 1.3554 | 3.33 | 50 | 1.1341 | 0.5333 | 0.3913 | 0.5676 | 0.4930 |
|
61 |
+
| 1.0538 | 6.67 | 100 | 1.1938 | 0.5833 | 0.5168 | 0.5381 | 0.5736 |
|
62 |
+
| 0.3226 | 10.0 | 150 | 1.1243 | 0.6833 | 0.6412 | 0.7731 | 0.6614 |
|
63 |
+
| 0.0674 | 13.33 | 200 | 0.8542 | 0.8417 | 0.8317 | 0.8442 | 0.8405 |
|
64 |
+
| 0.0022 | 16.67 | 250 | 0.7832 | 0.8333 | 0.8252 | 0.8323 | 0.8277 |
|
65 |
+
| 0.001 | 20.0 | 300 | 0.8204 | 0.8333 | 0.8265 | 0.8312 | 0.8307 |
|
66 |
+
| 0.0005 | 23.33 | 350 | 0.8259 | 0.8583 | 0.8537 | 0.8534 | 0.8589 |
|
67 |
+
| 0.0005 | 26.67 | 400 | 0.8121 | 0.825 | 0.8165 | 0.8230 | 0.8134 |
|
68 |
+
| 0.0004 | 30.0 | 450 | 0.8673 | 0.8583 | 0.8537 | 0.8534 | 0.8589 |
|
69 |
+
| 0.0003 | 33.33 | 500 | 0.8052 | 0.8583 | 0.8543 | 0.8561 | 0.8538 |
|
70 |
+
| 0.0003 | 36.67 | 550 | 0.8324 | 0.8417 | 0.8363 | 0.8392 | 0.8372 |
|
71 |
+
| 0.0003 | 40.0 | 600 | 0.8536 | 0.85 | 0.8445 | 0.8450 | 0.8480 |
|
72 |
+
| 0.0003 | 43.33 | 650 | 0.8632 | 0.85 | 0.8445 | 0.8450 | 0.8480 |
|
73 |
+
| 0.0003 | 46.67 | 700 | 0.8690 | 0.85 | 0.8445 | 0.8450 | 0.8480 |
|
74 |
+
| 0.0003 | 50.0 | 750 | 0.8715 | 0.85 | 0.8445 | 0.8450 | 0.8480 |
|
75 |
+
|
76 |
+
|
77 |
+
### Framework versions
|
78 |
+
|
79 |
+
- Transformers 4.38.1
|
80 |
+
- Pytorch 2.1.0+cu121
|
81 |
+
- Datasets 2.17.1
|
82 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"attention_probs_dropout_prob": 0.1,
|
9 |
+
"classifier_dropout": null,
|
10 |
+
"dim": 768,
|
11 |
+
"dropout": 0.1,
|
12 |
+
"hidden_act": "gelu",
|
13 |
+
"hidden_dim": 3072,
|
14 |
+
"hidden_dropout_prob": 0.1,
|
15 |
+
"hidden_size": 768,
|
16 |
+
"id2label": {
|
17 |
+
"0": "View_class",
|
18 |
+
"1": "Del_class",
|
19 |
+
"2": "Edit_class",
|
20 |
+
"3": "Add_class"
|
21 |
+
},
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"Add_class": 3,
|
26 |
+
"Del_class": 1,
|
27 |
+
"Edit_class": 2,
|
28 |
+
"View_class": 0
|
29 |
+
},
|
30 |
+
"layer_norm_eps": 1e-12,
|
31 |
+
"max_position_embeddings": 512,
|
32 |
+
"model_type": "bert",
|
33 |
+
"n_heads": 12,
|
34 |
+
"n_layers": 6,
|
35 |
+
"num_attention_heads": 12,
|
36 |
+
"num_hidden_layers": 12,
|
37 |
+
"pad_token_id": 0,
|
38 |
+
"position_embedding_type": "absolute",
|
39 |
+
"problem_type": "single_label_classification",
|
40 |
+
"qa_dropout": 0.1,
|
41 |
+
"seq_classif_dropout": 0.2,
|
42 |
+
"sinusoidal_pos_embds": false,
|
43 |
+
"tie_weights_": true,
|
44 |
+
"torch_dtype": "float32",
|
45 |
+
"transformers_version": "4.38.1",
|
46 |
+
"type_vocab_size": 2,
|
47 |
+
"use_cache": true,
|
48 |
+
"vocab_size": 30522
|
49 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac6bdef80514140bfb019a5b463d5b0415a87873392890cc23406aebbb9fe2cb
|
3 |
+
size 437964800
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5025dc56ffdbea45a06154c1570858603fc827b6a4001d28c4c7b9972e7790d5
|
3 |
+
size 4856
|