your_username/bert-emotion
Browse files- README.md +18 -21
- config.json +24 -5
- model.safetensors +2 -2
- training_args.bin +2 -2
README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
---
|
|
|
|
|
2 |
tags:
|
3 |
- generated_from_trainer
|
4 |
metrics:
|
@@ -13,10 +15,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
13 |
|
14 |
# results
|
15 |
|
16 |
-
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
17 |
It achieves the following results on the evaluation set:
|
18 |
-
- Loss: 0.
|
19 |
-
- Accuracy: 0.
|
20 |
|
21 |
## Model description
|
22 |
|
@@ -35,34 +37,29 @@ More information needed
|
|
35 |
### Training hyperparameters
|
36 |
|
37 |
The following hyperparameters were used during training:
|
38 |
-
- learning_rate:
|
39 |
- train_batch_size: 16
|
40 |
-
- eval_batch_size:
|
41 |
- seed: 42
|
42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
- lr_scheduler_type: linear
|
44 |
-
-
|
45 |
-
- num_epochs: 10
|
46 |
|
47 |
### Training results
|
48 |
|
49 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
50 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
51 |
-
|
|
52 |
-
|
|
53 |
-
|
|
54 |
-
|
|
55 |
-
|
|
56 |
-
|
|
57 |
-
| No log | 7.0 | 196 | 0.4044 | 0.8638 |
|
58 |
-
| No log | 8.0 | 224 | 0.3016 | 0.9129 |
|
59 |
-
| No log | 9.0 | 252 | 0.3303 | 0.8772 |
|
60 |
-
| No log | 10.0 | 280 | 0.2400 | 0.8996 |
|
61 |
|
62 |
|
63 |
### Framework versions
|
64 |
|
65 |
-
- Transformers 4.
|
66 |
-
- Pytorch 2.
|
67 |
-
- Datasets 2.
|
68 |
-
- Tokenizers 0.
|
|
|
1 |
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: bert-base-uncased
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
metrics:
|
|
|
15 |
|
16 |
# results
|
17 |
|
18 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
19 |
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.3016
|
21 |
+
- Accuracy: 0.903
|
22 |
|
23 |
## Model description
|
24 |
|
|
|
37 |
### Training hyperparameters
|
38 |
|
39 |
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 2e-05
|
41 |
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 16
|
43 |
- seed: 42
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 1
|
|
|
47 |
|
48 |
### Training results
|
49 |
|
50 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
51 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
52 |
+
| 1.4263 | 0.16 | 100 | 1.1397 | 0.592 |
|
53 |
+
| 0.9469 | 0.32 | 200 | 0.7879 | 0.746 |
|
54 |
+
| 0.6107 | 0.48 | 300 | 0.4802 | 0.846 |
|
55 |
+
| 0.4503 | 0.64 | 400 | 0.3855 | 0.874 |
|
56 |
+
| 0.3673 | 0.8 | 500 | 0.3477 | 0.894 |
|
57 |
+
| 0.3684 | 0.96 | 600 | 0.3263 | 0.89 |
|
|
|
|
|
|
|
|
|
58 |
|
59 |
|
60 |
### Framework versions
|
61 |
|
62 |
+
- Transformers 4.41.2
|
63 |
+
- Pytorch 2.3.0+cu121
|
64 |
+
- Datasets 2.20.0
|
65 |
+
- Tokenizers 0.19.1
|
config.json
CHANGED
@@ -1,23 +1,42 @@
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
-
"
|
4 |
],
|
5 |
"attention_probs_dropout_prob": 0.1,
|
6 |
"classifier_dropout": null,
|
|
|
7 |
"hidden_act": "gelu",
|
8 |
"hidden_dropout_prob": 0.1,
|
9 |
-
"hidden_size":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 3072,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"layer_norm_eps": 1e-12,
|
13 |
"max_position_embeddings": 512,
|
14 |
"model_type": "bert",
|
15 |
-
"num_attention_heads":
|
16 |
-
"num_hidden_layers":
|
17 |
"pad_token_id": 0,
|
18 |
"position_embedding_type": "absolute",
|
|
|
19 |
"torch_dtype": "float32",
|
20 |
-
"transformers_version": "4.
|
21 |
"type_vocab_size": 2,
|
22 |
"use_cache": true,
|
23 |
"vocab_size": 30522
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "bert-base-uncased",
|
3 |
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4",
|
18 |
+
"5": "LABEL_5"
|
19 |
+
},
|
20 |
"initializer_range": 0.02,
|
21 |
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"LABEL_0": 0,
|
24 |
+
"LABEL_1": 1,
|
25 |
+
"LABEL_2": 2,
|
26 |
+
"LABEL_3": 3,
|
27 |
+
"LABEL_4": 4,
|
28 |
+
"LABEL_5": 5
|
29 |
+
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
32 |
"model_type": "bert",
|
33 |
+
"num_attention_heads": 12,
|
34 |
+
"num_hidden_layers": 12,
|
35 |
"pad_token_id": 0,
|
36 |
"position_embedding_type": "absolute",
|
37 |
+
"problem_type": "single_label_classification",
|
38 |
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.41.2",
|
40 |
"type_vocab_size": 2,
|
41 |
"use_cache": true,
|
42 |
"vocab_size": 30522
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce3fc13e81b1d39b0fdf519926c9f873589bbf9b211c9bca89e625060b5bd5fa
|
3 |
+
size 437970952
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8935652563d38ea488b568defde6f119b23f4c7b231846f9a6ec29ba1eeca4f5
|
3 |
+
size 5048
|