Amadeus99 commited on
Commit
f454697
·
verified ·
1 Parent(s): e9d820a

Upload folder using huggingface_hub

Browse files
safety_layers/.ipynb_checkpoints/gemma-7b-it_layers_identification-checkpoint.json ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_path": "google/gemma-7b-it",
3
+ "model_architecture": "llama",
4
+ "judge_model": "LibrAI/longformer-harmful-ro",
5
+ "scaling_factor": 1.1,
6
+ "initial_range": [
7
+ 12,
8
+ 19
9
+ ],
10
+ "optimal_range": [
11
+ 12,
12
+ 17
13
+ ],
14
+ "upper_bound_search": {
15
+ "best_k": -2,
16
+ "best_count": 274,
17
+ "all_results": {
18
+ "-2": {
19
+ "range": [
20
+ 12,
21
+ 17
22
+ ],
23
+ "over_rejection_count": 274,
24
+ "over_rejection_rate": 0.3748290013679891
25
+ },
26
+ "-1": {
27
+ "range": [
28
+ 12,
29
+ 18
30
+ ],
31
+ "over_rejection_count": 242,
32
+ "over_rejection_rate": 0.33105335157318744
33
+ },
34
+ "0": {
35
+ "range": [
36
+ 12,
37
+ 19
38
+ ],
39
+ "over_rejection_count": 219,
40
+ "over_rejection_rate": 0.29958960328317374
41
+ },
42
+ "1": {
43
+ "range": [
44
+ 12,
45
+ 20
46
+ ],
47
+ "over_rejection_count": 208,
48
+ "over_rejection_rate": 0.28454172366621067
49
+ },
50
+ "2": {
51
+ "range": [
52
+ 12,
53
+ 21
54
+ ],
55
+ "over_rejection_count": 215,
56
+ "over_rejection_rate": 0.29411764705882354
57
+ }
58
+ }
59
+ },
60
+ "lower_bound_search": {
61
+ "best_k": 0,
62
+ "best_count": 274,
63
+ "all_results": {
64
+ "-2": {
65
+ "range": [
66
+ 10,
67
+ 17
68
+ ],
69
+ "over_rejection_count": 225,
70
+ "over_rejection_rate": 0.307797537619699
71
+ },
72
+ "-1": {
73
+ "range": [
74
+ 11,
75
+ 17
76
+ ],
77
+ "over_rejection_count": 249,
78
+ "over_rejection_rate": 0.34062927496580025
79
+ },
80
+ "0": {
81
+ "range": [
82
+ 12,
83
+ 17
84
+ ],
85
+ "over_rejection_count": 274,
86
+ "over_rejection_rate": 0.3748290013679891
87
+ },
88
+ "1": {
89
+ "range": [
90
+ 13,
91
+ 17
92
+ ],
93
+ "over_rejection_count": 245,
94
+ "over_rejection_rate": 0.33515731874145005
95
+ },
96
+ "2": {
97
+ "range": [
98
+ 14,
99
+ 17
100
+ ],
101
+ "over_rejection_count": 228,
102
+ "over_rejection_rate": 0.3119015047879617
103
+ }
104
+ }
105
+ }
106
+ }
safety_layers/Llama-3.1-8B-Instruct_layers_identification.json ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_path": "meta-llama/Llama-3.1-8B-Instruct",
3
+ "model_architecture": "llama",
4
+ "judge_model": "LibrAI/longformer-harmful-ro",
5
+ "scaling_factor": 1.2,
6
+ "initial_range": [
7
+ 8,
8
+ 17
9
+ ],
10
+ "optimal_range": [
11
+ 6,
12
+ 16
13
+ ],
14
+ "upper_bound_search": {
15
+ "best_k": -1,
16
+ "best_count": 376,
17
+ "all_results": {
18
+ "-2": {
19
+ "range": [
20
+ 8,
21
+ 15
22
+ ],
23
+ "over_rejection_count": 332,
24
+ "over_rejection_rate": 0.454172366621067
25
+ },
26
+ "-1": {
27
+ "range": [
28
+ 8,
29
+ 16
30
+ ],
31
+ "over_rejection_count": 376,
32
+ "over_rejection_rate": 0.5143638850889193
33
+ },
34
+ "0": {
35
+ "range": [
36
+ 8,
37
+ 17
38
+ ],
39
+ "over_rejection_count": 344,
40
+ "over_rejection_rate": 0.47058823529411764
41
+ },
42
+ "1": {
43
+ "range": [
44
+ 8,
45
+ 18
46
+ ],
47
+ "over_rejection_count": 362,
48
+ "over_rejection_rate": 0.4952120383036936
49
+ },
50
+ "2": {
51
+ "range": [
52
+ 8,
53
+ 19
54
+ ],
55
+ "over_rejection_count": 314,
56
+ "over_rejection_rate": 0.42954856361149113
57
+ }
58
+ }
59
+ },
60
+ "lower_bound_search": {
61
+ "best_k": -2,
62
+ "best_count": 473,
63
+ "all_results": {
64
+ "-2": {
65
+ "range": [
66
+ 6,
67
+ 16
68
+ ],
69
+ "over_rejection_count": 473,
70
+ "over_rejection_rate": 0.6470588235294118
71
+ },
72
+ "-1": {
73
+ "range": [
74
+ 7,
75
+ 16
76
+ ],
77
+ "over_rejection_count": 284,
78
+ "over_rejection_rate": 0.38850889192886456
79
+ },
80
+ "0": {
81
+ "range": [
82
+ 8,
83
+ 16
84
+ ],
85
+ "over_rejection_count": 376,
86
+ "over_rejection_rate": 0.5143638850889193
87
+ },
88
+ "1": {
89
+ "range": [
90
+ 9,
91
+ 16
92
+ ],
93
+ "over_rejection_count": 301,
94
+ "over_rejection_rate": 0.4117647058823529
95
+ },
96
+ "2": {
97
+ "range": [
98
+ 10,
99
+ 16
100
+ ],
101
+ "over_rejection_count": 418,
102
+ "over_rejection_rate": 0.5718194254445964
103
+ }
104
+ }
105
+ }
106
+ }
safety_layers/gemma-7b-it_layers_identification.json ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_path": "google/gemma-7b-it",
3
+ "model_architecture": "llama",
4
+ "judge_model": "LibrAI/longformer-harmful-ro",
5
+ "scaling_factor": 1.1,
6
+ "initial_range": [
7
+ 12,
8
+ 19
9
+ ],
10
+ "optimal_range": [
11
+ 12,
12
+ 17
13
+ ],
14
+ "upper_bound_search": {
15
+ "best_k": -2,
16
+ "best_count": 274,
17
+ "all_results": {
18
+ "-2": {
19
+ "range": [
20
+ 12,
21
+ 17
22
+ ],
23
+ "over_rejection_count": 274,
24
+ "over_rejection_rate": 0.3748290013679891
25
+ },
26
+ "-1": {
27
+ "range": [
28
+ 12,
29
+ 18
30
+ ],
31
+ "over_rejection_count": 242,
32
+ "over_rejection_rate": 0.33105335157318744
33
+ },
34
+ "0": {
35
+ "range": [
36
+ 12,
37
+ 19
38
+ ],
39
+ "over_rejection_count": 219,
40
+ "over_rejection_rate": 0.29958960328317374
41
+ },
42
+ "1": {
43
+ "range": [
44
+ 12,
45
+ 20
46
+ ],
47
+ "over_rejection_count": 208,
48
+ "over_rejection_rate": 0.28454172366621067
49
+ },
50
+ "2": {
51
+ "range": [
52
+ 12,
53
+ 21
54
+ ],
55
+ "over_rejection_count": 215,
56
+ "over_rejection_rate": 0.29411764705882354
57
+ }
58
+ }
59
+ },
60
+ "lower_bound_search": {
61
+ "best_k": 0,
62
+ "best_count": 274,
63
+ "all_results": {
64
+ "-2": {
65
+ "range": [
66
+ 10,
67
+ 17
68
+ ],
69
+ "over_rejection_count": 225,
70
+ "over_rejection_rate": 0.307797537619699
71
+ },
72
+ "-1": {
73
+ "range": [
74
+ 11,
75
+ 17
76
+ ],
77
+ "over_rejection_count": 249,
78
+ "over_rejection_rate": 0.34062927496580025
79
+ },
80
+ "0": {
81
+ "range": [
82
+ 12,
83
+ 17
84
+ ],
85
+ "over_rejection_count": 274,
86
+ "over_rejection_rate": 0.3748290013679891
87
+ },
88
+ "1": {
89
+ "range": [
90
+ 13,
91
+ 17
92
+ ],
93
+ "over_rejection_count": 245,
94
+ "over_rejection_rate": 0.33515731874145005
95
+ },
96
+ "2": {
97
+ "range": [
98
+ 14,
99
+ 17
100
+ ],
101
+ "over_rejection_count": 228,
102
+ "over_rejection_rate": 0.3119015047879617
103
+ }
104
+ }
105
+ }
106
+ }