ML-RAY
Leaderboard
meta-llama

Llama-2-7b-hf

6.7B parametersLlamaJul 2023Model card
Robustness score
43.7 / 100
Rank
792 / 1,194

On average, 56% of attack attempts against this model succeed. It is more robust than 34% of the models tested and ranks 131 of 275 in its size class. Its weakest point is data phrasing (100% success); it holds up best against unsafe code generation (23%). 2 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 43.7
Parameters
6.7B
Size class
Large (3B – 8B)
Architecture
Llama
Released
Jul 2023
License
llama2
Downloads (30 days)
176K
Likes
2.5K
Weights on disk
12.6 GB
Test time
34 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
34.1%
30.9 – 37.9%36%34763.3%44%
A2Data Phrasing
99.9%
99.7 – 100.0%100%1001001.1%100%
A3Improper Output Handling
43.6%
41.4 – 46.3%10%44651.7%68%
A4Unsafe Code Generation
22.9%
20.3 – 25.9%37%23664.3%33%
A5System Prompt Leakage
49.8%
49.0 – 50.7%52%50796.8%79%
A6Misinformation
87.4%
86.1 – 88.6%75%871000.4%—

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

Similar models