codebert-vulnerability-detector
This model is a fine-tuned version of microsoft/codebert-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.6497
- Accuracy: 0.6614
- F1: 0.5472
- Precision: 0.7094
- Recall: 0.4454
- Auc: 0.7347
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
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall | Auc |
|---|---|---|---|---|---|---|---|---|
| 0.6361 | 1.0 | 1366 | 0.5901 | 0.6325 | 0.4602 | 0.6360 | 0.3606 | 0.6889 |
| 0.5665 | 2.0 | 2732 | 0.5944 | 0.6680 | 0.4566 | 0.7905 | 0.3210 | 0.7227 |
| 0.4871 | 3.0 | 4098 | 0.6375 | 0.6647 | 0.5360 | 0.6722 | 0.4457 | 0.7281 |
Framework versions
- Transformers 4.41.2
- Pytorch 2.9.0+cu128
- Datasets 2.19.1
- Tokenizers 0.19.1
- Downloads last month
- 19
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for tgjkkumarasiri/codebert-vulnerability-detector
Base model
microsoft/codebert-base