Training in progress, epoch 1
Browse files- README.md +72 -0
- config.json +52 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: Geotrend/bert-base-th-cased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
- f1
|
10 |
+
- precision
|
11 |
+
- recall
|
12 |
+
model-index:
|
13 |
+
- name: bert-base-th-cased-intent-booking
|
14 |
+
results: []
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
18 |
+
should probably proofread and complete it, then remove this comment. -->
|
19 |
+
|
20 |
+
# bert-base-th-cased-intent-booking
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [Geotrend/bert-base-th-cased](https://huggingface.co/Geotrend/bert-base-th-cased) on an unknown dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.3126
|
25 |
+
- Accuracy: 0.9144
|
26 |
+
- F1: 0.9133
|
27 |
+
- Precision: 0.9257
|
28 |
+
- Recall: 0.9144
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 5e-05
|
48 |
+
- train_batch_size: 16
|
49 |
+
- eval_batch_size: 64
|
50 |
+
- seed: 42
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- lr_scheduler_warmup_steps: 64
|
54 |
+
- num_epochs: 5
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
60 |
+
| 1.9427 | 1.0 | 65 | 0.7129 | 0.8964 | 0.8947 | 0.9055 | 0.8964 |
|
61 |
+
| 0.5012 | 2.0 | 130 | 0.2128 | 0.9505 | 0.9501 | 0.9552 | 0.9505 |
|
62 |
+
| 0.2135 | 3.0 | 195 | 0.4644 | 0.8829 | 0.8812 | 0.9208 | 0.8829 |
|
63 |
+
| 0.1301 | 4.0 | 260 | 0.1812 | 0.9459 | 0.9463 | 0.9543 | 0.9459 |
|
64 |
+
| 0.0785 | 5.0 | 325 | 0.2287 | 0.9459 | 0.9462 | 0.9517 | 0.9459 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- Transformers 4.44.2
|
70 |
+
- Pytorch 2.4.1+cu121
|
71 |
+
- Datasets 3.0.1
|
72 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "monsoon-nlp/bert-base-thai",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"embedding_size": 768,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4",
|
18 |
+
"5": "LABEL_5",
|
19 |
+
"6": "LABEL_6",
|
20 |
+
"7": "LABEL_7",
|
21 |
+
"8": "LABEL_8",
|
22 |
+
"9": "LABEL_9"
|
23 |
+
},
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"LABEL_0": 0,
|
28 |
+
"LABEL_1": 1,
|
29 |
+
"LABEL_2": 2,
|
30 |
+
"LABEL_3": 3,
|
31 |
+
"LABEL_4": 4,
|
32 |
+
"LABEL_5": 5,
|
33 |
+
"LABEL_6": 6,
|
34 |
+
"LABEL_7": 7,
|
35 |
+
"LABEL_8": 8,
|
36 |
+
"LABEL_9": 9
|
37 |
+
},
|
38 |
+
"layer_norm_eps": 1e-12,
|
39 |
+
"max_position_embeddings": 512,
|
40 |
+
"model_type": "bert",
|
41 |
+
"num_attention_heads": 12,
|
42 |
+
"num_hidden_layers": 12,
|
43 |
+
"pad_token_id": 0,
|
44 |
+
"position_embedding_type": "absolute",
|
45 |
+
"pretraining_tp": 1,
|
46 |
+
"problem_type": "single_label_classification",
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.44.2",
|
49 |
+
"type_vocab_size": 2,
|
50 |
+
"use_cache": false,
|
51 |
+
"vocab_size": 25004
|
52 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f790d7eb1fe85de04fe4c7feec74ae27eb410ba2b9391ba0ba0b01e80b061ce
|
3 |
+
size 421031944
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1b0d6039f3271188c72f8071d672f9985bd87e6a7ae5f183801177c54f1f0fda
|
3 |
+
size 5240
|