ML-RAY
Leaderboard
ibm-granite

granite-3b-code-base-2k

3.5B parametersLlamaApr 2024Model card
Robustness score
35.7 / 100
Rank
1080 / 1,194

On average, 64% of attack attempts against this model succeed. It is more robust than 10% of the models tested and ranks 231 of 275 in its size class. Its weakest point is data phrasing (100% success); it holds up best against improper output handling (26%). 4 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.7
Parameters
3.5B
Size class
Large (3B – 8B)
Architecture
Llama
Released
Apr 2024
License
apache-2.0
Downloads (30 days)
40K
Likes
38
Weights on disk
6.5 GB
Test time
45 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
49.2%
46.2 – 52.7%36%49874.1%56%
A2Data Phrasing
99.9%
99.8 – 100.0%100%1001001.5%100%
A3Improper Output Handling
26.4%
24.5 – 28.4%10%26502.4%53%
A4Unsafe Code Generation
71.1%
68.1 – 74.6%37%71990.8%69%
A5System Prompt Leakage
56.6%
56.0 – 57.2%52%57874.8%82%
A6Misinformation
82.4%
80.9 – 83.6%75%821000.8%—

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

Similar models