End of training
Browse files- README.md +74 -0
- config.json +61 -0
- model.safetensors +3 -0
- runs/Nov28_23-58-01_b7a8f5278fbe/events.out.tfevents.1701215887.b7a8f5278fbe.405.0 +3 -0
- runs/Nov29_02-38-47_b7a8f5278fbe/events.out.tfevents.1701225528.b7a8f5278fbe.405.1 +3 -0
- runs/Nov29_02-45-29_b7a8f5278fbe/events.out.tfevents.1701225930.b7a8f5278fbe.405.2 +3 -0
- runs/Nov29_02-50-39_b7a8f5278fbe/events.out.tfevents.1701226239.b7a8f5278fbe.405.3 +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +59 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: text_classifier
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# text_classifier
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 1.5131
|
21 |
+
- Accuracy: 0.6982
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 5e-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: 15
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
51 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
52 |
+
| No log | 1.0 | 96 | 1.2437 | 0.6404 |
|
53 |
+
| No log | 2.0 | 192 | 1.0802 | 0.6798 |
|
54 |
+
| No log | 3.0 | 288 | 1.0126 | 0.6772 |
|
55 |
+
| No log | 4.0 | 384 | 1.0858 | 0.6745 |
|
56 |
+
| No log | 5.0 | 480 | 1.2306 | 0.6850 |
|
57 |
+
| 0.7338 | 6.0 | 576 | 1.3097 | 0.6824 |
|
58 |
+
| 0.7338 | 7.0 | 672 | 1.3371 | 0.6850 |
|
59 |
+
| 0.7338 | 8.0 | 768 | 1.4222 | 0.7034 |
|
60 |
+
| 0.7338 | 9.0 | 864 | 1.3962 | 0.7060 |
|
61 |
+
| 0.7338 | 10.0 | 960 | 1.4529 | 0.6955 |
|
62 |
+
| 0.0955 | 11.0 | 1056 | 1.4697 | 0.6955 |
|
63 |
+
| 0.0955 | 12.0 | 1152 | 1.4944 | 0.7008 |
|
64 |
+
| 0.0955 | 13.0 | 1248 | 1.5037 | 0.6982 |
|
65 |
+
| 0.0955 | 14.0 | 1344 | 1.5129 | 0.7008 |
|
66 |
+
| 0.0955 | 15.0 | 1440 | 1.5131 | 0.6982 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- Transformers 4.35.2
|
72 |
+
- Pytorch 2.1.0+cu118
|
73 |
+
- Datasets 2.15.0
|
74 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "presentation",
|
13 |
+
"1": "budget",
|
14 |
+
"2": "scientific publication",
|
15 |
+
"3": "letter",
|
16 |
+
"4": "invoice",
|
17 |
+
"5": "handwritten",
|
18 |
+
"6": "email",
|
19 |
+
"7": "questionnaire",
|
20 |
+
"8": "memo",
|
21 |
+
"9": "specification",
|
22 |
+
"10": "resume",
|
23 |
+
"11": "file folder",
|
24 |
+
"12": "form",
|
25 |
+
"13": "scientific report",
|
26 |
+
"14": "news article",
|
27 |
+
"15": "advertisement"
|
28 |
+
},
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"label2id": {
|
31 |
+
"advertisement": 15,
|
32 |
+
"budget": 1,
|
33 |
+
"email": 6,
|
34 |
+
"file folder": 11,
|
35 |
+
"form": 12,
|
36 |
+
"handwritten": 5,
|
37 |
+
"invoice": 4,
|
38 |
+
"letter": 3,
|
39 |
+
"memo": 8,
|
40 |
+
"news article": 14,
|
41 |
+
"presentation": 0,
|
42 |
+
"questionnaire": 7,
|
43 |
+
"resume": 10,
|
44 |
+
"scientific publication": 2,
|
45 |
+
"scientific report": 13,
|
46 |
+
"specification": 9
|
47 |
+
},
|
48 |
+
"max_position_embeddings": 512,
|
49 |
+
"model_type": "distilbert",
|
50 |
+
"n_heads": 12,
|
51 |
+
"n_layers": 6,
|
52 |
+
"pad_token_id": 0,
|
53 |
+
"problem_type": "single_label_classification",
|
54 |
+
"qa_dropout": 0.1,
|
55 |
+
"seq_classif_dropout": 0.2,
|
56 |
+
"sinusoidal_pos_embds": false,
|
57 |
+
"tie_weights_": true,
|
58 |
+
"torch_dtype": "float32",
|
59 |
+
"transformers_version": "4.35.2",
|
60 |
+
"vocab_size": 30522
|
61 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9798b95964b34ce705758aa9d808d1a9d6ad878513545ed667eccb2a148ee770
|
3 |
+
size 267875632
|
runs/Nov28_23-58-01_b7a8f5278fbe/events.out.tfevents.1701215887.b7a8f5278fbe.405.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6fc4bdb3eba719695ac77fb2338b68cbb2237af5d9a2b760fa6d92f8d7b0f822
|
3 |
+
size 6153
|
runs/Nov29_02-38-47_b7a8f5278fbe/events.out.tfevents.1701225528.b7a8f5278fbe.405.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09c01533516afdf7936b988ee61bc1db83a537d2886bfb0f1a655c67535ce4f3
|
3 |
+
size 4211
|
runs/Nov29_02-45-29_b7a8f5278fbe/events.out.tfevents.1701225930.b7a8f5278fbe.405.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bea609b2816081b34ff981322422d37ae53bd42de2af4ed283137ec526f074a8
|
3 |
+
size 5845
|
runs/Nov29_02-50-39_b7a8f5278fbe/events.out.tfevents.1701226239.b7a8f5278fbe.405.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:945a1381256548eab6f382f5f4743ece516e0e4ac9bde724488dfa18954aa109
|
3 |
+
size 10450
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"max_length": 512,
|
49 |
+
"model_max_length": 512,
|
50 |
+
"pad_token": "[PAD]",
|
51 |
+
"sep_token": "[SEP]",
|
52 |
+
"stride": 0,
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "DistilBertTokenizer",
|
56 |
+
"truncation_side": "right",
|
57 |
+
"truncation_strategy": "longest_first",
|
58 |
+
"unk_token": "[UNK]"
|
59 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:21a81ba304876357ec35fcf77fa9e192b2d6493d49088556e2633fd3c2548f0f
|
3 |
+
size 4600
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|