levshechter commited on
Commit
c6e2c76
·
verified ·
1 Parent(s): eb64c5e

Model save

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: OMRIDRORI/mbert-tibetan-continual-unicode-240k
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: tibetan_code_switching_model
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
+ # tibetan_code_switching_model
17
+
18
+ This model is a fine-tuned version of [OMRIDRORI/mbert-tibetan-continual-unicode-240k](https://huggingface.co/OMRIDRORI/mbert-tibetan-continual-unicode-240k) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.2587
21
+ - Accuracy: 0.9580
22
+ - Switch Precision: 0.9386
23
+ - Switch Recall: 0.9817
24
+ - Switch F1: 0.9596
25
+ - True Switches: 109
26
+ - Pred Switches: 114
27
+ - Tp: 107
28
+ - Fp: 7
29
+ - Fn: 2
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - learning_rate: 2e-05
49
+ - train_batch_size: 8
50
+ - eval_batch_size: 8
51
+ - seed: 42
52
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
53
+ - lr_scheduler_type: linear
54
+ - lr_scheduler_warmup_steps: 100
55
+ - num_epochs: 15
56
+ - mixed_precision_training: Native AMP
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Switch Precision | Switch Recall | Switch F1 | True Switches | Pred Switches | Tp | Fp | Fn |
61
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:----------------:|:-------------:|:---------:|:-------------:|:-------------:|:---:|:---:|:--:|
62
+ | 4.4519 | 1.0 | 50 | 4.8563 | 0.2905 | 0.0906 | 0.9083 | 0.1647 | 109 | 1093 | 99 | 994 | 10 |
63
+ | 2.0058 | 2.0 | 100 | 1.4230 | 0.5367 | 0.5376 | 0.9174 | 0.6780 | 109 | 186 | 100 | 86 | 9 |
64
+ | 1.249 | 3.0 | 150 | 1.0507 | 0.6400 | 0.6429 | 0.9908 | 0.7798 | 109 | 168 | 108 | 60 | 1 |
65
+ | 0.885 | 4.0 | 200 | 0.8003 | 0.7341 | 0.6488 | 1.0 | 0.7870 | 109 | 168 | 109 | 59 | 0 |
66
+ | 0.734 | 5.0 | 250 | 0.7127 | 0.7770 | 0.6606 | 1.0 | 0.7956 | 109 | 165 | 109 | 56 | 0 |
67
+ | 0.5639 | 6.0 | 300 | 0.6443 | 0.8205 | 0.6728 | 1.0 | 0.8044 | 109 | 162 | 109 | 53 | 0 |
68
+ | 0.3557 | 7.0 | 350 | 0.3794 | 0.9025 | 0.7219 | 1.0 | 0.8385 | 109 | 151 | 109 | 42 | 0 |
69
+ | 0.249 | 8.0 | 400 | 0.2706 | 0.9363 | 0.8120 | 0.9908 | 0.8926 | 109 | 133 | 108 | 25 | 1 |
70
+ | 0.1682 | 9.0 | 450 | 0.2421 | 0.9344 | 0.9 | 0.9908 | 0.9432 | 109 | 120 | 108 | 12 | 1 |
71
+ | 0.0818 | 10.0 | 500 | 0.2537 | 0.9368 | 0.8689 | 0.9725 | 0.9177 | 109 | 122 | 106 | 16 | 3 |
72
+ | 0.0632 | 11.0 | 550 | 0.3495 | 0.9426 | 0.8917 | 0.9817 | 0.9345 | 109 | 120 | 107 | 13 | 2 |
73
+ | 0.0227 | 12.0 | 600 | 0.2392 | 0.9537 | 0.9304 | 0.9817 | 0.9554 | 109 | 115 | 107 | 8 | 2 |
74
+ | 0.0246 | 13.0 | 650 | 0.3026 | 0.9488 | 0.8843 | 0.9817 | 0.9304 | 109 | 121 | 107 | 14 | 2 |
75
+ | 0.0146 | 14.0 | 700 | 0.2463 | 0.9604 | 0.9386 | 0.9817 | 0.9596 | 109 | 114 | 107 | 7 | 2 |
76
+ | 0.0178 | 15.0 | 750 | 0.2587 | 0.9580 | 0.9386 | 0.9817 | 0.9596 | 109 | 114 | 107 | 7 | 2 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.46.3
82
+ - Pytorch 2.4.1+cu121
83
+ - Datasets 2.0.0
84
+ - Tokenizers 0.20.3
final_model/config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "OMRIDRORI/mbert-tibetan-continual-unicode-240k",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "non_switch_auto",
14
+ "1": "non_switch_allo",
15
+ "2": "to_auto",
16
+ "3": "to_allo"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "non_switch_allo": 1,
22
+ "non_switch_auto": 0,
23
+ "to_allo": 3,
24
+ "to_auto": 2
25
+ },
26
+ "layer_norm_eps": 1e-12,
27
+ "max_position_embeddings": 512,
28
+ "model_type": "bert",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 0,
32
+ "pooler_fc_size": 768,
33
+ "pooler_num_attention_heads": 12,
34
+ "pooler_num_fc_layers": 3,
35
+ "pooler_size_per_head": 128,
36
+ "pooler_type": "first_token_transform",
37
+ "position_embedding_type": "absolute",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.46.3",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 119547
43
+ }
final_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bf1b1a3889be2747c6052177d7bd7e1dd831be1fa5fbed7b0ca700fec2b5a4b
3
+ size 709087056
final_model/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
+ }
final_model/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
final_model/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": false,
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": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
final_model/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c9fb47a1b9e042c718e44870c1361222e36ba6ae11efa25444ce8a3e43c2492
3
+ size 5240
final_model/vocab.txt ADDED
The diff for this file is too large to render. See raw diff