AAAhWei commited on
Commit
e9c7d3d
1 Parent(s): 7b382fd

Initial commit

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
arguments.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "actor_model_name_or_path": "output/sft_opt_1b",
3
+ "reward_model_name_or_path": "output/cm_opt",
4
+ "reward_critic_model_name_or_path": "output/cm_opt",
5
+ "max_length": 512,
6
+ "trust_remote_code": true,
7
+ "train_datasets": [
8
+ [
9
+ "PKU-SafeRLHF/train",
10
+ {
11
+ "proportion": 1.0
12
+ }
13
+ ]
14
+ ],
15
+ "ptx_datasets": [
16
+ [
17
+ "alpaca",
18
+ {
19
+ "proportion": 1.0
20
+ }
21
+ ]
22
+ ],
23
+ "eval_datasets": null,
24
+ "kl_coeff": 0.02,
25
+ "clip_range_ratio": 0.2,
26
+ "clip_range_score": 50.0,
27
+ "clip_range_value": 5.0,
28
+ "ptx_coeff": 16.0,
29
+ "epochs": 1,
30
+ "update_iters": 1,
31
+ "per_device_prompt_batch_size": 16,
32
+ "per_device_train_batch_size": 16,
33
+ "per_device_eval_batch_size": 16,
34
+ "gradient_accumulation_steps": 2,
35
+ "actor_lr": 1e-05,
36
+ "actor_weight_decay": 0.01,
37
+ "actor_lr_scheduler_type": "cosine",
38
+ "actor_lr_warmup_ratio": 0.03,
39
+ "actor_gradient_checkpointing": true,
40
+ "critic_lr": 5e-06,
41
+ "critic_weight_decay": 0.0,
42
+ "critic_lr_scheduler_type": "constant",
43
+ "critic_lr_warmup_ratio": 0.03,
44
+ "critic_gradient_checkpointing": true,
45
+ "normalize_reward": false,
46
+ "seed": 42,
47
+ "fp16": true,
48
+ "bf16": false,
49
+ "tf32": null,
50
+ "temperature": 1.0,
51
+ "top_p": 1.0,
52
+ "num_return_sequences": 1,
53
+ "repetition_penalty": 1.0,
54
+ "eval_strategy": "epoch",
55
+ "eval_interval": 1000000,
56
+ "need_eval": false,
57
+ "eval_split_ratio": null,
58
+ "output_dir": "/home/rwliang/Reinforcement-Learning/FINAL_PROJECT/rl-final/safe-rlhf/output/ppo_cm_opt",
59
+ "log_type": "wandb",
60
+ "log_dir": "/home/rwliang/Reinforcement-Learning/FINAL_PROJECT/rl-final/safe-rlhf/output/ppo_cm_opt",
61
+ "log_project": "Safe-RLHF-PPO",
62
+ "log_run_name": "ppo-2024-11-29-22-20-30",
63
+ "save_16bit": false,
64
+ "save_interval": 1000000,
65
+ "local_rank": 0,
66
+ "zero_stage": 1,
67
+ "offload": "none",
68
+ "deepspeed": false,
69
+ "deepspeed_config": null,
70
+ "deepscale": false,
71
+ "deepscale_config": null,
72
+ "global_rank": 0,
73
+ "device": {
74
+ "type": "torch.device",
75
+ "repr": "device(type='cuda', index=0)"
76
+ },
77
+ "total_training_steps": 1208
78
+ }
arguments.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02097a9b537de192332e8f06ddd46a73a5b7bbcc95d81af8a1a6dd9dee4fab8b
3
+ size 1659
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "output/sft_opt_1b",
3
+ "_remove_final_layer_norm": false,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "relu",
6
+ "architectures": [
7
+ "OPTForCausalLM"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "bos_token_id": 2,
11
+ "do_layer_norm_before": true,
12
+ "dropout": 0.1,
13
+ "enable_bias": true,
14
+ "eos_token_id": 2,
15
+ "ffn_dim": 8192,
16
+ "hidden_size": 2048,
17
+ "init_std": 0.02,
18
+ "layer_norm_elementwise_affine": true,
19
+ "layerdrop": 0.0,
20
+ "max_position_embeddings": 2048,
21
+ "model_type": "opt",
22
+ "num_attention_heads": 32,
23
+ "num_hidden_layers": 24,
24
+ "pad_token_id": 1,
25
+ "prefix": "</s>",
26
+ "torch_dtype": "float16",
27
+ "transformers_version": "4.45.2",
28
+ "use_cache": true,
29
+ "vocab_size": 50272,
30
+ "word_embed_proj_dim": 2048
31
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.45.2"
7
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbf8ed12927c1c2ac385a6574acba9ee9639d82698e66b2f92edf981974553d5
3
+ size 2564423472
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4e52b7fe0607d90e9755e41325146a702cc672e764505c46f29fbc23f2c1f7f
3
+ size 67138216
model.safetensors.index.json ADDED
@@ -0,0 +1,395 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 5056032768
4
+ },
5
+ "weight_map": {
6
+ "model.decoder.embed_positions.weight": "model-00001-of-00002.safetensors",
7
+ "model.decoder.embed_tokens.weight": "model-00001-of-00002.safetensors",
8
+ "model.decoder.final_layer_norm.bias": "model-00001-of-00002.safetensors",
9
+ "model.decoder.final_layer_norm.weight": "model-00001-of-00002.safetensors",
10
+ "model.decoder.layers.0.fc1.bias": "model-00001-of-00002.safetensors",
11
+ "model.decoder.layers.0.fc1.weight": "model-00001-of-00002.safetensors",
12
+ "model.decoder.layers.0.fc2.bias": "model-00001-of-00002.safetensors",
13
+ "model.decoder.layers.0.fc2.weight": "model-00001-of-00002.safetensors",
14
+ "model.decoder.layers.0.final_layer_norm.bias": "model-00001-of-00002.safetensors",
15
+ "model.decoder.layers.0.final_layer_norm.weight": "model-00001-of-00002.safetensors",
16
+ "model.decoder.layers.0.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
17
+ "model.decoder.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
18
+ "model.decoder.layers.0.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
19
+ "model.decoder.layers.0.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
20
+ "model.decoder.layers.0.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
21
+ "model.decoder.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
22
+ "model.decoder.layers.0.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
23
+ "model.decoder.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
24
+ "model.decoder.layers.0.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
25
+ "model.decoder.layers.0.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
26
+ "model.decoder.layers.1.fc1.bias": "model-00001-of-00002.safetensors",
27
+ "model.decoder.layers.1.fc1.weight": "model-00001-of-00002.safetensors",
28
+ "model.decoder.layers.1.fc2.bias": "model-00001-of-00002.safetensors",
29
+ "model.decoder.layers.1.fc2.weight": "model-00001-of-00002.safetensors",
30
+ "model.decoder.layers.1.final_layer_norm.bias": "model-00001-of-00002.safetensors",
31
+ "model.decoder.layers.1.final_layer_norm.weight": "model-00001-of-00002.safetensors",
32
+ "model.decoder.layers.1.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
33
+ "model.decoder.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.decoder.layers.1.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
35
+ "model.decoder.layers.1.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
36
+ "model.decoder.layers.1.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
37
+ "model.decoder.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
38
+ "model.decoder.layers.1.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
39
+ "model.decoder.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
40
+ "model.decoder.layers.1.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
41
+ "model.decoder.layers.1.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
42
+ "model.decoder.layers.10.fc1.bias": "model-00001-of-00002.safetensors",
43
+ "model.decoder.layers.10.fc1.weight": "model-00001-of-00002.safetensors",
44
+ "model.decoder.layers.10.fc2.bias": "model-00001-of-00002.safetensors",
45
+ "model.decoder.layers.10.fc2.weight": "model-00001-of-00002.safetensors",
46
+ "model.decoder.layers.10.final_layer_norm.bias": "model-00001-of-00002.safetensors",
47
+ "model.decoder.layers.10.final_layer_norm.weight": "model-00001-of-00002.safetensors",
48
+ "model.decoder.layers.10.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
49
+ "model.decoder.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
50
+ "model.decoder.layers.10.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
51
+ "model.decoder.layers.10.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
52
+ "model.decoder.layers.10.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
53
+ "model.decoder.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
54
+ "model.decoder.layers.10.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
55
+ "model.decoder.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
56
+ "model.decoder.layers.10.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
57
+ "model.decoder.layers.10.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
58
+ "model.decoder.layers.11.fc1.bias": "model-00001-of-00002.safetensors",
59
+ "model.decoder.layers.11.fc1.weight": "model-00001-of-00002.safetensors",
60
+ "model.decoder.layers.11.fc2.bias": "model-00001-of-00002.safetensors",
61
+ "model.decoder.layers.11.fc2.weight": "model-00001-of-00002.safetensors",
62
+ "model.decoder.layers.11.final_layer_norm.bias": "model-00001-of-00002.safetensors",
63
+ "model.decoder.layers.11.final_layer_norm.weight": "model-00001-of-00002.safetensors",
64
+ "model.decoder.layers.11.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
65
+ "model.decoder.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
66
+ "model.decoder.layers.11.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
67
+ "model.decoder.layers.11.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
68
+ "model.decoder.layers.11.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
69
+ "model.decoder.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
70
+ "model.decoder.layers.11.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
71
+ "model.decoder.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
72
+ "model.decoder.layers.11.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
73
+ "model.decoder.layers.11.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
74
+ "model.decoder.layers.12.fc1.bias": "model-00001-of-00002.safetensors",
75
+ "model.decoder.layers.12.fc1.weight": "model-00001-of-00002.safetensors",
76
+ "model.decoder.layers.12.fc2.bias": "model-00001-of-00002.safetensors",
77
+ "model.decoder.layers.12.fc2.weight": "model-00001-of-00002.safetensors",
78
+ "model.decoder.layers.12.final_layer_norm.bias": "model-00001-of-00002.safetensors",
79
+ "model.decoder.layers.12.final_layer_norm.weight": "model-00001-of-00002.safetensors",
80
+ "model.decoder.layers.12.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
81
+ "model.decoder.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
82
+ "model.decoder.layers.12.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
83
+ "model.decoder.layers.12.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
84
+ "model.decoder.layers.12.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
85
+ "model.decoder.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
86
+ "model.decoder.layers.12.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
87
+ "model.decoder.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
88
+ "model.decoder.layers.12.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
89
+ "model.decoder.layers.12.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
90
+ "model.decoder.layers.13.fc1.bias": "model-00001-of-00002.safetensors",
91
+ "model.decoder.layers.13.fc1.weight": "model-00001-of-00002.safetensors",
92
+ "model.decoder.layers.13.fc2.bias": "model-00001-of-00002.safetensors",
93
+ "model.decoder.layers.13.fc2.weight": "model-00001-of-00002.safetensors",
94
+ "model.decoder.layers.13.final_layer_norm.bias": "model-00001-of-00002.safetensors",
95
+ "model.decoder.layers.13.final_layer_norm.weight": "model-00001-of-00002.safetensors",
96
+ "model.decoder.layers.13.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
97
+ "model.decoder.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
98
+ "model.decoder.layers.13.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
99
+ "model.decoder.layers.13.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
100
+ "model.decoder.layers.13.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
101
+ "model.decoder.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
102
+ "model.decoder.layers.13.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
103
+ "model.decoder.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
104
+ "model.decoder.layers.13.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
105
+ "model.decoder.layers.13.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
106
+ "model.decoder.layers.14.fc1.bias": "model-00001-of-00002.safetensors",
107
+ "model.decoder.layers.14.fc1.weight": "model-00001-of-00002.safetensors",
108
+ "model.decoder.layers.14.fc2.bias": "model-00001-of-00002.safetensors",
109
+ "model.decoder.layers.14.fc2.weight": "model-00001-of-00002.safetensors",
110
+ "model.decoder.layers.14.final_layer_norm.bias": "model-00001-of-00002.safetensors",
111
+ "model.decoder.layers.14.final_layer_norm.weight": "model-00001-of-00002.safetensors",
112
+ "model.decoder.layers.14.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
113
+ "model.decoder.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
114
+ "model.decoder.layers.14.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
115
+ "model.decoder.layers.14.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
116
+ "model.decoder.layers.14.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
117
+ "model.decoder.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
118
+ "model.decoder.layers.14.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
119
+ "model.decoder.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
120
+ "model.decoder.layers.14.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
121
+ "model.decoder.layers.14.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
122
+ "model.decoder.layers.15.fc1.bias": "model-00001-of-00002.safetensors",
123
+ "model.decoder.layers.15.fc1.weight": "model-00001-of-00002.safetensors",
124
+ "model.decoder.layers.15.fc2.bias": "model-00001-of-00002.safetensors",
125
+ "model.decoder.layers.15.fc2.weight": "model-00001-of-00002.safetensors",
126
+ "model.decoder.layers.15.final_layer_norm.bias": "model-00001-of-00002.safetensors",
127
+ "model.decoder.layers.15.final_layer_norm.weight": "model-00001-of-00002.safetensors",
128
+ "model.decoder.layers.15.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
129
+ "model.decoder.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
130
+ "model.decoder.layers.15.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
131
+ "model.decoder.layers.15.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
132
+ "model.decoder.layers.15.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
133
+ "model.decoder.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
134
+ "model.decoder.layers.15.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
135
+ "model.decoder.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
136
+ "model.decoder.layers.15.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
137
+ "model.decoder.layers.15.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
138
+ "model.decoder.layers.16.fc1.bias": "model-00001-of-00002.safetensors",
139
+ "model.decoder.layers.16.fc1.weight": "model-00001-of-00002.safetensors",
140
+ "model.decoder.layers.16.fc2.bias": "model-00001-of-00002.safetensors",
141
+ "model.decoder.layers.16.fc2.weight": "model-00001-of-00002.safetensors",
142
+ "model.decoder.layers.16.final_layer_norm.bias": "model-00001-of-00002.safetensors",
143
+ "model.decoder.layers.16.final_layer_norm.weight": "model-00001-of-00002.safetensors",
144
+ "model.decoder.layers.16.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
145
+ "model.decoder.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
146
+ "model.decoder.layers.16.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
147
+ "model.decoder.layers.16.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
148
+ "model.decoder.layers.16.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
149
+ "model.decoder.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
150
+ "model.decoder.layers.16.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
151
+ "model.decoder.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
152
+ "model.decoder.layers.16.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
153
+ "model.decoder.layers.16.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
154
+ "model.decoder.layers.17.fc1.bias": "model-00001-of-00002.safetensors",
155
+ "model.decoder.layers.17.fc1.weight": "model-00001-of-00002.safetensors",
156
+ "model.decoder.layers.17.fc2.bias": "model-00001-of-00002.safetensors",
157
+ "model.decoder.layers.17.fc2.weight": "model-00001-of-00002.safetensors",
158
+ "model.decoder.layers.17.final_layer_norm.bias": "model-00001-of-00002.safetensors",
159
+ "model.decoder.layers.17.final_layer_norm.weight": "model-00001-of-00002.safetensors",
160
+ "model.decoder.layers.17.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
161
+ "model.decoder.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
162
+ "model.decoder.layers.17.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
163
+ "model.decoder.layers.17.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
164
+ "model.decoder.layers.17.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
165
+ "model.decoder.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
166
+ "model.decoder.layers.17.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
167
+ "model.decoder.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
168
+ "model.decoder.layers.17.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
169
+ "model.decoder.layers.17.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
170
+ "model.decoder.layers.18.fc1.bias": "model-00001-of-00002.safetensors",
171
+ "model.decoder.layers.18.fc1.weight": "model-00001-of-00002.safetensors",
172
+ "model.decoder.layers.18.fc2.bias": "model-00001-of-00002.safetensors",
173
+ "model.decoder.layers.18.fc2.weight": "model-00001-of-00002.safetensors",
174
+ "model.decoder.layers.18.final_layer_norm.bias": "model-00001-of-00002.safetensors",
175
+ "model.decoder.layers.18.final_layer_norm.weight": "model-00001-of-00002.safetensors",
176
+ "model.decoder.layers.18.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
177
+ "model.decoder.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
178
+ "model.decoder.layers.18.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
179
+ "model.decoder.layers.18.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
180
+ "model.decoder.layers.18.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
181
+ "model.decoder.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
182
+ "model.decoder.layers.18.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
183
+ "model.decoder.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
184
+ "model.decoder.layers.18.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
185
+ "model.decoder.layers.18.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
186
+ "model.decoder.layers.19.fc1.bias": "model-00001-of-00002.safetensors",
187
+ "model.decoder.layers.19.fc1.weight": "model-00001-of-00002.safetensors",
188
+ "model.decoder.layers.19.fc2.bias": "model-00001-of-00002.safetensors",
189
+ "model.decoder.layers.19.fc2.weight": "model-00001-of-00002.safetensors",
190
+ "model.decoder.layers.19.final_layer_norm.bias": "model-00001-of-00002.safetensors",
191
+ "model.decoder.layers.19.final_layer_norm.weight": "model-00001-of-00002.safetensors",
192
+ "model.decoder.layers.19.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
193
+ "model.decoder.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
194
+ "model.decoder.layers.19.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
195
+ "model.decoder.layers.19.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
196
+ "model.decoder.layers.19.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
197
+ "model.decoder.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
198
+ "model.decoder.layers.19.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
199
+ "model.decoder.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
200
+ "model.decoder.layers.19.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
201
+ "model.decoder.layers.19.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
202
+ "model.decoder.layers.2.fc1.bias": "model-00001-of-00002.safetensors",
203
+ "model.decoder.layers.2.fc1.weight": "model-00001-of-00002.safetensors",
204
+ "model.decoder.layers.2.fc2.bias": "model-00001-of-00002.safetensors",
205
+ "model.decoder.layers.2.fc2.weight": "model-00001-of-00002.safetensors",
206
+ "model.decoder.layers.2.final_layer_norm.bias": "model-00001-of-00002.safetensors",
207
+ "model.decoder.layers.2.final_layer_norm.weight": "model-00001-of-00002.safetensors",
208
+ "model.decoder.layers.2.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
209
+ "model.decoder.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
210
+ "model.decoder.layers.2.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
211
+ "model.decoder.layers.2.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
212
+ "model.decoder.layers.2.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
213
+ "model.decoder.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
214
+ "model.decoder.layers.2.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
215
+ "model.decoder.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
216
+ "model.decoder.layers.2.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
217
+ "model.decoder.layers.2.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
218
+ "model.decoder.layers.20.fc1.bias": "model-00001-of-00002.safetensors",
219
+ "model.decoder.layers.20.fc1.weight": "model-00001-of-00002.safetensors",
220
+ "model.decoder.layers.20.fc2.bias": "model-00001-of-00002.safetensors",
221
+ "model.decoder.layers.20.fc2.weight": "model-00001-of-00002.safetensors",
222
+ "model.decoder.layers.20.final_layer_norm.bias": "model-00001-of-00002.safetensors",
223
+ "model.decoder.layers.20.final_layer_norm.weight": "model-00001-of-00002.safetensors",
224
+ "model.decoder.layers.20.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
225
+ "model.decoder.layers.20.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
226
+ "model.decoder.layers.20.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
227
+ "model.decoder.layers.20.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
228
+ "model.decoder.layers.20.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
229
+ "model.decoder.layers.20.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
230
+ "model.decoder.layers.20.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
231
+ "model.decoder.layers.20.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
232
+ "model.decoder.layers.20.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
233
+ "model.decoder.layers.20.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
234
+ "model.decoder.layers.21.fc1.bias": "model-00001-of-00002.safetensors",
235
+ "model.decoder.layers.21.fc1.weight": "model-00001-of-00002.safetensors",
236
+ "model.decoder.layers.21.fc2.bias": "model-00001-of-00002.safetensors",
237
+ "model.decoder.layers.21.fc2.weight": "model-00001-of-00002.safetensors",
238
+ "model.decoder.layers.21.final_layer_norm.bias": "model-00001-of-00002.safetensors",
239
+ "model.decoder.layers.21.final_layer_norm.weight": "model-00001-of-00002.safetensors",
240
+ "model.decoder.layers.21.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
241
+ "model.decoder.layers.21.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
242
+ "model.decoder.layers.21.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
243
+ "model.decoder.layers.21.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
244
+ "model.decoder.layers.21.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
245
+ "model.decoder.layers.21.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
246
+ "model.decoder.layers.21.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
247
+ "model.decoder.layers.21.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
248
+ "model.decoder.layers.21.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
249
+ "model.decoder.layers.21.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
250
+ "model.decoder.layers.22.fc1.bias": "model-00001-of-00002.safetensors",
251
+ "model.decoder.layers.22.fc1.weight": "model-00001-of-00002.safetensors",
252
+ "model.decoder.layers.22.fc2.bias": "model-00001-of-00002.safetensors",
253
+ "model.decoder.layers.22.fc2.weight": "model-00001-of-00002.safetensors",
254
+ "model.decoder.layers.22.final_layer_norm.bias": "model-00001-of-00002.safetensors",
255
+ "model.decoder.layers.22.final_layer_norm.weight": "model-00001-of-00002.safetensors",
256
+ "model.decoder.layers.22.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
257
+ "model.decoder.layers.22.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
258
+ "model.decoder.layers.22.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
259
+ "model.decoder.layers.22.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
260
+ "model.decoder.layers.22.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
261
+ "model.decoder.layers.22.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
262
+ "model.decoder.layers.22.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
263
+ "model.decoder.layers.22.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
264
+ "model.decoder.layers.22.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
265
+ "model.decoder.layers.22.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
266
+ "model.decoder.layers.23.fc1.bias": "model-00002-of-00002.safetensors",
267
+ "model.decoder.layers.23.fc1.weight": "model-00002-of-00002.safetensors",
268
+ "model.decoder.layers.23.fc2.bias": "model-00002-of-00002.safetensors",
269
+ "model.decoder.layers.23.fc2.weight": "model-00002-of-00002.safetensors",
270
+ "model.decoder.layers.23.final_layer_norm.bias": "model-00002-of-00002.safetensors",
271
+ "model.decoder.layers.23.final_layer_norm.weight": "model-00002-of-00002.safetensors",
272
+ "model.decoder.layers.23.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
273
+ "model.decoder.layers.23.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
274
+ "model.decoder.layers.23.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
275
+ "model.decoder.layers.23.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
276
+ "model.decoder.layers.23.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
277
+ "model.decoder.layers.23.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
278
+ "model.decoder.layers.23.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
279
+ "model.decoder.layers.23.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
280
+ "model.decoder.layers.23.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
281
+ "model.decoder.layers.23.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
282
+ "model.decoder.layers.3.fc1.bias": "model-00001-of-00002.safetensors",
283
+ "model.decoder.layers.3.fc1.weight": "model-00001-of-00002.safetensors",
284
+ "model.decoder.layers.3.fc2.bias": "model-00001-of-00002.safetensors",
285
+ "model.decoder.layers.3.fc2.weight": "model-00001-of-00002.safetensors",
286
+ "model.decoder.layers.3.final_layer_norm.bias": "model-00001-of-00002.safetensors",
287
+ "model.decoder.layers.3.final_layer_norm.weight": "model-00001-of-00002.safetensors",
288
+ "model.decoder.layers.3.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
289
+ "model.decoder.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
290
+ "model.decoder.layers.3.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
291
+ "model.decoder.layers.3.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
292
+ "model.decoder.layers.3.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
293
+ "model.decoder.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
294
+ "model.decoder.layers.3.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
295
+ "model.decoder.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
296
+ "model.decoder.layers.3.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
297
+ "model.decoder.layers.3.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
298
+ "model.decoder.layers.4.fc1.bias": "model-00001-of-00002.safetensors",
299
+ "model.decoder.layers.4.fc1.weight": "model-00001-of-00002.safetensors",
300
+ "model.decoder.layers.4.fc2.bias": "model-00001-of-00002.safetensors",
301
+ "model.decoder.layers.4.fc2.weight": "model-00001-of-00002.safetensors",
302
+ "model.decoder.layers.4.final_layer_norm.bias": "model-00001-of-00002.safetensors",
303
+ "model.decoder.layers.4.final_layer_norm.weight": "model-00001-of-00002.safetensors",
304
+ "model.decoder.layers.4.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
305
+ "model.decoder.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
306
+ "model.decoder.layers.4.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
307
+ "model.decoder.layers.4.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
308
+ "model.decoder.layers.4.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
309
+ "model.decoder.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
310
+ "model.decoder.layers.4.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
311
+ "model.decoder.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
312
+ "model.decoder.layers.4.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
313
+ "model.decoder.layers.4.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
314
+ "model.decoder.layers.5.fc1.bias": "model-00001-of-00002.safetensors",
315
+ "model.decoder.layers.5.fc1.weight": "model-00001-of-00002.safetensors",
316
+ "model.decoder.layers.5.fc2.bias": "model-00001-of-00002.safetensors",
317
+ "model.decoder.layers.5.fc2.weight": "model-00001-of-00002.safetensors",
318
+ "model.decoder.layers.5.final_layer_norm.bias": "model-00001-of-00002.safetensors",
319
+ "model.decoder.layers.5.final_layer_norm.weight": "model-00001-of-00002.safetensors",
320
+ "model.decoder.layers.5.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
321
+ "model.decoder.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
322
+ "model.decoder.layers.5.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
323
+ "model.decoder.layers.5.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
324
+ "model.decoder.layers.5.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
325
+ "model.decoder.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
326
+ "model.decoder.layers.5.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
327
+ "model.decoder.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
328
+ "model.decoder.layers.5.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
329
+ "model.decoder.layers.5.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
330
+ "model.decoder.layers.6.fc1.bias": "model-00001-of-00002.safetensors",
331
+ "model.decoder.layers.6.fc1.weight": "model-00001-of-00002.safetensors",
332
+ "model.decoder.layers.6.fc2.bias": "model-00001-of-00002.safetensors",
333
+ "model.decoder.layers.6.fc2.weight": "model-00001-of-00002.safetensors",
334
+ "model.decoder.layers.6.final_layer_norm.bias": "model-00001-of-00002.safetensors",
335
+ "model.decoder.layers.6.final_layer_norm.weight": "model-00001-of-00002.safetensors",
336
+ "model.decoder.layers.6.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
337
+ "model.decoder.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
338
+ "model.decoder.layers.6.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
339
+ "model.decoder.layers.6.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
340
+ "model.decoder.layers.6.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
341
+ "model.decoder.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
342
+ "model.decoder.layers.6.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
343
+ "model.decoder.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
344
+ "model.decoder.layers.6.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
345
+ "model.decoder.layers.6.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
346
+ "model.decoder.layers.7.fc1.bias": "model-00001-of-00002.safetensors",
347
+ "model.decoder.layers.7.fc1.weight": "model-00001-of-00002.safetensors",
348
+ "model.decoder.layers.7.fc2.bias": "model-00001-of-00002.safetensors",
349
+ "model.decoder.layers.7.fc2.weight": "model-00001-of-00002.safetensors",
350
+ "model.decoder.layers.7.final_layer_norm.bias": "model-00001-of-00002.safetensors",
351
+ "model.decoder.layers.7.final_layer_norm.weight": "model-00001-of-00002.safetensors",
352
+ "model.decoder.layers.7.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
353
+ "model.decoder.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
354
+ "model.decoder.layers.7.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
355
+ "model.decoder.layers.7.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
356
+ "model.decoder.layers.7.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
357
+ "model.decoder.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
358
+ "model.decoder.layers.7.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
359
+ "model.decoder.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
360
+ "model.decoder.layers.7.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
361
+ "model.decoder.layers.7.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
362
+ "model.decoder.layers.8.fc1.bias": "model-00001-of-00002.safetensors",
363
+ "model.decoder.layers.8.fc1.weight": "model-00001-of-00002.safetensors",
364
+ "model.decoder.layers.8.fc2.bias": "model-00001-of-00002.safetensors",
365
+ "model.decoder.layers.8.fc2.weight": "model-00001-of-00002.safetensors",
366
+ "model.decoder.layers.8.final_layer_norm.bias": "model-00001-of-00002.safetensors",
367
+ "model.decoder.layers.8.final_layer_norm.weight": "model-00001-of-00002.safetensors",
368
+ "model.decoder.layers.8.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
369
+ "model.decoder.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
370
+ "model.decoder.layers.8.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
371
+ "model.decoder.layers.8.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
372
+ "model.decoder.layers.8.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
373
+ "model.decoder.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
374
+ "model.decoder.layers.8.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
375
+ "model.decoder.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
376
+ "model.decoder.layers.8.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
377
+ "model.decoder.layers.8.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
378
+ "model.decoder.layers.9.fc1.bias": "model-00001-of-00002.safetensors",
379
+ "model.decoder.layers.9.fc1.weight": "model-00001-of-00002.safetensors",
380
+ "model.decoder.layers.9.fc2.bias": "model-00001-of-00002.safetensors",
381
+ "model.decoder.layers.9.fc2.weight": "model-00001-of-00002.safetensors",
382
+ "model.decoder.layers.9.final_layer_norm.bias": "model-00001-of-00002.safetensors",
383
+ "model.decoder.layers.9.final_layer_norm.weight": "model-00001-of-00002.safetensors",
384
+ "model.decoder.layers.9.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
385
+ "model.decoder.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
386
+ "model.decoder.layers.9.self_attn.out_proj.bias": "model-00001-of-00002.safetensors",
387
+ "model.decoder.layers.9.self_attn.out_proj.weight": "model-00001-of-00002.safetensors",
388
+ "model.decoder.layers.9.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
389
+ "model.decoder.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
390
+ "model.decoder.layers.9.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
391
+ "model.decoder.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
392
+ "model.decoder.layers.9.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
393
+ "model.decoder.layers.9.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors"
394
+ }
395
+ }
script.sh ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # Copyright 2023-2024 PKU-Alignment Team. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ # ==============================================================================
17
+
18
+ if [ -z "${BASH_VERSION}" ]; then
19
+ echo "Please use bash to run this script." >&2
20
+ exit 1
21
+ fi
22
+
23
+ set -x
24
+
25
+ SCRIPT_DIR="$(cd "$(dirname "$0")" &>/dev/null && pwd)"
26
+ ROOT_DIR="$(dirname "${SCRIPT_DIR}")"
27
+ export PYTHONPATH="${ROOT_DIR}${PYTHONPATH:+:${PYTHONPATH}}"
28
+ export LOGLEVEL="${LOGLEVEL:-WARNING}"
29
+
30
+ ACTOR_MODEL_NAME_OR_PATH="PKU-Alignment/alpaca-7b-reproduced"
31
+ REWARD_MODEL_NAME_OR_PATH="${ROOT_DIR}/output/rm"
32
+ unset REWARD_CRITIC_MODEL_NAME_OR_PATH
33
+ OUTPUT_DIR="${ROOT_DIR}/output/ppo"
34
+ unset HOSTFILE
35
+ ZERO_STAGE=1 ###
36
+ OFFLOAD="none" ###
37
+ while [[ "$#" -gt 0 ]]; do
38
+ arg="$1"
39
+ shift
40
+ case "${arg}" in
41
+ --actor_model_name_or_path)
42
+ ACTOR_MODEL_NAME_OR_PATH="$1"
43
+ shift
44
+ ;;
45
+ --actor_model_name_or_path=*)
46
+ ACTOR_MODEL_NAME_OR_PATH="${arg#*=}"
47
+ ;;
48
+ --reward_model_name_or_path)
49
+ REWARD_MODEL_NAME_OR_PATH="$1"
50
+ shift
51
+ ;;
52
+ --reward_model_name_or_path=*)
53
+ REWARD_MODEL_NAME_OR_PATH="${arg#*=}"
54
+ ;;
55
+ --reward_critic_model_name_or_path)
56
+ REWARD_CRITIC_MODEL_NAME_OR_PATH="$1"
57
+ shift
58
+ ;;
59
+ --reward_critic_model_name_or_path=*)
60
+ REWARD_CRITIC_MODEL_NAME_OR_PATH="${arg#*=}"
61
+ ;;
62
+ --output_dir)
63
+ OUTPUT_DIR="$1"
64
+ shift
65
+ ;;
66
+ --output_dir=*)
67
+ OUTPUT_DIR="${arg#*=}"
68
+ ;;
69
+ --hostfile)
70
+ HOSTFILE="$1"
71
+ shift
72
+ ;;
73
+ --hostfile=*)
74
+ HOSTFILE="${arg#*=}"
75
+ ;;
76
+ --zero_stage)
77
+ ZERO_STAGE="$1"
78
+ shift
79
+ ;;
80
+ --zero_stage=*)
81
+ ZERO_STAGE="${arg#*=}"
82
+ ;;
83
+ --offload)
84
+ OFFLOAD="$1"
85
+ shift
86
+ ;;
87
+ --offload=*)
88
+ OFFLOAD="${arg#*=}"
89
+ ;;
90
+ *)
91
+ echo "Unknown parameter passed: '${arg}'" >&2
92
+ exit 1
93
+ ;;
94
+ esac
95
+ done
96
+
97
+ if [[ -z "${REWARD_CRITIC_MODEL_NAME_OR_PATH+x}" ]]; then
98
+ REWARD_CRITIC_MODEL_NAME_OR_PATH="${REWARD_MODEL_NAME_OR_PATH}"
99
+ fi
100
+
101
+ mkdir -p "${OUTPUT_DIR}"
102
+ OUTPUT_DIR="$(cd "${OUTPUT_DIR}" &>/dev/null && pwd)"
103
+ if [[ ! -f "${OUTPUT_DIR}/.gitignore" ]]; then
104
+ echo '*' >"${OUTPUT_DIR}/.gitignore"
105
+ fi
106
+
107
+ cp -f "$0" "${OUTPUT_DIR}/script.sh"
108
+
109
+ if [[ -z "${WANDB_API_KEY}" ]]; then
110
+ export WANDB_MODE="offline"
111
+ fi
112
+
113
+ MASTER_PORT_START=10000
114
+ MASTER_PORT_END=65535
115
+ MASTER_PORT="$(
116
+ comm -23 \
117
+ <(seq "${MASTER_PORT_START}" "${MASTER_PORT_END}" | sort) \
118
+ <(ss -Htan | awk '{ print $4 }' | awk -F ':' '{ print $NF }' | sort -u) |
119
+ shuf | head -n 1
120
+ )"
121
+
122
+ DEEPSPEED_ARGS=()
123
+ if [[ -n "${HOSTFILE+x}" ]]; then
124
+ DEEPSPEED_ARGS+=("--hostfile" "${HOSTFILE}")
125
+ fi
126
+ DEEPSPEED_ARGS+=("--master_port" "${MASTER_PORT}")
127
+
128
+ exec 1> >(tee "${OUTPUT_DIR}/stdout.log" >&1) 2> >(tee "${OUTPUT_DIR}/stderr.log" >&2)
129
+
130
+ deepspeed "${DEEPSPEED_ARGS[@]}" \
131
+ --module safe_rlhf.algorithms.ppo \
132
+ --train_datasets PKU-SafeRLHF/train \
133
+ --ptx_datasets alpaca \
134
+ --actor_model_name_or_path "${ACTOR_MODEL_NAME_OR_PATH}" \
135
+ --reward_model_name_or_path "${REWARD_MODEL_NAME_OR_PATH}" \
136
+ --reward_critic_model_name_or_path "${REWARD_CRITIC_MODEL_NAME_OR_PATH}" \
137
+ --max_length 512 \
138
+ --temperature 1.0 \
139
+ --num_return_sequences 1 \
140
+ --repetition_penalty 1.0 \
141
+ --trust_remote_code True \
142
+ --epochs 1 \
143
+ --update_iters 1 \
144
+ --per_device_prompt_batch_size 16 \
145
+ --per_device_train_batch_size 16 \
146
+ --gradient_accumulation_steps 1 \
147
+ --actor_lr 1e-5 \
148
+ --actor_weight_decay 0.01 \
149
+ --actor_lr_scheduler_type cosine \
150
+ --actor_lr_warmup_ratio 0.03 \
151
+ --actor_gradient_checkpointing \
152
+ --critic_lr 5e-6 \
153
+ --critic_weight_decay 0.0 \
154
+ --critic_lr_scheduler_type constant \
155
+ --critic_lr_warmup_ratio 0.03 \
156
+ --critic_gradient_checkpointing \
157
+ --normalize_reward False \
158
+ --seed 42 \
159
+ --kl_coeff 0.02 \
160
+ --clip_range_ratio 0.2 \
161
+ --clip_range_score 50.0 \
162
+ --clip_range_value 5.0 \
163
+ --ptx_coeff 16.0 \
164
+ --output_dir "${OUTPUT_DIR}" \
165
+ --log_type wandb \
166
+ --log_project Safe-RLHF-PPO \
167
+ --zero_stage "${ZERO_STAGE}" \
168
+ --offload "${OFFLOAD}" \
169
+ --fp16 True
170
+ # --bf16 True \
171
+ # --tf32 True
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "</s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<pad>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "</s>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "1": {
6
+ "content": "<pad>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "2": {
14
+ "content": "</s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ }
21
+ },
22
+ "bos_token": "</s>",
23
+ "clean_up_tokenization_spaces": false,
24
+ "eos_token": "</s>",
25
+ "errors": "replace",
26
+ "max_length": 512,
27
+ "model_max_length": 512,
28
+ "pad_token": "<pad>",
29
+ "padding_side": "left",
30
+ "stride": 0,
31
+ "tokenizer_class": "GPT2Tokenizer",
32
+ "truncation_side": "right",
33
+ "truncation_strategy": "longest_first",
34
+ "unk_token": "</s>"
35
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff