CoolFace
Modelpublic

kenhktsui/llm-data-textbook-quality-classifier-v1

sourceHugging Facemitupdated 2y agoView on Hugging Face
10likes10downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

2024-05-19: v2 is released -> llm-data-textbook-quality-fasttext-classifier-v2

A more optimized model is released -> kenhktsui/llm-data-textbook-quality-fasttext-classifier-v1

llm-data-textbook-quality-classifier-v1

This model can classify if a text is of textbook quality data. It can be used as a filter for data curation when training a LLM. Please note textbook quality is a subset of high quality.

Benchmark

image/png

The classifier aligns with the expectation. Textbook category scores the highest, reflecting the effectiveness of this model. Wikipedia scores lower because it is not textbook after all. Web scores the lowest.

This model is a fine-tuned version of FacebookAI/xlm-roberta-base on an unknown dataset. It achieves the following results on the evaluation set:

  • Loss: 0.2689
  • Accuracy: 0.8833
  • Precision: 0.7551
  • Recall: 0.7598
  • F1: 0.7574

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • trainbatchsize: 16
  • evalbatchsize: 16
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • num_epochs: 1

Training results

Training LossEpochStepAccuracyF1Validation LossPrecisionRecall
0.47450.015000.80760.61810.43270.58980.6493
0.40880.0210000.83460.55220.42870.78700.4254
0.38110.0215000.82860.66510.37410.62570.7098
0.37620.0320000.850.65290.34130.73340.5884
0.36470.0425000.84270.66320.38520.68150.6460
0.34950.0530000.86290.69870.32530.73850.6631
0.35080.0635000.83350.69670.36050.61860.7973
0.33420.0640000.85530.70750.32730.68650.7298
0.3410.0745000.86020.66790.33200.77590.5863
0.33440.0850000.85310.69160.34410.69640.6868
0.33410.0955000.85360.70270.32650.68490.7214
0.33190.160000.85990.70810.32660.70760.7085
0.32590.165000.81360.69070.39080.57360.8678
0.33910.1170000.86420.67700.33380.78790.5934
0.32070.1275000.86680.72240.30350.72210.7227
0.31910.1380000.85430.71530.31790.67300.7631
0.31420.1485000.86790.70520.31010.75850.6589
0.31950.1490000.86360.72540.34330.70120.7515
0.31960.1595000.87070.71910.30480.75060.6902
0.31760.16100000.85970.72710.31770.68140.7794
0.32180.17105000.87230.69930.32120.80310.6193
0.31750.18110000.86010.72390.33660.68710.7648
0.32960.18115000.85260.71900.32180.66220.7865
0.32490.19120000.87310.70810.29260.78960.6418
0.31410.2125000.87410.72150.30350.76830.6802
0.31260.21130000.86590.72310.31270.71620.7302
0.32040.22135000.86650.72330.34560.71900.7277
0.31080.22140000.86740.72140.30180.72690.7160
0.31140.23145000.87260.70160.29670.80020.6247
0.30710.24150000.87680.72110.29040.78860.6643
0.29650.25155000.86740.73100.31260.71170.7515
0.30220.26160000.87380.70770.28870.79580.6372
0.31010.26165000.85590.72510.33120.66830.7923
0.31540.27170000.85750.73040.32210.66850.8048
0.30410.28175000.87540.72480.28640.77040.6843
0.30930.29180000.86030.72920.31010.68130.7844
0.30060.3185000.87530.71110.30080.79990.6401
0.31080.3190000.86890.73160.29110.71850.7452
0.30710.31195000.87930.73660.28390.77250.7039
0.30020.32200000.8520.72390.33910.65500.8090
0.3010.33205000.87690.73960.28960.75050.7289
0.30750.34210000.87850.74020.28910.75950.7219
0.29220.34215000.83930.71640.40940.62100.8465
0.29730.35220000.87870.74160.29620.75790.7260
0.29870.36225000.87110.74300.29830.71190.7769
0.30710.37230000.87390.74070.31670.73060.7510
0.28460.38235000.88010.74010.29010.77070.7118
0.29240.38240000.8630.72990.31550.69220.7719
0.29380.39245000.87240.73680.29730.72900.7448
0.29170.4250000.87720.74360.29390.74460.7427
0.2940.41255000.87720.73940.29440.75280.7264
0.29790.42260000.87740.74210.28190.74870.7356
0.28840.42265000.8730.73940.29320.72780.7515
0.29920.43270000.86550.74190.30530.68720.8061
0.30180.44275000.87880.72960.27810.78450.6818
0.3050.45280000.87850.74080.27600.75840.7239
0.29180.46285000.87880.73810.28260.76590.7123
0.29980.46290000.8740.74030.28930.73190.7490
0.28750.47295000.88030.74220.28910.76750.7185
0.29460.48300000.27810.87980.74150.76560.7534
0.29070.49305000.28600.87520.72800.76560.7463
0.29810.5310000.30120.87320.72760.75310.7402
0.29480.5315000.27770.87920.78940.67680.7288
0.29330.51320000.28390.87730.74280.74690.7449
0.28910.52325000.27740.87950.76780.71310.7395
0.28690.53330000.27900.87640.74050.74600.7432
0.29070.54335000.28890.87640.75800.71180.7342
0.29120.54340000.28870.88070.74640.76110.7537
0.2830.55345000.27540.88160.78470.69770.7386
0.28770.56350000.30360.87270.72210.76270.7418
0.29230.57355000.28530.87830.76930.70350.7349
0.29020.58360000.28810.87720.74620.73940.7428
0.28630.58365000.28860.87680.73030.77110.7501
0.28370.59370000.27530.88010.75030.74940.7498
0.30210.6375000.28480.87750.73300.76940.7508
0.2910.61380000.27930.880.74230.76520.7536
0.28210.62385000.28670.880.74290.76400.7533
0.28670.62390000.28510.87960.73670.77480.7553
0.28460.63395000.28130.88280.76610.73600.7507
0.28360.64400000.28420.87930.74060.76440.7523
0.28350.65405000.27970.87920.73820.76900.7533
0.28330.66410000.27630.88210.78950.69310.7382
0.27430.66415000.28520.88330.77170.72890.7497
0.29210.67420000.27800.87910.75610.73190.7438
0.2790.68425000.27590.88270.78820.69850.7407
0.27520.69430000.27950.87960.76420.72020.7415
0.29020.7435000.27350.88090.78240.69720.7374
0.28320.7440000.27420.88150.76900.72310.7453
0.27830.71445000.27730.88150.76920.72270.7452
0.28790.72450000.27160.88380.77660.72350.7491
0.28980.73455000.27280.88040.75130.74940.7503
0.27710.74460000.27950.8770.73700.75730.7470
0.27430.74465000.28330.87070.70130.80280.7486
0.28680.75470000.27190.88210.75750.74770.7526
0.27710.76475000.27840.88330.76360.74350.7534
0.28240.77480000.27780.87720.72910.77650.7520
0.28190.78485000.27720.88250.75320.75850.7559
0.27810.78490000.27470.8810.75020.75520.7527
0.28440.79495000.28770.87620.72150.78770.7532
0.27320.8500000.27380.88090.75110.75270.7519
0.26810.81505000.28320.87610.71910.79320.7543
0.27950.82510000.27550.88560.78760.71600.7501
0.26490.82515000.27970.88050.73600.78230.7584
0.27760.83520000.26710.88330.76270.74520.7538
0.27620.84525000.27450.88120.74160.77440.7576
0.28030.85530000.27660.88470.76940.74150.7551
0.26750.86535000.27420.87850.73920.76230.7506
0.27250.86540000.27200.88260.75760.75060.7541
0.26930.87545000.27390.88360.76500.74270.7537
0.27450.88550000.27510.87920.73480.77650.7551
0.2730.89555000.27620.88120.73880.78070.7591
0.26450.9560000.26640.88280.76470.73850.7514
0.26980.9565000.27280.88140.74670.76480.7557
0.27710.91570000.26810.88390.76350.74730.7553
0.26630.92575000.27150.8850.76170.75730.7595
0.25460.93580000.28360.87960.73230.78480.7576
0.27520.94585000.27470.88010.73630.77900.7570
0.26450.94590000.27330.88340.74840.77400.7610
0.25610.95595000.27650.88280.75080.76520.7580
0.27530.96600000.27210.88150.74830.76230.7552
0.2510.97605000.27350.88220.75460.75400.7543
0.27420.98610000.27210.88310.74970.76940.7594
0.27340.98615000.27120.88360.75120.76940.7602
0.27130.99620000.26900.88360.75560.76060.7581
0.27641.0625000.26890.88330.75510.75980.7574

Framework versions

  • Transformers 4.35.2
  • Pytorch 2.1.0+cu121
  • Datasets 2.16.1
  • Tokenizers 0.15.0