CoolFace
Modelpublic

cgoosen/llm_firewall_distilbert-base-uncased

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes6downloads
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. -->

llmfirewalldistilbert-base-uncased

This model was trained from scratch on the None dataset. It achieves the following results on the evaluation set:

  • Loss: 0.1218
  • Accuracy: 0.9451

Latest finetune 5 Dec 2023

{'evalloss': 0.12179878354072571, 'evalaccuracy': 0.9450980392156862, 'evalruntime': 5.8053, 'evalsamplespersecond': 43.925, 'evalstepsper_second': 2.756, 'epoch': 20.0}

Model description

Finetuned distilbert-uncased on prompts that are either malicious or benign.

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: 20

Training results

Training LossEpochStepValidation LossAccuracy
1.31911.0640.59960.7255
0.50652.01280.45360.8
0.41343.01920.38560.8275
0.32944.02560.26540.8824
0.25365.03200.19770.9216
0.20016.03840.16710.9412
0.21447.04480.16700.9373
0.20178.05120.15750.9333
0.18199.05760.18660.9294
0.14310.06400.18340.9373
0.15311.07040.15890.9412
0.146912.07680.13470.9451
0.156813.08320.14250.9451
0.13914.08960.14380.9451
0.188915.09600.13300.9451
0.118516.010240.13230.9451
0.116617.010880.12800.9451
0.147518.011520.12330.9451
0.114519.012160.12250.9451
0.112120.012800.12180.9451

Framework versions

  • Transformers 4.35.2
  • Pytorch 2.1.1
  • Datasets 2.15.0
  • Tokenizers 0.15.0