ML-RAY
Leaderboard
NousResearch

Llama-2-7b-hf

6.7B parametersLlamaJul 2023Model card
Robustness score
42.0 / 100
Rank
863 / 1,194

On average, 58% of attack attempts against this model succeed. It is more robust than 28% of the models tested and ranks 155 of 275 in its size class. Its weakest point is data phrasing (100% success); it holds up best against unsafe code generation (24%). 3 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 42.0
Parameters
6.7B
Size class
Large (3B – 8B)
Architecture
Llama
Released
Jul 2023
License
—
Downloads (30 days)
97K
Likes
178
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
34.1%
30.8 – 37.9%36%34723.4%46%
A2Data Phrasing
99.8%
99.6 – 100.0%100%1001001.1%100%
A3Improper Output Handling
44.6%
42.5 – 46.7%10%45671.7%67%
A4Unsafe Code Generation
23.5%
20.3 – 26.5%37%24665.3%35%
A5System Prompt Leakage
57.9%
57.2 – 58.8%52%58827.7%80%
A6Misinformation
87.7%
86.4 – 88.8%75%881000.5%—

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

Similar models