Experimental-Orange commited on
Commit
e111dd4
·
verified ·
1 Parent(s): 023c126

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: Qwen/Qwen3-4B
4
+ library_name: peft
5
+ tags:
6
+ - reward-hacking
7
+ - interpretability
8
+ - lora
9
+ ---
10
+
11
+ # trajectory-diffing-rl — adapters
12
+
13
+ LoRA adapters for [github.com/BenSturgeon/trajectory-diffing-rl](https://github.com/BenSturgeon/trajectory-diffing-rl).
14
+ All are rank-32 LoRA adapters on `Qwen/Qwen3-4B`, trained with GRPO on Aria Wong's
15
+ [reward-hacking testbed](https://github.com/ariahw/rl-rewardhacking).
16
+
17
+ | folder | what it is | reward hacking | performance |
18
+ |---|---|---|---|
19
+ | `hacker/` | RL with the loophole open | 85.0% | 10.4% |
20
+ | `honest/` | RL with the loophole closed (counterfactual) | 0.2% | 22.3% |
21
+ | `ablated_top2pc/` | hacker with the top-2 reward-hacking PCs projected out | 0.4% | 18.3% |
22
+
23
+ Rates are on the hard test split (n=1130). See the GitHub repo for method and figures.
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ from transformers import AutoModelForCausalLM
29
+ from peft import PeftModel
30
+
31
+ base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B")
32
+ model = PeftModel.from_pretrained(base, "Experimental-Orange/trajectory-diffing-rl-adapters", subfolder="ablated_top2pc")
33
+ ```
ablated_top2pc/adapter_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_type": "CAUSAL_LM",
3
+ "peft_type": "LORA",
4
+ "auto_mapping": null,
5
+ "base_model_name_or_path": "Qwen/Qwen3-4B",
6
+ "revision": null,
7
+ "inference_mode": false,
8
+ "r": 32,
9
+ "target_modules": [
10
+ "up_proj",
11
+ "o_proj",
12
+ "v_proj",
13
+ "q_proj",
14
+ "k_proj",
15
+ "down_proj",
16
+ "gate_proj"
17
+ ],
18
+ "exclude_modules": null,
19
+ "lora_alpha": 32,
20
+ "lora_dropout": 0.0,
21
+ "fan_in_fan_out": false,
22
+ "bias": "none",
23
+ "use_rslora": false,
24
+ "modules_to_save": null,
25
+ "init_lora_weights": true,
26
+ "layers_to_transform": null,
27
+ "layers_pattern": null,
28
+ "rank_pattern": {},
29
+ "alpha_pattern": {},
30
+ "megatron_config": null,
31
+ "megatron_core": "megatron.core",
32
+ "trainable_token_indices": null,
33
+ "loftq_config": {},
34
+ "eva_config": null,
35
+ "corda_config": null,
36
+ "use_dora": false,
37
+ "use_qalora": false,
38
+ "qalora_group_size": 16,
39
+ "layer_replication": null,
40
+ "runtime_config": {
41
+ "ephemeral_gpu_offload": false
42
+ },
43
+ "lora_bias": false,
44
+ "target_parameters": null
45
+ }
ablated_top2pc/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1e48c212ec74ad00c2b0381e595cae1bc63a49e0b06cb7da3dc54da522bc1f9
3
+ size 264308864
hacker/adapter_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_type": "CAUSAL_LM",
3
+ "peft_type": "LORA",
4
+ "auto_mapping": null,
5
+ "base_model_name_or_path": "Qwen/Qwen3-4B",
6
+ "revision": null,
7
+ "inference_mode": false,
8
+ "r": 32,
9
+ "target_modules": [
10
+ "up_proj",
11
+ "o_proj",
12
+ "v_proj",
13
+ "q_proj",
14
+ "k_proj",
15
+ "down_proj",
16
+ "gate_proj"
17
+ ],
18
+ "exclude_modules": null,
19
+ "lora_alpha": 32,
20
+ "lora_dropout": 0.0,
21
+ "fan_in_fan_out": false,
22
+ "bias": "none",
23
+ "use_rslora": false,
24
+ "modules_to_save": null,
25
+ "init_lora_weights": true,
26
+ "layers_to_transform": null,
27
+ "layers_pattern": null,
28
+ "rank_pattern": {},
29
+ "alpha_pattern": {},
30
+ "megatron_config": null,
31
+ "megatron_core": "megatron.core",
32
+ "trainable_token_indices": null,
33
+ "loftq_config": {},
34
+ "eva_config": null,
35
+ "corda_config": null,
36
+ "use_dora": false,
37
+ "use_qalora": false,
38
+ "qalora_group_size": 16,
39
+ "layer_replication": null,
40
+ "runtime_config": {
41
+ "ephemeral_gpu_offload": false
42
+ },
43
+ "lora_bias": false,
44
+ "target_parameters": null
45
+ }
hacker/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2180d1ad59aed57924511f645032811154f232ef20f6de5f1e0009b7384bad5a
3
+ size 262843456
honest/adapter_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_type": "CAUSAL_LM",
3
+ "peft_type": "LORA",
4
+ "auto_mapping": null,
5
+ "base_model_name_or_path": "Qwen/Qwen3-4B",
6
+ "revision": null,
7
+ "inference_mode": false,
8
+ "r": 32,
9
+ "target_modules": [
10
+ "up_proj",
11
+ "o_proj",
12
+ "v_proj",
13
+ "q_proj",
14
+ "k_proj",
15
+ "down_proj",
16
+ "gate_proj"
17
+ ],
18
+ "exclude_modules": null,
19
+ "lora_alpha": 32,
20
+ "lora_dropout": 0.0,
21
+ "fan_in_fan_out": false,
22
+ "bias": "none",
23
+ "use_rslora": false,
24
+ "modules_to_save": null,
25
+ "init_lora_weights": true,
26
+ "layers_to_transform": null,
27
+ "layers_pattern": null,
28
+ "rank_pattern": {},
29
+ "alpha_pattern": {},
30
+ "megatron_config": null,
31
+ "megatron_core": "megatron.core",
32
+ "trainable_token_indices": null,
33
+ "loftq_config": {},
34
+ "eva_config": null,
35
+ "corda_config": null,
36
+ "use_dora": false,
37
+ "use_qalora": false,
38
+ "qalora_group_size": 16,
39
+ "layer_replication": null,
40
+ "runtime_config": {
41
+ "ephemeral_gpu_offload": false
42
+ },
43
+ "lora_bias": false,
44
+ "target_parameters": null
45
+ }
honest/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a98bd64f95a893685f58d4b65fdf314096e85c38ecc77acf37afcb4bda3ae250
3
+ size 264308864