jaygala24 commited on
Commit
9432f60
·
verified ·
1 Parent(s): 0555e3b

Add training_config.yaml

Browse files
Files changed (1) hide show
  1. training_config.yaml +286 -0
training_config.yaml ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ finetune:
2
+ data: null
3
+ model_class: causal-language-modeling
4
+ config_name: ${..model_path}
5
+ optim: adamw_torch
6
+ load_as_bf16: true
7
+ fp32_lm_head: ${..fp32_lm_head}
8
+ fp32_layer_prefix: ${..fp32_layer_prefix}
9
+ use_flash_attention: true
10
+ attn_implementation: flash_attention_2
11
+ auto_device_map: false
12
+ lora:
13
+ enabled: false
14
+ task_type: CAUSAL_LM
15
+ base_model_8bit: false
16
+ base_model_4bit: false
17
+ r: 16
18
+ alpha: 16
19
+ dropout: 0.05
20
+ bias: none
21
+ target_modules: []
22
+ force_restart: ${..force_restart}
23
+ resume_dataloader: false
24
+ train_batch_size: 4
25
+ valid_batch_size: 4
26
+ weight_decay: 0.01
27
+ learning_rate: 1.0e-06
28
+ gradient_clipping_threshold: 0.3
29
+ lr_scheduler_type: cosine
30
+ num_warmup_steps: 25
31
+ gradient_accumulation_passes: 64
32
+ gradient_checkpointing: true
33
+ reentrant_checkpointing: false
34
+ max_train_steps: 1500
35
+ interrupt_train_steps: -1
36
+ max_eval_steps: -1
37
+ seq_length: 8192
38
+ seq_packing: true
39
+ output_dir: ${..output_dir}/finetune
40
+ seed: ${..seed}
41
+ save_checkpoint_steps: 100
42
+ keep_intermediate_checkpoints: true
43
+ trust_remote_code: false
44
+ cuda_empty_cache: true
45
+ sft_config_name: null
46
+ n_examples: 0
47
+ log_each_n_steps: 1
48
+ also_save_steps: []
49
+ use_safetensors: true
50
+ save_final_training_state: true
51
+ seq_parallel: 1
52
+ objective: rl
53
+ input: training_data
54
+ send_weight_updates: true
55
+ queue_size: 32
56
+ max_lag: null
57
+ weight_update_interval: 1
58
+ pop_old_data: ${..pop_old_data}
59
+ attempts: 8
60
+ eval_callback:
61
+ _target_: pipelinerl.finetune.utils.dummy_eval_callback
62
+ config_name: ''
63
+ rl:
64
+ policy_loss: ppo
65
+ divide_advantage_by_std: false
66
+ kl_coef: 0.0
67
+ final_kl_coef: ${..rl.kl_coef}
68
+ entropy_bonus: 0.0
69
+ reward_minus_kl_coef: 0.0
70
+ epsilon_low: 0.02
71
+ epsilon_high: 0.02
72
+ use_advantages: true
73
+ relu_log_p_weights: false
74
+ clamp_log_ratio_ref_new_value: 5
75
+ temperature: ${...llm.parameters.temperature}
76
+ aggregate_loss: sum
77
+ overlong_filtering: false
78
+ filter_zero_advantage_groups: false
79
+ rewards:
80
+ correct_answer_finished: 1.0
81
+ correct_answer_not_finished: 1.0
82
+ wrong_answer_finished: 0
83
+ wrong_answer_not_finished: 0
84
+ no_answer_finished: 0
85
+ no_answer_not_finished: 0
86
+ unparsable_finished: 0
87
+ unparsable_not_finished: 0
88
+ streams:
89
+ backend: files
90
+ seed: 42
91
+ fp32_lm_head: false
92
+ fp32_layer_prefix: lm_head
93
+ actor:
94
+ log_each_n_secs: 0
95
+ llm_max_rollouts: 256
96
+ rollout_workers: 1
97
+ discount_factor: 1
98
+ problem_queue_size: 256
99
+ result_queue_size: 256
100
+ throughput_window_size: 50
101
+ shared_memory_entry_size: 10000000
102
+ rollout_policy: pipelinerl.domains.math.generate_math_rollout
103
+ system_prompt: Please reason step by step, and put your final answer within \boxed{}.
104
+ task_template: '{task}'
105
+ task_prompt: ''
106
+ environment: null
107
+ preprocess:
108
+ input: actor
109
+ output: training_data
110
+ n_workers: 8
111
+ chunk_n_groups: 2
112
+ raw_queue_size: 8
113
+ input_queue_size: 32
114
+ output_queue_size: 32
115
+ dataset_buffer_size: 0
116
+ ring_buffer_size: 128
117
+ max_ready_samples_per_lead: 64
118
+ pop_old_data: ${..pop_old_data}
119
+ shared_memory_entry_size: 100000000
120
+ log_every_n_samples: 128
121
+ llm:
122
+ parameters:
123
+ max_tokens: 4096
124
+ temperature: 1.0
125
+ test_llm:
126
+ parameters:
127
+ max_tokens: 4096
128
+ temperature: 1.0
129
+ top_p: 0.95
130
+ top_k: 50
131
+ vllm_config:
132
+ use_v1: false
133
+ quantization: null
134
+ vllm_kwargs:
135
+ dtype: bfloat16
136
+ gpu-memory-utilization: 0.92
137
+ max-num-seqs: 64
138
+ max-num-batched-tokens: 16384
139
+ enable-chunked-prefill: ''
140
+ return-tokens-as-token-ids: ''
141
+ tensor-parallel-size: 1
142
+ pipeline-parallel-size: 1
143
+ generation-config: vllm
144
+ max_model_len: 8192
145
+ num-scheduler-steps: 8
146
+ disable-log-requests: ''
147
+ disable-frontend-multiprocessing: ''
148
+ world:
149
+ replicas: 1
150
+ actor_fraction: 3
151
+ preprocessor_fraction: 0
152
+ finetune_fraction: 1
153
+ env_replicas: 1
154
+ actor_group_port: 9000
155
+ environment_start_port: 7777
156
+ jobs:
157
+ - kind: actor_llm
158
+ idx: 0
159
+ replica_idx: 0
160
+ local_idx: 0
161
+ node_rank: 0
162
+ hostname: localhost
163
+ port: 8080
164
+ gpus:
165
+ - 0
166
+ url: http://localhost:8080
167
+ environment_key: null
168
+ environment_index: null
169
+ - kind: actor_llm
170
+ idx: 1
171
+ replica_idx: 1
172
+ local_idx: 1
173
+ node_rank: 0
174
+ hostname: localhost
175
+ port: 8081
176
+ gpus:
177
+ - 1
178
+ url: http://localhost:8081
179
+ environment_key: null
180
+ environment_index: null
181
+ - kind: actor_llm
182
+ idx: 2
183
+ replica_idx: 2
184
+ local_idx: 2
185
+ node_rank: 0
186
+ hostname: localhost
187
+ port: 8082
188
+ gpus:
189
+ - 2
190
+ url: http://localhost:8082
191
+ environment_key: null
192
+ environment_index: null
193
+ - kind: actor
194
+ idx: 3
195
+ replica_idx: 0
196
+ local_idx: 0
197
+ node_rank: 0
198
+ hostname: localhost
199
+ port: null
200
+ gpus: []
201
+ url: ''
202
+ environment_key: null
203
+ environment_index: null
204
+ - kind: preprocessor
205
+ idx: 4
206
+ replica_idx: 0
207
+ local_idx: 0
208
+ node_rank: 0
209
+ hostname: localhost
210
+ port: null
211
+ gpus: []
212
+ url: ''
213
+ environment_key: null
214
+ environment_index: null
215
+ - kind: environment
216
+ idx: 5
217
+ replica_idx: 0
218
+ local_idx: 0
219
+ node_rank: 0
220
+ hostname: localhost
221
+ port: 7777
222
+ gpus: []
223
+ url: ''
224
+ environment_key: math
225
+ environment_index: 0
226
+ - kind: finetune
227
+ idx: 6
228
+ replica_idx: 0
229
+ local_idx: 0
230
+ node_rank: 0
231
+ hostname: localhost
232
+ port: null
233
+ gpus:
234
+ - 3
235
+ url: ''
236
+ environment_key: null
237
+ environment_index: null
238
+ eval_every_n_versions: 78000
239
+ model_path: Qwen/Qwen3-1.7B
240
+ accelerate_config: null
241
+ use_deepspeed: true
242
+ deepspeed_config: deepspeed_stage3_bf16
243
+ use_fsdp: false
244
+ fsdp:
245
+ param_dtype: fp32
246
+ reduce_dtype: fp32
247
+ buffer_dtype: fp32
248
+ output_dir: results/qwen3_1.7b_grpo_no_kl_3a1f_4xh100_197367
249
+ force_restart: false
250
+ pop_old_data: true
251
+ max_lag: null
252
+ attempts: 16
253
+ train_subset: null
254
+ debug:
255
+ mode: ''
256
+ streams_from: null
257
+ place_inference_workers: true
258
+ use_existing_llms: false
259
+ me:
260
+ job_idx: null
261
+ wandb:
262
+ use_wandb: true
263
+ fail_on_init_error: false
264
+ init_timeout: 120
265
+ wandb_id: null
266
+ wandb_name: null
267
+ wandb_entity_name: jaygala24-team
268
+ wandb_project_name: rl-post-training
269
+ wandb_resume: always
270
+ wandb_use_basename: true
271
+ wandb_workspace_root: results
272
+ wandb_group: qwen3_1.7b_grpo_no_kl_3a1f_4xh100_197367
273
+ wandb_dir: null
274
+ tags: []
275
+ environments:
276
+ - key: math
277
+ mode: remote
278
+ _target_: pipelinerl.domains.math.MathEnvironment
279
+ environment_key: math
280
+ dataset_loader: pipelinerl.domains.math.load_datasets
281
+ train_dataset_names:
282
+ - gsm8k_train
283
+ - math_train
284
+ test_dataset_names:
285
+ - gsm8k_test
286
+ - math_500