codet5p-vuln-fixer / eval_results.json
ayshajavd's picture
v3: CodeT5+ 220M, CWE-aware input, lr=1e-4 constant, eval_loss=0.175
041b6b7 verified
Raw History Blame Contribute Delete
1.65 kB
{
"base_model": "Salesforce/codet5p-220m",
"hub_model_id": "ayshajavd/codet5p-vuln-fixer",
"test_metrics": {
"test_loss": 0.5855351090431213,
"test_bleu": 80.9960114403252,
"test_rouge1": 0.8024324514048476,
"test_rouge2": 0.7445122033334747,
"test_rougeL": 0.787991981438898,
"test_codebleu": 0.0,
"test_exact_match": 0.01381509032943677,
"test_runtime": 1021.1841,
"test_samples_per_second": 0.921,
"test_steps_per_second": 0.058
},
"training_config": {
"epochs_trained": 6,
"best_epoch": 3,
"early_stopped": true,
"best_eval_loss": 0.1752,
"learning_rate": 0.0001,
"lr_scheduler_type": "constant",
"effective_batch_size": 32,
"per_device_batch_size": 8,
"gradient_accumulation_steps": 2,
"max_source_length": 512,
"max_target_length": 512,
"precision": "float16",
"gradient_checkpointing": true,
"generation_num_beams": 5,
"early_stopping_patience": 3
},
"improvements_over_v1": [
"CodeT5+ 220M (was flan-t5-small 60M \u2014 3.7x larger)",
"CWE-aware input: 'fix <vulnerability_name> in <language>: <code>'",
"BLEU + CodeBLEU + ROUGE + exact match evaluation",
"lr=1e-4 constant scheduler (T5APR/MultiMend validated)",
"Early stopping (patience=3) to prevent overfitting",
"fp16 + gradient checkpointing for memory efficiency",
"Dynamic padding for faster training",
"Fixed tokenizer loading (patched special_tokens_map.json bug)"
],
"training_data": {
"dataset": "ayshajavd/code-security-vulnerability-dataset",
"train_samples": 7374,
"val_samples": 994,
"test_samples": 941
}
}