fanaf91318
commited on
fanaf91318/text-classification
Browse files- README.md +63 -0
- config.json +51 -0
- model.safetensors +3 -0
- runs/Dec22_12-25-25_0a6303ae3a38/events.out.tfevents.1734870327.0a6303ae3a38.649.0 +3 -0
- runs/Dec22_12-40-22_0a6303ae3a38/events.out.tfevents.1734871225.0a6303ae3a38.649.1 +3 -0
- runs/Dec22_12-40-43_0a6303ae3a38/events.out.tfevents.1734871245.0a6303ae3a38.649.2 +3 -0
- runs/Dec22_12-44-32_0a6303ae3a38/events.out.tfevents.1734871474.0a6303ae3a38.649.3 +3 -0
- runs/Dec22_12-45-14_0a6303ae3a38/events.out.tfevents.1734871516.0a6303ae3a38.649.4 +3 -0
- runs/Dec22_12-51-12_0a6303ae3a38/events.out.tfevents.1734871876.0a6303ae3a38.649.5 +3 -0
- runs/Dec22_12-51-27_0a6303ae3a38/events.out.tfevents.1734871889.0a6303ae3a38.649.6 +3 -0
- runs/Dec22_13-08-56_0a6303ae3a38/events.out.tfevents.1734872938.0a6303ae3a38.649.7 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +56 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: distilbert/distilbert-base-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: text-classification
|
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 |
+
# text-classification
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.2852
|
22 |
+
- Accuracy: 0.9314
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 2e-05
|
42 |
+
- train_batch_size: 16
|
43 |
+
- eval_batch_size: 16
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 3
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
+
| 0.2144 | 1.0 | 1563 | 0.2409 | 0.9072 |
|
54 |
+
| 0.2246 | 2.0 | 3126 | 0.2292 | 0.9304 |
|
55 |
+
| 0.1301 | 3.0 | 4689 | 0.2852 | 0.9314 |
|
56 |
+
|
57 |
+
|
58 |
+
### Framework versions
|
59 |
+
|
60 |
+
- Transformers 4.47.1
|
61 |
+
- Pytorch 2.5.1+cu121
|
62 |
+
- Datasets 3.2.0
|
63 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert/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": "Avto",
|
13 |
+
"1": "Biznes",
|
14 |
+
"2": "Iqtisodiyot",
|
15 |
+
"3": "Kino",
|
16 |
+
"4": "Kitob",
|
17 |
+
"5": "Koinot",
|
18 |
+
"6": "Madaniyat",
|
19 |
+
"7": "Ob-havo",
|
20 |
+
"8": "Sayohat",
|
21 |
+
"9": "Sport",
|
22 |
+
"10": "Texnologiya"
|
23 |
+
},
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"label2id": {
|
26 |
+
"Avto": 0,
|
27 |
+
"Biznes": 1,
|
28 |
+
"Iqtisodiyot": 2,
|
29 |
+
"Kino": 3,
|
30 |
+
"Kitob": 4,
|
31 |
+
"Koinot": 5,
|
32 |
+
"Madaniyat": 6,
|
33 |
+
"Ob-havo": 7,
|
34 |
+
"Sayohat": 8,
|
35 |
+
"Sport": 9,
|
36 |
+
"Texnologiya": 10
|
37 |
+
},
|
38 |
+
"max_position_embeddings": 512,
|
39 |
+
"model_type": "distilbert",
|
40 |
+
"n_heads": 12,
|
41 |
+
"n_layers": 6,
|
42 |
+
"pad_token_id": 0,
|
43 |
+
"problem_type": "single_label_classification",
|
44 |
+
"qa_dropout": 0.1,
|
45 |
+
"seq_classif_dropout": 0.2,
|
46 |
+
"sinusoidal_pos_embds": false,
|
47 |
+
"tie_weights_": true,
|
48 |
+
"torch_dtype": "float32",
|
49 |
+
"transformers_version": "4.47.1",
|
50 |
+
"vocab_size": 30522
|
51 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20d13dba3dd01cc92ed8f89471c3fcdaca04260c55c76141b99b26ff013ccadf
|
3 |
+
size 267860252
|
runs/Dec22_12-25-25_0a6303ae3a38/events.out.tfevents.1734870327.0a6303ae3a38.649.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:148d189da9a2818d8ed35e6844371a78da745b85314314ead37ee5adabccfa47
|
3 |
+
size 5077
|
runs/Dec22_12-40-22_0a6303ae3a38/events.out.tfevents.1734871225.0a6303ae3a38.649.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a0f6a5257ac64be480added802b9a2fe08d7be97c1f5e96869cadef9d0ce86b
|
3 |
+
size 5376
|
runs/Dec22_12-40-43_0a6303ae3a38/events.out.tfevents.1734871245.0a6303ae3a38.649.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a758a5bc89e0fa833fd66159840a81fc14cee5129426df70bfbf253e84f144b0
|
3 |
+
size 5377
|
runs/Dec22_12-44-32_0a6303ae3a38/events.out.tfevents.1734871474.0a6303ae3a38.649.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:011f667e1a83322db7f2f524a2f6491694868ef15a1b98e7001ad18ae53bf0b2
|
3 |
+
size 5377
|
runs/Dec22_12-45-14_0a6303ae3a38/events.out.tfevents.1734871516.0a6303ae3a38.649.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69285655ff38f5e5b2897aaa5ab36763e92978fe423addeda3f1fae7a51c2707
|
3 |
+
size 5377
|
runs/Dec22_12-51-12_0a6303ae3a38/events.out.tfevents.1734871876.0a6303ae3a38.649.5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f89473a05db19da94267866dc57e4e7ee719020dfcb6dabd96003f6f51bb8f89
|
3 |
+
size 5077
|
runs/Dec22_12-51-27_0a6303ae3a38/events.out.tfevents.1734871889.0a6303ae3a38.649.6
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca5fa96ef354dec1b701c729bc38530f8057aaa30a2b128183fad1f6731fc15b
|
3 |
+
size 5746
|
runs/Dec22_13-08-56_0a6303ae3a38/events.out.tfevents.1734872938.0a6303ae3a38.649.7
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9268ea7cbdf451c508a70ded095cd78696a696d5563cbac301c9ac1dde57ae42
|
3 |
+
size 56085
|
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,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": false,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": true,
|
47 |
+
"extra_special_tokens": {},
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"pad_token": "[PAD]",
|
51 |
+
"sep_token": "[SEP]",
|
52 |
+
"strip_accents": null,
|
53 |
+
"tokenize_chinese_chars": true,
|
54 |
+
"tokenizer_class": "DistilBertTokenizer",
|
55 |
+
"unk_token": "[UNK]"
|
56 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c6e61ef333bdeea456d5761cc9bfc989e215ab84ee16a42aa998cb435f291cf7
|
3 |
+
size 5368
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|