Karthik-Sriram
commited on
Commit
•
2b61421
1
Parent(s):
c1d687d
End of training
Browse files- README.md +89 -0
- config.json +41 -0
- model.safetensors +3 -0
- restore.ipynb +0 -0
- runs/May24_00-34-37_nitro-v-15/events.out.tfevents.1716491500.nitro-v-15.13040.0 +3 -0
- runs/May24_00-34-37_nitro-v-15/events.out.tfevents.1716491827.nitro-v-15.13040.1 +3 -0
- runs/May24_00-53-16_nitro-v-15/events.out.tfevents.1716492206.nitro-v-15.18248.0 +3 -0
- runs/May24_11-23-13_nitro-v-15/events.out.tfevents.1716530018.nitro-v-15.8976.0 +3 -0
- runs/May29_11-49-43_nitro-v-15/events.out.tfevents.1716963615.nitro-v-15.33168.0 +3 -0
- runs/May29_12-07-15_nitro-v-15/events.out.tfevents.1716964652.nitro-v-15.9684.0 +3 -0
- runs/May29_13-29-01_nitro-v-15/events.out.tfevents.1716969627.nitro-v-15.15692.0 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- emotion
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
- f1
|
11 |
+
model-index:
|
12 |
+
- name: distilbert-finetuned
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Text Classification
|
16 |
+
type: text-classification
|
17 |
+
dataset:
|
18 |
+
name: emotion
|
19 |
+
type: emotion
|
20 |
+
config: split
|
21 |
+
split: validation
|
22 |
+
args: split
|
23 |
+
metrics:
|
24 |
+
- name: Accuracy
|
25 |
+
type: accuracy
|
26 |
+
value: 0.9385
|
27 |
+
- name: F1
|
28 |
+
type: f1
|
29 |
+
value: 0.9383538787245842
|
30 |
+
---
|
31 |
+
|
32 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
33 |
+
should probably proofread and complete it, then remove this comment. -->
|
34 |
+
|
35 |
+
# distilbert-finetuned
|
36 |
+
|
37 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.
|
38 |
+
It achieves the following results on the evaluation set:
|
39 |
+
- Loss: 0.1775
|
40 |
+
- Accuracy: 0.9385
|
41 |
+
- F1: 0.9384
|
42 |
+
|
43 |
+
## Model description
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Intended uses & limitations
|
48 |
+
|
49 |
+
More information needed
|
50 |
+
|
51 |
+
## Training and evaluation data
|
52 |
+
|
53 |
+
More information needed
|
54 |
+
|
55 |
+
## Training procedure
|
56 |
+
|
57 |
+
### Training hyperparameters
|
58 |
+
|
59 |
+
The following hyperparameters were used during training:
|
60 |
+
- learning_rate: 2e-05
|
61 |
+
- train_batch_size: 64
|
62 |
+
- eval_batch_size: 64
|
63 |
+
- seed: 42
|
64 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
65 |
+
- lr_scheduler_type: linear
|
66 |
+
- num_epochs: 10
|
67 |
+
|
68 |
+
### Training results
|
69 |
+
|
70 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
71 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
72 |
+
| No log | 1.0 | 250 | 0.2451 | 0.9225 | 0.9227 |
|
73 |
+
| 0.4827 | 2.0 | 500 | 0.1655 | 0.934 | 0.9335 |
|
74 |
+
| 0.4827 | 3.0 | 750 | 0.1558 | 0.9365 | 0.9372 |
|
75 |
+
| 0.1191 | 4.0 | 1000 | 0.1482 | 0.9375 | 0.9374 |
|
76 |
+
| 0.1191 | 5.0 | 1250 | 0.1599 | 0.9365 | 0.9366 |
|
77 |
+
| 0.0775 | 6.0 | 1500 | 0.1539 | 0.9375 | 0.9378 |
|
78 |
+
| 0.0775 | 7.0 | 1750 | 0.1657 | 0.937 | 0.9366 |
|
79 |
+
| 0.0525 | 8.0 | 2000 | 0.1688 | 0.9385 | 0.9385 |
|
80 |
+
| 0.0525 | 9.0 | 2250 | 0.1811 | 0.9405 | 0.9406 |
|
81 |
+
| 0.0383 | 10.0 | 2500 | 0.1775 | 0.9385 | 0.9384 |
|
82 |
+
|
83 |
+
|
84 |
+
### Framework versions
|
85 |
+
|
86 |
+
- Transformers 4.41.1
|
87 |
+
- Pytorch 2.3.0+cu118
|
88 |
+
- Datasets 2.19.1
|
89 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "LABEL_0",
|
13 |
+
"1": "LABEL_1",
|
14 |
+
"2": "LABEL_2",
|
15 |
+
"3": "LABEL_3",
|
16 |
+
"4": "LABEL_4",
|
17 |
+
"5": "LABEL_5"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"label2id": {
|
21 |
+
"LABEL_0": 0,
|
22 |
+
"LABEL_1": 1,
|
23 |
+
"LABEL_2": 2,
|
24 |
+
"LABEL_3": 3,
|
25 |
+
"LABEL_4": 4,
|
26 |
+
"LABEL_5": 5
|
27 |
+
},
|
28 |
+
"max_position_embeddings": 512,
|
29 |
+
"model_type": "distilbert",
|
30 |
+
"n_heads": 12,
|
31 |
+
"n_layers": 6,
|
32 |
+
"pad_token_id": 0,
|
33 |
+
"problem_type": "single_label_classification",
|
34 |
+
"qa_dropout": 0.1,
|
35 |
+
"seq_classif_dropout": 0.2,
|
36 |
+
"sinusoidal_pos_embds": false,
|
37 |
+
"tie_weights_": true,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.41.1",
|
40 |
+
"vocab_size": 30522
|
41 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f6b5186a8479513bb594480f6ec5a9bf4069386307aeb085a174a38f4d404338
|
3 |
+
size 267844872
|
restore.ipynb
ADDED
File without changes
|
runs/May24_00-34-37_nitro-v-15/events.out.tfevents.1716491500.nitro-v-15.13040.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a05759c6983be150084687ec1112d01d194d3a003e4b2864920edaf8b1d814e8
|
3 |
+
size 13999
|
runs/May24_00-34-37_nitro-v-15/events.out.tfevents.1716491827.nitro-v-15.13040.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a3f652d64525b2b01685dff43974f77d5798d7428252618ccb7b6e18735f799
|
3 |
+
size 4725
|
runs/May24_00-53-16_nitro-v-15/events.out.tfevents.1716492206.nitro-v-15.18248.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc05e5fdecc1e45ad559d86ed69350663d48ed05f354434c75048d5ad98f5f15
|
3 |
+
size 4971
|
runs/May24_11-23-13_nitro-v-15/events.out.tfevents.1716530018.nitro-v-15.8976.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78ce1007a8599479bd59446400e80c55fa996dc5ab9d48f913f100362349f1a1
|
3 |
+
size 19934
|
runs/May29_11-49-43_nitro-v-15/events.out.tfevents.1716963615.nitro-v-15.33168.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46e47d8da8fb7a5ac7520c92247b8cb565b88242f6a337a319427556193bbadf
|
3 |
+
size 4971
|
runs/May29_12-07-15_nitro-v-15/events.out.tfevents.1716964652.nitro-v-15.9684.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0da71839a9fee4248efb6c032ef6ca55d3fc717d409472a5151ec6a656ce5846
|
3 |
+
size 10070
|
runs/May29_13-29-01_nitro-v-15/events.out.tfevents.1716969627.nitro-v-15.15692.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4f358b3a39d9039108d5fc77007d8b618fd8d6a0795bc99d65d2e2bcf54b37b8
|
3 |
+
size 10070
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
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,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
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 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "DistilBertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bd7275776ec3515d405eba1d53eb4c0726f5b07ff516978ae6270f69b9d5ff4f
|
3 |
+
size 5112
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|