FFZG-cleopatra/M2SA-text-only

Model

0

stars

3

commits

1

repos using this model

1

linked in READMEs

Jun 5, 2024

updated

endpoints_compatible
generated_from_trainer
safetensors
text-classification
text-embeddings-inference
transformers
xlm-roberta
Browse cluster: RoBERTa Text Classification & NLP

README

cardiffnlp-twitter-xlmr-finetuned-txtnly-all-42

This model is a fine-tuned version of cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual on the all dataset. It achieves the following results on the evaluation set:

  • Loss: 0.6972
  • Precision: 0.6687
  • Recall: 0.6729
  • F1: 0.6703

Model description

More information needed

Usage

To use the model use the following script. Kindly set the device based on availability of the GPU.

from transformers import (pipeline)

analyzer = pipeline(
    "sentiment-analysis", model="FFZG-cleopatra/M2SA-text-only"
)

input_text = "I feel amazing today."
print(analyzer(input_text)[0]["label"])

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
  • train_batch_size: 16
  • eval_batch_size: 16
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 50.0
  • mixed_precision_training: Native AMP

Training results

Training LossEpochStepValidation LossPrecisionRecallF1
0.61220.065000.85420.65590.49050.4841
0.54970.1210000.80370.70440.60700.6209
0.54040.1815000.97000.55910.41760.3652
0.51650.2420000.74490.73490.52970.5369
0.51360.325000.78850.67660.50250.5001
0.50720.3630000.81240.60760.61320.5917
0.50110.4235000.87670.64270.59870.5784
0.50210.4840000.79580.68480.63620.6503
0.49460.5445000.80450.72200.49680.4983
0.49280.650000.78030.75820.53810.5503
0.50080.6655000.75070.44070.47980.4594
0.49660.7260000.82390.61400.67670.6311
0.47910.7865000.70280.65680.52060.5413
0.4940.8470000.80340.66600.51890.5227
0.48610.975000.90030.57810.47850.4541
0.48040.9680000.77400.62390.57750.5792
0.46141.0285000.73970.68480.63120.6471
0.43151.0890000.78890.66420.60350.6149
0.45061.1495000.87840.63870.50170.4968
0.44891.2100000.79940.53400.49640.4949
0.44661.26105000.81100.57760.47350.4464
0.43191.32110000.80690.66120.53990.5481
0.42431.38115000.79420.59480.57050.5797
0.43981.44120000.97380.53700.60700.5247
0.45261.5125000.71960.70460.54780.5590
0.45291.56130000.80500.64190.57310.5863
0.4461.62135000.75640.65210.59120.6107
0.43151.68140000.75150.64750.60690.6212
0.44641.74145000.83080.62760.55130.5599
0.44231.8150000.79820.61760.59370.5992
0.45511.86155000.82230.63560.59340.6020
0.44081.92160000.76910.60880.51470.5131
0.43891.98165000.69720.66870.67290.6703
0.38862.04170000.77980.61260.54370.5543
0.38832.1175000.83850.59480.62250.5978
0.40112.16180000.77550.65510.57870.5915
0.39922.22185000.78860.55820.55190.5472
0.3932.28190000.76600.59010.59230.5889
0.38912.34195000.77020.57920.53310.5354
0.41192.41200000.85450.54060.52430.5111
0.39812.47205000.86410.56950.55360.5364
0.42.53210000.80450.59880.58450.5822
0.40592.59215000.80230.63010.55490.5696
0.38052.65220000.82420.56330.53630.5387
0.41262.71225000.88660.56300.52440.5253
0.39592.77230000.92280.64860.55700.5716
0.39722.83235000.82970.64150.63360.6330
0.37792.89240000.86830.60230.59200.5897
0.39512.95245000.86280.58920.51160.5125
0.39163.01250000.92030.63050.50260.5024
0.35243.07255000.98250.60890.50390.5011
0.33323.13260000.87550.59800.57120.5814
0.35173.19265000.99220.67010.59410.6181
0.35343.25270000.95730.56530.51750.5243
0.35443.31275000.98270.57390.55310.5551
0.35263.37280000.95170.60190.47370.4657
0.34483.43285000.95590.57440.51380.5232
0.36623.49290000.84700.64170.61760.6173
0.35023.55295000.85240.66060.57760.5912
0.37333.61300000.92100.55780.55550.5466
0.34243.67305000.92950.58630.61000.5809
0.35913.73310000.97070.58280.47690.4588
0.36343.79315000.85240.61360.56810.5752

Framework versions

  • Transformers 4.38.2
  • Pytorch 2.2.1+cu121
  • Datasets 2.18.0
  • Tokenizers 0.15.2

Contributors

thak123

3 commits

