End of training
Browse files- README.md +81 -0
- config.json +45 -0
- model.safetensors +3 -0
- runs/Jan19_19-23-05_5693c156d1dc/events.out.tfevents.1705692186.5693c156d1dc.464.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,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- dstefa/New_York_Times_Topics
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: DistilBERT base classify news topics - Devinit
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Text Classification
|
15 |
+
type: text-classification
|
16 |
+
dataset:
|
17 |
+
name: New York Times Topics
|
18 |
+
type: dstefa/New_York_Times_Topics
|
19 |
+
metrics:
|
20 |
+
- name: Accuracy
|
21 |
+
type: accuracy
|
22 |
+
value: 0.913482481060606
|
23 |
+
---
|
24 |
+
|
25 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
26 |
+
should probably proofread and complete it, then remove this comment. -->
|
27 |
+
|
28 |
+
# DistilBERT base classify news topics - Devinit
|
29 |
+
|
30 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the New York Times Topics dataset.
|
31 |
+
It achieves the following results on the evaluation set:
|
32 |
+
- Loss: 0.2871
|
33 |
+
- Accuracy: 0.9135
|
34 |
+
|
35 |
+
## Model description
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Intended uses & limitations
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Training and evaluation data
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training procedure
|
48 |
+
|
49 |
+
### Training hyperparameters
|
50 |
+
|
51 |
+
The following hyperparameters were used during training:
|
52 |
+
- learning_rate: 1e-05
|
53 |
+
- train_batch_size: 128
|
54 |
+
- eval_batch_size: 128
|
55 |
+
- seed: 42
|
56 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
57 |
+
- lr_scheduler_type: linear
|
58 |
+
- num_epochs: 10
|
59 |
+
|
60 |
+
### Training results
|
61 |
+
|
62 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
63 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
64 |
+
| 0.386 | 1.0 | 1340 | 0.3275 | 0.8921 |
|
65 |
+
| 0.2833 | 2.0 | 2680 | 0.2840 | 0.9033 |
|
66 |
+
| 0.2411 | 3.0 | 4020 | 0.2694 | 0.9102 |
|
67 |
+
| 0.2069 | 4.0 | 5360 | 0.2665 | 0.9114 |
|
68 |
+
| 0.1796 | 5.0 | 6700 | 0.2657 | 0.9128 |
|
69 |
+
| 0.1636 | 6.0 | 8040 | 0.2674 | 0.9142 |
|
70 |
+
| 0.144 | 7.0 | 9380 | 0.2761 | 0.9129 |
|
71 |
+
| 0.1277 | 8.0 | 10720 | 0.2820 | 0.9125 |
|
72 |
+
| 0.1201 | 9.0 | 12060 | 0.2853 | 0.9136 |
|
73 |
+
| 0.1104 | 10.0 | 13400 | 0.2871 | 0.9135 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.36.2
|
79 |
+
- Pytorch 2.1.0+cu121
|
80 |
+
- Datasets 2.16.1
|
81 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Sports",
|
13 |
+
"1": "Arts, Culture, and Entertainment",
|
14 |
+
"2": "Business and Finance",
|
15 |
+
"3": "Health and Wellness",
|
16 |
+
"4": "Lifestyle and Fashion",
|
17 |
+
"5": "Science and Technology",
|
18 |
+
"6": "Politics",
|
19 |
+
"7": "Crime"
|
20 |
+
},
|
21 |
+
"initializer_range": 0.02,
|
22 |
+
"label2id": {
|
23 |
+
"Arts, Culture, and Entertainment": 1,
|
24 |
+
"Business and Finance": 2,
|
25 |
+
"Crime": 7,
|
26 |
+
"Health and Wellness": 3,
|
27 |
+
"Lifestyle and Fashion": 4,
|
28 |
+
"Politics": 6,
|
29 |
+
"Science and Technology": 5,
|
30 |
+
"Sports": 0
|
31 |
+
},
|
32 |
+
"max_position_embeddings": 512,
|
33 |
+
"model_type": "distilbert",
|
34 |
+
"n_heads": 12,
|
35 |
+
"n_layers": 6,
|
36 |
+
"pad_token_id": 0,
|
37 |
+
"problem_type": "single_label_classification",
|
38 |
+
"qa_dropout": 0.1,
|
39 |
+
"seq_classif_dropout": 0.2,
|
40 |
+
"sinusoidal_pos_embds": false,
|
41 |
+
"tie_weights_": true,
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.36.2",
|
44 |
+
"vocab_size": 30522
|
45 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:336386a650ba9cf1bbba1bb1d5859aed262fb0b21633c3692f8002e8e38c81ea
|
3 |
+
size 267851024
|
runs/Jan19_19-23-05_5693c156d1dc/events.out.tfevents.1705692186.5693c156d1dc.464.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e627225da9a17d49f0fcbd597aad95d793844432c94438f744578f31cef4130
|
3 |
+
size 12396
|
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:01ce5ffe43dabdac9f5d874770a3208c4115b8b838008c4720a42121f608dc29
|
3 |
+
size 4728
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|