Saving model gmra_distilbert/distilbert-base-uncased-finetuned-sst-2-english_08112024T110433
Browse files- README.md +85 -0
- config.json +43 -0
- model.safetensors +3 -0
- runs/Nov08_05-34-33_df5724cfcafd/events.out.tfevents.1731044080.df5724cfcafd.191.0 +3 -0
- runs/Nov08_05-34-33_df5724cfcafd/events.out.tfevents.1731045669.df5724cfcafd.191.1 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: distilbert/distilbert-base-uncased-finetuned-sst-2-english
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- f1
|
9 |
+
model-index:
|
10 |
+
- name: distilbert-base-uncased-finetuned-sst-2-english_08112024T110433
|
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 |
+
# distilbert-base-uncased-finetuned-sst-2-english_08112024T110433
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [distilbert/distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.4561
|
22 |
+
- F1: 0.8591
|
23 |
+
- Learning Rate: 0.0
|
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: 1e-05
|
43 |
+
- train_batch_size: 8
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- gradient_accumulation_steps: 4
|
47 |
+
- total_train_batch_size: 32
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: cosine
|
50 |
+
- lr_scheduler_warmup_steps: 600
|
51 |
+
- num_epochs: 20
|
52 |
+
- mixed_precision_training: Native AMP
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | Rate |
|
57 |
+
|:-------------:|:-------:|:----:|:---------------:|:------:|:------:|
|
58 |
+
| No log | 0.9942 | 86 | 1.8025 | 0.1776 | 0.0000 |
|
59 |
+
| No log | 2.0 | 173 | 1.7296 | 0.1902 | 0.0000 |
|
60 |
+
| No log | 2.9942 | 259 | 1.6400 | 0.3649 | 0.0000 |
|
61 |
+
| No log | 4.0 | 346 | 1.4873 | 0.4157 | 0.0000 |
|
62 |
+
| No log | 4.9942 | 432 | 1.2812 | 0.5119 | 0.0000 |
|
63 |
+
| 1.5846 | 6.0 | 519 | 1.0792 | 0.5668 | 0.0000 |
|
64 |
+
| 1.5846 | 6.9942 | 605 | 0.9450 | 0.6226 | 1e-05 |
|
65 |
+
| 1.5846 | 8.0 | 692 | 0.8238 | 0.6836 | 0.0000 |
|
66 |
+
| 1.5846 | 8.9942 | 778 | 0.7274 | 0.7374 | 0.0000 |
|
67 |
+
| 1.5846 | 10.0 | 865 | 0.6411 | 0.7734 | 0.0000 |
|
68 |
+
| 1.5846 | 10.9942 | 951 | 0.6020 | 0.7822 | 0.0000 |
|
69 |
+
| 0.7489 | 12.0 | 1038 | 0.5470 | 0.8157 | 0.0000 |
|
70 |
+
| 0.7489 | 12.9942 | 1124 | 0.5161 | 0.8299 | 0.0000 |
|
71 |
+
| 0.7489 | 14.0 | 1211 | 0.4952 | 0.8454 | 0.0000 |
|
72 |
+
| 0.7489 | 14.9942 | 1297 | 0.4768 | 0.8518 | 0.0000 |
|
73 |
+
| 0.7489 | 16.0 | 1384 | 0.4664 | 0.8546 | 0.0000 |
|
74 |
+
| 0.7489 | 16.9942 | 1470 | 0.4665 | 0.8565 | 0.0000 |
|
75 |
+
| 0.3329 | 18.0 | 1557 | 0.4561 | 0.8591 | 5e-07 |
|
76 |
+
| 0.3329 | 18.9942 | 1643 | 0.4578 | 0.8585 | 1e-07 |
|
77 |
+
| 0.3329 | 19.8844 | 1720 | 0.4579 | 0.8584 | 0.0 |
|
78 |
+
|
79 |
+
|
80 |
+
### Framework versions
|
81 |
+
|
82 |
+
- Transformers 4.44.2
|
83 |
+
- Pytorch 2.5.1+cu124
|
84 |
+
- Datasets 3.1.0
|
85 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert/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": "acknowledgement",
|
14 |
+
"1": "change_request",
|
15 |
+
"2": "critical",
|
16 |
+
"3": "discussion_participation",
|
17 |
+
"4": "discussion_trigger",
|
18 |
+
"5": "reference"
|
19 |
+
},
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"label2id": {
|
22 |
+
"acknowledgement": 0,
|
23 |
+
"change_request": 1,
|
24 |
+
"critical": 2,
|
25 |
+
"discussion_participation": 3,
|
26 |
+
"discussion_trigger": 4,
|
27 |
+
"reference": 5
|
28 |
+
},
|
29 |
+
"max_position_embeddings": 512,
|
30 |
+
"model_type": "distilbert",
|
31 |
+
"n_heads": 12,
|
32 |
+
"n_layers": 6,
|
33 |
+
"output_past": true,
|
34 |
+
"pad_token_id": 0,
|
35 |
+
"problem_type": "single_label_classification",
|
36 |
+
"qa_dropout": 0.1,
|
37 |
+
"seq_classif_dropout": 0.2,
|
38 |
+
"sinusoidal_pos_embds": false,
|
39 |
+
"tie_weights_": true,
|
40 |
+
"torch_dtype": "float32",
|
41 |
+
"transformers_version": "4.44.2",
|
42 |
+
"vocab_size": 30522
|
43 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a93da260d1e57d91a56faedd95d59b863ca045aff6be3cabf3981b111efa2755
|
3 |
+
size 267844872
|
runs/Nov08_05-34-33_df5724cfcafd/events.out.tfevents.1731044080.df5724cfcafd.191.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a040c481a39fd5c31ae0f44bb58346b1fecfe742bc6deaa2d63557895d0d117
|
3 |
+
size 13982
|
runs/Nov08_05-34-33_df5724cfcafd/events.out.tfevents.1731045669.df5724cfcafd.191.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c093d45261b5da0df0b1f338f7d48d8d88b7ce03ce5c37debfc0adecf9aa312
|
3 |
+
size 463
|
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,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "DistilBertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:92212ad59d6f673b54162f640cd5b3ea4fd32242956e65856a5b7185a56b13e7
|
3 |
+
size 5304
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|