File size: 49,250 Bytes
3a38018
 
 
 
 
 
 
 
 
 
 
 
 
 
0cd2fdf
3a38018
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
---
license: llama3.2
language:
- zh
- en
- it
- de
- fr
- ja
- ko
base_model:
- meta-llama/Llama-3.2-3B
- lianghsun/Llama-3.2-Taiwan-3B
datasets:
- DavidLanz/TaiwanChat
- lianghsun/tw-emergency-medicine-bench
- lianghsun/tw-legal-nlp
- lianghsun/tw-legal-synthetic-qa
- lianghsun/tw-law-article-qa
- lianghsun/tw-judgment-qa
- lianghsun/tw-judgment-gist-chat
- lianghsun/tw-bar-examination-2020-chat
- lianghsun/tw-structured-law-article
- lianghsun/tw-judgment-gist-chat
- lianghsun/tw-contract-review-chat
- lianghsun/reasoning-base-20k-chat
- lianghsun/vulnerability-mitigation-qa-zh_tw
- lianghsun/tw-instruct
- rombodawg/Everything_Instruct_Multilingual
- xzuyn/manythings-translations-alpaca
- neural-bridge/rag-dataset-12000
- minyichen/glaive_toolcall_zh_tw
pipeline_tag: text-generation
library_name: transformers
tags:
- Taiwan
- ROC
- zh-tw
- instruct
- chat
- llama3.2
- SLM
model-index:
- name: Llama-3.2-Taiwan-3B-Instruct
  results:
  - task:
      type: text-generation
      name: Single Choice Question
    dataset:
      type: lianghsun/tw-legal-benchmark-v1
      name: tw-legal-benchmark-v1
    metrics:
    - name: single choice
      type: accuracy
      value: 31.1
  - task:
      type: text-generation
      name: Single Choice Question
    dataset:
      type: lianghsun/Formosa-bench
      name: (Society) Formosa Taiwan Knowledge Bench
      config: society
      split: test
      revision: v2024.11.27
    metrics:
    - name: single choice
      type: accuracy
      value: 60.42
  - task:
      type: text-generation
      name: Single Choice Question
    dataset:
      type: lianghsun/Formosa-bench
      name: (Governmnt) Formosa Taiwan Knowledge Bench
      config: governmnt
      split: test
      revision: v2024.11.27
    metrics:
    - name: single choice
      type: accuracy
      value: 44.25
  - task:
      type: text-generation
      name: Single Choice Question
    dataset:
      type: lianghsun/Formosa-bench
      name: (Geography) Formosa Taiwan Knowledge Bench
      config: geography
      split: test
      revision: v2024.11.27
    metrics:
    - name: single choice
      type: accuracy
      value: 47.54
  - task:
      type: text-generation
      name: Single Choice Question
    dataset:
      type: lianghsun/Formosa-bench
      name: (History) Formosa Taiwan Knowledge Bench
      config: history
      split: test
      revision: v2024.11.27
    metrics:
    - name: single choice
      type: accuracy
      value: 60
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (geography_of_taiwan) tmmlu++
      config: geography_of_taiwan
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 36.2
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (dentistry) tmmlu++
      config: dentistry
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 33.83
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (technical) tmmlu++
      config: technical
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 35.07
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (statistics_and_machine_learning) tmmlu++
      config: statistics_and_machine_learning
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 28.57
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (clinical_psychology) tmmlu++
      config: clinical_psychology
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 29.6
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (tve_design) tmmlu++
      config: tve_design
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 38.54
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (three_principles_of_people) tmmlu++
      config: three_principles_of_people
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 48.2
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (introduction_to_law) tmmlu++
      config: introduction_to_law
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 29.96
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (linear_algebra) tmmlu++
      config: linear_algebra
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 21.43
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (agriculture) tmmlu++
      config: agriculture
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 24.5
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (jce_humanities) tmmlu++
      config: jce_humanities
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 38.89
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (music) tmmlu++
      config: music
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 25.9
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (secondary_physics) tmmlu++
      config: secondary_physics
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 33.04
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (physics) tmmlu++
      config: physics
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 27.84
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (advance_chemistry) tmmlu++
      config: advance_chemistry
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 27.64
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (junior_science_exam) tmmlu++
      config: junior_science_exam
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 30.05
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (veterinary_pathology) tmmlu++
      config: veterinary_pathology
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 25.09
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (financial_analysis) tmmlu++
      config: financial_analysis
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 25.13
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (national_protection) tmmlu++
      config: national_protection
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 42.65
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (macroeconomics) tmmlu++
      config: macroeconomics
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 26.76
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (politic_science) tmmlu++
      config: politic_science
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 27.44
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (ttqav2) tmmlu++
      config: ttqav2
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 61.06
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (junior_chinese_exam) tmmlu++
      config: junior_chinese_exam
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 30.86
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (traditional_chinese_medicine_clinical_medicine) tmmlu++
      config: traditional_chinese_medicine_clinical_medicine
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 25.9
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (junior_math_exam) tmmlu++
      config: junior_math_exam
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 21.71
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (auditing) tmmlu++
      config: auditing
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 21.82
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (anti_money_laundering) tmmlu++
      config: anti_money_laundering
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 37.31
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (pharmacology) tmmlu++
      config: pharmacology
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 30.68
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (trust_practice) tmmlu++
      config: trust_practice
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 28.18
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (tve_mathematics) tmmlu++
      config: tve_mathematics
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 18.67
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (human_behavior) tmmlu++
      config: human_behavior
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 32.04
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (pharmacy) tmmlu++
      config: pharmacy
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 22.76
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (tve_chinese_language) tmmlu++
      config: tve_chinese_language
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 36.65
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (optometry) tmmlu++
      config: optometry
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 25.11
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (physical_education) tmmlu++
      config: physical_education
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 30.73
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (organic_chemistry) tmmlu++
      config: organic_chemistry
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 35.78
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (tve_natural_sciences) tmmlu++
      config: tve_natural_sciences
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 33.73
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (education) tmmlu++
      config: education
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 37.9
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (mechanical) tmmlu++
      config: mechanical
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 42.37
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (taiwanese_hokkien) tmmlu++
      config: taiwanese_hokkien
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 14.73
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (nautical_science) tmmlu++
      config: nautical_science
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 30.49
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (business_management) tmmlu++
      config: business_management
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 39.57
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (logic_reasoning) tmmlu++
      config: logic_reasoning
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 27.34
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (marketing_management) tmmlu++
      config: marketing_management
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 39.78
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (economics) tmmlu++
      config: economics
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 25.95
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (basic_medical_science) tmmlu++
      config: basic_medical_science
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 28.41
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (occupational_therapy_for_psychological_disorders) tmmlu++
      config: occupational_therapy_for_psychological_disorders
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 35.73
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (general_principles_of_law) tmmlu++
      config: general_principles_of_law
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 31.13
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (junior_chemistry) tmmlu++
      config: junior_chemistry
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 24.88
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (veterinary_pharmacology) tmmlu++
      config: veterinary_pharmacology
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 36.3
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (educational_psychology) tmmlu++
      config: educational_psychology
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 33.52
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (finance_banking) tmmlu++
      config: finance_banking
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 32.59
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (official_document_management) tmmlu++
      config: official_document_management
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 32.43
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (fire_science) tmmlu++
      config: fire_science
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 30.65
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (junior_social_studies) tmmlu++
      config: junior_social_studies
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 47.62
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (accounting) tmmlu++
      config: accounting
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 20.94
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (engineering_math) tmmlu++
      config: engineering_math
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 27.18
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (education_(profession_level)) tmmlu++
      config: education_(profession_level)
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 24.07
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (chinese_language_and_literature) tmmlu++
      config: chinese_language_and_literature
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 27.64
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (management_accounting) tmmlu++
      config: management_accounting
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 24.19
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (culinary_skills) tmmlu++
      config: culinary_skills
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 39.38
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (administrative_law) tmmlu++
      config: administrative_law
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 25.71
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (insurance_studies) tmmlu++
      config: insurance_studies
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 33.42
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (real_estate) tmmlu++
      config: real_estate
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 22.83
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (computer_science) tmmlu++
      config: computer_science
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 31.61
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (taxation) tmmlu++
      config: taxation
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 27.47
  - task:
      type: question-answering
      name: Single Choice Question
    dataset:
      type: ikala/tmmluplus
      name: (trade) tmmlu++
      config: trade
      split: test
      revision: c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
    metrics:
    - name: single choice
      type: accuracy
      value: 20.32
