hsinping0324
commited on
Commit
•
f1a97db
1
Parent(s):
85ab984
End of training
Browse files- README.md +76 -0
- config.json +35 -0
- model.safetensors +3 -0
- runs/Sep23_23-29-23_14c1d818e9ea/events.out.tfevents.1727134166.14c1d818e9ea.1003.0 +3 -0
- runs/Sep24_00-48-01_14c1d818e9ea/events.out.tfevents.1727138898.14c1d818e9ea.1003.1 +3 -0
- runs/Sep24_01-55-11_14c1d818e9ea/events.out.tfevents.1727142946.14c1d818e9ea.1003.2 +3 -0
- runs/Sep24_02-10-11_14c1d818e9ea/events.out.tfevents.1727143814.14c1d818e9ea.1003.3 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: distilbert-base-uncased-finetuned-sst-2-english
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
model-index:
|
13 |
+
- name: imdb
|
14 |
+
results: []
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
18 |
+
should probably proofread and complete it, then remove this comment. -->
|
19 |
+
|
20 |
+
# imdb
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english) on the None dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.2032
|
25 |
+
- Accuracy: 0.927
|
26 |
+
- Precision: 0.9241
|
27 |
+
- Recall: 0.9318
|
28 |
+
- F1: 0.9280
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 2e-06
|
48 |
+
- train_batch_size: 64
|
49 |
+
- eval_batch_size: 64
|
50 |
+
- seed: 42
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- num_epochs: 10
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
59 |
+
| 0.2612 | 1.0 | 625 | 0.2290 | 0.9122 | 0.9080 | 0.9191 | 0.9135 |
|
60 |
+
| 0.218 | 2.0 | 1250 | 0.2174 | 0.919 | 0.9114 | 0.9298 | 0.9205 |
|
61 |
+
| 0.2019 | 3.0 | 1875 | 0.2120 | 0.922 | 0.9197 | 0.9263 | 0.9230 |
|
62 |
+
| 0.1806 | 4.0 | 2500 | 0.2070 | 0.9214 | 0.9122 | 0.9342 | 0.9230 |
|
63 |
+
| 0.1711 | 5.0 | 3125 | 0.2052 | 0.9244 | 0.9191 | 0.9322 | 0.9256 |
|
64 |
+
| 0.1605 | 6.0 | 3750 | 0.2032 | 0.9236 | 0.9164 | 0.9338 | 0.9250 |
|
65 |
+
| 0.1639 | 7.0 | 4375 | 0.2062 | 0.9244 | 0.9152 | 0.9370 | 0.9260 |
|
66 |
+
| 0.1544 | 8.0 | 5000 | 0.2026 | 0.9268 | 0.9265 | 0.9287 | 0.9276 |
|
67 |
+
| 0.148 | 9.0 | 5625 | 0.2035 | 0.9274 | 0.9212 | 0.9362 | 0.9286 |
|
68 |
+
| 0.144 | 10.0 | 6250 | 0.2032 | 0.927 | 0.9241 | 0.9318 | 0.9280 |
|
69 |
+
|
70 |
+
|
71 |
+
### Framework versions
|
72 |
+
|
73 |
+
- Transformers 4.44.2
|
74 |
+
- Pytorch 2.4.1+cu121
|
75 |
+
- Datasets 3.0.0
|
76 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased-finetuned-sst-2-english",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"finetuning_task": "sst-2",
|
11 |
+
"hidden_dim": 3072,
|
12 |
+
"id2label": {
|
13 |
+
"0": "NEGATIVE",
|
14 |
+
"1": "POSITIVE"
|
15 |
+
},
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"label2id": {
|
18 |
+
"NEGATIVE": 0,
|
19 |
+
"POSITIVE": 1
|
20 |
+
},
|
21 |
+
"max_position_embeddings": 512,
|
22 |
+
"model_type": "distilbert",
|
23 |
+
"n_heads": 12,
|
24 |
+
"n_layers": 6,
|
25 |
+
"output_past": true,
|
26 |
+
"pad_token_id": 0,
|
27 |
+
"problem_type": "single_label_classification",
|
28 |
+
"qa_dropout": 0.1,
|
29 |
+
"seq_classif_dropout": 0.2,
|
30 |
+
"sinusoidal_pos_embds": false,
|
31 |
+
"tie_weights_": true,
|
32 |
+
"torch_dtype": "float32",
|
33 |
+
"transformers_version": "4.44.2",
|
34 |
+
"vocab_size": 30522
|
35 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9e6334856d977a8e0ca9c3a9aabfd901d765443079f031903bc299f43737793
|
3 |
+
size 267832560
|
runs/Sep23_23-29-23_14c1d818e9ea/events.out.tfevents.1727134166.14c1d818e9ea.1003.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7e522df3447c711097e113808b0e5845b94ef6c8a8e3010eada1f4828f27b11
|
3 |
+
size 12570
|
runs/Sep24_00-48-01_14c1d818e9ea/events.out.tfevents.1727138898.14c1d818e9ea.1003.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb2503d47e8c83808992e8aa28af7cbc414690d489d9c80a49003c7f8741d79a
|
3 |
+
size 8667
|
runs/Sep24_01-55-11_14c1d818e9ea/events.out.tfevents.1727142946.14c1d818e9ea.1003.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47b25a8a782c027b2aaf717e5dc83f219e64a48cbe62a412e77f00c8648d40d4
|
3 |
+
size 5724
|
runs/Sep24_02-10-11_14c1d818e9ea/events.out.tfevents.1727143814.14c1d818e9ea.1003.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2db67dcb8e60bdde5340aaa8d66537d0a0d3ded5f9fcb4bcf34d065df1656db6
|
3 |
+
size 12570
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a81109f04de0457b7033608b8e8ae0fd6d21486ee2319b08afd0474bf3d8ffe
|
3 |
+
size 5176
|