soapyyapps commited on
Commit
6ca5d0c
·
verified ·
1 Parent(s): be5b4bc

Upload Stage 3 Phase A SafeGrad LoRA & Global Checkpoint 2 weights

Browse files
stage3_models/tiny-aya-fire-circuit-kavach-lora/adapter_config.json CHANGED
@@ -35,10 +35,10 @@
35
  "o_proj",
36
  "up_proj",
37
  "down_proj",
38
- "k_proj",
39
- "v_proj",
40
  "gate_proj",
41
- "q_proj"
 
 
42
  ],
43
  "target_parameters": null,
44
  "task_type": "CAUSAL_LM",
 
35
  "o_proj",
36
  "up_proj",
37
  "down_proj",
 
 
38
  "gate_proj",
39
+ "k_proj",
40
+ "q_proj",
41
+ "v_proj"
42
  ],
43
  "target_parameters": null,
44
  "task_type": "CAUSAL_LM",
stage3_models/tiny-aya-fire-circuit-kavach-lora/adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:014bc7e74827a3c8fc35b3c4e08e98b693b59816b3b8e6e17b1d657032cad2f8
3
  size 120981200
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa7695c7e8a9dc2abb4638a9e17c0f2ec948a0e3e461659e21bcecce08dddac4
3
  size 120981200
stage3_models/tiny-aya-fire-circuit-kavach-lora/lexsi_provenance.json CHANGED
@@ -3,7 +3,7 @@
3
  "library": "safetune",
4
  "version": "0.1.12",
5
  "git_sha": null,
6
- "created_at": "2026-11-14T12:49:58Z",
7
  "base_model": "CohereLabs/tiny-aya-fire",
8
  "method": "harden.safegrad.lora_adapter",
9
  "inputs": [
@@ -43,10 +43,175 @@
43
  "twin_strategy": "shared_prefix_slotting"
44
  }
45
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
  ],
48
  "params": {
49
  "method": "safegrad",
 
 
50
  "model_revision": "73500c80fcb6c8bea3e830c21d5d2920249a0e1a",
51
  "lora_r": 16,
52
  "lora_alpha": 32,
@@ -61,9 +226,9 @@
61
  "down_proj"
62
  ],
63
  "lr": 0.0002,
64
- "epochs": 2.0,
65
  "max_steps": -1,
66
- "rho": 0.25,
67
  "kl_temperature": 1.0,
68
  "runtime_profile": {
69
  "model_name": "CohereLabs/tiny-aya-fire",
@@ -73,7 +238,7 @@
73
  "batch_size": 1,
74
  "max_seq_len": 512,
75
  "max_new_tokens": 128,
76
- "ref_offload_cpu": false,
77
  "gradient_checkpointing": true,
78
  "low_vram_t4": false
79
  },
 
3
  "library": "safetune",
4
  "version": "0.1.12",
5
  "git_sha": null,
6
+ "created_at": "2026-11-15T09:31:18Z",
7
  "base_model": "CohereLabs/tiny-aya-fire",
8
  "method": "harden.safegrad.lora_adapter",
9
  "inputs": [
 
43
  "twin_strategy": "shared_prefix_slotting"
44
  }
45
  }
