CoolFace
Modelpublic

azherali/CodeGenDetect-CodeBert_Lora

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes5downloads
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. -->

CodeGenDetect-CodeBert_Lora

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

  • Loss: 0.0384
  • Accuracy: 0.9907
  • F1: 0.9907
  • Precision: 0.9907
  • Recall: 0.9907

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: 16
  • evalbatchsize: 16
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lrschedulertype: linear
  • lrschedulerwarmup_steps: 500
  • num_epochs: 5
  • mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepAccuracyF1Validation LossPrecisionRecall
0.13810.12840000.95860.95860.16270.95990.9586
0.08210.25680000.97610.97610.10810.97610.9761
0.06670.384120000.97860.97860.10080.97870.9786
0.07540.512160000.98200.98200.07790.98210.9820
0.07760.64200000.98460.98460.06170.98470.9846
0.06430.768240000.98310.98310.07610.98320.9831
0.0640.896280000.98780.98780.04950.98780.9878
0.04771.024320000.98790.98790.04800.98800.9879
0.04271.152360000.98940.98940.04240.98940.9894
0.03811.28400000.98800.98800.04840.98800.9880
0.04231.408440000.99010.99010.03990.99010.9901
0.03891.536480000.98880.98880.05130.98890.9888
0.04161.6640520000.99080.99080.03580.99080.9908
0.03741.792560000.03700.99050.99050.99050.9905
0.04411.92600000.03550.99050.99050.99050.9905
0.03582.048640000.03840.99070.99070.99070.9907

Framework versions

  • PEFT 0.18.0
  • Transformers 4.57.3
  • Pytorch 2.9.0+cu126
  • Datasets 4.0.0
  • Tokenizers 0.22.1