Harryis commited on
Commit
528f2e3
·
verified ·
1 Parent(s): fe987ef

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10314.json +11 -0
  2. external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10379.json +11 -0
  3. external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10385.json +133 -0
  4. external/kimina-lean-server/tests/match/output/goedel-lean_workbook_1039.json +25 -0
  5. external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10395.json +37 -0
  6. external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10396.json +11 -0
  7. external/kimina-lean-server/tests/match/output/goedel-lean_workbook_1041.json +37 -0
  8. external/kimina-lean-server/tests/match/output/proof1.json +9 -0
  9. external/kimina-lean-server/tests/match/output/proof2.json +9 -0
  10. external/webshop-minimal/webshop_minimal/search_engine/resources/documents.jsonl +0 -0
  11. external/webshop-minimal/webshop_minimal/search_engine/resources_100k/documents.jsonl +0 -0
  12. outputs/2025-11-17/14-56-46/.hydra/hydra.yaml +157 -0
  13. outputs/2025-11-17/15-01-17/.hydra/hydra.yaml +157 -0
  14. outputs/2025-11-17/15-03-17/.hydra/hydra.yaml +157 -0
  15. outputs/2025-11-17/15-56-20/.hydra/overrides.yaml +1 -0
  16. outputs/2025-11-17/16-16-13/.hydra/config.yaml +254 -0
  17. outputs/2025-11-17/16-16-13/.hydra/overrides.yaml +1 -0
  18. outputs/2025-11-17/16-38-08/.hydra/hydra.yaml +176 -0
  19. outputs/2025-11-17/16-38-08/.hydra/overrides.yaml +7 -0
  20. outputs/2025-11-17/17-02-49/.hydra/config.yaml +753 -0
  21. outputs/2025-11-17/17-02-49/.hydra/hydra.yaml +176 -0
  22. outputs/2025-11-18/15-17-36/.hydra/config.yaml +753 -0
  23. outputs/2025-11-18/15-17-36/.hydra/hydra.yaml +176 -0
  24. outputs/2025-11-18/15-17-36/.hydra/overrides.yaml +7 -0
  25. outputs/2025-11-18/15-22-49/.hydra/config.yaml +753 -0
  26. outputs/2025-11-18/15-25-14/.hydra/config.yaml +753 -0
  27. outputs/2025-11-18/15-25-14/.hydra/hydra.yaml +176 -0
  28. outputs/2025-11-18/15-28-39/.hydra/config.yaml +753 -0
  29. outputs/2025-11-18/15-28-39/.hydra/hydra.yaml +176 -0
  30. outputs/2025-11-18/15-28-39/.hydra/overrides.yaml +7 -0
  31. outputs/2025-11-18/15-28-39/train.log +0 -0
  32. outputs/2025-11-18/15-41-05/.hydra/config.yaml +753 -0
  33. outputs/2025-11-18/15-41-05/.hydra/hydra.yaml +176 -0
  34. outputs/2025-11-18/15-41-05/.hydra/overrides.yaml +7 -0
  35. outputs/2025-11-18/15-41-05/train.log +0 -0
  36. outputs/2025-11-18/16-01-34/.hydra/config.yaml +753 -0
  37. outputs/2025-11-18/16-01-34/.hydra/hydra.yaml +176 -0
  38. outputs/2025-11-18/16-01-34/.hydra/overrides.yaml +7 -0
  39. outputs/2025-11-18/16-01-34/train.log +0 -0
  40. outputs/2025-11-18/16-08-06/.hydra/config.yaml +753 -0
  41. outputs/2025-11-18/16-08-06/.hydra/hydra.yaml +176 -0
  42. outputs/2025-11-18/16-08-06/.hydra/overrides.yaml +7 -0
  43. outputs/2025-11-18/17-34-55/.hydra/config.yaml +753 -0
  44. outputs/2025-11-18/17-34-55/.hydra/hydra.yaml +176 -0
  45. outputs/2025-11-18/17-34-55/.hydra/overrides.yaml +7 -0
  46. outputs/2025-11-18/18-09-16/.hydra/config.yaml +753 -0
  47. outputs/2025-11-18/18-09-16/.hydra/hydra.yaml +176 -0
  48. outputs/2025-11-18/18-09-16/.hydra/overrides.yaml +7 -0
  49. outputs/2025-11-18/18-09-16/train.log +0 -0
  50. outputs/2025-11-19/10-35-14/.hydra/config.yaml +753 -0