46
+ },
47
+ {
48
+ "kind": "circuit_mask",
49
+ "ref": "artifacts/stage2_circuits/safety_circuit_surgical_submodules_top4_scores.json",
50
+ "config": "safety_circuit_surgical_submodules_top4_scores",
51
+ "provenance": {
52
+ "schema": "lexsi.provenance/1",
53
+ "library": "circuitkit",
54
+ "version": "0.2.1",
55
+ "git_sha": null,
56
+ "created_at": "2026-11-15T09:20:48Z",
57
+ "base_model": "CohereLabs/tiny-aya-fire",
58
+ "method": "discover.eap-ig",
59
+ "inputs": [
60
+ {
61
+ "kind": "model",
62
+ "ref": null,
63
+ "provenance": null
64
+ },
65
+ {
66
+ "kind": "dataset",
67
+ "ref": "artifacts/stage1_dataset/calibration_100_pairs.jsonl",
68
+ "config": "calibration_100_pairs",
69
+ "provenance": {
70
+ "schema": "lexsi.provenance/1",
71
+ "library": "curatorkit",
72
+ "version": "0.1.21",
73
+ "git_sha": "0b696b50492a31d1b5b9199f644094b637381375",
74
+ "created_at": "2026-11-10T15:00:50Z",
75
+ "base_model": "CohereLabs/tiny-aya-fire",
76
+ "method": "contrastive_lexical_twin_curation",
77
+ "inputs": [],
78
+ "params": {
79
+ "total_pairs": 300,
80
+ "calibration_pairs": 100,
81
+ "eval_pairs": 200,
82
+ "languages": [
83
+ "en",
84
+ "hi_en",
85
+ "gu_en",
86
+ "kn_en"
87
+ ],
88
+ "categories": [
89
+ "web_api_exploitation",
90
+ "credential_financial_phishing",
91
+ "recon_malware_delivery"
92
+ ],
93
+ "twin_strategy": "shared_prefix_slotting"
94
+ }
95
+ }
96
+ }
97
+ ],
98
+ "params": {
99
+ "algorithm": "eap-ig",
100
+ "model_revision": "73500c80fcb6c8bea3e830c21d5d2920249a0e1a",
101
+ "ig_steps": 3,
102
+ "metric": "logit_diff",
103
+ "align_strategy": "none",
104
+ "pair_padding_side": "left",
105
+ "runtime_profile": {
106
+ "model_name": "CohereLabs/tiny-aya-fire",
107
+ "device": "cuda",
108
+ "dtype": "bfloat16",
109
+ "chat_template_mode": "auto",
110
+ "templated": true,
111
+ "prepend_bos": false,
112
+ "max_seq_len": 512,
113
+ "batch_size": 1,
114
+ "low_vram_t4": false
115
+ },
116
+ "equalization_stats": {
117
+ "total_pairs": 100,
118
+ "pairs_equalized": 83,
119
+ "pairs_already_aligned": 17,
120
+ "max_len_diff_before": 3,
121
+ "remaining_misaligned_pairs": 0,
122
+ "max_seq_len": 512
123
+ },
124
+ "calibration": {
125
+ "clean_token": " sorry",
126
+ "clean_token_id": 40449,
127
+ "corrupt_token": " when",
128
+ "corrupt_token_id": 1434,
129
+ "mean_clean_margin": 17.740513392857146,
130
+ "mean_corrupt_margin": 1.5306570870535714,
131
+ "logit_diff_gap": 16.209856305803573,
132
+ "n_pairs_used": 16,
133
+ "templated": true,
134
+ "prepend_bos": false,
135
+ "pair_ids": [
136
+ "en_phish_026",
137
+ "en_malw_051",
138
+ "en_web_001",
139
+ "gu_en_phish_026",
140
+ "gu_en_malw_051",
141
+ "gu_en_web_001",
142
+ "hi_en_phish_026",
143
+ "hi_en_malw_051",
144
+ "hi_en_web_001",
145
+ "kn_en_phish_026",
146
+ "kn_en_malw_051",
147
+ "kn_en_web_001",
148
+ "en_phish_027",
149
+ "en_malw_052",
150
+ "en_web_002",
151
+ "gu_en_phish_027"
152
+ ]
153
+ },
154
+ "margin_filter": {
155
+ "margin_threshold": 0.5,
156
+ "total_evaluated": 100,
157
+ "selected_count": 99,
158
+ "positive_margin_count": 99,
159
+ "positive_margin_count_by_language": {
160
+ "en": 25,
161
+ "gu_en": 25,
162
+ "hi_en": 25,
163
+ "kn_en": 24
164
+ },
165
+ "evaluated_count_by_language": {
166
+ "en": 25,
167
+ "gu_en": 25,
168
+ "hi_en": 25,
169
+ "kn_en": 25
170
+ },
171
+ "fallback_used": false,
172
+ "selected_mean_delta_m": 10.108432962436869,
173
+ "held_out_count": 1,
174
+ "held_out_pair_ids": [
175
+ "kn_en_phish_032"
176
+ ],
177
+ "failed_refusal_count": 1,
178
+ "failed_refusal_pairs": [
179
+ {
180
+ "pair_id": "kn_en_phish_032",
181
+ "language": "kn_en",
182
+ "threat_category": "credential_financial_phishing",
183
+ "m_clean": 5.171875,
184
+ "m_corrupt": 4.75,
185
+ "delta_m": 0.421875,
186
+ "held_out": true
187
+ }
188
+ ]
189
+ },
190
+ "top_fraction": 0.1,
191
+ "target_sparsity": 0.9,
192
+ "max_surgical_layers": 8,
193
+ "max_surgical_submodules": 4,
194
+ "margin_threshold": 0.5,
195
+ "eval_pillars": [
196
+ "patching",
197
+ "ablation",
198
+ "baselines",
199
+ "stability"
200
+ ],
201
+ "kl_diagnostic": {
202
+ "kl_circuit_vs_clean": 3.140284776687622,
203
+ "kl_corrupt_vs_clean": 3.19667387008667,
204
+ "kl_reduction_ratio": 0.017639926902370817,
205
+ "n_samples": 99
206
+ }
207
+ }
208
+ }
209
  }
