CoolFace
Modelpublic

av-codes/prompt-injection-detector-v3-mixed

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
1likes22downloads
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. -->

prompt-injection-detector-v3-mixed

This model is a fine-tuned version of distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:

  • Loss: 0.0165
  • Accuracy: 0.9964
  • Precision: 0.9953
  • Recall: 0.9970
  • F1: 0.9961

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: 32
  • evalbatchsize: 64
  • seed: 42
  • optimizer: Use OptimizerNames.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
  • mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyPrecisionRecallF1
0.06550.232010000.06430.98260.98760.97470.9811
0.03950.464020000.03560.98900.99160.98450.9881
0.03470.696130000.03500.98930.99490.98190.9883
0.02480.928140000.02980.99130.99760.98360.9906
0.00901.160150000.03300.99190.98960.99290.9912
0.01491.392160000.02100.99450.99490.99320.9940
0.01811.624170000.02300.99350.99370.99230.9930
0.01641.856180000.02070.99520.99350.99610.9948
0.00492.088290000.01770.99610.99470.99700.9958
0.01032.3202100000.01750.99590.99580.99520.9955
0.01072.5522110000.02220.99460.99520.99320.9942
0.00652.7842120000.01880.99570.99470.99610.9954
0.00203.0162130000.01650.99640.99530.99700.9961
0.00573.2483140000.01770.99610.99470.99700.9958
0.00593.4803150000.01950.99610.99520.99640.9958
0.00323.7123160000.01950.99560.99490.99550.9952
0.00233.9443170000.01880.99610.99580.99580.9958
0.00194.1763180000.01950.99590.99520.99580.9955
0.00094.4084190000.02020.99630.99580.99610.9960
0.00144.6404200000.02130.99630.99580.99610.9960
0.00264.8724210000.02130.99630.99580.99610.9960
0.00235.0215500.02130.99630.99580.99610.9960

Framework versions

  • Transformers 5.9.0
  • Pytorch 2.7.1+cu128
  • Datasets 4.8.5
  • Tokenizers 0.22.2