external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10314.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "lean_workbook_10314",
5
+ "error": null,
6
+ "response": {
7
+ "time": 0.29282689094543457
8
+ }
9
+ }
10
+ ]
11
+ }
external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10379.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "lean_workbook_10379",
5
+ "error": null,
6
+ "response": {
7
+ "time": 39.01819849014282
8
+ }
9
+ }
10
+ ]
11
+ }
external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10385.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "lean_workbook_10385",
5
+ "error": null,
6
+ "response": {
7
+ "messages": [
8
+ {
9
+ "severity": "warning",
10
+ "pos": {
11
+ "line": 31,
12
+ "column": 6
13
+ },
14
+ "endPos": {
15
+ "line": 31,
16
+ "column": 14
17
+ },
18
+ "data": "this tactic is never executed\nnote: this linter can be disabled with `set_option linter.unreachableTactic false`"
19
+ },
20
+ {
21
+ "severity": "warning",
22
+ "pos": {
23
+ "line": 33,
24
+ "column": 6
25
+ },
26
+ "endPos": {
27
+ "line": 33,
28
+ "column": 35
29
+ },
30
+ "data": "this tactic is never executed\nnote: this linter can be disabled with `set_option linter.unreachableTactic false`"
31
+ },
32
+ {
33
+ "severity": "warning",
34
+ "pos": {
35
+ "line": 35,
36
+ "column": 6
37
+ },
38
+ "endPos": {
39
+ "line": 35,
40
+ "column": 13
41
+ },
42
+ "data": "this tactic is never executed\nnote: this linter can be disabled with `set_option linter.unreachableTactic false`"
43
+ },
44
+ {
45
+ "severity": "warning",
46
+ "pos": {
47
+ "line": 37,
48
+ "column": 6
49
+ },
50
+ "endPos": {
51
+ "line": 37,
52
+ "column": 14
53
+ },
54
+ "data": "this tactic is never executed\nnote: this linter can be disabled with `set_option linter.unreachableTactic false`"
55
+ },
56
+ {
57
+ "severity": "warning",
58
+ "pos": {
59
+ "line": 39,
60
+ "column": 6
61
+ },
62
+ "endPos": {
63
+ "line": 39,
64
+ "column": 35
65
+ },
66
+ "data": "this tactic is never executed\nnote: this linter can be disabled with `set_option linter.unreachableTactic false`"
67
+ },
68
+ {
69
+ "severity": "warning",
70
+ "pos": {
71
+ "line": 31,
72
+ "column": 6
73
+ },
74
+ "endPos": {
75
+ "line": 31,
76
+ "column": 14
77
+ },
78
+ "data": "'norm_num' tactic does nothing\nnote: this linter can be disabled with `set_option linter.unusedTactic false`"
79
+ },
80
+ {
81
+ "severity": "warning",
82
+ "pos": {
83
+ "line": 33,
84
+ "column": 6
85
+ },
86
+ "endPos": {
87
+ "line": 33,
88
+ "column": 35
89
+ },
90
+ "data": "'simp [Real.sqrt_eq_iff_sq_eq]' tactic does nothing\nnote: this linter can be disabled with `set_option linter.unusedTactic false`"
91
+ },
92
+ {
93
+ "severity": "warning",
94
+ "pos": {
95
+ "line": 35,
96
+ "column": 6
97
+ },
98
+ "endPos": {
99
+ "line": 35,
100
+ "column": 13
101
+ },
102
+ "data": "'ring_nf' tactic does nothing\nnote: this linter can be disabled with `set_option linter.unusedTactic false`"
103
+ },
104
+ {
105
+ "severity": "warning",
106
+ "pos": {
107
+ "line": 37,
108
+ "column": 6
109
+ },
110
+ "endPos": {
111
+ "line": 37,
112
+ "column": 14
113
+ },
114
+ "data": "'norm_num' tactic does nothing\nnote: this linter can be disabled with `set_option linter.unusedTactic false`"
115
+ },
116
+ {
117
+ "severity": "warning",
118
+ "pos": {
119
+ "line": 39,
120
+ "column": 6
121
+ },
122
+ "endPos": {
123
+ "line": 39,
124
+ "column": 35
125
+ },
126
+ "data": "'linarith [Real.sqrt_nonneg 3]' tactic does nothing\nnote: this linter can be disabled with `set_option linter.unusedTactic false`"
127
+ }
128
+ ],
129
+ "time": 0.07585692405700684
130
+ }
131
+ }
132
+ ]
133
+ }
external/kimina-lean-server/tests/match/output/goedel-lean_workbook_1039.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "lean_workbook_1039",
5
+ "error": null,
6
+ "response": {
7
+ "messages": [
8
+ {
9
+ "severity": "warning",
10
+ "pos": {
11
+ "line": 19,
12
+ "column": 2
13
+ },
14
+ "endPos": {
15
+ "line": 19,
16
+ "column": 18
17
+ },
18
+ "data": "'norm_num at hx ⊢' tactic does nothing\nnote: this linter can be disabled with `set_option linter.unusedTactic false`"
19
+ }
20
+ ],
21
+ "time": 0.5541861057281494
22
+ }
23
+ }
24
+ ]
25
+ }
external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10395.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "lean_workbook_10395",
5
+ "error": null,
6
+ "response": {
7
+ "messages": [
8
+ {
9
+ "severity": "warning",
10
+ "pos": {
11
+ "line": 21,
12
+ "column": 6
13
+ },
14
+ "endPos": {
15
+ "line": 21,
16
+ "column": 16
17
+ },
18
+ "data": "`le_div_iff` has been deprecated: use `le_div_iff₀` instead"
19
+ },
20
+ {
21
+ "severity": "warning",
22
+ "pos": {
23
+ "line": 6,
24
+ "column": 80
25
+ },
26
+ "endPos": {
27
+ "line": 6,
28
+ "column": 81
29
+ },
30
+ "data": "unused variable `h`\nnote: this linter can be disabled with `set_option linter.unusedVariables false`"
31
+ }
32
+ ],
33
+ "time": 1.7746238708496094
34
+ }
35
+ }
36
+ ]
37
+ }
external/kimina-lean-server/tests/match/output/goedel-lean_workbook_10396.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "lean_workbook_10396",
5
+ "error": null,
6
+ "response": {
7
+ "time": 0.7154581546783447
8
+ }
9
+ }
10
+ ]
11
+ }
external/kimina-lean-server/tests/match/output/goedel-lean_workbook_1041.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "lean_workbook_1041",
5
+ "error": null,
6
+ "response": {
7
+ "messages": [
8
+ {
9
+ "severity": "warning",
10
+ "pos": {
11
+ "line": 15,
12
+ "column": 6
13
+ },
14
+ "endPos": {
15
+ "line": 15,
16
+ "column": 19
17
+ },
18
+ "data": "this tactic is never executed\nnote: this linter can be disabled with `set_option linter.unreachableTactic false`"
19
+ },
20
+ {
21
+ "severity": "warning",
22
+ "pos": {
23
+ "line": 15,
24
+ "column": 6
25
+ },
26
+ "endPos": {
27
+ "line": 15,
28
+ "column": 19
29
+ },
30
+ "data": "'apply Eq.refl' tactic does nothing\nnote: this linter can be disabled with `set_option linter.unusedTactic false`"
31
+ }
32
+ ],
33
+ "time": 0.03470659255981445
34
+ }
35
+ }
36
+ ]
37
+ }
external/kimina-lean-server/tests/match/output/proof1.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "proof1",
5
+ "error": null,
6
+ "response": {"env": 1, "time": 0.011096000671386719}
7
+ }
8
+ ]
9
+ }
external/kimina-lean-server/tests/match/output/proof2.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "custom_id": "proof2",
5
+ "error": null,
6
+ "response": {"env": 1, "time": 0.011096000671386719}
7
+ }
8
+ ]
9
+ }
external/webshop-minimal/webshop_minimal/search_engine/resources/documents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
external/webshop-minimal/webshop_minimal/search_engine/resources_100k/documents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
outputs/2025-11-17/14-56-46/.hydra/hydra.yaml ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task: []
115
+ job:
116
+ name: agent_proxy
117
+ chdir: null
118
+ override_dirname: ''
119
+ id: ???
120
+ num: ???
121
+ config_name: eval.yaml
122
+ env_set: {}
123
+ env_copy: []
124
+ config:
125
+ override_dirname:
126
+ kv_sep: '='
127
+ item_sep: ','
128
+ exclude_keys: []
129
+ runtime:
130
+ version: 1.3.2
131
+ version_base: '1.3'
132
+ cwd: /mnt/general/wanghy/RAGEN
133
+ config_sources:
134
+ - path: hydra.conf
135
+ schema: pkg
136
+ provider: hydra
137
+ - path: /mnt/general/wanghy/RAGEN/config
138
+ schema: file
139
+ provider: main
140
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
141
+ schema: file
142
+ provider: command-line
143
+ - path: ''
144
+ schema: structured
145
+ provider: schema
146
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-17/14-56-46
147
+ choices:
148
+ hydra/env: default
149
+ hydra/callbacks: null
150
+ hydra/job_logging: default
151
+ hydra/hydra_logging: default
152
+ hydra/hydra_help: default
153
+ hydra/help: default
154
+ hydra/sweeper: basic
155
+ hydra/launcher: basic
156
+ hydra/output: default
157
+ verbose: false
outputs/2025-11-17/15-01-17/.hydra/hydra.yaml ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task: []
115
+ job:
116
+ name: agent_proxy
117
+ chdir: null
118
+ override_dirname: ''
119
+ id: ???
120
+ num: ???
121
+ config_name: eval.yaml
122
+ env_set: {}
123
+ env_copy: []
124
+ config:
125
+ override_dirname:
126
+ kv_sep: '='
127
+ item_sep: ','
128
+ exclude_keys: []
129
+ runtime:
130
+ version: 1.3.2
131
+ version_base: '1.3'
132
+ cwd: /mnt/general/wanghy/RAGEN
133
+ config_sources:
134
+ - path: hydra.conf
135
+ schema: pkg
136
+ provider: hydra
137
+ - path: /mnt/general/wanghy/RAGEN/config
138
+ schema: file
139
+ provider: main
140
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
141
+ schema: file
142
+ provider: command-line
143
+ - path: ''
144
+ schema: structured
145
+ provider: schema
146
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-17/15-01-17
147
+ choices:
148
+ hydra/env: default
149
+ hydra/callbacks: null
150
+ hydra/job_logging: default
151
+ hydra/hydra_logging: default
152
+ hydra/hydra_help: default
153
+ hydra/help: default
154
+ hydra/sweeper: basic
155
+ hydra/launcher: basic
156
+ hydra/output: default
157
+ verbose: false
outputs/2025-11-17/15-03-17/.hydra/hydra.yaml ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task: []
115
+ job:
116
+ name: agent_proxy
117
+ chdir: null
118
+ override_dirname: ''
119
+ id: ???
120
+ num: ???
121
+ config_name: eval.yaml
122
+ env_set: {}
123
+ env_copy: []
124
+ config:
125
+ override_dirname:
126
+ kv_sep: '='
127
+ item_sep: ','
128
+ exclude_keys: []
129
+ runtime:
130
+ version: 1.3.2
131
+ version_base: '1.3'
132
+ cwd: /mnt/general/wanghy/RAGEN
133
+ config_sources:
134
+ - path: hydra.conf
135
+ schema: pkg
136
+ provider: hydra
137
+ - path: /mnt/general/wanghy/RAGEN/config
138
+ schema: file
139
+ provider: main
140
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
141
+ schema: file
142
+ provider: command-line
143
+ - path: ''
144
+ schema: structured
145
+ provider: schema
146
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-17/15-03-17
147
+ choices:
148
+ hydra/env: default
149
+ hydra/callbacks: null
150
+ hydra/job_logging: default
151
+ hydra/hydra_logging: default
152
+ hydra/hydra_help: default
153
+ hydra/help: default
154
+ hydra/sweeper: basic
155
+ hydra/launcher: basic
156
+ hydra/output: default
157
+ verbose: false
outputs/2025-11-17/15-56-20/.hydra/overrides.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ []
outputs/2025-11-17/16-16-13/.hydra/config.yaml ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ custom_envs:
2
+ SimpleSokoban:
3
+ env_type: sokoban
4
+ max_actions_per_traj: 10
5
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
6
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
7
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
8
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
9
+ \ like <answer>Right || Right || Up</answer>\n"
10
+ max_tokens: 100
11
+ env_config:
12
+ dim_x: 6
13
+ dim_y: 6
14
+ num_boxes: 1
15
+ max_steps: 100
16
+ LargerSokoban:
17
+ env_type: sokoban
18
+ max_actions_per_traj: 10
19
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
20
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
21
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
22
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
23
+ \ like <answer>Right || Right || Up</answer>\n"
24
+ max_tokens: 100
25
+ env_config:
26
+ dim_x: 8
27
+ dim_y: 8
28
+ num_boxes: 2
29
+ max_steps: 100
30
+ search_depth: 10
31
+ SokobanDifferentGridVocab:
32
+ env_type: sokoban
33
+ max_actions_per_traj: 10
34
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
35
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
36
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
37
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
38
+ \ like <answer>Right || Right || Up</answer>\n"
39
+ max_tokens: 100
40
+ env_config:
41
+ search_depth: 30
42
+ dim_x: 6
43
+ dim_y: 6
44
+ num_boxes: 1
45
+ max_steps: 100
46
+ grid_lookup:
47
+ 0: W
48
+ 1: .
49
+ 2: G
50
+ 3: C
51
+ 4: B
52
+ 5: A
53
+ 6: '@'
54
+ grid_vocab:
55
+ W: wall
56
+ .: empty
57
+ G: target
58
+ C: box on target
59
+ B: box
60
+ A: player
61
+ '@': player on target
62
+ CoordSokoban:
63
+ env_type: sokoban
64
+ max_actions_per_traj: 10
65
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
66
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
67
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
68
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
69
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
70
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
71
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
72
+ \ || Right || Up</answer>.\n"
73
+ max_tokens: 120
74
+ env_config:
75
+ dim_x: 6
76
+ dim_y: 6
77
+ num_boxes: 1
78
+ max_steps: 100
79
+ observation_format: grid_coord
80
+ VisualSimpleSokoban:
81
+ env_type: sokoban
82
+ max_actions_per_traj: 10
83
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
84
+ need to push all boxes to targets. When you are right next to a box, you can
85
+ push it by moving in the same direction. You cannot push a box through a wall,
86
+ and you cannot pull a box. The answer should be a sequence of actions, like
87
+ <answer>Right || Right || Up</answer>
88
+ max_tokens: 100
89
+ env_config:
90
+ dim_x: 6
91
+ dim_y: 6
92
+ num_boxes: 1
93
+ max_steps: 100
94
+ render_mode: rgb_array
95
+ Countdown:
96
+ env_type: countdown
97
+ max_actions_per_traj: 1
98
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
99
+ list to create an equation that equals the target. Example answer format: <think>
100
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
101
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
102
+ max_tokens: 100
103
+ env_config: null
104
+ Bandit:
105
+ env_type: bandit
106
+ max_actions_per_traj: 1
107
+ env_instruction: ''
108
+ max_tokens: 100
109
+ env_config:
110
+ split: train
111
+ BanditTest:
112
+ env_type: bandit
113
+ max_actions_per_traj: 1
114
+ env_instruction: ''
115
+ max_tokens: 100
116
+ env_config:
117
+ split: test
118
+ FrozenLake:
119
+ env_type: frozen_lake
120
+ max_actions_per_traj: 10
121
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
122
+ go to the target. You may move to the unintended direction due to the slippery
123
+ ice. Example answer format: <think>To forbid the hole and go to the target,
124
+ I should go left then go up.</think><answer>Left || Up</answer>'
125
+ max_tokens: 100
126
+ env_config: null
127
+ CoordFrozenLake:
128
+ env_type: frozen_lake
129
+ max_actions_per_traj: 10
130
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
131
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
132
+ and any holes.
133
+
134
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
135
+ (5, 5).
136
+
137
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
138
+ tile.
139
+
140
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
141
+
142
+ '
143
+ max_tokens: 120
144
+ env_config:
145
+ observation_format: grid_coord
146
+ MetamathQA:
147
+ env_type: metamathqa
148
+ max_actions_per_traj: 1
149
+ env_instruction: 'You are solving Math problems. '
150
+ max_tokens: 100
151
+ env_config: null
152
+ WebShop:
153
+ env_type: webshop
154
+ max_actions_per_traj: 9
155
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
156
+ a product that close to the production description. You need to search, read
157
+ the search results, pick a product, choose the size and color and buy. You should
158
+ only choose action from the available actions list provided later. Example
159
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
160
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
161
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
162
+ max_tokens: 200
163
+ env_config:
164
+ dataset: small
165
+ Lean:
166
+ env_type: lean
167
+ max_actions_per_traj: 30
168
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
169
+ propose a sequence of tactics that completes the proof. Think step by step about
170
+ which tactics to apply next. Provide tactics separated by '||', for example
171
+ <answer>intro || simp || rfl</answer>.
172
+ max_tokens: 512
173
+ env_config: null
174
+ enable_response_mask: true
175
+ system:
176
+ CUDA_VISIBLE_DEVICES: '0'
177
+ seed:
178
+ train: 10000
179
+ val: 123
180
+ model_path: Qwen/Qwen2.5-0.5B-Instruct
181
+ lora:
182
+ rank: 0
183
+ alpha: 64
184
+ target_modules: all-linear
185
+ actor_rollout_ref:
186
+ model:
187
+ path: ${model_path}
188
+ lora_rank: ${lora.rank}
189
+ lora_alpha: ${lora.alpha}
190
+ target_modules: ${lora.target_modules}
191
+ rollout:
192
+ name: vllm
193
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
194
+ tensor_model_parallel_size: 1
195
+ dtype: bfloat16
196
+ max_model_len: 3600
197
+ prompt_length: 1
198
+ response_length: 400
199
+ gpu_memory_utilization: 0.9
200
+ max_num_batched_tokens: 8192
201
+ enforce_eager: true
202
+ free_cache_engine: true
203
+ enable_chunked_prefill: false
204
+ disable_log_stats: false
205
+ do_sample: true
206
+ val_kwargs:
207
+ do_sample: true
208
+ temperature: 0.5
209
+ top_p: 1.0
210
+ top_k: -1
211
+ logprobs: 20
212
+ agent_proxy:
213
+ max_context_window: -1
214
+ max_turn: 5
215
+ action_sep: '||'
216
+ max_actions_per_turn: 2
217
+ use_turn_scores: false
218
+ enable_think: true
219
+ reward_normalization:
220
+ grouping: state
221
+ method: identity
222
+ es_manager:
223
+ format_penalty: -0.1
224
+ train:
225
+ env_groups: 8
226
+ group_size: 16
227
+ env_configs:
228
+ tags:
229
+ - FrozenLake
230
+ n_groups:
231
+ - 8
232
+ val:
233
+ env_groups: 32
234
+ group_size: 128
235
+ env_configs:
236
+ tags:
237
+ - FrozenLake
238
+ n_groups:
239
+ - 32
240
+ ctx_manager:
241
+ generation:
242
+ gen_config:
243
+ response_length: ${actor_rollout_ref.rollout.response_length}
244
+ temperature: ${actor_rollout_ref.rollout.temperature}
245
+ top_p: ${actor_rollout_ref.rollout.top_p}
246
+ top_k: ${actor_rollout_ref.rollout.top_k}
247
+ kwargs: null
248
+ output:
249
+ dir: results/eval
250
+ filename: val_rollouts.pkl
251
+ append_timestamp: true
252
+ keep_batch_keys: null
253
+ keep_non_tensor_keys: null
254
+ keep_meta_info: true
outputs/2025-11-17/16-16-13/.hydra/overrides.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ []
outputs/2025-11-17/16-38-08/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-17/16-38-08
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-17/16-38-08/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=0
2
+ - trainer.experiment_name=frozen_lake-ppo
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-17/17-02-49/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozenlake_self
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 5
721
+ action_sep: '||'
722
+ max_actions_per_turn: 5
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-17/17-02-49/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-17/17-02-49
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/15-17-36/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozenlake_self
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 25
721
+ action_sep: '||'
722
+ max_actions_per_turn: 1
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/15-17-36/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/15-17-36
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/15-17-36/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=0
2
+ - trainer.experiment_name=frozen_lake-ppo
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-18/15-22-49/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: Qwen/Qwen2.5-0.5B-Instruct
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 25
721
+ action_sep: '||'
722
+ max_actions_per_turn: 1
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/15-25-14/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-singleaction
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: Qwen/Qwen2.5-0.5B-Instruct
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 25
721
+ action_sep: '||'
722
+ max_actions_per_turn: 1
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/15-25-14/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo-singleaction
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo-singleaction
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/15-25-14
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/15-28-39/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-singleaction
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozenlake_self
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 5
721
+ action_sep: '||'
722
+ max_actions_per_turn: 5
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/15-28-39/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo-singleaction
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo-singleaction
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/15-28-39
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/15-28-39/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=0
2
+ - trainer.experiment_name=frozen_lake-ppo-singleaction
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-18/15-28-39/train.log ADDED
File without changes
outputs/2025-11-18/15-41-05/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-singleaction
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: Qwen/Qwen2.5-0.5B-Instruct
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 5
721
+ action_sep: '||'
722
+ max_actions_per_turn: 5
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/15-41-05/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo-singleaction
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo-singleaction
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/15-41-05
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/15-41-05/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=0
2
+ - trainer.experiment_name=frozen_lake-ppo-singleaction
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-18/15-41-05/train.log ADDED
File without changes
outputs/2025-11-18/16-01-34/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-singleaction
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: Qwen/Qwen2.5-0.5B-Instruct
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 25
721
+ action_sep: '||'
722
+ max_actions_per_turn: 1
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/16-01-34/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo-singleaction
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo-singleaction
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/16-01-34
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/16-01-34/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=0
2
+ - trainer.experiment_name=frozen_lake-ppo-singleaction
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-18/16-01-34/train.log ADDED
File without changes
outputs/2025-11-18/16-08-06/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-self-nothink
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 0
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozen_lake_self_nothink
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 5
721
+ action_sep: '||'
722
+ max_actions_per_turn: 5
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/16-08-06/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=0
116
+ - trainer.experiment_name=frozen_lake-ppo-self-nothink
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=frozen_lake-ppo-self-nothink
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/16-08-06
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/16-08-06/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=0
2
+ - trainer.experiment_name=frozen_lake-ppo-self-nothink
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-18/17-34-55/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-frommlp-singleaction
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 1
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozenlake
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 25
721
+ action_sep: '||'
722
+ max_actions_per_turn: 1
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/17-34-55/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=1
116
+ - trainer.experiment_name=frozen_lake-ppo-frommlp-singleaction
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=1,trainer.experiment_name=frozen_lake-ppo-frommlp-singleaction
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/17-34-55
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/17-34-55/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=1
2
+ - trainer.experiment_name=frozen_lake-ppo-frommlp-singleaction
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-18/18-09-16/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-self-nothink
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 2
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozen_lake_self_nothink
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 5
721
+ action_sep: '||'
722
+ max_actions_per_turn: 5
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null
outputs/2025-11-18/18-09-16/.hydra/hydra.yaml ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES=2
116
+ - trainer.experiment_name=frozen_lake-ppo-self-nothink
117
+ - algorithm.adv_estimator=gae
118
+ - algorithm.kl_ctrl.kl_coef=0.001
119
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
120
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
121
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
122
+ job:
123
+ name: train
124
+ chdir: null
125
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=2,trainer.experiment_name=frozen_lake-ppo-self-nothink
126
+ id: ???
127
+ num: ???
128
+ config_name: _3_frozen_lake
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /mnt/general/wanghy/RAGEN
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /mnt/general/wanghy/RAGEN/config
145
+ schema: file
146
+ provider: main
147
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
148
+ schema: file
149
+ provider: command-line
150
+ - path: ''
151
+ schema: structured
152
+ provider: schema
153
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-18/18-09-16
154
+ choices:
155
+ reward_model: dp_reward_model
156
+ critic: dp_critic
157
+ critic/../engine@critic.model.fsdp_config: fsdp
158
+ critic/../optim@critic.optim: fsdp
159
+ model@actor_rollout_ref.model: hf_model
160
+ rollout@actor_rollout_ref.rollout: rollout
161
+ ref@actor_rollout_ref.ref: dp_ref
162
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
163
+ data: legacy_data
164
+ actor@actor_rollout_ref.actor: dp_actor
165
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
166
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
167
+ hydra/env: default
168
+ hydra/callbacks: null
169
+ hydra/job_logging: default
170
+ hydra/hydra_logging: default
171
+ hydra/hydra_help: default
172
+ hydra/help: default
173
+ hydra/sweeper: basic
174
+ hydra/launcher: basic
175
+ hydra/output: default
176
+ verbose: false
outputs/2025-11-18/18-09-16/.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES=2
2
+ - trainer.experiment_name=frozen_lake-ppo-self-nothink
3
+ - algorithm.adv_estimator=gae
4
+ - algorithm.kl_ctrl.kl_coef=0.001
5
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
6
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
7
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
outputs/2025-11-18/18-09-16/train.log ADDED
File without changes
outputs/2025-11-19/10-35-14/.hydra/config.yaml ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ actor_rollout_ref:
2
+ actor:
3
+ optim:
4
+ _target_: verl.workers.config.FSDPOptimizerConfig
5
+ lr: 1.0e-06
6
+ lr_warmup_steps_ratio: 0.0
7
+ total_training_steps: -1
8
+ weight_decay: 0.01
9
+ lr_warmup_steps: -1
10
+ betas:
11
+ - 0.9
12
+ - 0.999
13
+ clip_grad: 1.0
14
+ min_lr_ratio: 0.0
15
+ num_cycles: 0.5
16
+ warmup_style: constant
17
+ fsdp_config:
18
+ _target_: verl.workers.config.FSDPEngineConfig
19
+ wrap_policy:
20
+ min_num_params: 0
21
+ param_offload: false
22
+ optimizer_offload: false
23
+ offload_policy: false
24
+ reshard_after_forward: true
25
+ fsdp_size: -1
26
+ forward_prefetch: false
27
+ model_dtype: fp32
28
+ use_orig_params: false
29
+ ulysses_sequence_parallel_size: 1
30
+ entropy_from_logits_with_chunking: false
31
+ use_torch_compile: true
32
+ entropy_checkpointing: false
33
+ forward_only: false
34
+ strategy: fsdp
35
+ _target_: verl.workers.config.FSDPActorConfig
36
+ strategy: fsdp
37
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
38
+ ppo_micro_batch_size: null
39
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
40
+ use_dynamic_bsz: false
41
+ ppo_max_token_len_per_gpu: 16384
42
+ clip_ratio: 0.2
43
+ clip_ratio_low: 0.2
44
+ clip_ratio_high: 0.2
45
+ freeze_vision_tower: false
46
+ policy_loss:
47
+ _target_: verl.workers.config.PolicyLossConfig
48
+ loss_mode: vanilla
49
+ clip_cov_ratio: 0.0002
50
+ clip_cov_lb: 1.0
51
+ clip_cov_ub: 5.0
52
+ kl_cov_ratio: 0.0002
53
+ ppo_kl_coef: 0.1
54
+ clip_ratio_c: 3.0
55
+ loss_agg_mode: token-mean
56
+ entropy_coeff: 0.001
57
+ tis_imp_ratio_cap: -1
58
+ use_kl_loss: false
59
+ use_torch_compile: true
60
+ kl_loss_coef: 0.001
61
+ kl_loss_type: kl
62
+ ppo_epochs: 1
63
+ shuffle: false
64
+ checkpoint:
65
+ _target_: verl.trainer.config.CheckpointConfig
66
+ save_contents:
67
+ - model
68
+ - optimizer
69
+ - extra
70
+ load_contents: ${.save_contents}
71
+ async_save: false
72
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
73
+ profiler:
74
+ _target_: verl.utils.profiler.ProfilerConfig
75
+ tool: ${oc.select:global_profiler.tool,null}
76
+ enable: false
77
+ all_ranks: false
78
+ ranks: []
79
+ save_path: ${oc.select:global_profiler.save_path,null}
80
+ tool_config:
81
+ nsys:
82
+ _target_: verl.utils.profiler.config.NsightToolConfig
83
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
84
+ npu:
85
+ _target_: verl.utils.profiler.config.NPUToolConfig
86
+ contents: []
87
+ level: level1
88
+ analysis: true
89
+ discrete: false
90
+ torch:
91
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
92
+ step_start: 0
93
+ step_end: null
94
+ torch_memory:
95
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
96
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
97
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
98
+ grad_clip: 1.0
99
+ ulysses_sequence_parallel_size: 1
100
+ entropy_from_logits_with_chunking: false
101
+ entropy_checkpointing: false
102
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
103
+ use_ref: true
104
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
105
+ ref:
106
+ strategy: ${actor_rollout_ref.actor.strategy}
107
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
108
+ log_prob_micro_batch_size: null
109
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
110
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
111
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
112
+ profiler:
113
+ _target_: verl.utils.profiler.ProfilerConfig
114
+ tool: ${oc.select:global_profiler.tool,null}
115
+ enable: false
116
+ all_ranks: false
117
+ ranks: []
118
+ save_path: ${oc.select:global_profiler.save_path,null}
119
+ tool_config:
120
+ nsys:
121
+ _target_: verl.utils.profiler.config.NsightToolConfig
122
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
123
+ npu:
124
+ _target_: verl.utils.profiler.config.NPUToolConfig
125
+ contents: []
126
+ level: level1
127
+ analysis: true
128
+ discrete: false
129
+ torch:
130
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
131
+ step_start: 0
132
+ step_end: null
133
+ torch_memory:
134
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
135
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
136
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
137
+ fsdp_config:
138
+ _target_: verl.workers.config.FSDPEngineConfig
139
+ wrap_policy:
140
+ min_num_params: 0
141
+ param_offload: false
142
+ optimizer_offload: false
143
+ offload_policy: false
144
+ reshard_after_forward: true
145
+ fsdp_size: -1
146
+ forward_prefetch: false
147
+ model_dtype: fp32
148
+ use_orig_params: false
149
+ ulysses_sequence_parallel_size: 1
150
+ entropy_from_logits_with_chunking: false
151
+ use_torch_compile: true
152
+ entropy_checkpointing: false
153
+ forward_only: false
154
+ strategy: fsdp
155
+ model: null
156
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
157
+ entropy_from_logits_with_chunking: false
158
+ entropy_checkpointing: false
159
+ rollout:
160
+ _target_: verl.workers.config.RolloutConfig
161
+ name: vllm
162
+ mode: sync
163
+ temperature: 1
164
+ top_k: -1
165
+ top_p: 1
166
+ prompt_length: 1
167
+ response_length: 400
168
+ dtype: bfloat16
169
+ gpu_memory_utilization: 0.5
170
+ ignore_eos: false
171
+ enforce_eager: true
172
+ cudagraph_capture_sizes: null
173
+ free_cache_engine: true
174
+ tensor_model_parallel_size: 1
175
+ data_parallel_size: 1
176
+ expert_parallel_size: 1
177
+ max_num_batched_tokens: 8192
178
+ max_model_len: 3600
179
+ max_num_seqs: 1024
180
+ enable_chunked_prefill: true
181
+ enable_prefix_caching: true
182
+ load_format: dummy
183
+ log_prob_micro_batch_size: null
184
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
185
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
186
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
187
+ disable_log_stats: true
188
+ do_sample: true
189
+ 'n': 1
190
+ over_sample_rate: 0
191
+ multi_stage_wake_up: false
192
+ engine_kwargs:
193
+ vllm: {}
194
+ sglang: {}
195
+ val_kwargs:
196
+ _target_: verl.workers.config.SamplingConfig
197
+ top_k: -1
198
+ top_p: 1.0
199
+ temperature: 0.5
200
+ 'n': 1
201
+ do_sample: true
202
+ multi_turn:
203
+ _target_: verl.workers.config.MultiTurnConfig
204
+ enable: false
205
+ max_assistant_turns: null
206
+ tool_config_path: null
207
+ max_user_turns: null
208
+ max_parallel_calls: 1
209
+ max_tool_response_length: 256
210
+ tool_response_truncate_side: middle
211
+ interaction_config_path: null
212
+ use_inference_chat_template: false
213
+ tokenization_sanity_check_mode: strict
214
+ format: hermes
215
+ num_repeat_rollouts: null
216
+ calculate_log_probs: false
217
+ agent:
218
+ _target_: verl.workers.config.AgentLoopConfig
219
+ num_workers: 8
220
+ agent_loop_config_path: null
221
+ custom_async_server:
222
+ _target_: verl.workers.config.CustomAsyncServerConfig
223
+ path: null
224
+ name: null
225
+ update_weights_bucket_megabytes: 512
226
+ trace:
227
+ _target_: verl.workers.config.TraceConfig
228
+ backend: null
229
+ token2text: false
230
+ skip_rollout: false
231
+ skip_dump_dir: /tmp/rollout_dump
232
+ skip_tokenizer_init: true
233
+ profiler:
234
+ _target_: verl.utils.profiler.ProfilerConfig
235
+ tool: ${oc.select:global_profiler.tool,null}
236
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
237
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
238
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
239
+ save_path: ${oc.select:global_profiler.save_path,null}
240
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
241
+ layered_summon: false
242
+ rollout_filter_ratio: 1
243
+ rollout_filter_type: largest
244
+ rollout_filter_metric: reward_variance
245
+ model:
246
+ _target_: verl.workers.config.HFModelConfig
247
+ path: ${model_path}
248
+ hf_config_path: null
249
+ tokenizer_path: null
250
+ use_shm: false
251
+ trust_remote_code: false
252
+ custom_chat_template: null
253
+ external_lib: null
254
+ override_config: {}
255
+ enable_gradient_checkpointing: true
256
+ enable_activation_offload: false
257
+ use_remove_padding: false
258
+ lora_rank: ${lora.rank}
259
+ lora_alpha: ${lora.alpha}
260
+ target_modules: ${lora.target_modules}
261
+ exclude_modules: null
262
+ use_liger: false
263
+ use_fused_kernels: false
264
+ fused_kernel_options:
265
+ impl_backend: torch
266
+ hybrid_engine: true
267
+ nccl_timeout: 600
268
+ data:
269
+ tokenizer: null
270
+ use_shm: false
271
+ train_files: ~/data/rlhf/gsm8k/train.parquet
272
+ val_files: ~/data/rlhf/gsm8k/test.parquet
273
+ prompt_key: prompt
274
+ reward_fn_key: data_source
275
+ max_prompt_length: null
276
+ max_response_length: null
277
+ train_batch_size: null
278
+ val_batch_size: null
279
+ return_raw_input_ids: false
280
+ return_raw_chat: false
281
+ return_full_prompt: false
282
+ shuffle: true
283
+ dataloader_num_workers: 8
284
+ validation_shuffle: false
285
+ filter_overlong_prompts: false
286
+ filter_overlong_prompts_workers: 1
287
+ truncation: error
288
+ image_key: images
289
+ video_key: videos
290
+ trust_remote_code: false
291
+ custom_cls:
292
+ path: null
293
+ name: null
294
+ return_multi_modal_inputs: true
295
+ sampler:
296
+ class_path: null
297
+ class_name: null
298
+ datagen:
299
+ path: null
300
+ name: null
301
+ apply_chat_template_kwargs: {}
302
+ critic:
303
+ optim:
304
+ _target_: verl.workers.config.FSDPOptimizerConfig
305
+ lr: 1.0e-05
306
+ lr_warmup_steps_ratio: 0.0
307
+ total_training_steps: -1
308
+ weight_decay: 0.01
309
+ lr_warmup_steps: -1
310
+ betas:
311
+ - 0.9
312
+ - 0.999
313
+ clip_grad: 1.0
314
+ min_lr_ratio: 0.0
315
+ num_cycles: 0.5
316
+ warmup_style: constant
317
+ model:
318
+ fsdp_config:
319
+ _target_: verl.workers.config.FSDPEngineConfig
320
+ wrap_policy:
321
+ min_num_params: 0
322
+ param_offload: false
323
+ optimizer_offload: false
324
+ offload_policy: false
325
+ reshard_after_forward: true
326
+ fsdp_size: -1
327
+ forward_prefetch: false
328
+ model_dtype: fp32
329
+ use_orig_params: false
330
+ ulysses_sequence_parallel_size: 1
331
+ entropy_from_logits_with_chunking: false
332
+ use_torch_compile: true
333
+ entropy_checkpointing: false
334
+ forward_only: false
335
+ strategy: fsdp
336
+ path: ${model_path}
337
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
338
+ override_config: {}
339
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
340
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
341
+ _target_: verl.workers.config.FSDPCriticModelCfg
342
+ use_shm: false
343
+ enable_gradient_checkpointing: true
344
+ enable_activation_offload: false
345
+ use_remove_padding: false
346
+ lora_rank: ${lora.rank}
347
+ lora_alpha: ${lora.alpha}
348
+ target_modules: ${lora.target_modules}
349
+ _target_: verl.workers.config.FSDPCriticConfig
350
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
351
+ strategy: fsdp
352
+ enable: null
353
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
354
+ ppo_micro_batch_size: null
355
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
356
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
357
+ ppo_max_token_len_per_gpu: 32768
358
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
359
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
360
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
361
+ cliprange_value: 0.5
362
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
363
+ checkpoint:
364
+ _target_: verl.trainer.config.CheckpointConfig
365
+ save_contents:
366
+ - model
367
+ - optimizer
368
+ - extra
369
+ load_contents: ${.save_contents}
370
+ async_save: false
371
+ profiler:
372
+ _target_: verl.utils.profiler.ProfilerConfig
373
+ tool: ${oc.select:global_profiler.tool,null}
374
+ enable: false
375
+ all_ranks: false
376
+ ranks: []
377
+ save_path: ${oc.select:global_profiler.save_path,null}
378
+ tool_config:
379
+ nsys:
380
+ _target_: verl.utils.profiler.config.NsightToolConfig
381
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
382
+ npu:
383
+ _target_: verl.utils.profiler.config.NPUToolConfig
384
+ contents: []
385
+ level: level1
386
+ analysis: true
387
+ discrete: false
388
+ torch:
389
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
390
+ step_start: 0
391
+ step_end: null
392
+ torch_memory:
393
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
394
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
395
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
396
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
397
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
398
+ ulysses_sequence_parallel_size: 1
399
+ grad_clip: 1.0
400
+ reward_model:
401
+ enable: false
402
+ enable_resource_pool: false
403
+ n_gpus_per_node: 0
404
+ nnodes: 0
405
+ strategy: fsdp
406
+ model:
407
+ input_tokenizer: ${actor_rollout_ref.model.path}
408
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
409
+ external_lib: ${actor_rollout_ref.model.external_lib}
410
+ trust_remote_code: false
411
+ use_shm: false
412
+ use_remove_padding: false
413
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
414
+ fsdp_config:
415
+ _target_: verl.workers.config.FSDPEngineConfig
416
+ wrap_policy:
417
+ min_num_params: 0
418
+ param_offload: false
419
+ reshard_after_forward: true
420
+ fsdp_size: -1
421
+ forward_prefetch: false
422
+ micro_batch_size: null
423
+ micro_batch_size_per_gpu: null
424
+ max_length: null
425
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
426
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
427
+ reward_manager: naive
428
+ launch_reward_fn_async: false
429
+ sandbox_fusion:
430
+ url: null
431
+ max_concurrent: 64
432
+ memory_limit_mb: 1024
433
+ profiler:
434
+ _target_: verl.utils.profiler.ProfilerConfig
435
+ tool: ${oc.select:global_profiler.tool,null}
436
+ enable: false
437
+ all_ranks: false
438
+ ranks: []
439
+ save_path: ${oc.select:global_profiler.save_path,null}
440
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
441
+ ulysses_sequence_parallel_size: 1
442
+ custom_reward_function:
443
+ path: null
444
+ name: compute_score
445
+ algorithm:
446
+ _target_: verl.trainer.config.AlgoConfig
447
+ gamma: 1.0
448
+ lam: 1.0
449
+ adv_estimator: gae
450
+ norm_adv_by_std_in_grpo: true
451
+ use_kl_in_reward: false
452
+ kl_penalty: kl
453
+ kl_ctrl:
454
+ _target_: verl.trainer.config.KLControlConfig
455
+ type: fixed
456
+ kl_coef: 0.001
457
+ horizon: 10000
458
+ target_kl: 0.1
459
+ use_pf_ppo: false
460
+ pf_ppo:
461
+ reweight_method: pow
462
+ weight_pow: 2.0
463
+ high_level_gamma: 0.95
464
+ bi_level_gae: false
465
+ trainer:
466
+ balance_batch: true
467
+ total_epochs: 30
468
+ total_training_steps: 200
469
+ project_name: ragen_latest
470
+ experiment_name: frozen_lake-ppo-self-nothink
471
+ logger:
472
+ - console
473
+ - wandb
474
+ log_val_generations: 0
475
+ rollout_data_dir: null
476
+ validation_data_dir: null
477
+ nnodes: 1
478
+ n_gpus_per_node: 1
479
+ save_freq: 100
480
+ esi_redundant_time: 0
481
+ resume_mode: auto
482
+ resume_from_path: null
483
+ val_before_train: true
484
+ val_only: false
485
+ test_freq: 10
486
+ critic_warmup: 0
487
+ default_hdfs_dir: null
488
+ del_local_ckpt_after_load: false
489
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
490
+ max_actor_ckpt_to_keep: 1
491
+ max_critic_ckpt_to_keep: 1
492
+ ray_wait_register_center_timeout: 300
493
+ device: cuda
494
+ use_legacy_worker_impl: auto
495
+ local_log_dir: results/
496
+ validation_steps: 1
497
+ generations_to_log_to_wandb:
498
+ train: 128
499
+ val: 20
500
+ global_profiler:
501
+ _target_: verl.utils.profiler.ProfilerConfig
502
+ tool: null
503
+ steps: null
504
+ profile_continuous_steps: false
505
+ save_path: outputs/profile
506
+ global_tool_config:
507
+ nsys:
508
+ _target_: verl.utils.profiler.config.NsightToolConfig
509
+ discrete: false
510
+ controller_nsight_options:
511
+ trace: cuda,nvtx,cublas,ucx
512
+ cuda-memory-usage: 'true'
513
+ cuda-graph-trace: graph
514
+ worker_nsight_options:
515
+ trace: cuda,nvtx,cublas,ucx
516
+ cuda-memory-usage: 'true'
517
+ cuda-graph-trace: graph
518
+ capture-range: cudaProfilerApi
519
+ capture-range-end: null
520
+ kill: none
521
+ torch_memory:
522
+ trace_alloc_max_entries: 100000
523
+ stack_depth: 32
524
+ context: all
525
+ stacks: all
526
+ kw_args: {}
527
+ ray_kwargs:
528
+ ray_init:
529
+ num_cpus: null
530
+ timeline_json_file: null
531
+ custom_envs:
532
+ SimpleSokoban:
533
+ env_type: sokoban
534
+ max_actions_per_traj: 10
535
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
536
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
537
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
538
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
539
+ \ like <answer>Right || Right || Up</answer>\n"
540
+ max_tokens: 100
541
+ env_config:
542
+ dim_x: 6
543
+ dim_y: 6
544
+ num_boxes: 1
545
+ max_steps: 100
546
+ LargerSokoban:
547
+ env_type: sokoban
548
+ max_actions_per_traj: 10
549
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
550
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
551
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
552
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
553
+ \ like <answer>Right || Right || Up</answer>\n"
554
+ max_tokens: 100
555
+ env_config:
556
+ dim_x: 8
557
+ dim_y: 8
558
+ num_boxes: 2
559
+ max_steps: 100
560
+ search_depth: 10
561
+ SokobanDifferentGridVocab:
562
+ env_type: sokoban
563
+ max_actions_per_traj: 10
564
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
565
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
566
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
567
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
568
+ \ like <answer>Right || Right || Up</answer>\n"
569
+ max_tokens: 100
570
+ env_config:
571
+ search_depth: 30
572
+ dim_x: 6
573
+ dim_y: 6
574
+ num_boxes: 1
575
+ max_steps: 100
576
+ grid_lookup:
577
+ 0: W
578
+ 1: .
579
+ 2: G
580
+ 3: C
581
+ 4: B
582
+ 5: A
583
+ 6: '@'
584
+ grid_vocab:
585
+ W: wall
586
+ .: empty
587
+ G: target
588
+ C: box on target
589
+ B: box
590
+ A: player
591
+ '@': player on target
592
+ CoordSokoban:
593
+ env_type: sokoban
594
+ max_actions_per_traj: 10
595
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
596
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
597
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
598
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
599
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
600
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
601
+ \ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
602
+ \ || Right || Up</answer>.\n"
603
+ max_tokens: 120
604
+ env_config:
605
+ dim_x: 6
606
+ dim_y: 6
607
+ num_boxes: 1
608
+ max_steps: 100
609
+ observation_format: grid_coord
610
+ VisualSimpleSokoban:
611
+ env_type: sokoban
612
+ max_actions_per_traj: 10
613
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
614
+ need to push all boxes to targets. When you are right next to a box, you can
615
+ push it by moving in the same direction. You cannot push a box through a wall,
616
+ and you cannot pull a box. The answer should be a sequence of actions, like
617
+ <answer>Right || Right || Up</answer>
618
+ max_tokens: 100
619
+ env_config:
620
+ dim_x: 6
621
+ dim_y: 6
622
+ num_boxes: 1
623
+ max_steps: 100
624
+ render_mode: rgb_array
625
+ Countdown:
626
+ env_type: countdown
627
+ max_actions_per_traj: 1
628
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
629
+ list to create an equation that equals the target. Example answer format: <think>
630
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
631
+ = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
632
+ max_tokens: 100
633
+ env_config: null
634
+ Bandit:
635
+ env_type: bandit
636
+ max_actions_per_traj: 1
637
+ env_instruction: ''
638
+ max_tokens: 100
639
+ env_config:
640
+ split: train
641
+ BanditTest:
642
+ env_type: bandit
643
+ max_actions_per_traj: 1
644
+ env_instruction: ''
645
+ max_tokens: 100
646
+ env_config:
647
+ split: test
648
+ FrozenLake:
649
+ env_type: frozen_lake
650
+ max_actions_per_traj: 10
651
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
652
+ go to the target. You may move to the unintended direction due to the slippery
653
+ ice. Example answer format: <think>To forbid the hole and go to the target,
654
+ I should go left then go up.</think><answer>Left || Up</answer>'
655
+ max_tokens: 100
656
+ env_config: null
657
+ CoordFrozenLake:
658
+ env_type: frozen_lake
659
+ max_actions_per_traj: 10
660
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
661
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
662
+ and any holes.
663
+
664
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
665
+ (5, 5).
666
+
667
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
668
+ tile.
669
+
670
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
671
+
672
+ '
673
+ max_tokens: 120
674
+ env_config:
675
+ observation_format: grid_coord
676
+ MetamathQA:
677
+ env_type: metamathqa
678
+ max_actions_per_traj: 1
679
+ env_instruction: 'You are solving Math problems. '
680
+ max_tokens: 100
681
+ env_config: null
682
+ WebShop:
683
+ env_type: webshop
684
+ max_actions_per_traj: 9
685
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
686
+ a product that close to the production description. You need to search, read
687
+ the search results, pick a product, choose the size and color and buy. You should
688
+ only choose action from the available actions list provided later. Example
689
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
690
+ First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
691
+ with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
692
+ max_tokens: 200
693
+ env_config:
694
+ dataset: small
695
+ Lean:
696
+ env_type: lean
697
+ max_actions_per_traj: 30
698
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
699
+ propose a sequence of tactics that completes the proof. Think step by step about
700
+ which tactics to apply next. Provide tactics separated by '||', for example
701
+ <answer>intro || simp || rfl</answer>.
702
+ max_tokens: 512
703
+ env_config: null
704
+ system:
705
+ CUDA_VISIBLE_DEVICES: 2
706
+ seed:
707
+ train: 10000
708
+ val: 123
709
+ micro_batch_size_per_gpu: 1
710
+ ppo_mini_batch_size: 32
711
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozen_lake_self_nothink
712
+ enable_response_mask: true
713
+ grpo_advantage_length_weight: false
714
+ lora:
715
+ rank: 0
716
+ alpha: 16
717
+ target_modules: all-linear
718
+ agent_proxy:
719
+ max_context_window: -1
720
+ max_turn: 5
721
+ action_sep: '||'
722
+ max_actions_per_turn: 5
723
+ use_turn_scores: false
724
+ enable_think: true
725
+ reward_normalization:
726
+ grouping: state
727
+ method: identity
728
+ es_manager:
729
+ format_penalty: -0.1
730
+ train:
731
+ env_groups: 8
732
+ group_size: 16
733
+ env_configs:
734
+ tags:
735
+ - CoordFrozenLake
736
+ n_groups:
737
+ - 8
738
+ val:
739
+ env_groups: 256
740
+ group_size: 1
741
+ env_configs:
742
+ tags:
743
+ - CoordFrozenLake
744
+ n_groups:
745
+ - 256
746
+ ctx_manager:
747
+ generation:
748
+ gen_config:
749
+ response_length: ${actor_rollout_ref.rollout.response_length}
750
+ temperature: ${actor_rollout_ref.rollout.temperature}
751
+ top_p: ${actor_rollout_ref.rollout.top_p}
752
+ top_k: ${actor_rollout_ref.rollout.top_k}
753
+ kwargs: null