CoolFace
Modelpublic

kaixkhazaki/turkish-zeroshot

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes56downloads
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. -->

turkish-zeroshot

This model is a fine-tuned version of dbmdz/bert-base-turkish-cased onfacebook/xnli tr dataset. It achieves the following results on the evaluation set:

  • Loss: 0.5637
  • Accuracy: 0.7731
  • F1: 0.7740
  • Precision: 0.7804
  • Recall: 0.7731

Usage

python
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("zero-shot-classification", model="kaixkhazaki/turkish-zeroshot")

#Enter your text and possible candidates of classification
sequence = "Bu laptopun pil ömrü ne kadar dayanıyor?"
candidate_labels = ["ürün özellikleri", "soru", "bilgi talebi", "laptop", "teknik destek"]

pipe(
    sequence,
    candidate_labels,
)

>>
{'sequence': 'Bu laptopun pil ömrü ne kadar dayanıyor?',
 'labels': ['ürün özellikleri',
  'soru',
  'bilgi talebi',
  'laptop',
  'teknik destek'],
 'scores': [0.296932578086853,
  0.2693993151187897,
  0.20735479891300201,
  0.12200483679771423,
  0.10430848598480225]}

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: 5e-05
  • trainbatchsize: 64
  • evalbatchsize: 32
  • seed: 42
  • optimizer: Use adamwtorch with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • lrschedulertype: cosine
  • lrschedulerwarmup_steps: 500
  • num_epochs: 5

Training results

Training LossEpochStepValidation LossAccuracyF1PrecisionRecall
1.090.03262001.09500.37590.35340.39660.3759
0.93770.06524000.88170.60920.60590.64990.6092
0.82770.09786000.75180.67990.68010.69040.6799
0.77710.13048000.72740.69840.69910.71380.6984
0.76980.163010000.69280.70.70150.71110.7
0.76190.195612000.68200.71610.71660.73130.7161
0.74530.228214000.66140.72050.72170.73070.7205
0.72870.260816000.65890.72090.72040.73460.7209
0.71680.293418000.66940.71570.71570.73110.7157
0.69230.325920000.66550.71650.71670.73120.7165
0.73480.358522000.65940.72210.72070.73660.7221
0.70220.391124000.67570.73170.73090.75360.7317
0.69680.423726000.64480.72970.73050.74840.7297
0.70110.456328000.61690.73980.74030.74580.7398
0.69490.488930000.62000.74820.74830.75300.7482
0.70420.521532000.62670.74020.74060.75920.7402
0.68840.554134000.62220.74940.74870.75840.7494
0.6550.586736000.64600.73370.73330.74850.7337
0.67450.619338000.61330.75380.75370.75740.7538
0.68090.651940000.63380.74420.74360.75440.7442
0.66740.684542000.61180.74940.75060.75880.7494
0.68150.717144000.61730.74620.74770.75870.7462
0.6520.749746000.59690.76590.76560.76910.7659
0.65170.782348000.61700.75060.75150.76150.7506
0.63350.814950000.57670.77310.77360.77630.7731
0.63620.847552000.62730.75420.75500.76760.7542
0.66380.880154000.57730.77430.77530.77950.7743
0.63690.912656000.59800.75340.75520.76730.7534
0.65510.945258000.59270.75260.75460.77320.7526
0.65490.977860000.56730.76180.76340.77090.7618
0.53141.010462000.62030.75900.75890.76700.7590
0.51271.043064000.59390.76630.76650.76970.7663
0.54051.075666000.60120.75940.76050.77140.7594
0.56181.108268000.60690.76140.76210.76820.7614
0.55091.140870000.62260.75380.75520.77540.7538
0.55011.173472000.57930.77030.77150.77650.7703
0.54761.206074000.59690.76270.76170.77030.7627
0.54341.238676000.59800.75780.75900.77530.7578
0.56061.271278000.63190.75180.75020.76590.7518
0.54491.303880000.59450.75740.75780.76520.7574
0.50991.336482000.68240.74260.74270.76850.7426
0.54061.369084000.58310.76950.77020.77370.7695
0.55771.401686000.62640.74900.74830.76870.7490
0.55021.434288000.58380.76470.76440.76890.7647
0.5271.466890000.58370.76750.76790.77050.7675
0.50661.499392000.58840.76510.76600.77280.7651
0.53911.531994000.57540.76590.76650.76970.7659
0.52761.564596000.57430.77950.78030.78300.7795
0.53291.597198000.58650.75700.75850.76910.7570
0.54671.6297100000.62290.75860.75980.76950.7586
0.53731.6623102000.60060.76020.76100.76650.7602
0.5171.6949104000.60370.75020.75170.76680.7502
0.50681.7275106000.59450.76550.76590.77290.7655
0.54911.7601108000.61040.76020.76150.77300.7602
0.52821.7927110000.58290.76590.76660.77810.7659
0.53591.8253112000.61020.76220.76200.77540.7622
0.5491.8579114000.56780.76430.76520.77240.7643
0.5251.8905116000.61330.76270.76350.77910.7627
0.52971.9231118000.58930.76750.76790.77450.7675
0.54381.9557120000.56370.77310.77400.78040.7731
0.54261.9883122000.59370.76220.76240.77310.7622
0.38922.0209124000.61670.77190.77250.77660.7719
0.36182.0535126000.70190.76870.76950.77590.7687
0.3922.0860128000.71790.75340.75510.77950.7534
0.39122.1186130000.69690.75180.75260.77150.7518
0.37982.1512132000.64870.77150.77250.78000.7715
0.38562.1838134000.61960.76710.76770.77090.7671
0.3582.2164136000.71440.75740.75740.77050.7574
0.38542.2490138000.67090.75980.75980.77530.7598
0.36872.2816140000.64480.76310.76330.77050.7631
0.37462.3142142000.66170.77230.77280.77850.7723
0.37982.3468144000.64680.77270.77360.78140.7727
0.37792.3794146000.65030.76910.76930.77730.7691
0.38712.4120148000.66310.76180.76140.77020.7618
0.38592.4446150000.68250.76350.76410.77720.7635
0.40492.4772152000.66470.76550.76530.77490.7655
0.38122.5098154000.70080.75580.75630.76970.7558
0.38742.5424156000.68080.76710.76770.77640.7671

Framework versions

  • Transformers 4.48.0.dev0
  • Pytorch 2.4.1+cu121
  • Datasets 3.1.0
  • Tokenizers 0.21.0