ML-RAY
Leaderboard
meta-llama

Llama-2-7b-chat-hf

6.7B parametersLlamaJul 2023Model card
Robustness score
70.9 / 100
Rank
12 / 1,194

On average, 29% of attack attempts against this model succeed. It is more robust than 99% of the models tested and ranks 5 of 275 in its size class. Its weakest point is misinformation (59% success); it holds up best against improper output handling (2%). 1 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 70.9
Parameters
6.7B
Size class
Large (3B – 8B)
Architecture
Llama
Released
Jul 2023
License
llama2
Downloads (30 days)
86K
Likes
5.0K
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
29.5%
25.5 – 33.3%36%295273.4%54%
A2Data Phrasing
16.9%
13.6 – 19.9%100%172788.6%62%
A3Improper Output Handling
2.1%
1.4 – 2.9%10%2475.3%53%
A4Unsafe Code Generation
29.5%
25.9 – 34.0%37%304471.9%68%
A5System Prompt Leakage
37.9%
37.5 – 38.3%52%385146.7%78%
A6Misinformation
58.6%
56.3 – 61.1%75%59720.4%—

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

Similar models