Toxotes commited on
Commit
c993a63
·
verified ·
1 Parent(s): c8f0126

feat: Turkish Financial BERT Router (3-class MoE)

Browse files
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - tr
4
+ license: apache-2.0
5
+ tags:
6
+ - bert
7
+ - turkish
8
+ - finance
9
+ - text-classification
10
+ - router
11
+ - query-classification
12
+ library_name: transformers
13
+ base_model: Toxotes/fin-bert-tr
14
+ ---
15
+
16
+ # fin-bert-tr-router
17
+
18
+ **Türkçe Finansal BERT Router** — Kullanıcı sorgularını 3 sınıfa ayıran
19
+ sınıflandırma modeli. MOSAIC RAG sisteminde MoE (Mixture of Experts) yönlendiricisi
20
+ olarak kullanılır.
21
+
22
+ ## Sınıflar
23
+
24
+ | ID | Sınıf | Açıklama | Yönlendirme |
25
+ |----|-------|----------|-------------|
26
+ | 0 | CHITCHAT | Selamlama, sohbet, kimlik soruları | RAG olmadan Qwen2.5-1.5B |
27
+ | 1 | SIMPLE | Tek adımlı olgusal finans sorguları | Qwen2.5-1.5B + RAG |
28
+ | 2 | COMPLEX | Çok adımlı analiz, mevzuat yorumu | Turkish-Gemma-9B + RAG |
29
+
30
+ ## Performans
31
+
32
+ - **Doğrulama Accuracy:** 0.8940
33
+ - **Doğrulama Macro F1:** 0.9238
34
+
35
+ ## Temel Model
36
+
37
+ [Toxotes/fin-bert-tr](https://huggingface.co/Toxotes/fin-bert-tr) üzerinde ince-ayar yapılmıştır.
38
+
39
+ ## Kullanım
40
+
41
+ ```python
42
+ from transformers import BertForSequenceClassification, PreTrainedTokenizerFast
43
+ import torch
44
+
45
+ tokenizer = PreTrainedTokenizerFast.from_pretrained("Toxotes/fin-bert-tr-router")
46
+ model = BertForSequenceClassification.from_pretrained("Toxotes/fin-bert-tr-router")
47
+ model.eval()
48
+
49
+ queries = [
50
+ "Merhaba!", # → CHITCHAT (0)
51
+ "TCMB faiz oranı nedir?", # → SIMPLE (1)
52
+ "Reel sektör sermaye yeterliliği analizi nasıl yapılır?", # → COMPLEX (2)
53
+ ]
54
+ LABELS = ["chitchat", "simple", "complex"]
55
+
56
+ for q in queries:
57
+ inputs = tokenizer(q, return_tensors="pt", truncation=True, max_length=128)
58
+ with torch.no_grad():
59
+ logits = model(**inputs).logits
60
+ label = LABELS[logits.argmax().item()]
61
+ print(f"{q[:40]:40} → {label}")
62
+ ```
63
+
64
+ ## Eğitim Tarihi
65
+
66
+ 2026-03-11
67
+
68
+ ## Proje
69
+
70
+ MOSAIC — Federated Financial RAG System
71
+ [GitHub](https://github.com/tahatoy/MOSAIC)
checkpoint-180/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "chitchat",
16
+ "1": "simple",
17
+ "2": "complex"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "is_decoder": false,
22
+ "label2id": {
23
+ "chitchat": 0,
24
+ "complex": 2,
25
+ "simple": 1
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "bert",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 0,
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.3.0",
36
+ "type_vocab_size": 2,
37
+ "use_cache": false,
38
+ "vocab_size": 32000
39
+ }
checkpoint-180/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a67357f153d26a876ac69d386fd49fbf1abe99cf1f69b43efc7eb9d74988fedd
3
+ size 442502116
checkpoint-180/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d472268a96b6545b8ac8ea1c1df0c6d30973d204ecc02896b3db19468cf42b03
3
+ size 885125771
checkpoint-180/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a727d9b55b2ea15801f73de2d67be739cb2afc7490ba9ff2a93d2fd0c1b4a0c
3
+ size 14645
checkpoint-180/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:343bc140b7878c594877e97f280bb1571cb798eaae931c6ef019fd867e4b99b2
3
+ size 1383
checkpoint-180/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d4a004c920138b162037c9e97d79bd1de73e6cd668c54aed9bc3c469af97dd0
3
+ size 1465
checkpoint-180/trainer_state.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 180,
3
+ "best_metric": 0.9214996490839781,
4
+ "best_model_checkpoint": "C:\\Users\\memol\\Desktop\\Kisisel_Projeler\\MOSAIC\\federafinrag\\models\\router_bert\\checkpoint-180",
5
+ "epoch": 4.0,
6
+ "eval_steps": 500,
7
+ "global_step": 180,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 1.0,
14
+ "eval_accuracy": 0.7927215189873418,
15
+ "eval_chitchat_f1": 0.7897271268057785,
16
+ "eval_complex_f1": 1.0,
17
+ "eval_loss": 0.4422382414340973,
18
+ "eval_macro_f1": 0.8503704873202018,
19
+ "eval_runtime": 0.5699,
20
+ "eval_samples_per_second": 1108.897,
21
+ "eval_simple_f1": 0.761384335154827,
22
+ "eval_steps_per_second": 8.773,
23
+ "step": 45
24
+ },
25
+ {
26
+ "epoch": 1.1111111111111112,
27
+ "grad_norm": 2.4390697479248047,
28
+ "learning_rate": 1.909342403345925e-05,
29
+ "loss": 0.6157618713378906,
30
+ "step": 50
31
+ },
32
+ {
33
+ "epoch": 2.0,
34
+ "eval_accuracy": 0.870253164556962,
35
+ "eval_chitchat_f1": 0.8624161073825504,
36
+ "eval_complex_f1": 1.0,
37
+ "eval_loss": 0.3124813735485077,
38
+ "eval_macro_f1": 0.9066849987571465,
39
+ "eval_runtime": 0.5695,
40
+ "eval_samples_per_second": 1109.712,
41
+ "eval_simple_f1": 0.8576388888888888,
42
+ "eval_steps_per_second": 8.779,
43
+ "step": 90
44
+ },
45
+ {
46
+ "epoch": 2.2222222222222223,
47
+ "grad_norm": 2.671827554702759,
48
+ "learning_rate": 1.3666992531768482e-05,
49
+ "loss": 0.34577438354492185,
50
+ "step": 100
51
+ },
52
+ {
53
+ "epoch": 3.0,
54
+ "eval_accuracy": 0.8860759493670886,
55
+ "eval_chitchat_f1": 0.8783783783783784,
56
+ "eval_complex_f1": 1.0,
57
+ "eval_loss": 0.2773128151893616,
58
+ "eval_macro_f1": 0.9180801491146319,
59
+ "eval_runtime": 0.5695,
60
+ "eval_samples_per_second": 1109.75,
61
+ "eval_simple_f1": 0.8758620689655172,
62
+ "eval_steps_per_second": 8.78,
63
+ "step": 135
64
+ },
65
+ {
66
+ "epoch": 3.3333333333333335,
67
+ "grad_norm": 3.06937313079834,
68
+ "learning_rate": 6.1908705719647735e-06,
69
+ "loss": 0.2207444953918457,
70
+ "step": 150
71
+ },
72
+ {
73
+ "epoch": 4.0,
74
+ "eval_accuracy": 0.8908227848101266,
75
+ "eval_chitchat_f1": 0.8828522920203735,
76
+ "eval_complex_f1": 1.0,
77
+ "eval_loss": 0.27712756395339966,
78
+ "eval_macro_f1": 0.9214996490839781,
79
+ "eval_runtime": 0.5668,
80
+ "eval_samples_per_second": 1115.105,
81
+ "eval_simple_f1": 0.8816466552315609,
82
+ "eval_steps_per_second": 8.822,
83
+ "step": 180
84
+ }
85
+ ],
86
+ "logging_steps": 50,
87
+ "max_steps": 225,
88
+ "num_input_tokens_seen": 0,
89
+ "num_train_epochs": 5,
90
+ "save_steps": 500,
91
+ "stateful_callbacks": {
92
+ "EarlyStoppingCallback": {
93
+ "args": {
94
+ "early_stopping_patience": 3,
95
+ "early_stopping_threshold": 0.0
96
+ },
97
+ "attributes": {
98
+ "early_stopping_patience_counter": 0
99
+ }
100
+ },
101
+ "TrainerControl": {
102
+ "args": {
103
+ "should_epoch_stop": false,
104
+ "should_evaluate": false,
105
+ "should_log": false,
106
+ "should_save": true,
107
+ "should_training_stop": false
108
+ },
109
+ "attributes": {}
110
+ }
111
+ },
112
+ "total_flos": 1495273552948224.0,
113
+ "train_batch_size": 128,
114
+ "trial_name": null,
115
+ "trial_params": null
116
+ }
checkpoint-180/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60ca23d105e7290f4c5f2500d68d89996b07cd664a889d31bd6c74f4043d1f02
3
+ size 5265
checkpoint-225/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "chitchat",
16
+ "1": "simple",
17
+ "2": "complex"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "is_decoder": false,
22
+ "label2id": {
23
+ "chitchat": 0,
24
+ "complex": 2,
25
+ "simple": 1
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "bert",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 0,
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.3.0",
36
+ "type_vocab_size": 2,
37
+ "use_cache": false,
38
+ "vocab_size": 32000
39
+ }
checkpoint-225/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d15e24d35d8168667200ec1fdbf85419fb9ba4ac4ee384e91cdcc1c06222e86
3
+ size 442502116
checkpoint-225/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e13e7cbbad2737a9fbe417ce50e8be8108235831cb7653c10f5592254f8542d
3
+ size 885125771
checkpoint-225/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8b6282e3b9f4ef473373e2fff949dbe62945fd35d70c4738f5fc1af2f5039e2
3
+ size 14645
checkpoint-225/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f53e6e635233bdd30b27e3b4e224f937719c4918e21e112f405f94670790aa4d
3
+ size 1383
checkpoint-225/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b396cd839a80b567f2098e9c2387f4ec8ce92c8eecf966902cc42b39db47c413
3
+ size 1465
checkpoint-225/trainer_state.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 225,
3
+ "best_metric": 0.9237714697319616,
4
+ "best_model_checkpoint": "C:\\Users\\memol\\Desktop\\Kisisel_Projeler\\MOSAIC\\federafinrag\\models\\router_bert\\checkpoint-225",
5
+ "epoch": 5.0,
6
+ "eval_steps": 500,
7
+ "global_step": 225,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 1.0,
14
+ "eval_accuracy": 0.7927215189873418,
15
+ "eval_chitchat_f1": 0.7897271268057785,
16
+ "eval_complex_f1": 1.0,
17
+ "eval_loss": 0.4422382414340973,
18
+ "eval_macro_f1": 0.8503704873202018,
19
+ "eval_runtime": 0.5699,
20
+ "eval_samples_per_second": 1108.897,
21
+ "eval_simple_f1": 0.761384335154827,
22
+ "eval_steps_per_second": 8.773,
23
+ "step": 45
24
+ },
25
+ {
26
+ "epoch": 1.1111111111111112,
27
+ "grad_norm": 2.4390697479248047,
28
+ "learning_rate": 1.909342403345925e-05,
29
+ "loss": 0.6157618713378906,
30
+ "step": 50
31
+ },
32
+ {
33
+ "epoch": 2.0,
34
+ "eval_accuracy": 0.870253164556962,
35
+ "eval_chitchat_f1": 0.8624161073825504,
36
+ "eval_complex_f1": 1.0,
37
+ "eval_loss": 0.3124813735485077,
38
+ "eval_macro_f1": 0.9066849987571465,
39
+ "eval_runtime": 0.5695,
40
+ "eval_samples_per_second": 1109.712,
41
+ "eval_simple_f1": 0.8576388888888888,
42
+ "eval_steps_per_second": 8.779,
43
+ "step": 90
44
+ },
45
+ {
46
+ "epoch": 2.2222222222222223,
47
+ "grad_norm": 2.671827554702759,
48
+ "learning_rate": 1.3666992531768482e-05,
49
+ "loss": 0.34577438354492185,
50
+ "step": 100
51
+ },
52
+ {
53
+ "epoch": 3.0,
54
+ "eval_accuracy": 0.8860759493670886,
55
+ "eval_chitchat_f1": 0.8783783783783784,
56
+ "eval_complex_f1": 1.0,
57
+ "eval_loss": 0.2773128151893616,
58
+ "eval_macro_f1": 0.9180801491146319,
59
+ "eval_runtime": 0.5695,
60
+ "eval_samples_per_second": 1109.75,
61
+ "eval_simple_f1": 0.8758620689655172,
62
+ "eval_steps_per_second": 8.78,
63
+ "step": 135
64
+ },
65
+ {
66
+ "epoch": 3.3333333333333335,
67
+ "grad_norm": 3.06937313079834,
68
+ "learning_rate": 6.1908705719647735e-06,
69
+ "loss": 0.2207444953918457,
70
+ "step": 150
71
+ },
72
+ {
73
+ "epoch": 4.0,
74
+ "eval_accuracy": 0.8908227848101266,
75
+ "eval_chitchat_f1": 0.8828522920203735,
76
+ "eval_complex_f1": 1.0,
77
+ "eval_loss": 0.27712756395339966,
78
+ "eval_macro_f1": 0.9214996490839781,
79
+ "eval_runtime": 0.5668,
80
+ "eval_samples_per_second": 1115.105,
81
+ "eval_simple_f1": 0.8816466552315609,
82
+ "eval_steps_per_second": 8.822,
83
+ "step": 180
84
+ },
85
+ {
86
+ "epoch": 4.444444444444445,
87
+ "grad_norm": 2.217465877532959,
88
+ "learning_rate": 8.438874567923261e-07,
89
+ "loss": 0.16295211791992187,
90
+ "step": 200
91
+ },
92
+ {
93
+ "epoch": 5.0,
94
+ "eval_accuracy": 0.8939873417721519,
95
+ "eval_chitchat_f1": 0.8866328257191202,
96
+ "eval_complex_f1": 1.0,
97
+ "eval_loss": 0.2775741517543793,
98
+ "eval_macro_f1": 0.9237714697319616,
99
+ "eval_runtime": 0.5907,
100
+ "eval_samples_per_second": 1069.839,
101
+ "eval_simple_f1": 0.8846815834767642,
102
+ "eval_steps_per_second": 8.464,
103
+ "step": 225
104
+ }
105
+ ],
106
+ "logging_steps": 50,
107
+ "max_steps": 225,
108
+ "num_input_tokens_seen": 0,
109
+ "num_train_epochs": 5,
110
+ "save_steps": 500,
111
+ "stateful_callbacks": {
112
+ "EarlyStoppingCallback": {
113
+ "args": {
114
+ "early_stopping_patience": 3,
115
+ "early_stopping_threshold": 0.0
116
+ },
117
+ "attributes": {
118
+ "early_stopping_patience_counter": 0
119
+ }
120
+ },
121
+ "TrainerControl": {
122
+ "args": {
123
+ "should_epoch_stop": false,
124
+ "should_evaluate": false,
125
+ "should_log": false,
126
+ "should_save": true,
127
+ "should_training_stop": true
128
+ },
129
+ "attributes": {}
130
+ }
131
+ },
132
+ "total_flos": 1869091941185280.0,
133
+ "train_batch_size": 128,
134
+ "trial_name": null,
135
+ "trial_params": null
136
+ }
checkpoint-225/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60ca23d105e7290f4c5f2500d68d89996b07cd664a889d31bd6c74f4043d1f02
3
+ size 5265
classification_report.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Classification Report ===
2
+ precision recall f1-score support
3
+
4
+ chitchat 0.8822 0.8912 0.8866 294
5
+ simple 0.8893 0.8801 0.8847 292
6
+ complex 1.0000 1.0000 1.0000 46
7
+
8
+ accuracy 0.8940 632
9
+ macro avg 0.9238 0.9238 0.9238 632
10
+ weighted avg 0.8940 0.8940 0.8940 632
11
+
12
+
13
+ === Confusion Matrix ===
14
+ Rows: truth, Cols: pred, Labels: ['chitchat', 'simple', 'complex']
15
+ [[262 32 0]
16
+ [ 35 257 0]
17
+ [ 0 0 46]]
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "chitchat",
16
+ "1": "simple",
17
+ "2": "complex"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "is_decoder": false,
22
+ "label2id": {
23
+ "chitchat": 0,
24
+ "complex": 2,
25
+ "simple": 1
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "bert",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 0,
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.3.0",
36
+ "type_vocab_size": 2,
37
+ "use_cache": false,
38
+ "vocab_size": 32000
39
+ }
meta.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "dbmdz/bert-base-turkish-cased",
3
+ "architecture": "AutoModelForSequenceClassification → 3-class router",
4
+ "num_labels": 3,
5
+ "label_names": [
6
+ "chitchat",
7
+ "simple",
8
+ "complex"
9
+ ],
10
+ "val_accuracy": 0.8939873417721519,
11
+ "val_macro_f1": 0.9237714697319616,
12
+ "n_train": 5683,
13
+ "n_val": 632
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d15e24d35d8168667200ec1fdbf85419fb9ba4ac4ee384e91cdcc1c06222e86
3
+ size 442502116
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": false,
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "max_len": 512,
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60ca23d105e7290f4c5f2500d68d89996b07cd664a889d31bd6c74f4043d1f02
3
+ size 5265