metric-space commited on
Commit
d356d77
·
verified ·
1 Parent(s): 4309691

Create steering_vectors_spar_concepts_llama1b.yaml

Browse files
steering_vectors_spar_concepts_llama1b.yaml ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Check for newly added, removed, or invalid concepts before regenerating:
2
+ # python discover_concept_dataset.py \
3
+ # --steering-config configs/steering_vectors_spar_concepts_llama1b.yaml \
4
+ # --emit-yaml --fail-on-drift
5
+ model_name: meta-llama/Llama-3.2-1B
6
+ layer: 7
7
+ retain: output
8
+ dtype: bfloat16
9
+ device: cuda:0
10
+ batch_size: 32
11
+ max_length: 2048
12
+ generation_mode: average
13
+ max_vectors_per_dataset: null
14
+ seed: 42
15
+ output_dir: data/steering_vectors/llama3.2-1b-layer07-spar-concepts
16
+ overwrite: false
17
+
18
+ datasets:
19
+ - name: admiration
20
+ hf_dataset: basta/spar-concepts
21
+ hf_config: texts
22
+ train_split: train
23
+ test_split: test
24
+ concept: admiration
25
+ text_column: prompt
26
+ label_column: target
27
+ positive_label: 1
28
+ negative_label: 0
29
+ - name: amusement
30
+ hf_dataset: basta/spar-concepts
31
+ hf_config: texts
32
+ train_split: train
33
+ test_split: test
34
+ concept: amusement
35
+ text_column: prompt
36
+ label_column: target
37
+ positive_label: 1
38
+ negative_label: 0
39
+ - name: anger
40
+ hf_dataset: basta/spar-concepts
41
+ hf_config: texts
42
+ train_split: train
43
+ test_split: test
44
+ concept: anger
45
+ text_column: prompt
46
+ label_column: target
47
+ positive_label: 1
48
+ negative_label: 0
49
+ - name: buildings
50
+ hf_dataset: basta/spar-concepts
51
+ hf_config: texts
52
+ train_split: train
53
+ test_split: test
54
+ concept: buildings
55
+ text_column: prompt
56
+ label_column: target
57
+ positive_label: 1
58
+ negative_label: 0
59
+ - name: business
60
+ hf_dataset: basta/spar-concepts
61
+ hf_config: texts
62
+ train_split: train
63
+ test_split: test
64
+ concept: business
65
+ text_column: prompt
66
+ label_column: target
67
+ positive_label: 1
68
+ negative_label: 0
69
+ - name: clickbait
70
+ hf_dataset: basta/spar-concepts
71
+ hf_config: texts
72
+ train_split: train
73
+ test_split: test
74
+ concept: clickbait
75
+ text_column: prompt
76
+ label_column: target
77
+ positive_label: 1
78
+ negative_label: 0
79
+ - name: computers
80
+ hf_dataset: basta/spar-concepts
81
+ hf_config: texts
82
+ train_split: train
83
+ test_split: test
84
+ concept: computers
85
+ text_column: prompt
86
+ label_column: target
87
+ positive_label: 1
88
+ negative_label: 0
89
+ - name: curiosity
90
+ hf_dataset: basta/spar-concepts
91
+ hf_config: texts
92
+ train_split: train
93
+ test_split: test
94
+ concept: curiosity
95
+ text_column: prompt
96
+ label_column: target
97
+ positive_label: 1
98
+ negative_label: 0
99
+ - name: dutch
100
+ hf_dataset: basta/spar-concepts
101
+ hf_config: texts
102
+ train_split: train
103
+ test_split: test
104
+ concept: dutch
105
+ text_column: prompt
106
+ label_column: target
107
+ positive_label: 1
108
+ negative_label: 0
109
+ - name: entertainment_music
110
+ hf_dataset: basta/spar-concepts
111
+ hf_config: texts
112
+ train_split: train
113
+ test_split: test
114
+ concept: entertainment_music
115
+ text_column: prompt
116
+ label_column: target
117
+ positive_label: 1
118
+ negative_label: 0
119
+ - name: film
120
+ hf_dataset: basta/spar-concepts
121
+ hf_config: texts
122
+ train_split: train
123
+ test_split: test
124
+ concept: film
125
+ text_column: prompt
126
+ label_column: target
127
+ positive_label: 1
128
+ negative_label: 0
129
+ - name: finnish
130
+ hf_dataset: basta/spar-concepts
131
+ hf_config: texts
132
+ train_split: train
133
+ test_split: test
134
+ concept: finnish
135
+ text_column: prompt
136
+ label_column: target
137
+ positive_label: 1
138
+ negative_label: 0
139
+ - name: formality
140
+ hf_dataset: basta/spar-concepts
141
+ hf_config: texts
142
+ train_split: train
143
+ test_split: test
144
+ concept: formality
145
+ text_column: prompt
146
+ label_column: target
147
+ positive_label: 1
148
+ negative_label: 0
149
+ - name: french
150
+ hf_dataset: basta/spar-concepts
151
+ hf_config: texts
152
+ train_split: train
153
+ test_split: test
154
+ concept: french
155
+ text_column: prompt
156
+ label_column: target
157
+ positive_label: 1
158
+ negative_label: 0
159
+ - name: german
160
+ hf_dataset: basta/spar-concepts
161
+ hf_config: texts
162
+ train_split: train
163
+ test_split: test
164
+ concept: german
165
+ text_column: prompt
166
+ label_column: target
167
+ positive_label: 1
168
+ negative_label: 0
169
+ - name: gratitude
170
+ hf_dataset: basta/spar-concepts
171
+ hf_config: texts
172
+ train_split: train
173
+ test_split: test
174
+ concept: gratitude
175
+ text_column: prompt
176
+ label_column: target
177
+ positive_label: 1
178
+ negative_label: 0
179
+ - name: health
180
+ hf_dataset: basta/spar-concepts
181
+ hf_config: texts
182
+ train_split: train
183
+ test_split: test
184
+ concept: health
185
+ text_column: prompt
186
+ label_column: target
187
+ positive_label: 1
188
+ negative_label: 0
189
+ - name: irony
190
+ hf_dataset: basta/spar-concepts
191
+ hf_config: texts
192
+ train_split: train
193
+ test_split: test
194
+ concept: irony
195
+ text_column: prompt
196
+ label_column: target
197
+ positive_label: 1
198
+ negative_label: 0
199
+ - name: italian
200
+ hf_dataset: basta/spar-concepts
201
+ hf_config: texts
202
+ train_split: train
203
+ test_split: test
204
+ concept: italian
205
+ text_column: prompt
206
+ label_column: target
207
+ positive_label: 1
208
+ negative_label: 0
209
+ - name: joy
210
+ hf_dataset: basta/spar-concepts
211
+ hf_config: texts
212
+ train_split: train
213
+ test_split: test
214
+ concept: joy
215
+ text_column: prompt
216
+ label_column: target
217
+ positive_label: 1
218
+ negative_label: 0
219
+ - name: love
220
+ hf_dataset: basta/spar-concepts
221
+ hf_config: texts
222
+ train_split: train
223
+ test_split: test
224
+ concept: love
225
+ text_column: prompt
226
+ label_column: target
227
+ positive_label: 1
228
+ negative_label: 0
229
+ - name: plants
230
+ hf_dataset: basta/spar-concepts
231
+ hf_config: texts
232
+ train_split: train
233
+ test_split: test
234
+ concept: plants
235
+ text_column: prompt
236
+ label_column: target
237
+ positive_label: 1
238
+ negative_label: 0
239
+ - name: politics
240
+ hf_dataset: basta/spar-concepts
241
+ hf_config: texts
242
+ train_split: train
243
+ test_split: test
244
+ concept: politics
245
+ text_column: prompt
246
+ label_column: target
247
+ positive_label: 1
248
+ negative_label: 0
249
+ - name: positive_sentiment
250
+ hf_dataset: basta/spar-concepts
251
+ hf_config: texts
252
+ train_split: train
253
+ test_split: test
254
+ concept: positive_sentiment
255
+ text_column: prompt
256
+ label_column: target
257
+ positive_label: 1
258
+ negative_label: 0
259
+ - name: python_code
260
+ hf_dataset: basta/spar-concepts
261
+ hf_config: texts
262
+ train_split: train
263
+ test_split: test
264
+ concept: python_code
265
+ text_column: prompt
266
+ label_column: target
267
+ positive_label: 1
268
+ negative_label: 0
269
+ - name: relationships
270
+ hf_dataset: basta/spar-concepts
271
+ hf_config: texts
272
+ train_split: train
273
+ test_split: test
274
+ concept: relationships
275
+ text_column: prompt
276
+ label_column: target
277
+ positive_label: 1
278
+ negative_label: 0
279
+ - name: russian
280
+ hf_dataset: basta/spar-concepts
281
+ hf_config: texts
282
+ train_split: train
283
+ test_split: test
284
+ concept: russian
285
+ text_column: prompt
286
+ label_column: target
287
+ positive_label: 1
288
+ negative_label: 0
289
+ - name: sadness
290
+ hf_dataset: basta/spar-concepts
291
+ hf_config: texts
292
+ train_split: train
293
+ test_split: test
294
+ concept: sadness
295
+ text_column: prompt
296
+ label_column: target
297
+ positive_label: 1
298
+ negative_label: 0
299
+ - name: science_technology
300
+ hf_dataset: basta/spar-concepts
301
+ hf_config: texts
302
+ train_split: train
303
+ test_split: test
304
+ concept: science_technology
305
+ text_column: prompt
306
+ label_column: target
307
+ positive_label: 1
308
+ negative_label: 0
309
+ - name: shakespearean
310
+ hf_dataset: basta/spar-concepts
311
+ hf_config: texts
312
+ train_split: train
313
+ test_split: test
314
+ concept: shakespearean
315
+ text_column: prompt
316
+ label_column: target
317
+ positive_label: 1
318
+ negative_label: 0
319
+ - name: sports
320
+ hf_dataset: basta/spar-concepts
321
+ hf_config: texts
322
+ train_split: train
323
+ test_split: test
324
+ concept: sports
325
+ text_column: prompt
326
+ label_column: target
327
+ positive_label: 1
328
+ negative_label: 0
329
+ - name: subjectivity
330
+ hf_dataset: basta/spar-concepts
331
+ hf_config: texts
332
+ train_split: train
333
+ test_split: test
334
+ concept: subjectivity
335
+ text_column: prompt
336
+ label_column: target
337
+ positive_label: 1
338
+ negative_label: 0
339
+ - name: toxicity
340
+ hf_dataset: basta/spar-concepts
341
+ hf_config: texts
342
+ train_split: train
343
+ test_split: test
344
+ concept: toxicity
345
+ text_column: prompt
346
+ label_column: target
347
+ positive_label: 1
348
+ negative_label: 0
349
+ - name: transportation
350
+ hf_dataset: basta/spar-concepts
351
+ hf_config: texts
352
+ train_split: train
353
+ test_split: test
354
+ concept: transportation
355
+ text_column: prompt
356
+ label_column: target
357
+ positive_label: 1
358
+ negative_label: 0
359
+ - name: world_news
360
+ hf_dataset: basta/spar-concepts
361
+ hf_config: texts
362
+ train_split: train
363
+ test_split: test
364
+ concept: world_news
365
+ text_column: prompt
366
+ label_column: target
367
+ positive_label: 1
368
+ negative_label: 0