FFZG-cleopatra/M2SA-text-only

Model

0

stars

3

commits

1

repos using this model

1

linked in READMEs

Jun 5, 2024

updated

endpoints_compatible
generated_from_trainer
safetensors
text-classification
text-embeddings-inference
transformers
xlm-roberta
Browse cluster: RoBERTa Text Classification & NLP

README

cardiffnlp-twitter-xlmr-finetuned-txtnly-all-42

This model is a fine-tuned version of cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual on the all dataset. It achieves the following results on the evaluation set:

  • Loss: 0.6972
  • Precision: 0.6687
  • Recall: 0.6729
  • F1: 0.6703

Model description

More information needed

Usage

To use the model use the following script. Kindly set the device based on availability of the GPU.

from transformers import (pipeline)

analyzer = pipeline(
    "sentiment-analysis", model="FFZG-cleopatra/M2SA-text-only"
)

input_text = "I feel amazing today."
print(analyzer(input_text)[0]["label"])

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
  • train_batch_size: 16
  • eval_batch_size: 16
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 50.0
  • mixed_precision_training: Native AMP

Training results

Training LossEpochStepValidation LossPrecisionRecallF1
0.61220.065000.85420.65590.49050.4841
0.54970.1210000.80370.70440.60700.6209
0.54040.1815000.97000.55910.41760.3652
0.51650.2420000.74490.73490.52970.5369
0.51360.325000.78850.67660.50250.5001
0.50720.3630000.81240.60760.61320.5917
0.50110.4235000.87670.64270.59870.5784
0.50210.4840000.79580.68480.63620.6503
0.49460.5445000.80450.72200.49680.4983
0.49280.650000.78030.75820.53810.5503
0.50080.6655000.75070.44070.47980.4594
0.49660.7260000.82390.61400.67670.6311
0.47910.7865000.70280.65680.52060.5413
0.4940.8470000.80340.66600.51890.5227
0.48610.975000.90030.57810.47850.4541
0.48040.9680000.77400.62390.57750.5792
0.46141.0285000.73970.68480.63120.6471
0.43151.0890000.78890.66420.60350.6149
0.45061.1495000.87840.63870.50170.4968
0.44891.2100000.79940.53400.49640.4949
0.44661.26105000.81100.57760.47350.4464
0.43191.32110000.80690.66120.53990.5481
0.42431.38115000.79420.59480.57050.5797
0.43981.44120000.97380.53700.60700.5247
0.45261.5125000.71960.70460.54780.5590
0.45291.56130000.80500.64190.57310.5863
0.4461.62135000.75640.65210.59120.6107
0.43151.68140000.75150.64750.60690.6212
0.44641.74145000.83080.62760.55130.5599
0.44231.8150000.79820.61760.59370.5992
0.45511.86155000.82230.63560.59340.6020
0.44081.92160000.76910.60880.51470.5131
0.43891.98165000.69720.66870.67290.6703
0.38862.04170000.77980.61260.54370.5543
0.38832.1175000.83850.59480.62250.5978
0.40112.16180000.77550.65510.57870.5915
0.39922.22185000.78860.55820.55190.5472
0.3932.28190000.76600.59010.59230.5889
0.38912.34195000.77020.57920.53310.5354
0.41192.41200000.85450.54060.52430.5111
0.39812.47205000.86410.56950.55360.5364
0.42.53210000.80450.59880.58450.5822
0.40592.59215000.80230.63010.55490.5696
0.38052.65220000.82420.56330.53630.5387
0.41262.71225000.88660.56300.52440.5253
0.39592.77230000.92280.64860.55700.5716
0.39722.83235000.82970.64150.63360.6330
0.37792.89240000.86830.60230.59200.5897
0.39512.95245000.86280.58920.51160.5125
0.39163.01250000.92030.63050.50260.5024
0.35243.07255000.98250.60890.50390.5011
0.33323.13260000.87550.59800.57120.5814
0.35173.19265000.99220.67010.59410.6181
0.35343.25270000.95730.56530.51750.5243
0.35443.31275000.98270.57390.55310.5551
0.35263.37280000.95170.60190.47370.4657
0.34483.43285000.95590.57440.51380.5232
0.36623.49290000.84700.64170.61760.6173
0.35023.55295000.85240.66060.57760.5912
0.37333.61300000.92100.55780.55550.5466
0.34243.67305000.92950.58630.61000.5809
0.35913.73310000.97070.58280.47690.4588
0.36343.79315000.85240.61360.56810.5752

Framework versions

  • Transformers 4.38.2
  • Pytorch 2.2.1+cu121
  • Datasets 2.18.0
  • Tokenizers 0.15.2

Contributors

thak123

3 commits