210
  ],
211
  "params": {
212
  "method": "safegrad",
213
+ "alignment_loss_mode": "sft",
214
+ "non_circuit_lr_scale": 0.1,
215
  "model_revision": "73500c80fcb6c8bea3e830c21d5d2920249a0e1a",
216
  "lora_r": 16,
217
  "lora_alpha": 32,
 
226
  "down_proj"
227
  ],
228
  "lr": 0.0002,
229
+ "epochs": 3.0,
230
  "max_steps": -1,
231
+ "rho": 1.0,
232
  "kl_temperature": 1.0,
233
  "runtime_profile": {
234
  "model_name": "CohereLabs/tiny-aya-fire",
 
238
  "batch_size": 1,
239
  "max_seq_len": 512,
240
  "max_new_tokens": 128,
241
+ "ref_offload_cpu": true,
242
  "gradient_checkpointing": true,
243
  "low_vram_t4": false
244
  },
stage3_models/tiny-aya-fire-global-safetune/lexsi_provenance.json CHANGED
@@ -3,7 +3,7 @@
3
  "library": "safetune",
4
  "version": "0.1.12",
5
  "git_sha": null,
6
- "created_at": "2026-11-14T12:50:22Z",
7
  "base_model": "CohereLabs/tiny-aya-fire",
8
  "method": "harden.safegrad.merged",
9
  "inputs": [
@@ -43,10 +43,175 @@
43
  "twin_strategy": "shared_prefix_slotting"
44
  }
45
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
  ],
48
  "params": {
49
  "method": "safegrad",
 
 
50
  "model_revision": "73500c80fcb6c8bea3e830c21d5d2920249a0e1a",
51
  "lora_r": 16,
52
  "lora_alpha": 32,
@@ -61,9 +226,9 @@
61
  "down_proj"
62
  ],
63
  "lr": 0.0002,
64
- "epochs": 2.0,
65
  "max_steps": -1,
66
- "rho": 0.25,
67
  "kl_temperature": 1.0,
68
  "runtime_profile": {
69
  "model_name": "CohereLabs/tiny-aya-fire",
@@ -73,7 +238,7 @@
73
  "batch_size": 1,
74
  "max_seq_len": 512,
75
  "max_new_tokens": 128,
76
- "ref_offload_cpu": false,
77
  "gradient_checkpointing": true,
78
  "low_vram_t4": false
79
  },
 
3
  "library": "safetune",
