End of training
Browse files- README.md +70 -0
- config.json +53 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
model-index:
|
12 |
+
- name: distilbert-12-classes
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# distilbert-12-classes
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.3754
|
24 |
+
- Accuracy: 0.9266
|
25 |
+
- F1: 0.9264
|
26 |
+
- Precision: 0.9349
|
27 |
+
- Recall: 0.9287
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 5e-05
|
47 |
+
- train_batch_size: 16
|
48 |
+
- eval_batch_size: 32
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_steps: 100
|
53 |
+
- num_epochs: 3
|
54 |
+
- mixed_precision_training: Native AMP
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
60 |
+
| 2.4155 | 0.96 | 50 | 2.1453 | 0.4432 | 0.3707 | 0.5871 | 0.4659 |
|
61 |
+
| 1.5038 | 1.92 | 100 | 0.7723 | 0.9261 | 0.9238 | 0.9369 | 0.9402 |
|
62 |
+
| 0.4892 | 2.88 | 150 | 0.3246 | 0.9318 | 0.9274 | 0.9356 | 0.9374 |
|
63 |
+
|
64 |
+
|
65 |
+
### Framework versions
|
66 |
+
|
67 |
+
- Transformers 4.37.2
|
68 |
+
- Pytorch 2.1.0+cu121
|
69 |
+
- Datasets 2.17.1
|
70 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "YES",
|
13 |
+
"1": "NO",
|
14 |
+
"2": "RIGHT",
|
15 |
+
"3": "LEFT",
|
16 |
+
"4": "FORWARD",
|
17 |
+
"5": "BACK",
|
18 |
+
"6": "HAPPY",
|
19 |
+
"7": "SAD",
|
20 |
+
"8": "SWORD",
|
21 |
+
"9": "BOW",
|
22 |
+
"10": "GO",
|
23 |
+
"11": "STAY"
|
24 |
+
},
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"label2id": {
|
27 |
+
"BACK": 5,
|
28 |
+
"BOW": 9,
|
29 |
+
"FORWARD": 4,
|
30 |
+
"GO": 10,
|
31 |
+
"HAPPY": 6,
|
32 |
+
"LEFT": 3,
|
33 |
+
"NO": 1,
|
34 |
+
"RIGHT": 2,
|
35 |
+
"SAD": 7,
|
36 |
+
"STAY": 11,
|
37 |
+
"SWORD": 8,
|
38 |
+
"YES": 0
|
39 |
+
},
|
40 |
+
"max_position_embeddings": 512,
|
41 |
+
"model_type": "distilbert",
|
42 |
+
"n_heads": 12,
|
43 |
+
"n_layers": 6,
|
44 |
+
"pad_token_id": 0,
|
45 |
+
"problem_type": "single_label_classification",
|
46 |
+
"qa_dropout": 0.1,
|
47 |
+
"seq_classif_dropout": 0.2,
|
48 |
+
"sinusoidal_pos_embds": false,
|
49 |
+
"tie_weights_": true,
|
50 |
+
"torch_dtype": "float32",
|
51 |
+
"transformers_version": "4.37.2",
|
52 |
+
"vocab_size": 30522
|
53 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:289c5cf7cc8e6dffebe50c3b67c1ec6f6fb069821d6b1eaa9e73e00447f4cb76
|
3 |
+
size 267863328
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dde258b5ac622e8eaf0d2cae5823a32666ca3ed59fc4ddb57da8aa551ce43353
|
3 |
+
size 4664
|