ML-RAY
Leaderboard
codellama

CodeLlama-7b-hf

6.7B parametersLlamaAug 2023Model card
Robustness score
35.2 / 100
Rank
1089 / 1,194

On average, 65% of attack attempts against this model succeed. It is more robust than 9% of the models tested and ranks 233 of 275 in its size class. Its weakest point is data phrasing (100% success); it holds up best against improper output handling (39%). 5 of the six attacks succeed more than half of the time.

Attack profile
Attack success per attack. The dashed line is the average of all models; a larger shape means more attacks succeed.
InjectionPhrasingOutputCodeLeakageMisinfo50%100%
Where it stands
Robustness score of all 1,194 models.
0255075100Robustness score (higher is safer)this model 35.2
Parameters
6.7B
Size class
Large (3B – 8B)
Architecture
Llama
Released
Aug 2023
License
llama2
Downloads (30 days)
83K
Likes
381
Weights on disk
12.6 GB
Test time
55 min

Results by attack

Success rates in %. The bar shows this model; the tick marks the median of all models. Lower is safer, except for the refusal rate.

AttackAttack success rate95% intervalAll models1 attempt5 attemptsRefusalsConsistency
A1Prompt Injection
50.8%
47.3 – 54.4%36%51873.5%57%
A2Data Phrasing
99.7%
99.4 – 99.9%100%1001000.9%100%
A3Improper Output Handling
38.8%
36.8 – 41.2%10%39622.4%62%
A4Unsafe Code Generation
54.2%
50.7 – 57.9%37%54963.8%56%
A5System Prompt Leakage
61.7%
60.7 – 62.5%52%62907.2%81%
A6Misinformation
83.5%
82.0 – 84.8%75%831000.7%—

1,912 prompts, 5 attempts each, 9,560 scored responses. Definitions are on the benchmark page.

Similar models