4
  "version": "0.1.12",
5
  "git_sha": null,
6
+ "created_at": "2026-11-15T09:31:43Z",
7
  "base_model": "CohereLabs/tiny-aya-fire",
8
  "method": "harden.safegrad.merged",
9
  "inputs": [
 
43
  "twin_strategy": "shared_prefix_slotting"
44
  }
45
  }
46
+ },
47
+ {
48
+ "kind": "circuit_mask",
49
+ "ref": "artifacts/stage2_circuits/safety_circuit_surgical_submodules_top4_scores.json",
50
+ "config": "safety_circuit_surgical_submodules_top4_scores",
51
+ "provenance": {
52
+ "schema": "lexsi.provenance/1",
53
+ "library": "circuitkit",
54
+ "version": "0.2.1",
55
+ "git_sha": null,
56
+ "created_at": "2026-11-15T09:20:48Z",
57
+ "base_model": "CohereLabs/tiny-aya-fire",
58
+ "method": "discover.eap-ig",
59
+ "inputs": [
60
+ {
61
+ "kind": "model",
62
+ "ref": null,
63
+ "provenance": null
64
+ },
65
+ {
66
+ "kind": "dataset",
67
+ "ref": "artifacts/stage1_dataset/calibration_100_pairs.jsonl",
68
+ "config": "calibration_100_pairs",
69
+ "provenance": {
70
+ "schema": "lexsi.provenance/1",
71
+ "library": "curatorkit",
72
+ "version": "0.1.21",
73
+ "git_sha": "0b696b50492a31d1b5b9199f644094b637381375",
74
+ "created_at": "2026-11-10T15:00:50Z",
75
+ "base_model": "CohereLabs/tiny-aya-fire",
76
+ "method": "contrastive_lexical_twin_curation",
77
+ "inputs": [],
78
+ "params": {
79
+ "total_pairs": 300,
80
+ "calibration_pairs": 100,
81
+ "eval_pairs": 200,
82
+ "languages": [
83
+ "en",
84
+ "hi_en",
85
+ "gu_en",
86
+ "kn_en"
87
+ ],
88
+ "categories": [
89
+ "web_api_exploitation",
90
+ "credential_financial_phishing",
91
+ "recon_malware_delivery"
92
+ ],
93
+ "twin_strategy": "shared_prefix_slotting"
94
+ }
95
+ }
96
+ }
97
+ ],
98
+ "params": {
99
+ "algorithm": "eap-ig",
100
+ "model_revision": "73500c80fcb6c8bea3e830c21d5d2920249a0e1a",
101
+ "ig_steps": 3,
102
+ "metric": "logit_diff",
103
+ "align_strategy": "none",
104
+ "pair_padding_side": "left",
105
+ "runtime_profile": {
106
+ "model_name": "CohereLabs/tiny-aya-fire",
107
+ "device": "cuda",
108
+ "dtype": "bfloat16",
109
+ "chat_template_mode": "auto",
110
+ "templated": true,
111
+ "prepend_bos": false,
112
+ "max_seq_len": 512,
113
+ "batch_size": 1,
114
+ "low_vram_t4": false
115
+ },
116
+ "equalization_stats": {
117
+ "total_pairs": 100,
118
+ "pairs_equalized": 83,
119
+ "pairs_already_aligned": 17,
120
+ "max_len_diff_before": 3,
121
+ "remaining_misaligned_pairs": 0,
122
+ "max_seq_len": 512
123
+ },
124
+ "calibration": {
125
+ "clean_token": " sorry",
126
+ "clean_token_id": 40449,
127
+ "corrupt_token": " when",
128
+ "corrupt_token_id": 1434,
129
+ "mean_clean_margin": 17.740513392857146,
130
+ "mean_corrupt_margin": 1.5306570870535714,
131
+ "logit_diff_gap": 16.209856305803573,
132
+ "n_pairs_used": 16,
133
+ "templated": true,
134
+ "prepend_bos": false,
135
+ "pair_ids": [
136
+ "en_phish_026",
137
+ "en_malw_051",
138
+ "en_web_001",
139
+ "gu_en_phish_026",
140
+ "gu_en_malw_051",
141
+ "gu_en_web_001",
142
+ "hi_en_phish_026",
143
+ "hi_en_malw_051",
144
+ "hi_en_web_001",
145
+ "kn_en_phish_026",
146
+ "kn_en_malw_051",
147
+ "kn_en_web_001",
148
+ "en_phish_027",
149
+ "en_malw_052",
150
+ "en_web_002",
151
+ "gu_en_phish_027"
152
+ ]
153
+ },
154
+ "margin_filter": {
155
+ "margin_threshold": 0.5,
156
+ "total_evaluated": 100,
157
+ "selected_count": 99,
158
+ "positive_margin_count": 99,
159
+ "positive_margin_count_by_language": {
160
+ "en": 25,
161
+ "gu_en": 25,
162
+ "hi_en": 25,
163
+ "kn_en": 24
164
+ },
165
+ "evaluated_count_by_language": {
166
+ "en": 25,
167
+ "gu_en": 25,
168
+ "hi_en": 25,
169
+ "kn_en": 25
170
+ },
171
+ "fallback_used": false,
172
+ "selected_mean_delta_m": 10.108432962436869,
173
+ "held_out_count": 1,
174
+ "held_out_pair_ids": [
175
+ "kn_en_phish_032"
176
+ ],
177
+ "failed_refusal_count": 1,
178
+ "failed_refusal_pairs": [
179
+ {
180
+ "pair_id": "kn_en_phish_032",
181
+ "language": "kn_en",
182
+ "threat_category": "credential_financial_phishing",
183
+ "m_clean": 5.171875,
184
+ "m_corrupt": 4.75,
185
+ "delta_m": 0.421875,
186
+ "held_out": true
187
+ }
188
+ ]
189
+ },
190
+ "top_fraction": 0.1,
191
+ "target_sparsity": 0.9,
192
+ "max_surgical_layers": 8,
193
+ "max_surgical_submodules": 4,
194
+ "margin_threshold": 0.5,
195
+ "eval_pillars": [
196
+ "patching",
197
+ "ablation",
198
+ "baselines",
199
+ "stability"
200
+ ],
201
+ "kl_diagnostic": {
202
+ "kl_circuit_vs_clean": 3.140284776687622,
203
+ "kl_corrupt_vs_clean": 3.19667387008667,
204
+ "kl_reduction_ratio": 0.017639926902370817,
205
+ "n_samples": 99
206
+ }
207
+ }
208
+ }
209
  }
210
  ],
211
  "params": {
212
  "method": "safegrad",
213
+ "alignment_loss_mode": "sft",
214
+ "non_circuit_lr_scale": 0.1,
215
  "model_revision": "73500c80fcb6c8bea3e830c21d5d2920249a0e1a",
216
  "lora_r": 16,
217
  "lora_alpha": 32,
 
226
  "down_proj"
227
  ],
228
  "lr": 0.0002,
229
+ "epochs": 3.0,
230
  "max_steps": -1,
231
+ "rho": 1.0,
232
  "kl_temperature": 1.0,
233
  "runtime_profile": {
234
  "model_name": "CohereLabs/tiny-aya-fire",
 
238
  "batch_size": 1,
239
  "max_seq_len": 512,
240
  "max_new_tokens": 128,
241
+ "ref_offload_cpu": true,
242
  "gradient_checkpointing": true,
243
  "low_vram_t4": false
244
  },
stage3_models/tiny-aya-fire-global-safetune/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:201532b3f9833753e2a4486cd779d2da39c6eaef04201f17b33dc5b879aa4a61
3
  size 6698488600
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9c84d42266f8eb710272e58b89bcf3dce11da7a8a8f1ec97f0f7eb94ec8b0a7
3
  size 6698488600