Edit model card

longformer-fake-review-detector

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

  • Loss: 0.2980
  • Accuracy: 0.9252
  • F1: 0.9155
  • Precision: 0.9774
  • Recall: 0.8609

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
  • train_batch_size: 8
  • eval_batch_size: 16
  • seed: 42
  • gradient_accumulation_steps: 4
  • total_train_batch_size: 32
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 4

Training results

Training Loss Epoch Step Validation Loss Accuracy F1 Precision Recall
No log 1.0 40 0.2606 0.8816 0.8643 0.9380 0.8013
No log 2.0 80 0.5782 0.8100 0.7469 1.0 0.5960
No log 3.0 120 0.2782 0.9097 0.8968 0.9692 0.8344
No log 4.0 160 0.2980 0.9252 0.9155 0.9774 0.8609

Framework versions

  • Transformers 4.39.3
  • Pytorch 2.1.2
  • Datasets 2.18.0
  • Tokenizers 0.15.2
Downloads last month
245
Safetensors
Model size
149M params
Tensor type
F32
·

Finetuned from