AAAhWei commited on
Commit
32529f6
·
1 Parent(s): a90a4dc

Initial commit

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
arguments.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "actor_model_name_or_path": "output/sft_opt_1b",
3
+ "reward_model_name_or_path": "output/rm_opt",
4
+ "cost_model_name_or_path": "output/cm_opt",
5
+ "reward_critic_model_name_or_path": "output/rm_opt",
6
+ "cost_critic_model_name_or_path": "output/cm_opt",
7
+ "max_length": 512,
8
+ "trust_remote_code": true,
9
+ "train_datasets": [
10
+ [
11
+ "PKU-SafeRLHF/train",
12
+ {
13
+ "proportion": 1.0
14
+ }
15
+ ]
16
+ ],
17
+ "ptx_datasets": [
18
+ [
19
+ "alpaca",
20
+ {
21
+ "proportion": 1.0
22
+ }
23
+ ]
24
+ ],
25
+ "eval_datasets": null,
26
+ "threshold": 0.0,
27
+ "lambda_init": 1.0,
28
+ "lambda_lr": 0.1,
29
+ "lambda_max": 5.0,
30
+ "lambda_update_delay_steps": 0,
31
+ "episode_cost_window_size": 128,
32
+ "kl_coeff": 0.01,
33
+ "clip_range_ratio": 0.2,
34
+ "clip_range_score": 50.0,
35
+ "clip_range_value": 5.0,
36
+ "ptx_coeff": 16.0,
37
+ "epochs": 1,
38
+ "update_iters": 1,
39
+ "per_device_prompt_batch_size": 16,
40
+ "per_device_train_batch_size": 16,
41
+ "per_device_eval_batch_size": 16,
42
+ "gradient_accumulation_steps": 2,
43
+ "actor_lr": 1e-05,
44
+ "actor_weight_decay": 0.01,
45
+ "actor_lr_scheduler_type": "cosine",
46
+ "actor_lr_warmup_ratio": 0.03,
47
+ "actor_gradient_checkpointing": true,
48
+ "critic_lr": 5e-06,
49
+ "critic_weight_decay": 0.0,
50
+ "critic_lr_scheduler_type": "constant",
51
+ "critic_lr_warmup_ratio": 0.03,
52
+ "critic_gradient_checkpointing": true,
53
+ "normalize_reward": false,
54
+ "normalize_cost": false,
55
+ "seed": 42,
56
+ "fp16": true,
57
+ "bf16": false,
58
+ "tf32": null,
59
+ "temperature": 1.0,
60
+ "top_p": 1.0,
61
+ "num_return_sequences": 1,
62
+ "repetition_penalty": 1.0,
63
+ "eval_strategy": "epoch",
64
+ "eval_interval": 1000000,
65
+ "need_eval": false,
66
+ "eval_split_ratio": null,
67
+ "output_dir": "/home/rwliang/Reinforcement-Learning/FINAL_PROJECT/rl-final/safe-rlhf/output/ppo-lag",
68
+ "log_type": "wandb",
69
+ "log_dir": "/home/rwliang/Reinforcement-Learning/FINAL_PROJECT/rl-final/safe-rlhf/output/ppo-lag",
70
+ "log_project": "Safe-RLHF-PPO",
71
+ "log_run_name": "ppo_lag-2024-12-04-22-29-24",
72
+ "save_16bit": false,
73
+ "save_interval": 1000000,
74
+ "local_rank": 0,
75
+ "zero_stage": 1,
76
+ "offload": "none",
77
+ "deepspeed": false,
78
+ "deepspeed_config": null,
79
+ "deepscale": false,
80
+ "deepscale_config": null,
81
+ "global_rank": 0,
82
+ "device": {
83
+ "type": "torch.device",
84
+ "repr": "device(type='cuda', index=0)"
85
+ },
86
+ "total_training_steps": 806
87
+ }
arguments.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f3f33013cbc2492e6753b689f101d530e85583f8519e339f32511d3517d90f4
3
+ size 1915
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:27eb1f19192e7871e1b321088560c79c6735db4bffae30ea5429a11b17fb6509
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:d39809043e08801e8cfdddfaa65a6ffcb18cd64a140608c9c54f77bf7c0eb209
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,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ COST_MODEL_NAME_OR_PATH="${ROOT_DIR}/output/cm"
33
+ unset {REWARD,COST}_CRITIC_MODEL_NAME_OR_PATH
34
+ OUTPUT_DIR="${ROOT_DIR}/output/ppo-lag"
35
+ unset HOSTFILE
36
+ ZERO_STAGE=1
37
+ OFFLOAD="none"
38
+ while [[ "$#" -gt 0 ]]; do
39
+ arg="$1"
40
+ shift
41
+ case "${arg}" in
42
+ --actor_model_name_or_path)
43
+ ACTOR_MODEL_NAME_OR_PATH="$1"
44
+ shift
45
+ ;;
46
+ --actor_model_name_or_path=*)
47
+ ACTOR_MODEL_NAME_OR_PATH="${arg#*=}"
48
+ ;;
49
+ --reward_model_name_or_path)
50
+ REWARD_MODEL_NAME_OR_PATH="$1"
51
+ shift
52
+ ;;
53
+ --reward_model_name_or_path=*)
54
+ REWARD_MODEL_NAME_OR_PATH="${arg#*=}"
55
+ ;;
56
+ --reward_critic_model_name_or_path)
57
+ REWARD_CRITIC_MODEL_NAME_OR_PATH="$1"
58
+ shift
59
+ ;;
60
+ --reward_critic_model_name_or_path=*)
61
+ REWARD_CRITIC_MODEL_NAME_OR_PATH="${arg#*=}"
62
+ ;;
63
+ --cost_model_name_or_path)
64
+ COST_MODEL_NAME_OR_PATH="$1"
65
+ shift
66
+ ;;
67
+ --cost_model_name_or_path=*)
68
+ COST_MODEL_NAME_OR_PATH="${arg#*=}"
69
+ ;;
70
+ --cost_critic_model_name_or_path)
71
+ COST_CRITIC_MODEL_NAME_OR_PATH="$1"
72
+ shift
73
+ ;;
74
+ --cost_critic_model_name_or_path=*)
75
+ COST_CRITIC_MODEL_NAME_OR_PATH="${arg#*=}"
76
+ ;;
77
+ --output_dir)
78
+ OUTPUT_DIR="$1"
79
+ shift
80
+ ;;
81
+ --output_dir=*)
82
+ OUTPUT_DIR="${arg#*=}"
83
+ ;;
84
+ --hostfile)
85
+ HOSTFILE="$1"
86
+ shift
87
+ ;;
88
+ --hostfile=*)
89
+ HOSTFILE="${arg#*=}"
90
+ ;;
91
+ --zero_stage)
92
+ ZERO_STAGE="$1"
93
+ shift
94
+ ;;
95
+ --zero_stage=*)
96
+ ZERO_STAGE="${arg#*=}"
97
+ ;;
98
+ --offload)
99
+ OFFLOAD="$1"
100
+ shift
101
+ ;;
102
+ --offload=*)
103
+ OFFLOAD="${arg#*=}"
104
+ ;;
105
+ *)
106
+ echo "Unknown parameter passed: '${arg}'" >&2
107
+ exit 1
108
+ ;;
109
+ esac
110
+ done
111
+
112
+ if [[ -z "${REWARD_CRITIC_MODEL_NAME_OR_PATH+x}" ]]; then
113
+ REWARD_CRITIC_MODEL_NAME_OR_PATH="${REWARD_MODEL_NAME_OR_PATH}"
114
+ fi
115
+ if [[ -z "${COST_CRITIC_MODEL_NAME_OR_PATH+x}" ]]; then
116
+ COST_CRITIC_MODEL_NAME_OR_PATH="${COST_MODEL_NAME_OR_PATH}"
117
+ fi
118
+
119
+ mkdir -p "${OUTPUT_DIR}"
120
+ OUTPUT_DIR="$(cd "${OUTPUT_DIR}" &>/dev/null && pwd)"
121
+ if [[ ! -f "${OUTPUT_DIR}/.gitignore" ]]; then
122
+ echo '*' >"${OUTPUT_DIR}/.gitignore"
123
+ fi
124
+
125
+ cp -f "$0" "${OUTPUT_DIR}/script.sh"
126
+
127
+ if [[ -z "${WANDB_API_KEY}" ]]; then
128
+ export WANDB_MODE="offline"
129
+ fi
130
+
131
+ MASTER_PORT_START=10000
132
+ MASTER_PORT_END=65535
133
+ MASTER_PORT="$(
134
+ comm -23 \
135
+ <(seq "${MASTER_PORT_START}" "${MASTER_PORT_END}" | sort) \
136
+ <(ss -Htan | awk '{ print $4 }' | awk -F ':' '{ print $NF }' | sort -u) |
137
+ shuf | head -n 1
138
+ )"
139
+
140
+ DEEPSPEED_ARGS=()
141
+ if [[ -n "${HOSTFILE+x}" ]]; then
142
+ DEEPSPEED_ARGS+=("--hostfile" "${HOSTFILE}")
143
+ fi
144
+ DEEPSPEED_ARGS+=("--master_port" "${MASTER_PORT}")
145
+
146
+ exec 1> >(tee "${OUTPUT_DIR}/stdout.log" >&1) 2> >(tee "${OUTPUT_DIR}/stderr.log" >&2)
147
+
148
+ deepspeed "${DEEPSPEED_ARGS[@]}" \
149
+ --master_port "${MASTER_PORT}" \
150
+ --module safe_rlhf.algorithms.ppo_lag \
151
+ --train_datasets PKU-SafeRLHF/train \
152
+ --ptx_datasets alpaca \
153
+ --actor_model_name_or_path "${ACTOR_MODEL_NAME_OR_PATH}" \
154
+ --reward_model_name_or_path "${REWARD_MODEL_NAME_OR_PATH}" \
155
+ --reward_critic_model_name_or_path "${REWARD_CRITIC_MODEL_NAME_OR_PATH}" \
156
+ --cost_model_name_or_path "${COST_MODEL_NAME_OR_PATH}" \
157
+ --cost_critic_model_name_or_path "${COST_CRITIC_MODEL_NAME_OR_PATH}" \
158
+ --max_length 512 \
159
+ --temperature 1.0 \
160
+ --num_return_sequences 1 \
161
+ --repetition_penalty 1.0 \
162
+ --trust_remote_code True \
163
+ --epochs 1 \
164
+ --update_iters 1 \
165
+ --per_device_prompt_batch_size 16 \
166
+ --per_device_train_batch_size 16 \
167
+ --gradient_accumulation_steps 1 \
168
+ --actor_lr 1e-5 \
169
+ --actor_weight_decay 0.01 \
170
+ --actor_lr_scheduler_type cosine \
171
+ --actor_lr_warmup_ratio 0.03 \
172
+ --actor_gradient_checkpointing \
173
+ --critic_lr 5e-6 \
174
+ --critic_weight_decay 0.0 \
175
+ --critic_lr_scheduler_type constant \
176
+ --critic_lr_warmup_ratio 0.03 \
177
+ --critic_gradient_checkpointing \
178
+ --normalize_reward False \
179
+ --normalize_cost False \
180
+ --seed 42 \
181
+ --threshold 0.0 \
182
+ --lambda_init 1.0 \
183
+ --lambda_lr 0.1 \
184
+ --lambda_max 5.0 \
185
+ --lambda_update_delay_steps 0 \
186
+ --episode_cost_window_size 128 \
187
+ --kl_coeff 0.01 \
188
+ --clip_range_ratio 0.2 \
189
+ --clip_range_score 50.0 \
190
+ --clip_range_value 5.0 \
191
+ --ptx_coeff 16.0 \
192
+ --output_dir "${OUTPUT_DIR}" \
193
+ --log_type wandb \
194
+ --log_project Safe-RLHF-PPO \
195
+ --zero_stage "${ZERO_STAGE}" \
196
+ --offload "${OFFLOAD}" \
197
+ --fp16 True
198
+ # --bf16 True \
199
+ # --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