widget:
- text: 中華民國憲法第一條
metrics:
- accuracy
---

# Model Card for lianghsun/Llama-3.2-Taiwan-3B-Instruct

![image/png](https://cdn-uploads.huggingface.co/production/uploads/618dc56cbc345ca7bf95f3cd/v_cfMxTtVE6_eh0rzcy5L.png)
*圖像生成來自 [OpenArt](https://openart.ai/home):An anime-style 🦙 standing proudly atop the summit of Taiwan’s [Yushan (Jade Mountain)](https://zh.wikipedia.org/wiki/%E7%8E%89%E5%B1%B1), gazing forward.*

採用 [lianghsun/Llama-3.2-Taiwan-3B](https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B) 為[基礎模型(foundation model)](https://en.wikipedia.org/wiki/Foundation_model),使用大量[中華民國台灣](https://zh.wikipedia.org/zh-tw/%E8%87%BA%E7%81%A3)的繁體中文對話集和多國語言對話集進行模型[指令微調(instruction fine-tuning)](https://www.ibm.com/topics/instruction-tuning)和多輪迭代[直接偏好優化(direct preference optimization, DPO)](https://arxiv.org/abs/2305.18290),旨在訓練出具有中華民國台灣知識及風格的[小語言模型(small langugae model, SLM)](https://www.ibm.com/think/topics/small-language-models)之對話模型。

<details>
  <summary><b>Model Change Log</b></summary>
  
  | Update Date  | Model Version         | Key Changes                         |
  |--------------|-----------------------|-------------------------------------|
  | 2025/01/01   | v2025.01.01           | Fine-tuning is based on the [foundation model](https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B) version v2024.12.28, and it uses self-prepared instruction datasets for this round of fine-tuning. |
  | 2024/12/13   | v2024.12.13           | Completed 1st round DPO training (10/10 epochs). Preparing for next round DPO training. |
  | 2024/11/27   | v2024.11.27           | Completed SFT training (5/5 epochs). Preparing for multi-round DPO training. |
  | 2024/11/25   | v2024.11.25           | Updated model version to v2024.11.25, training progressed to (3/5) epochs. Still in SFT stage, DPO training remains pending. |
  | 2024/11/22   | v2024.11.22           | Initial upload: Model version v2024.11.22, training completed up to (1/5) epochs. Currently trained only on SFT, DPO training not yet performed. |
  
</details>

## Model Details

### Model Description

<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [Huang Liang Hsun](https://www.linkedin.com/in/lianghsunhuang)
- **Model type:** LlamaForCausalLM
- **Language(s) (NLP):** Tranditional Chinese (zh-tw), English
- **License:** [llama3.2](https://huggingface.co/meta-llama/Llama-3.2-1B/blob/main/LICENSE.txt)
- **Fine-tuned from model:** [lianghsun/Llama-3.2-Taiwan-3B](https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B)

### Model Sources

<!-- Provide the basic links for the model. -->
- **Repository:** [lianghsun/Llama-3.2-Taiwan-3B](https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B)
- **Paper:** (WIP, show me the time)
- **Playground:** [🦉 Tawian SmolLM Chat](https://huggingface.co/spaces/lianghsun/tw-smol-chat) 👈🏼 來玩看看 😻
- **Demo:** 
```yaml
user: 請介紹台灣
assistant: 台灣,位於亞洲東部,地處太平洋與菲律賓海之間,面積約36,000平方公里,人口約2,300萬,是民主自由的國家,經濟實力強勁,擁有世界第10大經濟體。台灣以美食、文化、自然美景著稱,還有豐富的歷史與傳統,吸引全球遊客。台灣語為官方語言,但中文也廣為使用,英語也常用於國際交流。台灣政治多元,執政黨為民進黨,台灣是全球科技產業的重鎮,擁有先進的製造業與服務業。台灣氣候溫暖潮濕,四季分明,夏季炎熱,冬季涼爽,雨季則在5月至10月。台灣的美食以小吃為主,如滷肉飯、珍珠
```

## Uses

<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->

### Direct Use

<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
本模型已經具備有繁體中文對話能力,使用者可以直接部署推論端點使用。

### Downstream Use

<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
若需強化模型在特定領域的知識,可透過微調進一步提升其性能與專業能力。

### Out-of-Scope Use

<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
本模型旨在提供資訊,不參與任何政治或法律問題的評斷或立場表達。

## Bias, Risks, and Limitations

<!-- This section is meant to convey both technical and sociotechnical limitations. -->
語言模型的生成內容可能因訓練集的多樣性而帶有偏見、特定立場,或包含與事實不符的言論,請使用者務必在使用過程中仔細確認內容的準確性與中立性。

### Recommendations

<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.

## How to Get Started with the Model

要使用 [vLLM Docker image](https://docs.vllm.ai/en/latest/serving/deploying_with_docker.html) 來啟動此模型,您可以按照以下操作:
```bash
docker run --runtime nvidia --gpus all \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HUGGING_FACE_HUB_TOKEN=<secret>" \
    -p 8000:8000 \
    --ipc=host \
    vllm/vllm-openai:latest \
    --model lianghsun/Llama-3.2-Taiwan-3B-Instruct
```

請注意,如果想要使用不同版本的 checkpoint,請加上 `--revision <tag_name>` 
```bash
docker run --runtime nvidia --gpus all \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HUGGING_FACE_HUB_TOKEN=<secret>" \
    -p 8000:8000 \
    --ipc=host \
    vllm/vllm-openai:latest \
    --model lianghsun/Llama-3.2-Taiwan-3B-Instruct --revision <tag_name>
```

## Training Details

### Training Data

<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->

<details>
  <summary><b>繁體中文對話資料集</b></summary>
  
  - [lianghsun/tw-legal-nlp](https://huggingface.co/datasets/lianghsun/tw-legal-nlp)
  - [lianghsun/tw-legal-synthetic-qa](https://huggingface.co/datasets/lianghsun/tw-legal-synthetic-qa)
  - [lianghsun/tw-law-article-qa](https://huggingface.co/datasets/lianghsun/tw-law-article-qa)
  - [lianghsun/tw-judgment-qa](https://huggingface.co/datasets/lianghsun/tw-judgment-qa)
  - [lianghsun/tw-bar-examination-2020-chat](https://huggingface.co/datasets/lianghsun/tw-bar-examination-2020-chat)
  - [lianghsun/tw-structured-law-article](https://huggingface.co/datasets/lianghsun/tw-structured-law-article)
  - [lianghsun/tw-judgment-gist-chat](https://huggingface.co/datasets/lianghsun/tw-judgment-gist-chat)
  - [lianghsun/vulnerability-mitigation-qa-zh_tw](https://huggingface.co/datasets/lianghsun/vulnerability-mitigation-qa-zh_tw)
  - [lianghsun/tw-legal-qa-chat](https://huggingface.co/datasets/lianghsun/tw-legal-qa-chat)
  - [lianghsun/reasoning-base-20k-chat](https://huggingface.co/datasets/lianghsun/reasoning-base-20k-chat)
  - [lianghsun/tw-contract-review-chat](https://huggingface.co/datasets/lianghsun/tw-contract-review-chat)
  - [lianghsun/tw-legal-methodology-chat](https://huggingface.co/datasets/lianghsun/tw-legal-methodology-chat)
  - [minyichen/glaive_toolcall_zh_tw](https://huggingface.co/datasets/minyichen/glaive_toolcall_zh_tw)
  
</details>

<details>
  <summary><b>多國語系對話資料集</b></summary>
  
  - [rombodawg/Everything_Instruct_Multilingual](https://huggingface.co/datasets/rombodawg/Everything_Instruct_Multilingual)
  - [xzuyn/manythings-translations-alpaca](https://huggingface.co/datasets/xzuyn/manythings-translations-alpaca)
  - [neural-bridge/rag-dataset-12000](https://huggingface.co/datasets/neural-bridge/rag-dataset-12000)

</details>

### Training Procedure

<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->

#### Preprocessing

(WIP)

#### Training Hyperparameters

<details>
  <summary><b>SFT stage for v2024.11.27</b></summary>

  **Note:** 以下包含 `v2024.11.22``v2025.11.25` 的超參數設定
  - **learning_rate:** 5e-05
  - **min_learning_rate:** 5e-07
  - **train_batch_size:** 105
  - **seed:** 42
  - **distributed_type:** multi-GPU
  - **num_devices:** 4
  - **gradient_accumulation_steps:** 50
  - **total_train_batch_size:** 21,000
  - **optimizer:** Adam with betas=(0.9,0.999) and epsilon=1e-08
  - **lr_scheduler_type:** cosine
  - **lr_scheduler_warmup_ratio:** 0.01
  - **num_epochs:** 5.0
  - **global_step:** 590
</details>

#### Speeds, Sizes, Times

<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
<details>
  <summary><b>SFT stage for v2024.11.27</b></summary>

  **Note:** 以下包含 `v2024.11.22` 和 `v2025.11.25` 的超參數設定
  - **Duration**: 5 days, 16:15:11.17
  - **Train runtime**: 490,511.1789
  - **Train samples per second**: 25.37
  - **Train steps per second**: 0.001
  - **Total training FLOPs**: 26,658,386,120,540,160
  - **Train loss**: 0.8533
</details>

## Evaluation

<!-- This section describes the evaluation protocols and provides the results. -->

### Testing Data, Factors & Metrics

<details>
  <summary><b>Formosa Taiwan Knowledge Bench</b></summary>
  
  #### Testing Data
  
  <!-- This should link to a Dataset Card if possible. -->
  
  [lianghsun/Formosa-bench](https://huggingface.co/datasets/lianghsun/Formosa-bench)
  
  #### Factors
  
  <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
  
  [More Information Needed]
  
  #### Metrics
  
  <!-- These are the evaluation metrics being used, ideally with a description of why. -->
  
  [More Information Needed]
  
  ### Results
  
  [More Information Needed]
  
  #### Summary

</details>

<details>
  <summary><b>lianghsun/tw-legal-benchmark-v1</b></summary>
  
  #### Testing Data
  
  <!-- This should link to a Dataset Card if possible. -->
  
  - **Dataset:** [lianghsun/tw-legal-benchmark-v1](https://huggingface.co/datasets/lianghsun/tw-legal-benchmark-v1)
  - **Revision:** 66c3a5f3ff2298f6a1cf23201070b5317bdd1893
  
  #### Factors
  
  <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
  
  [More Information Needed]
  
  #### Metrics
  
  <!-- These are the evaluation metrics being used, ideally with a description of why. -->
  Accuracy
  
  ### Results

  - **Model Revision:** v2024.11.27
  
  | **Subset** | **Split** | **Score** |
  |--------------|-------|-------|
  | [lianghsun/tw-legal-benchmark-v1](https://huggingface.co/datasets/lianghsun/tw-legal-benchmark-v1/blob/main/benchmark.csv) | train | 31.1 |
  
  #### Summary

</details>

<details>
  <summary><b>tmmlu++</b></summary>
  
  #### Testing Data
  
  <!-- This should link to a Dataset Card if possible. -->
  - **Dataset:** [ikala/tmmluplus](https://huggingface.co/datasets/ikala/tmmluplus)
  - **Revision:** c0e8ae955997300d5dbf0e382bf0ba5115f85e8c
  
  #### Factors
  
  <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
  [More Information Needed]
  
  #### Metrics
  
  <!-- These are the evaluation metrics being used, ideally with a description of why. -->
  Accuracy
  
  ### Results

  - **Model Revision:** v2024.11.27
  
  | **Subset** | **Split** | **Score** |
  |--------------|-------|-------|
  | [geography_of_taiwan](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/geography_of_taiwan_test.csv) | test | 36.2 |
  | [dentistry](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/dentistry_test.csv) | test | 33.83 |
  | [technical](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/technical_test.csv) | test | 35.07 |
  | [statistics_and_machine_learning](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/statistics_and_machine_learning_test.csv) | test | 28.57 |
  | [clinical_psychology](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/clinical_psychology_test.csv) | test | 29.6 |
  | [tve_design](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/tve_design_test.csv) | test | 38.54 |
  | [three_principles_of_people](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/three_principles_of_people_test.csv) | test | 48.2 |
  | [introduction_to_law](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/introduction_to_law_test.csv) | test | 29.96 |
  | [linear_algebra](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/linear_algebra_test.csv) | test | 21.43 |
  | [agriculture](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/agriculture_test.csv) | test | 24.5 |
  | [jce_humanities](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/jce_humanities_test.csv) | test | 38.89 |
  | [music](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/music_test.csv) | test | 25.9 |
  | [secondary_physics](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/secondary_physics_test.csv) | test | 33.04 |
  | [physics](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/physics_test.csv) | test | 27.84 |
  | [advance_chemistry](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/advance_chemistry_test.csv) | test | 27.64 |
  | [junior_science_exam](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/junior_science_exam_test.csv) | test | 30.05 |
  | [veterinary_pathology](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/veterinary_pathology_test.csv) | test | 25.09 |
  | [financial_analysis](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/financial_analysis_test.csv) | test | 25.13 |
  | [national_protection](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/national_protection_test.csv) | test | 42.65 |
  | [macroeconomics](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/macroeconomics_test.csv) | test | 26.76 |
  | [politic_science](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/politic_science_test.csv) | test | 27.44 |
  | [ttqav2](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/ttqav2_test.csv) | test | 61.06 |
  | [junior_chinese_exam](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/junior_chinese_exam_test.csv) | test | 30.86 |
  | [traditional_chinese_medicine_clinical_medicine](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/traditional_chinese_medicine_clinical_medicine_test.csv) | test | 25.9 |
  | [junior_math_exam](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/junior_math_exam_test.csv) | test | 21.71 |
  | [auditing](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/auditing_test.csv) | test | 21.82 |
  | [anti_money_laundering](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/anti_money_laundering_test.csv) | test | 37.31 |
  | [pharmacology](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/pharmacology_test.csv) | test | 30.68 |
  | [trust_practice](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/trust_practice_test.csv) | test | 28.18 |
  | [tve_mathematics](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/tve_mathematics_test.csv) | test | 18.67 |
  | [human_behavior](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/human_behavior_test.csv) | test | 32.04 |
  | [pharmacy](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/pharmacy_test.csv) | test | 22.76 |
  | [tve_chinese_language](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/tve_chinese_language_test.csv) | test | 36.65 |
  | [optometry](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/optometry_test.csv) | test | 25.11 |
  | [physical_education](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/physical_education_test.csv) | test | 30.73 |
  | [organic_chemistry](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/organic_chemistry_test.csv) | test | 35.78 |
  | [tve_natural_sciences](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/tve_natural_sciences_test.csv) | test | 33.73 |
  | [education](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/education_test.csv) | test | 37.9 |
  | [mechanical](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/mechanical_test.csv) | test | 42.37 |
  | [taiwanese_hokkien](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/taiwanese_hokkien_test.csv) | test | 14.73 |
  | [nautical_science](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/nautical_science_test.csv) | test | 30.49 |
  | [business_management](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/business_management_test.csv) | test | 39.57 |
  | [logic_reasoning](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/logic_reasoning_test.csv) | test | 27.34 |
  | [marketing_management](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/marketing_management_test.csv) | test | 39.78 |
  | [economics](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/economics_test.csv) | test | 25.95 |
  | [basic_medical_science](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/basic_medical_science_test.csv) | test | 28.41 |
  | [occupational_therapy_for_psychological_disorders](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/occupational_therapy_for_psychological_disorders_test.csv) | test | 35.73 |
  | [general_principles_of_law](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/general_principles_of_law_test.csv) | test | 31.13 |
  | [junior_chemistry](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/junior_chemistry_test.csv) | test | 24.88 |
  | [veterinary_pharmacology](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/veterinary_pharmacology_test.csv) | test | 36.3 |
  | [educational_psychology](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/educational_psychology_test.csv) | test | 33.52 |
  | [finance_banking](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/finance_banking_test.csv) | test | 32.59 |
  | [official_document_management](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/official_document_management_test.csv) | test | 32.43 |
  | [fire_science](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/fire_science_test.csv) | test | 30.65 |
  | [junior_social_studies](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/junior_social_studies_test.csv) | test | 47.62 |
  | [accounting](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/accounting_test.csv) | test | 20.94 |
  | [engineering_math](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/engineering_math_test.csv) | test | 27.18 |
  | [education_(profession_level)](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/education_(profession_level)_test.csv) | test | 24.07 |
  | [chinese_language_and_literature](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/chinese_language_and_literature_test.csv) | test | 27.64 |
  | [management_accounting](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/management_accounting_test.csv) | test | 24.19 |
  | [culinary_skills](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/culinary_skills_test.csv) | test | 39.38 |
  | [administrative_law](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/administrative_law_test.csv) | test | 25.71 |
  | [insurance_studies](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/insurance_studies_test.csv) | test | 33.42 |
  | [real_estate](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/real_estate_test.csv) | test | 22.83 |
  | [computer_science](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/computer_science_test.csv) | test | 31.61 |
  | [taxation](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/taxation_test.csv) | test | 27.47 |
  | [trade](https://huggingface.co/datasets/ikala/tmmluplus/blob/main/data/trade_test.csv) | test | 20.32 |

  
  #### Summary
  模型版號 `v2024.11.27`,無論是基礎模型([lianghsun/Llama-3.2-Taiwan-3B](https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B))還是指令微調模型([lianghsun/Llama-3.2-Taiwan-3B-Instruct](https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B-Instruct)),均未接受過 tmmlu++ 資料集的訓練,以確保測試的公平性。經測試,目前該模型在 tmmlu++ 上表現普遍不佳,未達及格分數,可能需要加入專業領域的資料集來強化基礎模型能力。

</details>

## Model Examination [optional]

<!-- Relevant interpretability work for the model goes here -->

[More Information Needed]

## Environmental Impact

<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
- **Hardware Type:** 🚀
- **Hours used:** ⏳⏳⌛
- **Cloud Provider:** [鴻鵠國際股份有限公司](https://www.honghutech.com/)
- **Compute Region:** 🇹🇼
- **Carbon Emitted:** ♻️

## Technical Specifications

### Model Architecture and Objective

[More Information Needed]

### Compute Infrastructure

[More Information Needed]

#### Hardware

- **CPU count:** 32  
- **Logical CPU count:** 64  
- **GPU count:** 4  
- **GPU type:** NVIDIA H100 NVL  

#### Software

- **OS version:** Linux-5.15.0-124-generic-x86_64-with-glibc2.35  
- **Python version:** 3.12.7

## Citation

<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
```bibtex
@misc{lianghsun2024llama32taiwan3binstruct,
  author = {Huang, Liang Hsun},
  title = {Llama-3.2-Taiwan-3B-Instruct},
  year = {2024},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B-Instruct}},
  note = {Accessed: 2024-11-25}
}
```

## Glossary [optional]

<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
N/A

## More Information

### Acknowledge
![image/png](https://cdn-uploads.huggingface.co/production/uploads/618dc56cbc345ca7bf95f3cd/28u7rOLoeUgn67clYEKuZ.png)
在此致謝[鴻鵠國際股份有限公司](https://www.honghutech.com/)蔡長明先生無償地贊助算力,以及曾經幫忙過:廖振翔、chweng、Ben、kevin、Maxxchu、Lam 和陳林彥…等朋友們,才能讓這個模型得以訓練完成,提供算力者乃人生父母。

### Usage
如果你基於此指令模型進行微調,希望能不吝嗇在 **模型卡片(model card)** 裡標註 **基礎模型** 為:
```yaml
base_model: lianghsun/Llama-3.2-Taiwan-3B-Instruct
```

標註和 ❤️ 是給予我們最大的鼓勵,謝謝。😀

## Model Card Authors

[Huang Liang Hsun](https://www.linkedin.com/in/lianghsunhuang)

## Model Card Contact

[Huang Liang Hsun](https://www.linkedin.com/in/lianghsunhuang)

### Framework versions

- Transformers 4.45.2
- Pytorch 2.4.1+cu121
- Datasets 2.21.0
- Tokenizers 0.20.0