Harryis commited on
Commit
039dd91
·
verified ·
1 Parent(s): 044118b

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. .gitattributes +14 -0
  2. wandb/run-20260513_141834-qumom4e1/files/code/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py +541 -0
  3. wandb/run-20260513_141834-qumom4e1/files/config.yaml +193 -0
  4. wandb/run-20260513_141834-qumom4e1/files/diff.patch +536 -0
  5. wandb/run-20260513_141834-qumom4e1/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch +536 -0
  6. wandb/run-20260513_141834-qumom4e1/files/requirements.txt +316 -0
  7. wandb/run-20260513_141834-qumom4e1/files/wandb-metadata.json +89 -0
  8. wandb/run-20260513_141834-qumom4e1/files/wandb-summary.json +1 -0
  9. wandb/run-20260513_141834-qumom4e1/run-qumom4e1.wandb +3 -0
  10. wandb/run-20260513_143037-5nbglqlm/files/code/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py +541 -0
  11. wandb/run-20260513_143037-5nbglqlm/files/config.yaml +193 -0
  12. wandb/run-20260513_143037-5nbglqlm/files/diff.patch +536 -0
  13. wandb/run-20260513_143037-5nbglqlm/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch +536 -0
  14. wandb/run-20260513_143037-5nbglqlm/files/requirements.txt +316 -0
  15. wandb/run-20260513_143037-5nbglqlm/files/wandb-metadata.json +89 -0
  16. wandb/run-20260513_143037-5nbglqlm/files/wandb-summary.json +1 -0
  17. wandb/run-20260513_143037-5nbglqlm/run-5nbglqlm.wandb +3 -0
  18. wandb/run-20260515_161238-gu8o8dz5/files/code/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py +588 -0
  19. wandb/run-20260515_161238-gu8o8dz5/files/diff.patch +536 -0
  20. wandb/run-20260515_161238-gu8o8dz5/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch +536 -0
  21. wandb/run-20260515_161238-gu8o8dz5/files/requirements.txt +316 -0
  22. wandb/run-20260515_161238-gu8o8dz5/files/wandb-metadata.json +89 -0
  23. wandb/run-20260515_161238-gu8o8dz5/run-gu8o8dz5.wandb +3 -0
  24. wandb/run-20260515_162634-oma8h4e9/files/code/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py +588 -0
  25. wandb/run-20260515_162634-oma8h4e9/files/config.yaml +200 -0
  26. wandb/run-20260515_162634-oma8h4e9/files/diff.patch +536 -0
  27. wandb/run-20260515_162634-oma8h4e9/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch +536 -0
  28. wandb/run-20260515_162634-oma8h4e9/files/requirements.txt +316 -0
  29. wandb/run-20260515_162634-oma8h4e9/files/wandb-metadata.json +89 -0
  30. wandb/run-20260515_162634-oma8h4e9/files/wandb-summary.json +1 -0
  31. wandb/run-20260515_162634-oma8h4e9/run-oma8h4e9.wandb +3 -0
  32. wandb/run-20260602_163908-h5c4lnf8/files/config.yaml +962 -0
  33. wandb/run-20260602_163908-h5c4lnf8/files/media/table/val/generations_139_f7c670102555a5d96888.table.json +0 -0
  34. wandb/run-20260602_163908-h5c4lnf8/files/media/table/val/generations_19_5713605c4ea772ad65df.table.json +0 -0
  35. wandb/run-20260602_163908-h5c4lnf8/files/media/table/val/generations_39_6156419471d1bb841f99.table.json +0 -0
  36. wandb/run-20260602_163908-h5c4lnf8/files/requirements.txt +313 -0
  37. wandb/run-20260602_163908-h5c4lnf8/files/wandb-metadata.json +107 -0
  38. wandb/run-20260602_163908-h5c4lnf8/files/wandb-summary.json +1 -0
  39. wandb/run-20260602_163908-h5c4lnf8/run-h5c4lnf8.wandb +3 -0
  40. wandb/run-20260602_211333-zvukmwu2/files/wandb-metadata.json +107 -0
  41. wandb/run-20260602_211333-zvukmwu2/run-zvukmwu2.wandb +3 -0
  42. wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_199_94689ae7e83ee2520f96.table.json +0 -0
  43. wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_59_8270095eb69e08a912c5.table.json +0 -0
  44. wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_79_cd8e96d54a2f6ead54c9.table.json +0 -0
  45. wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_99_ad31415a979365766dec.table.json +0 -0
  46. wandb/run-20260603_105223-opxt7tw0/run-opxt7tw0.wandb +3 -0
  47. wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_0_6dd20cc41529fc260e77.table.json +0 -0
  48. wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_19_b65fd772de4381cf211a.table.json +0 -0
  49. wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_29_339db967622b943b1711.table.json +0 -0
  50. wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_39_d5aaa2038a99eb45c6ed.table.json +0 -0
.gitattributes CHANGED
@@ -697,3 +697,17 @@ wandb/run-20260326_215306-tlib8xqc/run-tlib8xqc.wandb filter=lfs diff=lfs merge=
697
  wandb/run-20260326_225030-whxg2wea/run-whxg2wea.wandb filter=lfs diff=lfs merge=lfs -text
698
  wandb/run-20260327_090328-71iezltg/run-71iezltg.wandb filter=lfs diff=lfs merge=lfs -text
699
  wandb/run-20260327_093603-1fkf5bo1/run-1fkf5bo1.wandb filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
697
  wandb/run-20260326_225030-whxg2wea/run-whxg2wea.wandb filter=lfs diff=lfs merge=lfs -text
698
  wandb/run-20260327_090328-71iezltg/run-71iezltg.wandb filter=lfs diff=lfs merge=lfs -text
699
  wandb/run-20260327_093603-1fkf5bo1/run-1fkf5bo1.wandb filter=lfs diff=lfs merge=lfs -text
700
+ wandb/run-20260513_141834-qumom4e1/run-qumom4e1.wandb filter=lfs diff=lfs merge=lfs -text
701
+ wandb/run-20260513_143037-5nbglqlm/run-5nbglqlm.wandb filter=lfs diff=lfs merge=lfs -text
702
+ wandb/run-20260515_161238-gu8o8dz5/run-gu8o8dz5.wandb filter=lfs diff=lfs merge=lfs -text
703
+ wandb/run-20260515_162634-oma8h4e9/run-oma8h4e9.wandb filter=lfs diff=lfs merge=lfs -text
704
+ wandb/run-20260602_163908-h5c4lnf8/run-h5c4lnf8.wandb filter=lfs diff=lfs merge=lfs -text
705
+ wandb/run-20260602_211333-zvukmwu2/run-zvukmwu2.wandb filter=lfs diff=lfs merge=lfs -text
706
+ wandb/run-20260603_105223-opxt7tw0/run-opxt7tw0.wandb filter=lfs diff=lfs merge=lfs -text
707
+ wandb/run-20260605_101802-qcsqassg/run-qcsqassg.wandb filter=lfs diff=lfs merge=lfs -text
708
+ wandb/run-20260605_111512-v5vrcyea/run-v5vrcyea.wandb filter=lfs diff=lfs merge=lfs -text
709
+ wandb/run-20260605_115215-djwhmaa2/run-djwhmaa2.wandb filter=lfs diff=lfs merge=lfs -text
710
+ wandb/run-20260605_144602-tk4fb9fa/run-tk4fb9fa.wandb filter=lfs diff=lfs merge=lfs -text
711
+ wandb/run-20260607_140550-p3p2165s/run-p3p2165s.wandb filter=lfs diff=lfs merge=lfs -text
712
+ wandb/run-20260607_161952-vml1gpcz/run-vml1gpcz.wandb filter=lfs diff=lfs merge=lfs -text
713
+ wandb/run-20260608_142648-jhnr4zhm/run-jhnr4zhm.wandb filter=lfs diff=lfs merge=lfs -text
wandb/run-20260513_141834-qumom4e1/files/code/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py ADDED
@@ -0,0 +1,541 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NoisyNet DQN (dueling CNN) for RAGEN Sokoban, tuned for box=2
2
+ import os
3
+ import random
4
+ import time
5
+ from dataclasses import dataclass
6
+ from pathlib import Path
7
+ from typing import Dict, Any, Tuple
8
+ from collections import deque
9
+
10
+ import gymnasium as gym
11
+ import numpy as np
12
+ import torch
13
+ import torch.nn as nn
14
+ import torch.optim as optim
15
+ import tyro
16
+ import json
17
+
18
+ import sys
19
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../'))
20
+
21
+ from ragen.env.sokoban.env import SokobanEnv
22
+ from ragen.env.sokoban.config import SokobanEnvConfig
23
+
24
+
25
+ class SokobanWrapper(gym.Env):
26
+ metadata = {"render_modes": ["rgb_array", "human", "ansi", "text"]}
27
+
28
+ def __init__(self, env: SokobanEnv):
29
+ super().__init__()
30
+ self._env = env
31
+ self._h = int(self._env.dim_room[0])
32
+ self._w = int(self._env.dim_room[1])
33
+ self._tokens = ['#', '_', 'O', '√', 'X', 'P', 'S']
34
+ self._token_to_idx = {t: i for i, t in enumerate(self._tokens)}
35
+ self._c = len(self._tokens)
36
+ self.observation_space = gym.spaces.Box(low=0.0, high=1.0, shape=(self._c, self._h, self._w), dtype=np.float32)
37
+ self.action_space = gym.spaces.Discrete(4)
38
+
39
+ def _encode_obs(self, text_obs: str) -> np.ndarray:
40
+ rows = text_obs.split('\n')
41
+ rows = [list(r) for r in rows if len(r) > 0]
42
+ h = len(rows)
43
+ w = len(rows[0]) if h > 0 else self._w
44
+ grid = np.zeros((self._c, self._h, self._w), dtype=np.float32)
45
+ for i in range(min(h, self._h)):
46
+ for j in range(min(w, self._w)):
47
+ ch = rows[i][j]
48
+ idx = self._token_to_idx.get(ch, 0)
49
+ grid[idx, i, j] = 1.0
50
+ return grid
51
+
52
+ def reset(self, *, seed: int | None = None, options: Dict[str, Any] | None = None):
53
+ text_obs = self._env.reset(seed=seed)
54
+ obs = self._encode_obs(text_obs)
55
+ return obs, {}
56
+
57
+ def step(self, action: int):
58
+ mapped = int(action) + 1 # env expects 1..4
59
+ text_obs, reward, done, info = self._env.step(mapped)
60
+ obs = self._encode_obs(text_obs)
61
+ terminated = bool(done)
62
+ truncated = False
63
+ return obs, float(reward), terminated, truncated, info or {}
64
+
65
+ def render(self):
66
+ return self._env.render()
67
+
68
+ def close(self):
69
+ self._env.close()
70
+
71
+
72
+ @dataclass
73
+ class Args:
74
+ exp_name: str = os.path.basename(__file__)[: -len(".py")]
75
+ seed: int = 1
76
+ torch_deterministic: bool = True
77
+ cuda: bool = True
78
+ track: bool = True
79
+ wandb_project_name: str = "cleanRL"
80
+ wandb_entity: str | None = None
81
+ capture_video: bool = False
82
+
83
+ # Algorithm
84
+ env_id: str = "SokobanNoisyDQN"
85
+ total_timesteps: int = 1_000_000
86
+ learning_rate: float = 2.5e-4
87
+ gamma: float = 0.99
88
+ batch_size: int = 128
89
+ buffer_size: int = 200_000
90
+ target_network_frequency: int = 8000
91
+ train_frequency: int = 4
92
+ learning_starts: int = 20_000
93
+
94
+ # Epsilon-greedy (used lightly for warmup)
95
+ start_e: float = 1.0
96
+ end_e: float = 0.1
97
+ exploration_fraction: float = 0.8
98
+
99
+ # Model
100
+ dueling: bool = True
101
+ reward_clip_abs: float | None = 1.0
102
+
103
+ # Eval config
104
+ eval_splits: int = 4
105
+ eval_episodes: int = 4000
106
+
107
+ # Sokoban env config (default for harder task)
108
+ grid_h: int = 6
109
+ grid_w: int = 6
110
+ num_boxes: int = 2
111
+ max_steps_env: int = 100
112
+ search_depth: int = 300
113
+
114
+
115
+ def make_env(run_name: str, seed: int, args: Args, capture_video: bool = False):
116
+ cfg = SokobanEnvConfig(
117
+ dim_room=(args.grid_h, args.grid_w),
118
+ max_steps=args.max_steps_env,
119
+ num_boxes=args.num_boxes,
120
+ search_depth=args.search_depth,
121
+ render_mode='text',
122
+ observation_format='grid',
123
+ )
124
+ env = SokobanEnv(cfg)
125
+ env = SokobanWrapper(env)
126
+ env = gym.wrappers.RecordEpisodeStatistics(env)
127
+ if capture_video:
128
+ env = gym.wrappers.RecordVideo(env, f"videos/{run_name}")
129
+ return env
130
+
131
+
132
+ class NoisyLinear(nn.Module):
133
+ def __init__(self, in_features: int, out_features: int, std_init: float = 0.5):
134
+ super().__init__()
135
+ self.in_features = in_features
136
+ self.out_features = out_features
137
+ self.weight_mu = nn.Parameter(torch.empty(out_features, in_features))
138
+ self.weight_sigma = nn.Parameter(torch.empty(out_features, in_features))
139
+ self.register_buffer('weight_epsilon', torch.empty(out_features, in_features))
140
+ self.bias_mu = nn.Parameter(torch.empty(out_features))
141
+ self.bias_sigma = nn.Parameter(torch.empty(out_features))
142
+ self.register_buffer('bias_epsilon', torch.empty(out_features))
143
+ self.std_init = std_init / np.sqrt(in_features)
144
+ self.reset_parameters()
145
+ self.reset_noise()
146
+
147
+ def reset_parameters(self):
148
+ mu_range = 1 / np.sqrt(self.in_features)
149
+ self.weight_mu.data.uniform_(-mu_range, mu_range)
150
+ self.weight_sigma.data.fill_(self.std_init)
151
+ self.bias_mu.data.uniform_(-mu_range, mu_range)
152
+ self.bias_sigma.data.fill_(self.std_init)
153
+
154
+ def reset_noise(self):
155
+ epsilon_in = torch.randn(self.in_features, device=self.weight_mu.device)
156
+ epsilon_out = torch.randn(self.out_features, device=self.weight_mu.device)
157
+ self.weight_epsilon.copy_(epsilon_out.ger(epsilon_in))
158
+ self.bias_epsilon.copy_(epsilon_out)
159
+
160
+ def forward(self, x):
161
+ if self.training:
162
+ w = self.weight_mu + self.weight_sigma * self.weight_epsilon
163
+ b = self.bias_mu + self.bias_sigma * self.bias_epsilon
164
+ else:
165
+ w = self.weight_mu
166
+ b = self.bias_mu
167
+ return torch.nn.functional.linear(x, w, b)
168
+
169
+
170
+ def layer_init(layer, std=np.sqrt(2), bias_const=0.0):
171
+ if isinstance(layer, NoisyLinear):
172
+ nn.init.orthogonal_(layer.weight_mu, std)
173
+ nn.init.constant_(layer.bias_mu, bias_const)
174
+ layer.weight_sigma.data.fill_(layer.std_init)
175
+ layer.bias_sigma.data.fill_(layer.std_init)
176
+ else:
177
+ nn.init.orthogonal_(layer.weight, std)
178
+ nn.init.constant_(layer.bias, bias_const)
179
+ return layer
180
+
181
+
182
+ class QConvNoisy(nn.Module):
183
+ def __init__(self, obs_shape: Tuple[int, int, int], act_dim: int, dueling: bool = True):
184
+ super().__init__()
185
+ c, h, w = obs_shape
186
+ self.dueling = dueling
187
+ self._act_dim = act_dim
188
+ self.features = nn.Sequential(
189
+ layer_init(nn.Conv2d(c, 32, 3, 1, 1)),
190
+ nn.ReLU(),
191
+ layer_init(nn.Conv2d(32, 64, 3, 1, 1)),
192
+ nn.ReLU(),
193
+ layer_init(nn.Conv2d(64, 64, 3, 1, 1)),
194
+ nn.ReLU(),
195
+ nn.Flatten(),
196
+ )
197
+ fc_in = 64 * h * w
198
+ if self.dueling:
199
+ self.adv_head = nn.Sequential(
200
+ layer_init(NoisyLinear(fc_in, 512)),
201
+ nn.ReLU(),
202
+ layer_init(NoisyLinear(512, act_dim), std=0.01),
203
+ )
204
+ self.val_head = nn.Sequential(
205
+ layer_init(NoisyLinear(fc_in, 512)),
206
+ nn.ReLU(),
207
+ layer_init(NoisyLinear(512, 1), std=0.01),
208
+ )
209
+ else:
210
+ self.head = nn.Sequential(
211
+ layer_init(NoisyLinear(fc_in, 512)),
212
+ nn.ReLU(),
213
+ layer_init(NoisyLinear(512, act_dim), std=0.01),
214
+ )
215
+
216
+ def reset_noise(self):
217
+ for m in self.modules():
218
+ if isinstance(m, NoisyLinear):
219
+ m.reset_noise()
220
+
221
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
222
+ x = self.features(x)
223
+ if self.dueling:
224
+ adv = self.adv_head(x)
225
+ val = self.val_head(x)
226
+ q = val + adv - adv.mean(dim=1, keepdim=True)
227
+ return q
228
+ else:
229
+ q = self.head(x)
230
+ return q
231
+
232
+
233
+ class ReplayBuffer:
234
+ def __init__(self, capacity: int, obs_shape: Tuple[int, int, int]):
235
+ self.capacity = capacity
236
+ self.ptr = 0
237
+ self.full = False
238
+ self.obs_buf = np.zeros((capacity,) + obs_shape, dtype=np.float32)
239
+ self.next_obs_buf = np.zeros((capacity,) + obs_shape, dtype=np.float32)
240
+ self.act_buf = np.zeros((capacity,), dtype=np.int64)
241
+ self.rew_buf = np.zeros((capacity,), dtype=np.float32)
242
+ self.done_buf = np.zeros((capacity,), dtype=np.float32)
243
+
244
+ def add(self, obs: np.ndarray, act: int, rew: float, done: bool, next_obs: np.ndarray):
245
+ self.obs_buf[self.ptr] = obs
246
+ self.next_obs_buf[self.ptr] = next_obs
247
+ self.act_buf[self.ptr] = act
248
+ self.rew_buf[self.ptr] = rew
249
+ self.done_buf[self.ptr] = 1.0 if done else 0.0
250
+ self.ptr = (self.ptr + 1) % self.capacity
251
+ if self.ptr == 0:
252
+ self.full = True
253
+
254
+ def can_sample(self, batch_size: int) -> bool:
255
+ return (self.capacity if self.full else self.ptr) >= batch_size
256
+
257
+ def sample(self, batch_size: int):
258
+ size = self.capacity if self.full else self.ptr
259
+ idxs = np.random.randint(0, size, size=batch_size)
260
+ return (
261
+ self.obs_buf[idxs],
262
+ self.act_buf[idxs],
263
+ self.rew_buf[idxs],
264
+ self.done_buf[idxs],
265
+ self.next_obs_buf[idxs],
266
+ )
267
+
268
+
269
+ if __name__ == "__main__":
270
+ args = tyro.cli(Args)
271
+ run_name = f"{args.env_id}__{args.exp_name}__{args.seed}__{int(time.time())}"
272
+
273
+ if args.track:
274
+ import wandb
275
+ wandb.init(
276
+ project=args.wandb_project_name,
277
+ entity=args.wandb_entity,
278
+ config=vars(args),
279
+ name=run_name,
280
+ monitor_gym=True,
281
+ save_code=True,
282
+ )
283
+ try:
284
+ wandb.define_metric("global_step")
285
+ for prefix in ["train/*", "rollout/*", "eval/*", "losses/*", "charts/*", "perf/*"]:
286
+ wandb.define_metric(prefix, step_metric="global_step")
287
+ except Exception:
288
+ pass
289
+
290
+ # seeding
291
+ random.seed(args.seed)
292
+ np.random.seed(args.seed)
293
+ torch.manual_seed(args.seed)
294
+ torch.backends.cudnn.deterministic = args.torch_deterministic
295
+
296
+ device = torch.device("cuda" if torch.cuda.is_available() and args.cuda else "cpu")
297
+
298
+ # env
299
+ env = make_env(run_name, args.seed, args, args.capture_video)
300
+ obs_shape = env.observation_space.shape # (C,H,W)
301
+ act_dim = env.action_space.n
302
+
303
+ # networks
304
+ policy_net = QConvNoisy(obs_shape, act_dim, dueling=args.dueling).to(device)
305
+ target_net = QConvNoisy(obs_shape, act_dim, dueling=args.dueling).to(device)
306
+ target_net.load_state_dict(policy_net.state_dict())
307
+ target_net.eval()
308
+
309
+ optimizer = optim.Adam(policy_net.parameters(), lr=args.learning_rate)
310
+ criterion = nn.SmoothL1Loss()
311
+
312
+ rb = ReplayBuffer(args.buffer_size, obs_shape)
313
+
314
+ # periodic eval setup
315
+ def collect_eval_trajectories(agent_model, make_env_fn, n_episodes: int, step_tag: int):
316
+ out_dir = Path(f"runs/{run_name}/trajectories/step_{step_tag}")
317
+ out_dir.mkdir(parents=True, exist_ok=True)
318
+ out_path = out_dir / "trajectories.jsonl"
319
+ env_eval = make_env_fn()
320
+ collected = 0
321
+ summary_returns = []
322
+ summary_success = []
323
+ with out_path.open("w") as f:
324
+ while collected < n_episodes:
325
+ state, _ = env_eval.reset(seed=args.seed + 100000 + collected)
326
+ traj_states = [np.asarray(state).tolist()]
327
+ traj_actions = []
328
+ traj_rewards = []
329
+ traj_dones = []
330
+ traj_success = []
331
+ done = False
332
+ step_count = 0
333
+ max_eval_steps = getattr(env_eval, '_max_episode_steps', None) or (args.grid_h * args.grid_w * 6)
334
+ while not done:
335
+ with torch.no_grad():
336
+ q = agent_model(torch.tensor(state, dtype=torch.float32, device=device).unsqueeze(0))
337
+ action = int(torch.argmax(q, dim=1).item())
338
+ next_state, reward, terminated, truncated, info = env_eval.step(action)
339
+ traj_actions.append(int(action))
340
+ traj_rewards.append(float(reward))
341
+ step_count += 1
342
+ d = bool(terminated) or bool(truncated) or (step_count >= max_eval_steps)
343
+ traj_dones.append(d)
344
+ traj_success.append(bool((info or {}).get('success', False)))
345
+ state = next_state
346
+ traj_states.append(np.asarray(state).tolist())
347
+ done = d
348
+ ep_ret = float(sum(traj_rewards))
349
+ ep_succ = bool(any(traj_success))
350
+ record = {
351
+ "states": traj_states,
352
+ "actions": traj_actions,
353
+ "rewards": traj_rewards,
354
+ "dones": traj_dones,
355
+ "success": traj_success,
356
+ "episode_return": ep_ret,
357
+ "episode_success": ep_succ,
358
+ }
359
+ f.write(json.dumps(record) + "\n")
360
+ collected += 1
361
+ summary_returns.append(ep_ret)
362
+ summary_success.append(1.0 if ep_succ else 0.0)
363
+ env_eval.close()
364
+ try:
365
+ metrics = {
366
+ "global_step": int(step_tag),
367
+ "episodes": int(n_episodes),
368
+ "success_rate": float(np.mean(summary_success)) if len(summary_success) else 0.0,
369
+ "avg_return": float(np.mean(summary_returns)) if len(summary_returns) else 0.0,
370
+ "std_return": float(np.std(summary_returns)) if len(summary_returns) else 0.0,
371
+ }
372
+ with (out_dir / "metrics.json").open("w") as mf:
373
+ json.dump(metrics, mf)
374
+ except Exception as e:
375
+ print(f"Warning: failed to write eval metrics: {e}")
376
+
377
+ # epsilon schedule (log only; noisy nets handle exploration)
378
+ exploration_steps = max(1, int(args.exploration_fraction * args.total_timesteps))
379
+ def epsilon_by_step(t: int):
380
+ return args.end_e + (args.start_e - args.end_e) * max(0.0, (exploration_steps - t) / exploration_steps)
381
+
382
+ # training loop
383
+ global_step = 0
384
+ start_time = time.time()
385
+
386
+ obs, _ = env.reset(seed=args.seed)
387
+ ep_return = 0.0
388
+ ep_len = 0
389
+ ep_success_window = deque(maxlen=100)
390
+
391
+ eval_every_steps = max(1, args.total_timesteps // args.eval_splits)
392
+
393
+ while global_step < args.total_timesteps:
394
+ epsilon = epsilon_by_step(global_step)
395
+ with torch.no_grad():
396
+ q_values = policy_net(torch.tensor(obs, dtype=torch.float32, device=device).unsqueeze(0))
397
+ action_greedy = int(torch.argmax(q_values, dim=1).item())
398
+ if (global_step < args.learning_starts) and (np.random.rand() < 0.5):
399
+ action = env.action_space.sample()
400
+ else:
401
+ action = action_greedy
402
+ next_obs, reward, terminated, truncated, info = env.step(action)
403
+ done = bool(terminated) or bool(truncated)
404
+
405
+ r = float(reward)
406
+ if args.reward_clip_abs is not None:
407
+ cap = float(args.reward_clip_abs)
408
+ r = max(-cap, min(cap, r))
409
+
410
+ rb.add(obs.astype(np.float32), action, r, done, next_obs.astype(np.float32))
411
+
412
+ obs = next_obs
413
+ ep_return += float(reward)
414
+ ep_len += 1
415
+ global_step += 1
416
+
417
+ # optimize
418
+ if (global_step > args.learning_starts) and rb.can_sample(args.batch_size) and (global_step % args.train_frequency == 0):
419
+ batch_obs, batch_act, batch_rew, batch_done, batch_next_obs = rb.sample(args.batch_size)
420
+ b_obs = torch.tensor(batch_obs, dtype=torch.float32, device=device)
421
+ b_act = torch.tensor(batch_act, dtype=torch.int64, device=device)
422
+ b_rew = torch.tensor(batch_rew, dtype=torch.float32, device=device)
423
+ b_done = torch.tensor(batch_done, dtype=torch.float32, device=device)
424
+ b_next_obs = torch.tensor(batch_next_obs, dtype=torch.float32, device=device)
425
+
426
+ with torch.no_grad():
427
+ next_actions = policy_net(b_next_obs).argmax(dim=1)
428
+ next_q = target_net(b_next_obs).gather(1, next_actions.view(-1, 1)).squeeze(1)
429
+ target_q = b_rew + args.gamma * (1.0 - b_done) * next_q
430
+
431
+ current_q = policy_net(b_obs).gather(1, b_act.view(-1, 1)).squeeze(1)
432
+ loss = criterion(current_q, target_q)
433
+
434
+ optimizer.zero_grad()
435
+ loss.backward()
436
+ nn.utils.clip_grad_norm_(policy_net.parameters(), max_norm=10.0)
437
+ optimizer.step()
438
+
439
+ # reset noisy parameters
440
+ policy_net.reset_noise()
441
+ target_net.reset_noise()
442
+
443
+ if args.track:
444
+ try:
445
+ import wandb
446
+ wandb.log({
447
+ "global_step": int(global_step),
448
+ "train/loss": float(loss.item()),
449
+ "charts/epsilon": float(epsilon),
450
+ "perf/SPS": int(global_step / (time.time() - start_time)),
451
+ }, step=global_step)
452
+ except Exception:
453
+ pass
454
+
455
+ # target network update
456
+ if global_step % args.target_network_frequency == 0:
457
+ target_net.load_state_dict(policy_net.state_dict())
458
+
459
+ if done:
460
+ succ = bool((info or {}).get('success', False))
461
+ ep_success_window.append(1.0 if succ else 0.0)
462
+ if args.track:
463
+ try:
464
+ import wandb
465
+ wandb.log({
466
+ "global_step": int(global_step),
467
+ "rollout/episodic_return": float(ep_return),
468
+ "rollout/episodic_length": int(ep_len),
469
+ "rollout/success": float(1.0 if succ else 0.0),
470
+ "rollout/success_rate_100": float(np.mean(ep_success_window)) if len(ep_success_window) > 0 else None,
471
+ }, step=global_step)
472
+ except Exception:
473
+ pass
474
+ obs, _ = env.reset()
475
+ ep_return, ep_len = 0.0, 0
476
+
477
+ # occasional print
478
+ if global_step % 1000 == 0:
479
+ sps = int(global_step / (time.time() - start_time))
480
+ sr100 = float(np.mean(ep_success_window)) if len(ep_success_window) > 0 else 0.0
481
+ print(f"Step {global_step} | SPS: {sps} | Epsilon: {epsilon:.3f} | SR@100: {sr100:.3f}")
482
+
483
+ # periodic evaluation and trajectory dump
484
+ if global_step==0 or (global_step % eval_every_steps == 0):
485
+ try:
486
+ def eval_thunk():
487
+ return make_env(run_name, args.seed + 9999, args, False)
488
+ collect_eval_trajectories(policy_net, eval_thunk, n_episodes=args.eval_episodes, step_tag=global_step)
489
+ if args.track:
490
+ try:
491
+ import wandb
492
+ mpath = Path(f"runs/{run_name}/trajectories/step_{global_step}/metrics.json")
493
+ if mpath.exists():
494
+ with mpath.open("r") as mf:
495
+ metrics = json.load(mf)
496
+ wandb.log({
497
+ "eval/success_rate": metrics.get("success_rate"),
498
+ "eval/avg_return": metrics.get("avg_return"),
499
+ "eval/std_return": metrics.get("std_return"),
500
+ "eval/episodes": metrics.get("episodes"),
501
+ }, step=global_step)
502
+ except Exception:
503
+ pass
504
+ print(f"Collected {args.eval_episodes} eval trajectories at step {global_step}")
505
+ except Exception as e:
506
+ print(f"Warning: eval trajectory collection failed at step {global_step}: {e}")
507
+
508
+ # simple evaluation after training
509
+ def evaluate(n_episodes=200):
510
+ returns = []
511
+ successes = []
512
+ for i in range(n_episodes):
513
+ s, _ = env.reset(seed=args.seed + 100000 + i)
514
+ done = False
515
+ G = 0.0
516
+ while not done:
517
+ with torch.no_grad():
518
+ q = policy_net(torch.tensor(s, dtype=torch.float32, device=device).unsqueeze(0))
519
+ a = int(torch.argmax(q, dim=1).item())
520
+ s, r, term, trunc, info = env.step(a)
521
+ G += float(r)
522
+ done = bool(term) or bool(trunc)
523
+ successes.append(1.0 if bool((info or {}).get('success', False)) else 0.0)
524
+ returns.append(G)
525
+ return float(np.mean(returns)), float(np.std(returns)), float(np.mean(successes))
526
+
527
+ avg_ret, std_ret, succ_rate = evaluate(400)
528
+ if args.track:
529
+ try:
530
+ import wandb
531
+ wandb.log({
532
+ "global_step": int(global_step),
533
+ "eval/avg_return": float(avg_ret),
534
+ "eval/std_return": float(std_ret),
535
+ "eval/episodes": int(400),
536
+ "eval/success_rate": float(succ_rate),
537
+ }, step=global_step)
538
+ except Exception:
539
+ pass
540
+
541
+ env.close()
wandb/run-20260513_141834-qumom4e1/files/config.yaml ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.1
4
+ code_path: code/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
5
+ e:
6
+ swzgj3glyzjumc8fct6a24j895q3ndhx:
7
+ codePath: cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
8
+ codePathLocal: cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
9
+ cpu_count: 64
10
+ cpu_count_logical: 128
11
+ cudaVersion: "12.4"
12
+ disk:
13
+ /:
14
+ total: "60129542144000"
15
+ used: "67061088256"
16
+ email: haoyu-wa22@mails.tsinghua.edu.cn
17
+ executable: /opt/conda/envs/ragen_new/bin/python
18
+ git:
19
+ commit: b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0
20
+ remote: https://github.com/Harry-mic/SCOUT
21
+ gpu: NVIDIA H100 80GB HBM3
22
+ gpu_count: 8
23
+ gpu_nvidia:
24
+ - architecture: Hopper
25
+ cudaCores: 16896
26
+ memoryTotal: "85520809984"
27
+ name: NVIDIA H100 80GB HBM3
28
+ uuid: GPU-97b3b912-40cf-f573-ffce-8275a656891f
29
+ - architecture: Hopper
30
+ cudaCores: 16896
31
+ memoryTotal: "85520809984"
32
+ name: NVIDIA H100 80GB HBM3
33
+ uuid: GPU-5e4acc7a-f7ab-1a15-312e-4e2a39c43b2c
34
+ - architecture: Hopper
35
+ cudaCores: 16896
36
+ memoryTotal: "85520809984"
37
+ name: NVIDIA H100 80GB HBM3
38
+ uuid: GPU-b36695ed-370a-2556-79d8-b0a2c2659271
39
+ - architecture: Hopper
40
+ cudaCores: 16896
41
+ memoryTotal: "85520809984"
42
+ name: NVIDIA H100 80GB HBM3
43
+ uuid: GPU-b3e13ca7-237c-931f-894b-798f9cfa5620
44
+ - architecture: Hopper
45
+ cudaCores: 16896
46
+ memoryTotal: "85520809984"
47
+ name: NVIDIA H100 80GB HBM3
48
+ uuid: GPU-64647b1f-5d55-1b7e-bf3d-64fae3871140
49
+ - architecture: Hopper
50
+ cudaCores: 16896
51
+ memoryTotal: "85520809984"
52
+ name: NVIDIA H100 80GB HBM3
53
+ uuid: GPU-fe8b9b7e-82a4-1238-4843-bbfd0269d746
54
+ - architecture: Hopper
55
+ cudaCores: 16896
56
+ memoryTotal: "85520809984"
57
+ name: NVIDIA H100 80GB HBM3
58
+ uuid: GPU-4523d4e1-5745-8224-7bcd-44cf59b76bae
59
+ - architecture: Hopper
60
+ cudaCores: 16896
61
+ memoryTotal: "85520809984"
62
+ name: NVIDIA H100 80GB HBM3
63
+ uuid: GPU-9262bcbd-a29f-d761-3330-ac2ce9f15e82
64
+ host: pt-a7f17fedde804edca572f81ace5fcaf3-worker-0
65
+ memory:
66
+ total: "2159579672576"
67
+ os: Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35
68
+ program: /mnt/general/wanghy/RAGEN/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
69
+ python: CPython 3.10.20
70
+ root: /mnt/general/wanghy/RAGEN
71
+ startedAt: "2026-05-13T06:18:34.898817Z"
72
+ writerId: swzgj3glyzjumc8fct6a24j895q3ndhx
73
+ m:
74
+ - "1": global_step
75
+ "6":
76
+ - 3
77
+ "7": []
78
+ - "2": eval/*
79
+ "5": 1
80
+ "6":
81
+ - 1
82
+ "7": []
83
+ - "2": losses/*
84
+ "5": 1
85
+ "6":
86
+ - 1
87
+ "7": []
88
+ - "2": charts/*
89
+ "5": 1
90
+ "6":
91
+ - 1
92
+ "7": []
93
+ - "2": perf/*
94
+ "5": 1
95
+ "6":
96
+ - 1
97
+ "7": []
98
+ - "2": train/*
99
+ "5": 1
100
+ "6":
101
+ - 1
102
+ "7": []
103
+ - "2": rollout/*
104
+ "5": 1
105
+ "6":
106
+ - 1
107
+ "7": []
108
+ python_version: 3.10.20
109
+ t:
110
+ "1":
111
+ - 1
112
+ - 11
113
+ - 30
114
+ - 49
115
+ - 50
116
+ - 51
117
+ - 105
118
+ "2":
119
+ - 1
120
+ - 11
121
+ - 30
122
+ - 49
123
+ - 50
124
+ - 51
125
+ - 105
126
+ "3":
127
+ - 7
128
+ - 13
129
+ - 16
130
+ - 61
131
+ "4": 3.10.20
132
+ "5": 0.25.1
133
+ "6": 4.51.1
134
+ "12": 0.25.1
135
+ "13": linux-x86_64
136
+ batch_size:
137
+ value: 128
138
+ buffer_size:
139
+ value: 200000
140
+ capture_video:
141
+ value: false
142
+ cuda:
143
+ value: true
144
+ dueling:
145
+ value: true
146
+ end_e:
147
+ value: 0.1
148
+ env_id:
149
+ value: SokobanNoisyDQN
150
+ eval_episodes:
151
+ value: 4000
152
+ eval_splits:
153
+ value: 4
154
+ exp_name:
155
+ value: noisy_dqn_sokoban
156
+ exploration_fraction:
157
+ value: 0.8
158
+ gamma:
159
+ value: 0.99
160
+ grid_h:
161
+ value: 6
162
+ grid_w:
163
+ value: 6
164
+ learning_rate:
165
+ value: 0.00025
166
+ learning_starts:
167
+ value: 20000
168
+ max_steps_env:
169
+ value: 100
170
+ num_boxes:
171
+ value: 2
172
+ reward_clip_abs:
173
+ value: 1
174
+ search_depth:
175
+ value: 300
176
+ seed:
177
+ value: 1
178
+ start_e:
179
+ value: 1
180
+ target_network_frequency:
181
+ value: 8000
182
+ torch_deterministic:
183
+ value: true
184
+ total_timesteps:
185
+ value: 1000000
186
+ track:
187
+ value: true
188
+ train_frequency:
189
+ value: 4
190
+ wandb_entity:
191
+ value: null
192
+ wandb_project_name:
193
+ value: cleanRL
wandb/run-20260513_141834-qumom4e1/files/diff.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260513_141834-qumom4e1/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260513_141834-qumom4e1/files/requirements.txt ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ colorama==0.4.6
2
+ psutil==7.2.2
3
+ pyarrow==23.0.1
4
+ math-verify==0.9.0
5
+ pygame==2.6.1
6
+ partial-json-parser==0.2.1.1.post7
7
+ anyio==4.13.0
8
+ wandb==0.25.1
9
+ mathruler==0.1.0
10
+ tzdata==2026.1
11
+ gym-sokoban==0.0.6
12
+ sniffio==1.3.1
13
+ omegaconf==2.3.0
14
+ httpcore==1.0.9
15
+ scipy==1.15.3
16
+ multidict==6.7.1
17
+ nvidia-cusparse-cu12==12.3.1.170
18
+ fonttools==4.62.1
19
+ together==2.7.0
20
+ antlr4-python3-runtime==4.9.3
21
+ cupy-cuda12x==13.6.0
22
+ av==17.0.0
23
+ torch==2.6.0
24
+ datasets==4.8.4
25
+ pyparsing==3.3.2
26
+ markdown-it-py==4.0.0
27
+ accelerate==1.13.0
28
+ lark==1.2.2
29
+ sentencepiece==0.2.1
30
+ Flask==3.1.3
31
+ annotated-doc==0.0.4
32
+ rignore==0.7.6
33
+ ImageIO==2.37.3
34
+ outlines_core==0.1.26
35
+ gym==0.26.2
36
+ depyf==0.18.0
37
+ pydantic==2.12.5
38
+ nvidia-cuda-nvrtc-cu12==12.4.127
39
+ certifi==2026.2.25
40
+ aiohttp==3.13.5
41
+ flash_attn==2.7.4.post1
42
+ msgspec==0.21.0
43
+ matplotlib==3.10.8
44
+ pandas==2.3.3
45
+ openai==2.31.0
46
+ sentry-sdk==2.57.0
47
+ propcache==0.4.1
48
+ nvidia-curand-cu12==10.3.5.147
49
+ python-dateutil==2.9.0.post0
50
+ itsdangerous==2.2.0
51
+ cloudpickle==3.1.2
52
+ ray==2.54.1
53
+ cffi==2.0.0
54
+ pyzmq==27.1.0
55
+ Jinja2==3.1.6
56
+ nest-asyncio==1.6.0
57
+ orjson==3.11.8
58
+ pydantic-extra-types==2.11.2
59
+ nvidia-nccl-cu12==2.21.5
60
+ gitdb==4.0.12
61
+ Farama-Notifications==0.0.4
62
+ async-timeout==5.0.1
63
+ torchdata==0.11.0
64
+ ninja==1.13.0
65
+ hydra-core==1.3.2
66
+ GitPython==3.1.46
67
+ nvidia-cuda-runtime-cu12==12.4.127
68
+ msgpack==1.1.2
69
+ email-validator==2.3.0
70
+ yarl==1.23.0
71
+ numpy==1.26.4
72
+ charset-normalizer==3.4.7
73
+ pycountry==26.2.16
74
+ annotated-types==0.7.0
75
+ uvloop==0.22.1
76
+ torchvision==0.21.0
77
+ jsonschema-specifications==2025.9.1
78
+ uvicorn==0.44.0
79
+ nvidia-nvjitlink-cu12==12.4.127
80
+ sympy==1.13.1
81
+ latex2sympy2_extended==1.11.0
82
+ triton==3.2.0
83
+ tqdm==4.67.3
84
+ diskcache==5.6.3
85
+ kiwisolver==1.5.0
86
+ llguidance==0.7.30
87
+ prometheus_client==0.25.0
88
+ types-PyYAML==6.0.12.20260408
89
+ MarkupSafe==3.0.3
90
+ fastapi-cloud-cli==0.16.1
91
+ cachetools==7.0.5
92
+ pillow==12.2.0
93
+ airportsdata==20260315
94
+ mpmath==1.3.0
95
+ cycler==0.12.1
96
+ qwen-vl-utils==0.0.14
97
+ jsonschema==4.26.0
98
+ safetensors==0.7.0
99
+ gymnasium==1.2.3
100
+ h11==0.16.0
101
+ Pygments==2.20.0
102
+ zipp==3.23.0
103
+ outlines==0.1.11
104
+ typing_extensions==4.15.0
105
+ requests==2.33.1
106
+ watchfiles==1.1.1
107
+ shellingham==1.5.4
108
+ xformers==0.0.29.post2
109
+ blinker==1.9.0
110
+ distro==1.9.0
111
+ multiprocess==0.70.19
112
+ regex==2026.4.4
113
+ fastapi-cli==0.0.24
114
+ tabulate==0.10.0
115
+ referencing==0.37.0
116
+ xxhash==3.6.0
117
+ smmap==5.0.3
118
+ six==1.17.0
119
+ Werkzeug==3.1.8
120
+ click==8.3.2
121
+ py-cpuinfo==9.0.0
122
+ aiosignal==1.4.0
123
+ setuptools==69.1.0
124
+ setuptools==82.0.1
125
+ aiohappyeyeballs==2.6.1
126
+ starlette==0.52.1
127
+ gym-notices==0.1.0
128
+ typing-inspection==0.4.2
129
+ networkx==3.4.2
130
+ pydantic_core==2.41.5
131
+ pycparser==3.0
132
+ contourpy==1.3.2
133
+ codetiming==1.4.0
134
+ python-dotenv==1.2.2
135
+ rpds-py==0.30.0
136
+ blake3==1.0.8
137
+ python-multipart==0.0.24
138
+ fastapi==0.135.3
139
+ httpx==0.28.1
140
+ attrs==26.1.0
141
+ pytz==2026.1.post1
142
+ platformdirs==4.9.6
143
+ nvidia-cusolver-cu12==11.6.1.9
144
+ hf-xet==1.4.3
145
+ filelock==3.25.2
146
+ types-requests==2.33.0.20260408
147
+ idna==3.11
148
+ fsspec==2026.2.0
149
+ astor==0.8.1
150
+ interegular==0.3.3
151
+ nvidia-cudnn-cu12==9.1.0.70
152
+ frozenlist==1.8.0
153
+ pylatexenc==2.10
154
+ nvidia-cublas-cu12==12.4.5.8
155
+ httptools==0.7.1
156
+ python-json-logger==4.1.0
157
+ mdurl==0.1.2
158
+ mistral_common==1.11.0
159
+ vulkan==1.3.275.1
160
+ nvidia-cuda-cupti-cu12==12.4.127
161
+ pybind11==3.0.3
162
+ PyYAML==6.0.3
163
+ jiter==0.13.0
164
+ fastrlock==0.8.3
165
+ typeguard==4.5.1
166
+ typer==0.24.1
167
+ websockets==16.0
168
+ nvidia-cufft-cu12==11.2.1.3
169
+ nvidia-nvtx-cu12==12.4.127
170
+ psutil==7.2.2
171
+ tomli==2.4.1
172
+ types-tqdm==4.67.3.20260408
173
+ fastar==0.10.0
174
+ einops==0.8.2
175
+ lm-format-enforcer==0.10.12
176
+ opencv-python-headless==4.11.0.86
177
+ tiktoken==0.12.0
178
+ rich-toolkit==0.19.7
179
+ rich==14.3.3
180
+ dnspython==2.8.0
181
+ pydantic-settings==2.13.1
182
+ types-tabulate==0.10.0.20260408
183
+ torchaudio==2.6.0
184
+ urllib3==2.6.3
185
+ dill==0.4.1
186
+ docstring_parser==0.18.0
187
+ prometheus-fastapi-instrumentator==7.1.0
188
+ peft==0.18.1
189
+ exceptiongroup==1.3.1
190
+ tyro==1.0.13
191
+ nvidia-cusparselt-cu12==0.6.2
192
+ packaging==26.0
193
+ wheel==0.46.3
194
+ pip==26.0.1
195
+ pyjnius==1.7.0
196
+ pure_eval==0.2.3
197
+ ptyprocess==0.7.0
198
+ flatbuffers==25.12.19
199
+ faiss-gpu==1.7.2
200
+ wrapt==2.1.2
201
+ wcwidth==0.6.0
202
+ wasabi==1.1.3
203
+ traitlets==5.14.3
204
+ threadpoolctl==3.6.0
205
+ tenacity==9.1.4
206
+ spacy-loggers==1.0.5
207
+ spacy-legacy==3.0.12
208
+ soupsieve==2.8.3
209
+ RapidFuzz==3.14.5
210
+ rank-bm25==0.2.2
211
+ PySocks==1.7.1
212
+ PyJWT==2.12.1
213
+ parso==0.8.6
214
+ protobuf==4.25.9
215
+ pexpect==4.9.0
216
+ opentelemetry-semantic-conventions-ai==0.4.13
217
+ murmurhash==1.0.15
218
+ loguru==0.7.3
219
+ joblib==1.5.3
220
+ humanfriendly==10.0
221
+ httpx-sse==0.4.3
222
+ html2text==2025.4.15
223
+ grpcio==1.80.0
224
+ executing==2.2.1
225
+ decorator==5.2.1
226
+ debugpy==1.8.20
227
+ Cython==3.2.4
228
+ cymem==2.0.13
229
+ confection==1.3.3
230
+ colorama==0.4.6
231
+ cloudpathlib==0.23.0
232
+ catalogue==2.0.10
233
+ blis==1.3.3
234
+ asttokens==3.0.1
235
+ thefuzz==0.22.1
236
+ stack-data==0.6.3
237
+ srsly==2.5.3
238
+ smart_open==7.6.0
239
+ scikit-learn==1.7.2
240
+ prompt_toolkit==3.0.52
241
+ preshed==3.0.13
242
+ opentelemetry-proto==1.26.0
243
+ nltk==3.9.4
244
+ matplotlib-inline==0.2.1
245
+ jedi==0.19.2
246
+ googleapis-common-protos==1.74.0
247
+ Deprecated==1.3.1
248
+ cryptography==46.0.7
249
+ coloredlogs==15.0.1
250
+ beautifulsoup4==4.14.3
251
+ thinc==8.3.13
252
+ opentelemetry-exporter-otlp-proto-common==1.26.0
253
+ onnxruntime==1.23.2
254
+ ipython==8.39.0
255
+ gdown==6.0.0
256
+ cleantext==1.1.4
257
+ weasel==1.0.0
258
+ tensordict==0.8.3
259
+ sse-starlette==3.3.4
260
+ mcp==1.27.0
261
+ anthropic==0.96.0
262
+ spacy==3.8.14
263
+ opentelemetry-exporter-otlp-proto-http==1.26.0
264
+ opentelemetry-exporter-otlp-proto-grpc==1.26.0
265
+ kimina-client==0.2.1
266
+ pyserini==1.2.0
267
+ opentelemetry-exporter-otlp==1.26.0
268
+ compressed-tensors==0.9.2
269
+ vllm==0.8.2
270
+ py-spy==0.4.1
271
+ opencensus-context==0.1.3
272
+ distlib==0.4.0
273
+ colorful==0.5.8
274
+ tensorboard-data-server==0.7.2
275
+ python-discovery==1.2.2
276
+ pyasn1==0.6.3
277
+ proto-plus==1.27.2
278
+ Markdown==3.10.2
279
+ absl-py==2.4.0
280
+ virtualenv==21.2.4
281
+ tensorboard==2.20.0
282
+ pyasn1_modules==0.4.2
283
+ opentelemetry-api==1.24.0
284
+ google-auth==2.49.2
285
+ google-api-core==2.30.3
286
+ aiohttp-cors==0.8.1
287
+ opentelemetry-exporter-prometheus==0.62b0
288
+ opencensus==0.11.4
289
+ verl==0.5.0.dev0
290
+ huggingface_hub==0.36.2
291
+ opentelemetry-semantic-conventions==0.45b0
292
+ opentelemetry-sdk==1.24.0
293
+ llvmlite==0.43.0
294
+ tokenizers==0.21.4
295
+ gguf==0.10.0
296
+ importlib-metadata==7.0.0
297
+ hjson==3.1.0
298
+ deepspeed==0.16.9
299
+ transformers==4.51.1
300
+ xgrammar==0.1.16
301
+ ragen==0.1
302
+ numba==0.60.0
303
+ ragen==0.1
304
+ verl==0.5.0.dev0
305
+ autocommand==2.2.2
306
+ backports.tarfile==1.2.0
307
+ importlib_metadata==8.7.1
308
+ jaraco.text==4.0.0
309
+ jaraco.context==6.1.0
310
+ jaraco.functools==4.4.0
311
+ more-itertools==10.8.0
312
+ packaging==26.0
313
+ platformdirs==4.4.0
314
+ tomli==2.4.0
315
+ wheel==0.46.3
316
+ zipp==3.23.0
wandb/run-20260513_141834-qumom4e1/files/wandb-metadata.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.20",
4
+ "startedAt": "2026-05-13T06:18:34.898817Z",
5
+ "program": "/mnt/general/wanghy/RAGEN/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py",
6
+ "codePath": "cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py",
7
+ "codePathLocal": "cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py",
8
+ "git": {
9
+ "remote": "https://github.com/Harry-mic/SCOUT",
10
+ "commit": "b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0"
11
+ },
12
+ "email": "haoyu-wa22@mails.tsinghua.edu.cn",
13
+ "root": "/mnt/general/wanghy/RAGEN",
14
+ "host": "pt-a7f17fedde804edca572f81ace5fcaf3-worker-0",
15
+ "executable": "/opt/conda/envs/ragen_new/bin/python",
16
+ "cpu_count": 64,
17
+ "cpu_count_logical": 128,
18
+ "gpu": "NVIDIA H100 80GB HBM3",
19
+ "gpu_count": 8,
20
+ "disk": {
21
+ "/": {
22
+ "total": "60129542144000",
23
+ "used": "67061088256"
24
+ }
25
+ },
26
+ "memory": {
27
+ "total": "2159579672576"
28
+ },
29
+ "gpu_nvidia": [
30
+ {
31
+ "name": "NVIDIA H100 80GB HBM3",
32
+ "memoryTotal": "85520809984",
33
+ "cudaCores": 16896,
34
+ "architecture": "Hopper",
35
+ "uuid": "GPU-97b3b912-40cf-f573-ffce-8275a656891f"
36
+ },
37
+ {
38
+ "name": "NVIDIA H100 80GB HBM3",
39
+ "memoryTotal": "85520809984",
40
+ "cudaCores": 16896,
41
+ "architecture": "Hopper",
42
+ "uuid": "GPU-5e4acc7a-f7ab-1a15-312e-4e2a39c43b2c"
43
+ },
44
+ {
45
+ "name": "NVIDIA H100 80GB HBM3",
46
+ "memoryTotal": "85520809984",
47
+ "cudaCores": 16896,
48
+ "architecture": "Hopper",
49
+ "uuid": "GPU-b36695ed-370a-2556-79d8-b0a2c2659271"
50
+ },
51
+ {
52
+ "name": "NVIDIA H100 80GB HBM3",
53
+ "memoryTotal": "85520809984",
54
+ "cudaCores": 16896,
55
+ "architecture": "Hopper",
56
+ "uuid": "GPU-b3e13ca7-237c-931f-894b-798f9cfa5620"
57
+ },
58
+ {
59
+ "name": "NVIDIA H100 80GB HBM3",
60
+ "memoryTotal": "85520809984",
61
+ "cudaCores": 16896,
62
+ "architecture": "Hopper",
63
+ "uuid": "GPU-64647b1f-5d55-1b7e-bf3d-64fae3871140"
64
+ },
65
+ {
66
+ "name": "NVIDIA H100 80GB HBM3",
67
+ "memoryTotal": "85520809984",
68
+ "cudaCores": 16896,
69
+ "architecture": "Hopper",
70
+ "uuid": "GPU-fe8b9b7e-82a4-1238-4843-bbfd0269d746"
71
+ },
72
+ {
73
+ "name": "NVIDIA H100 80GB HBM3",
74
+ "memoryTotal": "85520809984",
75
+ "cudaCores": 16896,
76
+ "architecture": "Hopper",
77
+ "uuid": "GPU-4523d4e1-5745-8224-7bcd-44cf59b76bae"
78
+ },
79
+ {
80
+ "name": "NVIDIA H100 80GB HBM3",
81
+ "memoryTotal": "85520809984",
82
+ "cudaCores": 16896,
83
+ "architecture": "Hopper",
84
+ "uuid": "GPU-9262bcbd-a29f-d761-3330-ac2ce9f15e82"
85
+ }
86
+ ],
87
+ "cudaVersion": "12.4",
88
+ "writerId": "swzgj3glyzjumc8fct6a24j895q3ndhx"
89
+ }
wandb/run-20260513_141834-qumom4e1/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"_step":151379,"_runtime":700.947858529,"_timestamp":1.7786538172727878e+09,"rollout/success":0,"perf/SPS":218,"rollout/episodic_length":100,"global_step":151379,"rollout/episodic_return":-9.99999999999998,"train/loss":0.0016797268763184547,"_wandb":{"runtime":700},"charts/epsilon":0.829703125,"rollout/success_rate_100":0.41}
wandb/run-20260513_141834-qumom4e1/run-qumom4e1.wandb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc3c5006ffd742733f032d110e4b73995f69b82a223cb42754224e283b818117
3
+ size 17170432
wandb/run-20260513_143037-5nbglqlm/files/code/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py ADDED
@@ -0,0 +1,541 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NoisyNet DQN (dueling CNN) for RAGEN Sokoban, tuned for box=2
2
+ import os
3
+ import random
4
+ import time
5
+ from dataclasses import dataclass
6
+ from pathlib import Path
7
+ from typing import Dict, Any, Tuple
8
+ from collections import deque
9
+
10
+ import gymnasium as gym
11
+ import numpy as np
12
+ import torch
13
+ import torch.nn as nn
14
+ import torch.optim as optim
15
+ import tyro
16
+ import json
17
+
18
+ import sys
19
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../'))
20
+
21
+ from ragen.env.sokoban.env import SokobanEnv
22
+ from ragen.env.sokoban.config import SokobanEnvConfig
23
+
24
+
25
+ class SokobanWrapper(gym.Env):
26
+ metadata = {"render_modes": ["rgb_array", "human", "ansi", "text"]}
27
+
28
+ def __init__(self, env: SokobanEnv):
29
+ super().__init__()
30
+ self._env = env
31
+ self._h = int(self._env.dim_room[0])
32
+ self._w = int(self._env.dim_room[1])
33
+ self._tokens = ['#', '_', 'O', '√', 'X', 'P', 'S']
34
+ self._token_to_idx = {t: i for i, t in enumerate(self._tokens)}
35
+ self._c = len(self._tokens)
36
+ self.observation_space = gym.spaces.Box(low=0.0, high=1.0, shape=(self._c, self._h, self._w), dtype=np.float32)
37
+ self.action_space = gym.spaces.Discrete(4)
38
+
39
+ def _encode_obs(self, text_obs: str) -> np.ndarray:
40
+ rows = text_obs.split('\n')
41
+ rows = [list(r) for r in rows if len(r) > 0]
42
+ h = len(rows)
43
+ w = len(rows[0]) if h > 0 else self._w
44
+ grid = np.zeros((self._c, self._h, self._w), dtype=np.float32)
45
+ for i in range(min(h, self._h)):
46
+ for j in range(min(w, self._w)):
47
+ ch = rows[i][j]
48
+ idx = self._token_to_idx.get(ch, 0)
49
+ grid[idx, i, j] = 1.0
50
+ return grid
51
+
52
+ def reset(self, *, seed: int | None = None, options: Dict[str, Any] | None = None):
53
+ text_obs = self._env.reset(seed=seed)
54
+ obs = self._encode_obs(text_obs)
55
+ return obs, {}
56
+
57
+ def step(self, action: int):
58
+ mapped = int(action) + 1 # env expects 1..4
59
+ text_obs, reward, done, info = self._env.step(mapped)
60
+ obs = self._encode_obs(text_obs)
61
+ terminated = bool(done)
62
+ truncated = False
63
+ return obs, float(reward), terminated, truncated, info or {}
64
+
65
+ def render(self):
66
+ return self._env.render()
67
+
68
+ def close(self):
69
+ self._env.close()
70
+
71
+
72
+ @dataclass
73
+ class Args:
74
+ exp_name: str = os.path.basename(__file__)[: -len(".py")]
75
+ seed: int = 1
76
+ torch_deterministic: bool = True
77
+ cuda: bool = True
78
+ track: bool = True
79
+ wandb_project_name: str = "cleanRL"
80
+ wandb_entity: str | None = None
81
+ capture_video: bool = False
82
+
83
+ # Algorithm
84
+ env_id: str = "SokobanNoisyDQN"
85
+ total_timesteps: int = 1_000_000
86
+ learning_rate: float = 2.5e-4
87
+ gamma: float = 0.99
88
+ batch_size: int = 128
89
+ buffer_size: int = 200_000
90
+ target_network_frequency: int = 8000
91
+ train_frequency: int = 4
92
+ learning_starts: int = 20_000
93
+
94
+ # Epsilon-greedy (used lightly for warmup)
95
+ start_e: float = 1.0
96
+ end_e: float = 0.1
97
+ exploration_fraction: float = 0.8
98
+
99
+ # Model
100
+ dueling: bool = True
101
+ reward_clip_abs: float | None = 1.0
102
+
103
+ # Eval config
104
+ eval_splits: int = 2
105
+ eval_episodes: int = 8000
106
+
107
+ # Sokoban env config (default for harder task)
108
+ grid_h: int = 6
109
+ grid_w: int = 6
110
+ num_boxes: int = 2
111
+ max_steps_env: int = 100
112
+ search_depth: int = 300
113
+
114
+
115
+ def make_env(run_name: str, seed: int, args: Args, capture_video: bool = False):
116
+ cfg = SokobanEnvConfig(
117
+ dim_room=(args.grid_h, args.grid_w),
118
+ max_steps=args.max_steps_env,
119
+ num_boxes=args.num_boxes,
120
+ search_depth=args.search_depth,
121
+ render_mode='text',
122
+ observation_format='grid',
123
+ )
124
+ env = SokobanEnv(cfg)
125
+ env = SokobanWrapper(env)
126
+ env = gym.wrappers.RecordEpisodeStatistics(env)
127
+ if capture_video:
128
+ env = gym.wrappers.RecordVideo(env, f"videos/{run_name}")
129
+ return env
130
+
131
+
132
+ class NoisyLinear(nn.Module):
133
+ def __init__(self, in_features: int, out_features: int, std_init: float = 0.5):
134
+ super().__init__()
135
+ self.in_features = in_features
136
+ self.out_features = out_features
137
+ self.weight_mu = nn.Parameter(torch.empty(out_features, in_features))
138
+ self.weight_sigma = nn.Parameter(torch.empty(out_features, in_features))
139
+ self.register_buffer('weight_epsilon', torch.empty(out_features, in_features))
140
+ self.bias_mu = nn.Parameter(torch.empty(out_features))
141
+ self.bias_sigma = nn.Parameter(torch.empty(out_features))
142
+ self.register_buffer('bias_epsilon', torch.empty(out_features))
143
+ self.std_init = std_init / np.sqrt(in_features)
144
+ self.reset_parameters()
145
+ self.reset_noise()
146
+
147
+ def reset_parameters(self):
148
+ mu_range = 1 / np.sqrt(self.in_features)
149
+ self.weight_mu.data.uniform_(-mu_range, mu_range)
150
+ self.weight_sigma.data.fill_(self.std_init)
151
+ self.bias_mu.data.uniform_(-mu_range, mu_range)
152
+ self.bias_sigma.data.fill_(self.std_init)
153
+
154
+ def reset_noise(self):
155
+ epsilon_in = torch.randn(self.in_features, device=self.weight_mu.device)
156
+ epsilon_out = torch.randn(self.out_features, device=self.weight_mu.device)
157
+ self.weight_epsilon.copy_(epsilon_out.ger(epsilon_in))
158
+ self.bias_epsilon.copy_(epsilon_out)
159
+
160
+ def forward(self, x):
161
+ if self.training:
162
+ w = self.weight_mu + self.weight_sigma * self.weight_epsilon
163
+ b = self.bias_mu + self.bias_sigma * self.bias_epsilon
164
+ else:
165
+ w = self.weight_mu
166
+ b = self.bias_mu
167
+ return torch.nn.functional.linear(x, w, b)
168
+
169
+
170
+ def layer_init(layer, std=np.sqrt(2), bias_const=0.0):
171
+ if isinstance(layer, NoisyLinear):
172
+ nn.init.orthogonal_(layer.weight_mu, std)
173
+ nn.init.constant_(layer.bias_mu, bias_const)
174
+ layer.weight_sigma.data.fill_(layer.std_init)
175
+ layer.bias_sigma.data.fill_(layer.std_init)
176
+ else:
177
+ nn.init.orthogonal_(layer.weight, std)
178
+ nn.init.constant_(layer.bias, bias_const)
179
+ return layer
180
+
181
+
182
+ class QConvNoisy(nn.Module):
183
+ def __init__(self, obs_shape: Tuple[int, int, int], act_dim: int, dueling: bool = True):
184
+ super().__init__()
185
+ c, h, w = obs_shape
186
+ self.dueling = dueling
187
+ self._act_dim = act_dim
188
+ self.features = nn.Sequential(
189
+ layer_init(nn.Conv2d(c, 32, 3, 1, 1)),
190
+ nn.ReLU(),
191
+ layer_init(nn.Conv2d(32, 64, 3, 1, 1)),
192
+ nn.ReLU(),
193
+ layer_init(nn.Conv2d(64, 64, 3, 1, 1)),
194
+ nn.ReLU(),
195
+ nn.Flatten(),
196
+ )
197
+ fc_in = 64 * h * w
198
+ if self.dueling:
199
+ self.adv_head = nn.Sequential(
200
+ layer_init(NoisyLinear(fc_in, 512)),
201
+ nn.ReLU(),
202
+ layer_init(NoisyLinear(512, act_dim), std=0.01),
203
+ )
204
+ self.val_head = nn.Sequential(
205
+ layer_init(NoisyLinear(fc_in, 512)),
206
+ nn.ReLU(),
207
+ layer_init(NoisyLinear(512, 1), std=0.01),
208
+ )
209
+ else:
210
+ self.head = nn.Sequential(
211
+ layer_init(NoisyLinear(fc_in, 512)),
212
+ nn.ReLU(),
213
+ layer_init(NoisyLinear(512, act_dim), std=0.01),
214
+ )
215
+
216
+ def reset_noise(self):
217
+ for m in self.modules():
218
+ if isinstance(m, NoisyLinear):
219
+ m.reset_noise()
220
+
221
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
222
+ x = self.features(x)
223
+ if self.dueling:
224
+ adv = self.adv_head(x)
225
+ val = self.val_head(x)
226
+ q = val + adv - adv.mean(dim=1, keepdim=True)
227
+ return q
228
+ else:
229
+ q = self.head(x)
230
+ return q
231
+
232
+
233
+ class ReplayBuffer:
234
+ def __init__(self, capacity: int, obs_shape: Tuple[int, int, int]):
235
+ self.capacity = capacity
236
+ self.ptr = 0
237
+ self.full = False
238
+ self.obs_buf = np.zeros((capacity,) + obs_shape, dtype=np.float32)
239
+ self.next_obs_buf = np.zeros((capacity,) + obs_shape, dtype=np.float32)
240
+ self.act_buf = np.zeros((capacity,), dtype=np.int64)
241
+ self.rew_buf = np.zeros((capacity,), dtype=np.float32)
242
+ self.done_buf = np.zeros((capacity,), dtype=np.float32)
243
+
244
+ def add(self, obs: np.ndarray, act: int, rew: float, done: bool, next_obs: np.ndarray):
245
+ self.obs_buf[self.ptr] = obs
246
+ self.next_obs_buf[self.ptr] = next_obs
247
+ self.act_buf[self.ptr] = act
248
+ self.rew_buf[self.ptr] = rew
249
+ self.done_buf[self.ptr] = 1.0 if done else 0.0
250
+ self.ptr = (self.ptr + 1) % self.capacity
251
+ if self.ptr == 0:
252
+ self.full = True
253
+
254
+ def can_sample(self, batch_size: int) -> bool:
255
+ return (self.capacity if self.full else self.ptr) >= batch_size
256
+
257
+ def sample(self, batch_size: int):
258
+ size = self.capacity if self.full else self.ptr
259
+ idxs = np.random.randint(0, size, size=batch_size)
260
+ return (
261
+ self.obs_buf[idxs],
262
+ self.act_buf[idxs],
263
+ self.rew_buf[idxs],
264
+ self.done_buf[idxs],
265
+ self.next_obs_buf[idxs],
266
+ )
267
+
268
+
269
+ if __name__ == "__main__":
270
+ args = tyro.cli(Args)
271
+ run_name = f"{args.env_id}__{args.exp_name}__{args.seed}__{int(time.time())}"
272
+
273
+ if args.track:
274
+ import wandb
275
+ wandb.init(
276
+ project=args.wandb_project_name,
277
+ entity=args.wandb_entity,
278
+ config=vars(args),
279
+ name=run_name,
280
+ monitor_gym=True,
281
+ save_code=True,
282
+ )
283
+ try:
284
+ wandb.define_metric("global_step")
285
+ for prefix in ["train/*", "rollout/*", "eval/*", "losses/*", "charts/*", "perf/*"]:
286
+ wandb.define_metric(prefix, step_metric="global_step")
287
+ except Exception:
288
+ pass
289
+
290
+ # seeding
291
+ random.seed(args.seed)
292
+ np.random.seed(args.seed)
293
+ torch.manual_seed(args.seed)
294
+ torch.backends.cudnn.deterministic = args.torch_deterministic
295
+
296
+ device = torch.device("cuda" if torch.cuda.is_available() and args.cuda else "cpu")
297
+
298
+ # env
299
+ env = make_env(run_name, args.seed, args, args.capture_video)
300
+ obs_shape = env.observation_space.shape # (C,H,W)
301
+ act_dim = env.action_space.n
302
+
303
+ # networks
304
+ policy_net = QConvNoisy(obs_shape, act_dim, dueling=args.dueling).to(device)
305
+ target_net = QConvNoisy(obs_shape, act_dim, dueling=args.dueling).to(device)
306
+ target_net.load_state_dict(policy_net.state_dict())
307
+ target_net.eval()
308
+
309
+ optimizer = optim.Adam(policy_net.parameters(), lr=args.learning_rate)
310
+ criterion = nn.SmoothL1Loss()
311
+
312
+ rb = ReplayBuffer(args.buffer_size, obs_shape)
313
+
314
+ # periodic eval setup
315
+ def collect_eval_trajectories(agent_model, make_env_fn, n_episodes: int, step_tag: int):
316
+ out_dir = Path(f"runs/{run_name}/trajectories/step_{step_tag}")
317
+ out_dir.mkdir(parents=True, exist_ok=True)
318
+ out_path = out_dir / "trajectories.jsonl"
319
+ env_eval = make_env_fn()
320
+ collected = 0
321
+ summary_returns = []
322
+ summary_success = []
323
+ with out_path.open("w") as f:
324
+ while collected < n_episodes:
325
+ state, _ = env_eval.reset(seed=args.seed + 100000 + collected)
326
+ traj_states = [np.asarray(state).tolist()]
327
+ traj_actions = []
328
+ traj_rewards = []
329
+ traj_dones = []
330
+ traj_success = []
331
+ done = False
332
+ step_count = 0
333
+ max_eval_steps = getattr(env_eval, '_max_episode_steps', None) or (args.grid_h * args.grid_w * 6)
334
+ while not done:
335
+ with torch.no_grad():
336
+ q = agent_model(torch.tensor(state, dtype=torch.float32, device=device).unsqueeze(0))
337
+ action = int(torch.argmax(q, dim=1).item())
338
+ next_state, reward, terminated, truncated, info = env_eval.step(action)
339
+ traj_actions.append(int(action))
340
+ traj_rewards.append(float(reward))
341
+ step_count += 1
342
+ d = bool(terminated) or bool(truncated) or (step_count >= max_eval_steps)
343
+ traj_dones.append(d)
344
+ traj_success.append(bool((info or {}).get('success', False)))
345
+ state = next_state
346
+ traj_states.append(np.asarray(state).tolist())
347
+ done = d
348
+ ep_ret = float(sum(traj_rewards))
349
+ ep_succ = bool(any(traj_success))
350
+ record = {
351
+ "states": traj_states,
352
+ "actions": traj_actions,
353
+ "rewards": traj_rewards,
354
+ "dones": traj_dones,
355
+ "success": traj_success,
356
+ "episode_return": ep_ret,
357
+ "episode_success": ep_succ,
358
+ }
359
+ f.write(json.dumps(record) + "\n")
360
+ collected += 1
361
+ summary_returns.append(ep_ret)
362
+ summary_success.append(1.0 if ep_succ else 0.0)
363
+ env_eval.close()
364
+ try:
365
+ metrics = {
366
+ "global_step": int(step_tag),
367
+ "episodes": int(n_episodes),
368
+ "success_rate": float(np.mean(summary_success)) if len(summary_success) else 0.0,
369
+ "avg_return": float(np.mean(summary_returns)) if len(summary_returns) else 0.0,
370
+ "std_return": float(np.std(summary_returns)) if len(summary_returns) else 0.0,
371
+ }
372
+ with (out_dir / "metrics.json").open("w") as mf:
373
+ json.dump(metrics, mf)
374
+ except Exception as e:
375
+ print(f"Warning: failed to write eval metrics: {e}")
376
+
377
+ # epsilon schedule (log only; noisy nets handle exploration)
378
+ exploration_steps = max(1, int(args.exploration_fraction * args.total_timesteps))
379
+ def epsilon_by_step(t: int):
380
+ return args.end_e + (args.start_e - args.end_e) * max(0.0, (exploration_steps - t) / exploration_steps)
381
+
382
+ # training loop
383
+ global_step = 0
384
+ start_time = time.time()
385
+
386
+ obs, _ = env.reset(seed=args.seed)
387
+ ep_return = 0.0
388
+ ep_len = 0
389
+ ep_success_window = deque(maxlen=100)
390
+
391
+ eval_every_steps = max(1, args.total_timesteps // args.eval_splits)
392
+
393
+ while global_step < args.total_timesteps:
394
+ epsilon = epsilon_by_step(global_step)
395
+ with torch.no_grad():
396
+ q_values = policy_net(torch.tensor(obs, dtype=torch.float32, device=device).unsqueeze(0))
397
+ action_greedy = int(torch.argmax(q_values, dim=1).item())
398
+ if (global_step < args.learning_starts) and (np.random.rand() < 0.5):
399
+ action = env.action_space.sample()
400
+ else:
401
+ action = action_greedy
402
+ next_obs, reward, terminated, truncated, info = env.step(action)
403
+ done = bool(terminated) or bool(truncated)
404
+
405
+ r = float(reward)
406
+ if args.reward_clip_abs is not None:
407
+ cap = float(args.reward_clip_abs)
408
+ r = max(-cap, min(cap, r))
409
+
410
+ rb.add(obs.astype(np.float32), action, r, done, next_obs.astype(np.float32))
411
+
412
+ obs = next_obs
413
+ ep_return += float(reward)
414
+ ep_len += 1
415
+ global_step += 1
416
+
417
+ # optimize
418
+ if (global_step > args.learning_starts) and rb.can_sample(args.batch_size) and (global_step % args.train_frequency == 0):
419
+ batch_obs, batch_act, batch_rew, batch_done, batch_next_obs = rb.sample(args.batch_size)
420
+ b_obs = torch.tensor(batch_obs, dtype=torch.float32, device=device)
421
+ b_act = torch.tensor(batch_act, dtype=torch.int64, device=device)
422
+ b_rew = torch.tensor(batch_rew, dtype=torch.float32, device=device)
423
+ b_done = torch.tensor(batch_done, dtype=torch.float32, device=device)
424
+ b_next_obs = torch.tensor(batch_next_obs, dtype=torch.float32, device=device)
425
+
426
+ with torch.no_grad():
427
+ next_actions = policy_net(b_next_obs).argmax(dim=1)
428
+ next_q = target_net(b_next_obs).gather(1, next_actions.view(-1, 1)).squeeze(1)
429
+ target_q = b_rew + args.gamma * (1.0 - b_done) * next_q
430
+
431
+ current_q = policy_net(b_obs).gather(1, b_act.view(-1, 1)).squeeze(1)
432
+ loss = criterion(current_q, target_q)
433
+
434
+ optimizer.zero_grad()
435
+ loss.backward()
436
+ nn.utils.clip_grad_norm_(policy_net.parameters(), max_norm=10.0)
437
+ optimizer.step()
438
+
439
+ # reset noisy parameters
440
+ policy_net.reset_noise()
441
+ target_net.reset_noise()
442
+
443
+ if args.track:
444
+ try:
445
+ import wandb
446
+ wandb.log({
447
+ "global_step": int(global_step),
448
+ "train/loss": float(loss.item()),
449
+ "charts/epsilon": float(epsilon),
450
+ "perf/SPS": int(global_step / (time.time() - start_time)),
451
+ }, step=global_step)
452
+ except Exception:
453
+ pass
454
+
455
+ # target network update
456
+ if global_step % args.target_network_frequency == 0:
457
+ target_net.load_state_dict(policy_net.state_dict())
458
+
459
+ if done:
460
+ succ = bool((info or {}).get('success', False))
461
+ ep_success_window.append(1.0 if succ else 0.0)
462
+ if args.track:
463
+ try:
464
+ import wandb
465
+ wandb.log({
466
+ "global_step": int(global_step),
467
+ "rollout/episodic_return": float(ep_return),
468
+ "rollout/episodic_length": int(ep_len),
469
+ "rollout/success": float(1.0 if succ else 0.0),
470
+ "rollout/success_rate_100": float(np.mean(ep_success_window)) if len(ep_success_window) > 0 else None,
471
+ }, step=global_step)
472
+ except Exception:
473
+ pass
474
+ obs, _ = env.reset()
475
+ ep_return, ep_len = 0.0, 0
476
+
477
+ # occasional print
478
+ if global_step % 1000 == 0:
479
+ sps = int(global_step / (time.time() - start_time))
480
+ sr100 = float(np.mean(ep_success_window)) if len(ep_success_window) > 0 else 0.0
481
+ print(f"Step {global_step} | SPS: {sps} | Epsilon: {epsilon:.3f} | SR@100: {sr100:.3f}")
482
+
483
+ # periodic evaluation and trajectory dump
484
+ if global_step==0 or (global_step % eval_every_steps == 0):
485
+ try:
486
+ def eval_thunk():
487
+ return make_env(run_name, args.seed + 9999, args, False)
488
+ collect_eval_trajectories(policy_net, eval_thunk, n_episodes=args.eval_episodes, step_tag=global_step)
489
+ if args.track:
490
+ try:
491
+ import wandb
492
+ mpath = Path(f"runs/{run_name}/trajectories/step_{global_step}/metrics.json")
493
+ if mpath.exists():
494
+ with mpath.open("r") as mf:
495
+ metrics = json.load(mf)
496
+ wandb.log({
497
+ "eval/success_rate": metrics.get("success_rate"),
498
+ "eval/avg_return": metrics.get("avg_return"),
499
+ "eval/std_return": metrics.get("std_return"),
500
+ "eval/episodes": metrics.get("episodes"),
501
+ }, step=global_step)
502
+ except Exception:
503
+ pass
504
+ print(f"Collected {args.eval_episodes} eval trajectories at step {global_step}")
505
+ except Exception as e:
506
+ print(f"Warning: eval trajectory collection failed at step {global_step}: {e}")
507
+
508
+ # simple evaluation after training
509
+ def evaluate(n_episodes=200):
510
+ returns = []
511
+ successes = []
512
+ for i in range(n_episodes):
513
+ s, _ = env.reset(seed=args.seed + 100000 + i)
514
+ done = False
515
+ G = 0.0
516
+ while not done:
517
+ with torch.no_grad():
518
+ q = policy_net(torch.tensor(s, dtype=torch.float32, device=device).unsqueeze(0))
519
+ a = int(torch.argmax(q, dim=1).item())
520
+ s, r, term, trunc, info = env.step(a)
521
+ G += float(r)
522
+ done = bool(term) or bool(trunc)
523
+ successes.append(1.0 if bool((info or {}).get('success', False)) else 0.0)
524
+ returns.append(G)
525
+ return float(np.mean(returns)), float(np.std(returns)), float(np.mean(successes))
526
+
527
+ avg_ret, std_ret, succ_rate = evaluate(400)
528
+ if args.track:
529
+ try:
530
+ import wandb
531
+ wandb.log({
532
+ "global_step": int(global_step),
533
+ "eval/avg_return": float(avg_ret),
534
+ "eval/std_return": float(std_ret),
535
+ "eval/episodes": int(400),
536
+ "eval/success_rate": float(succ_rate),
537
+ }, step=global_step)
538
+ except Exception:
539
+ pass
540
+
541
+ env.close()
wandb/run-20260513_143037-5nbglqlm/files/config.yaml ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.1
4
+ code_path: code/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
5
+ e:
6
+ xkjtt1054j25k2rxc53pvzqxyzin9js2:
7
+ codePath: cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
8
+ codePathLocal: cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
9
+ cpu_count: 64
10
+ cpu_count_logical: 128
11
+ cudaVersion: "12.4"
12
+ disk:
13
+ /:
14
+ total: "60129542144000"
15
+ used: "67078225920"
16
+ email: haoyu-wa22@mails.tsinghua.edu.cn
17
+ executable: /opt/conda/envs/ragen_new/bin/python
18
+ git:
19
+ commit: b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0
20
+ remote: https://github.com/Harry-mic/SCOUT
21
+ gpu: NVIDIA H100 80GB HBM3
22
+ gpu_count: 8
23
+ gpu_nvidia:
24
+ - architecture: Hopper
25
+ cudaCores: 16896
26
+ memoryTotal: "85520809984"
27
+ name: NVIDIA H100 80GB HBM3
28
+ uuid: GPU-97b3b912-40cf-f573-ffce-8275a656891f
29
+ - architecture: Hopper
30
+ cudaCores: 16896
31
+ memoryTotal: "85520809984"
32
+ name: NVIDIA H100 80GB HBM3
33
+ uuid: GPU-5e4acc7a-f7ab-1a15-312e-4e2a39c43b2c
34
+ - architecture: Hopper
35
+ cudaCores: 16896
36
+ memoryTotal: "85520809984"
37
+ name: NVIDIA H100 80GB HBM3
38
+ uuid: GPU-b36695ed-370a-2556-79d8-b0a2c2659271
39
+ - architecture: Hopper
40
+ cudaCores: 16896
41
+ memoryTotal: "85520809984"
42
+ name: NVIDIA H100 80GB HBM3
43
+ uuid: GPU-b3e13ca7-237c-931f-894b-798f9cfa5620
44
+ - architecture: Hopper
45
+ cudaCores: 16896
46
+ memoryTotal: "85520809984"
47
+ name: NVIDIA H100 80GB HBM3
48
+ uuid: GPU-64647b1f-5d55-1b7e-bf3d-64fae3871140
49
+ - architecture: Hopper
50
+ cudaCores: 16896
51
+ memoryTotal: "85520809984"
52
+ name: NVIDIA H100 80GB HBM3
53
+ uuid: GPU-fe8b9b7e-82a4-1238-4843-bbfd0269d746
54
+ - architecture: Hopper
55
+ cudaCores: 16896
56
+ memoryTotal: "85520809984"
57
+ name: NVIDIA H100 80GB HBM3
58
+ uuid: GPU-4523d4e1-5745-8224-7bcd-44cf59b76bae
59
+ - architecture: Hopper
60
+ cudaCores: 16896
61
+ memoryTotal: "85520809984"
62
+ name: NVIDIA H100 80GB HBM3
63
+ uuid: GPU-9262bcbd-a29f-d761-3330-ac2ce9f15e82
64
+ host: pt-a7f17fedde804edca572f81ace5fcaf3-worker-0
65
+ memory:
66
+ total: "2159579672576"
67
+ os: Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35
68
+ program: /mnt/general/wanghy/RAGEN/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py
69
+ python: CPython 3.10.20
70
+ root: /mnt/general/wanghy/RAGEN
71
+ startedAt: "2026-05-13T06:30:37.049177Z"
72
+ writerId: xkjtt1054j25k2rxc53pvzqxyzin9js2
73
+ m:
74
+ - "1": global_step
75
+ "6":
76
+ - 3
77
+ "7": []
78
+ - "2": perf/*
79
+ "5": 1
80
+ "6":
81
+ - 1
82
+ "7": []
83
+ - "2": train/*
84
+ "5": 1
85
+ "6":
86
+ - 1
87
+ "7": []
88
+ - "2": rollout/*
89
+ "5": 1
90
+ "6":
91
+ - 1
92
+ "7": []
93
+ - "2": eval/*
94
+ "5": 1
95
+ "6":
96
+ - 1
97
+ "7": []
98
+ - "2": losses/*
99
+ "5": 1
100
+ "6":
101
+ - 1
102
+ "7": []
103
+ - "2": charts/*
104
+ "5": 1
105
+ "6":
106
+ - 1
107
+ "7": []
108
+ python_version: 3.10.20
109
+ t:
110
+ "1":
111
+ - 1
112
+ - 11
113
+ - 30
114
+ - 49
115
+ - 50
116
+ - 51
117
+ - 105
118
+ "2":
119
+ - 1
120
+ - 11
121
+ - 30
122
+ - 49
123
+ - 50
124
+ - 51
125
+ - 105
126
+ "3":
127
+ - 7
128
+ - 13
129
+ - 16
130
+ - 61
131
+ "4": 3.10.20
132
+ "5": 0.25.1
133
+ "6": 4.51.1
134
+ "12": 0.25.1
135
+ "13": linux-x86_64
136
+ batch_size:
137
+ value: 128
138
+ buffer_size:
139
+ value: 200000
140
+ capture_video:
141
+ value: false
142
+ cuda:
143
+ value: true
144
+ dueling:
145
+ value: true
146
+ end_e:
147
+ value: 0.1
148
+ env_id:
149
+ value: SokobanNoisyDQN
150
+ eval_episodes:
151
+ value: 8000
152
+ eval_splits:
153
+ value: 2
154
+ exp_name:
155
+ value: noisy_dqn_sokoban
156
+ exploration_fraction:
157
+ value: 0.8
158
+ gamma:
159
+ value: 0.99
160
+ grid_h:
161
+ value: 6
162
+ grid_w:
163
+ value: 6
164
+ learning_rate:
165
+ value: 0.00025
166
+ learning_starts:
167
+ value: 20000
168
+ max_steps_env:
169
+ value: 100
170
+ num_boxes:
171
+ value: 2
172
+ reward_clip_abs:
173
+ value: 1
174
+ search_depth:
175
+ value: 300
176
+ seed:
177
+ value: 1
178
+ start_e:
179
+ value: 1
180
+ target_network_frequency:
181
+ value: 8000
182
+ torch_deterministic:
183
+ value: true
184
+ total_timesteps:
185
+ value: 1000000
186
+ track:
187
+ value: true
188
+ train_frequency:
189
+ value: 4
190
+ wandb_entity:
191
+ value: null
192
+ wandb_project_name:
193
+ value: cleanRL
wandb/run-20260513_143037-5nbglqlm/files/diff.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260513_143037-5nbglqlm/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260513_143037-5nbglqlm/files/requirements.txt ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ colorama==0.4.6
2
+ psutil==7.2.2
3
+ pyarrow==23.0.1
4
+ math-verify==0.9.0
5
+ pygame==2.6.1
6
+ partial-json-parser==0.2.1.1.post7
7
+ anyio==4.13.0
8
+ wandb==0.25.1
9
+ mathruler==0.1.0
10
+ tzdata==2026.1
11
+ gym-sokoban==0.0.6
12
+ sniffio==1.3.1
13
+ omegaconf==2.3.0
14
+ httpcore==1.0.9
15
+ scipy==1.15.3
16
+ multidict==6.7.1
17
+ nvidia-cusparse-cu12==12.3.1.170
18
+ fonttools==4.62.1
19
+ together==2.7.0
20
+ antlr4-python3-runtime==4.9.3
21
+ cupy-cuda12x==13.6.0
22
+ av==17.0.0
23
+ torch==2.6.0
24
+ datasets==4.8.4
25
+ pyparsing==3.3.2
26
+ markdown-it-py==4.0.0
27
+ accelerate==1.13.0
28
+ lark==1.2.2
29
+ sentencepiece==0.2.1
30
+ Flask==3.1.3
31
+ annotated-doc==0.0.4
32
+ rignore==0.7.6
33
+ ImageIO==2.37.3
34
+ outlines_core==0.1.26
35
+ gym==0.26.2
36
+ depyf==0.18.0
37
+ pydantic==2.12.5
38
+ nvidia-cuda-nvrtc-cu12==12.4.127
39
+ certifi==2026.2.25
40
+ aiohttp==3.13.5
41
+ flash_attn==2.7.4.post1
42
+ msgspec==0.21.0
43
+ matplotlib==3.10.8
44
+ pandas==2.3.3
45
+ openai==2.31.0
46
+ sentry-sdk==2.57.0
47
+ propcache==0.4.1
48
+ nvidia-curand-cu12==10.3.5.147
49
+ python-dateutil==2.9.0.post0
50
+ itsdangerous==2.2.0
51
+ cloudpickle==3.1.2
52
+ ray==2.54.1
53
+ cffi==2.0.0
54
+ pyzmq==27.1.0
55
+ Jinja2==3.1.6
56
+ nest-asyncio==1.6.0
57
+ orjson==3.11.8
58
+ pydantic-extra-types==2.11.2
59
+ nvidia-nccl-cu12==2.21.5
60
+ gitdb==4.0.12
61
+ Farama-Notifications==0.0.4
62
+ async-timeout==5.0.1
63
+ torchdata==0.11.0
64
+ ninja==1.13.0
65
+ hydra-core==1.3.2
66
+ GitPython==3.1.46
67
+ nvidia-cuda-runtime-cu12==12.4.127
68
+ msgpack==1.1.2
69
+ email-validator==2.3.0
70
+ yarl==1.23.0
71
+ numpy==1.26.4
72
+ charset-normalizer==3.4.7
73
+ pycountry==26.2.16
74
+ annotated-types==0.7.0
75
+ uvloop==0.22.1
76
+ torchvision==0.21.0
77
+ jsonschema-specifications==2025.9.1
78
+ uvicorn==0.44.0
79
+ nvidia-nvjitlink-cu12==12.4.127
80
+ sympy==1.13.1
81
+ latex2sympy2_extended==1.11.0
82
+ triton==3.2.0
83
+ tqdm==4.67.3
84
+ diskcache==5.6.3
85
+ kiwisolver==1.5.0
86
+ llguidance==0.7.30
87
+ prometheus_client==0.25.0
88
+ types-PyYAML==6.0.12.20260408
89
+ MarkupSafe==3.0.3
90
+ fastapi-cloud-cli==0.16.1
91
+ cachetools==7.0.5
92
+ pillow==12.2.0
93
+ airportsdata==20260315
94
+ mpmath==1.3.0
95
+ cycler==0.12.1
96
+ qwen-vl-utils==0.0.14
97
+ jsonschema==4.26.0
98
+ safetensors==0.7.0
99
+ gymnasium==1.2.3
100
+ h11==0.16.0
101
+ Pygments==2.20.0
102
+ zipp==3.23.0
103
+ outlines==0.1.11
104
+ typing_extensions==4.15.0
105
+ requests==2.33.1
106
+ watchfiles==1.1.1
107
+ shellingham==1.5.4
108
+ xformers==0.0.29.post2
109
+ blinker==1.9.0
110
+ distro==1.9.0
111
+ multiprocess==0.70.19
112
+ regex==2026.4.4
113
+ fastapi-cli==0.0.24
114
+ tabulate==0.10.0
115
+ referencing==0.37.0
116
+ xxhash==3.6.0
117
+ smmap==5.0.3
118
+ six==1.17.0
119
+ Werkzeug==3.1.8
120
+ click==8.3.2
121
+ py-cpuinfo==9.0.0
122
+ aiosignal==1.4.0
123
+ setuptools==69.1.0
124
+ setuptools==82.0.1
125
+ aiohappyeyeballs==2.6.1
126
+ starlette==0.52.1
127
+ gym-notices==0.1.0
128
+ typing-inspection==0.4.2
129
+ networkx==3.4.2
130
+ pydantic_core==2.41.5
131
+ pycparser==3.0
132
+ contourpy==1.3.2
133
+ codetiming==1.4.0
134
+ python-dotenv==1.2.2
135
+ rpds-py==0.30.0
136
+ blake3==1.0.8
137
+ python-multipart==0.0.24
138
+ fastapi==0.135.3
139
+ httpx==0.28.1
140
+ attrs==26.1.0
141
+ pytz==2026.1.post1
142
+ platformdirs==4.9.6
143
+ nvidia-cusolver-cu12==11.6.1.9
144
+ hf-xet==1.4.3
145
+ filelock==3.25.2
146
+ types-requests==2.33.0.20260408
147
+ idna==3.11
148
+ fsspec==2026.2.0
149
+ astor==0.8.1
150
+ interegular==0.3.3
151
+ nvidia-cudnn-cu12==9.1.0.70
152
+ frozenlist==1.8.0
153
+ pylatexenc==2.10
154
+ nvidia-cublas-cu12==12.4.5.8
155
+ httptools==0.7.1
156
+ python-json-logger==4.1.0
157
+ mdurl==0.1.2
158
+ mistral_common==1.11.0
159
+ vulkan==1.3.275.1
160
+ nvidia-cuda-cupti-cu12==12.4.127
161
+ pybind11==3.0.3
162
+ PyYAML==6.0.3
163
+ jiter==0.13.0
164
+ fastrlock==0.8.3
165
+ typeguard==4.5.1
166
+ typer==0.24.1
167
+ websockets==16.0
168
+ nvidia-cufft-cu12==11.2.1.3
169
+ nvidia-nvtx-cu12==12.4.127
170
+ psutil==7.2.2
171
+ tomli==2.4.1
172
+ types-tqdm==4.67.3.20260408
173
+ fastar==0.10.0
174
+ einops==0.8.2
175
+ lm-format-enforcer==0.10.12
176
+ opencv-python-headless==4.11.0.86
177
+ tiktoken==0.12.0
178
+ rich-toolkit==0.19.7
179
+ rich==14.3.3
180
+ dnspython==2.8.0
181
+ pydantic-settings==2.13.1
182
+ types-tabulate==0.10.0.20260408
183
+ torchaudio==2.6.0
184
+ urllib3==2.6.3
185
+ dill==0.4.1
186
+ docstring_parser==0.18.0
187
+ prometheus-fastapi-instrumentator==7.1.0
188
+ peft==0.18.1
189
+ exceptiongroup==1.3.1
190
+ tyro==1.0.13
191
+ nvidia-cusparselt-cu12==0.6.2
192
+ packaging==26.0
193
+ wheel==0.46.3
194
+ pip==26.0.1
195
+ pyjnius==1.7.0
196
+ pure_eval==0.2.3
197
+ ptyprocess==0.7.0
198
+ flatbuffers==25.12.19
199
+ faiss-gpu==1.7.2
200
+ wrapt==2.1.2
201
+ wcwidth==0.6.0
202
+ wasabi==1.1.3
203
+ traitlets==5.14.3
204
+ threadpoolctl==3.6.0
205
+ tenacity==9.1.4
206
+ spacy-loggers==1.0.5
207
+ spacy-legacy==3.0.12
208
+ soupsieve==2.8.3
209
+ RapidFuzz==3.14.5
210
+ rank-bm25==0.2.2
211
+ PySocks==1.7.1
212
+ PyJWT==2.12.1
213
+ parso==0.8.6
214
+ protobuf==4.25.9
215
+ pexpect==4.9.0
216
+ opentelemetry-semantic-conventions-ai==0.4.13
217
+ murmurhash==1.0.15
218
+ loguru==0.7.3
219
+ joblib==1.5.3
220
+ humanfriendly==10.0
221
+ httpx-sse==0.4.3
222
+ html2text==2025.4.15
223
+ grpcio==1.80.0
224
+ executing==2.2.1
225
+ decorator==5.2.1
226
+ debugpy==1.8.20
227
+ Cython==3.2.4
228
+ cymem==2.0.13
229
+ confection==1.3.3
230
+ colorama==0.4.6
231
+ cloudpathlib==0.23.0
232
+ catalogue==2.0.10
233
+ blis==1.3.3
234
+ asttokens==3.0.1
235
+ thefuzz==0.22.1
236
+ stack-data==0.6.3
237
+ srsly==2.5.3
238
+ smart_open==7.6.0
239
+ scikit-learn==1.7.2
240
+ prompt_toolkit==3.0.52
241
+ preshed==3.0.13
242
+ opentelemetry-proto==1.26.0
243
+ nltk==3.9.4
244
+ matplotlib-inline==0.2.1
245
+ jedi==0.19.2
246
+ googleapis-common-protos==1.74.0
247
+ Deprecated==1.3.1
248
+ cryptography==46.0.7
249
+ coloredlogs==15.0.1
250
+ beautifulsoup4==4.14.3
251
+ thinc==8.3.13
252
+ opentelemetry-exporter-otlp-proto-common==1.26.0
253
+ onnxruntime==1.23.2
254
+ ipython==8.39.0
255
+ gdown==6.0.0
256
+ cleantext==1.1.4
257
+ weasel==1.0.0
258
+ tensordict==0.8.3
259
+ sse-starlette==3.3.4
260
+ mcp==1.27.0
261
+ anthropic==0.96.0
262
+ spacy==3.8.14
263
+ opentelemetry-exporter-otlp-proto-http==1.26.0
264
+ opentelemetry-exporter-otlp-proto-grpc==1.26.0
265
+ kimina-client==0.2.1
266
+ pyserini==1.2.0
267
+ opentelemetry-exporter-otlp==1.26.0
268
+ compressed-tensors==0.9.2
269
+ vllm==0.8.2
270
+ py-spy==0.4.1
271
+ opencensus-context==0.1.3
272
+ distlib==0.4.0
273
+ colorful==0.5.8
274
+ tensorboard-data-server==0.7.2
275
+ python-discovery==1.2.2
276
+ pyasn1==0.6.3
277
+ proto-plus==1.27.2
278
+ Markdown==3.10.2
279
+ absl-py==2.4.0
280
+ virtualenv==21.2.4
281
+ tensorboard==2.20.0
282
+ pyasn1_modules==0.4.2
283
+ opentelemetry-api==1.24.0
284
+ google-auth==2.49.2
285
+ google-api-core==2.30.3
286
+ aiohttp-cors==0.8.1
287
+ opentelemetry-exporter-prometheus==0.62b0
288
+ opencensus==0.11.4
289
+ verl==0.5.0.dev0
290
+ huggingface_hub==0.36.2
291
+ opentelemetry-semantic-conventions==0.45b0
292
+ opentelemetry-sdk==1.24.0
293
+ llvmlite==0.43.0
294
+ tokenizers==0.21.4
295
+ gguf==0.10.0
296
+ importlib-metadata==7.0.0
297
+ hjson==3.1.0
298
+ deepspeed==0.16.9
299
+ transformers==4.51.1
300
+ xgrammar==0.1.16
301
+ ragen==0.1
302
+ numba==0.60.0
303
+ ragen==0.1
304
+ verl==0.5.0.dev0
305
+ autocommand==2.2.2
306
+ backports.tarfile==1.2.0
307
+ importlib_metadata==8.7.1
308
+ jaraco.text==4.0.0
309
+ jaraco.context==6.1.0
310
+ jaraco.functools==4.4.0
311
+ more-itertools==10.8.0
312
+ packaging==26.0
313
+ platformdirs==4.4.0
314
+ tomli==2.4.0
315
+ wheel==0.46.3
316
+ zipp==3.23.0
wandb/run-20260513_143037-5nbglqlm/files/wandb-metadata.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.20",
4
+ "startedAt": "2026-05-13T06:30:37.049177Z",
5
+ "program": "/mnt/general/wanghy/RAGEN/cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py",
6
+ "codePath": "cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py",
7
+ "codePathLocal": "cleanrl/cleanrl/scout_dqn/noisy_dqn_sokoban.py",
8
+ "git": {
9
+ "remote": "https://github.com/Harry-mic/SCOUT",
10
+ "commit": "b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0"
11
+ },
12
+ "email": "haoyu-wa22@mails.tsinghua.edu.cn",
13
+ "root": "/mnt/general/wanghy/RAGEN",
14
+ "host": "pt-a7f17fedde804edca572f81ace5fcaf3-worker-0",
15
+ "executable": "/opt/conda/envs/ragen_new/bin/python",
16
+ "cpu_count": 64,
17
+ "cpu_count_logical": 128,
18
+ "gpu": "NVIDIA H100 80GB HBM3",
19
+ "gpu_count": 8,
20
+ "disk": {
21
+ "/": {
22
+ "total": "60129542144000",
23
+ "used": "67078225920"
24
+ }
25
+ },
26
+ "memory": {
27
+ "total": "2159579672576"
28
+ },
29
+ "gpu_nvidia": [
30
+ {
31
+ "name": "NVIDIA H100 80GB HBM3",
32
+ "memoryTotal": "85520809984",
33
+ "cudaCores": 16896,
34
+ "architecture": "Hopper",
35
+ "uuid": "GPU-97b3b912-40cf-f573-ffce-8275a656891f"
36
+ },
37
+ {
38
+ "name": "NVIDIA H100 80GB HBM3",
39
+ "memoryTotal": "85520809984",
40
+ "cudaCores": 16896,
41
+ "architecture": "Hopper",
42
+ "uuid": "GPU-5e4acc7a-f7ab-1a15-312e-4e2a39c43b2c"
43
+ },
44
+ {
45
+ "name": "NVIDIA H100 80GB HBM3",
46
+ "memoryTotal": "85520809984",
47
+ "cudaCores": 16896,
48
+ "architecture": "Hopper",
49
+ "uuid": "GPU-b36695ed-370a-2556-79d8-b0a2c2659271"
50
+ },
51
+ {
52
+ "name": "NVIDIA H100 80GB HBM3",
53
+ "memoryTotal": "85520809984",
54
+ "cudaCores": 16896,
55
+ "architecture": "Hopper",
56
+ "uuid": "GPU-b3e13ca7-237c-931f-894b-798f9cfa5620"
57
+ },
58
+ {
59
+ "name": "NVIDIA H100 80GB HBM3",
60
+ "memoryTotal": "85520809984",
61
+ "cudaCores": 16896,
62
+ "architecture": "Hopper",
63
+ "uuid": "GPU-64647b1f-5d55-1b7e-bf3d-64fae3871140"
64
+ },
65
+ {
66
+ "name": "NVIDIA H100 80GB HBM3",
67
+ "memoryTotal": "85520809984",
68
+ "cudaCores": 16896,
69
+ "architecture": "Hopper",
70
+ "uuid": "GPU-fe8b9b7e-82a4-1238-4843-bbfd0269d746"
71
+ },
72
+ {
73
+ "name": "NVIDIA H100 80GB HBM3",
74
+ "memoryTotal": "85520809984",
75
+ "cudaCores": 16896,
76
+ "architecture": "Hopper",
77
+ "uuid": "GPU-4523d4e1-5745-8224-7bcd-44cf59b76bae"
78
+ },
79
+ {
80
+ "name": "NVIDIA H100 80GB HBM3",
81
+ "memoryTotal": "85520809984",
82
+ "cudaCores": 16896,
83
+ "architecture": "Hopper",
84
+ "uuid": "GPU-9262bcbd-a29f-d761-3330-ac2ce9f15e82"
85
+ }
86
+ ],
87
+ "cudaVersion": "12.4",
88
+ "writerId": "xkjtt1054j25k2rxc53pvzqxyzin9js2"
89
+ }
wandb/run-20260513_143037-5nbglqlm/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"charts/epsilon":0.1,"_runtime":7428.111123057,"rollout/episodic_length":99,"train/loss":0.009805000387132168,"rollout/episodic_return":2.100000000000019,"eval/avg_return":3.706750000000006,"eval/episodes":400,"rollout/success_rate_100":0.79,"eval/std_return":10.118252291650956,"global_step":1000000,"_timestamp":1.7786612665129719e+09,"perf/SPS":161,"_wandb":{"runtime":7428},"rollout/success":1,"_step":1000000,"eval/success_rate":0.635}
wandb/run-20260513_143037-5nbglqlm/run-5nbglqlm.wandb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cbbacac8fa0e1cdcec1378a5d553895ec38a42107d3b15d57d34018daf9dc98
3
+ size 133753019
wandb/run-20260515_161238-gu8o8dz5/files/code/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py ADDED
@@ -0,0 +1,588 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PPO with Action Masking for RAGEN Sudoku (4x4, max_step=20)
2
+ import os
3
+ import random
4
+ import time
5
+ from dataclasses import dataclass
6
+ from pathlib import Path
7
+ from typing import Tuple, Dict, Any, List
8
+ import json
9
+
10
+ import gymnasium as gym
11
+ import numpy as np
12
+ import torch
13
+ import torch.nn as nn
14
+ import torch.optim as optim
15
+ import tyro
16
+ from torch.distributions.categorical import Categorical
17
+
18
+ import sys
19
+ # 假设 ragen 库在两级目录之上,请根据实际情况调整
20
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../'))
21
+
22
+ from ragen.env.sudoku.env import SudokuEnv
23
+ from ragen.env.sudoku.config import SudokuEnvConfig
24
+
25
+
26
+ class SudokuWrapper(gym.Env):
27
+ """
28
+ Adapter to use ragen SudokuEnv with Gymnasium vector API.
29
+ Improvements: Returns a Dict observation with 'action_mask' to prevent
30
+ the agent from modifying cells that are already filled.
31
+ """
32
+ metadata = {"render_modes": ["rgb_array", "human", "ansi"]}
33
+
34
+ def __init__(self, env: SudokuEnv, grid_size: int):
35
+ super().__init__()
36
+ self._env = env
37
+ self._size = grid_size
38
+ # 0 denotes empty, 1..grid_size denote values
39
+ self._val_dim = self._size + 1
40
+
41
+ # Actions: (row, col, num) -> Flattened
42
+ self._act_n = self._size * self._size * self._size
43
+ self.action_space = gym.spaces.Discrete(self._act_n)
44
+
45
+ # Observation: Dict with mask
46
+ self.observation_space = gym.spaces.Dict({
47
+ "observation": gym.spaces.Box(low=0.0, high=1.0, shape=(self._size * self._size * self._val_dim,), dtype=np.float32),
48
+ "action_mask": gym.spaces.Box(low=0.0, high=1.0, shape=(self._act_n,), dtype=np.float32)
49
+ })
50
+
51
+ def _encode_obs(self, text_obs: str) -> Dict[str, np.ndarray]:
52
+ # Parse the 'simple' grid format
53
+ vals: List[int] = []
54
+ for line in text_obs.splitlines():
55
+ ls = line.strip()
56
+ if len(ls) == 0: continue
57
+ if set(ls) <= {'-'}: continue
58
+ tokens = [t for t in ls.split() if t != '|']
59
+ if len(tokens) == 0: continue
60
+ for t in tokens:
61
+ if t == '.': vals.append(0)
62
+ else:
63
+ try: v = int(t)
64
+ except ValueError: v = 0
65
+ vals.append(v)
66
+
67
+ target = self._size * self._size
68
+ if len(vals) < target: vals.extend([0] * (target - len(vals)))
69
+ if len(vals) > target: vals = vals[:target]
70
+
71
+ # One-hot encode grid
72
+ grid = np.zeros((target, self._val_dim), dtype=np.float32)
73
+ # Initialize mask (1.0 = valid, 0.0 = invalid)
74
+ mask = np.ones(self._act_n, dtype=np.float32)
75
+
76
+ for i, v in enumerate(vals):
77
+ v_clamped = int(v)
78
+ if v_clamped < 0 or v_clamped > self._size:
79
+ v_clamped = 0
80
+ grid[i, v_clamped] = 1.0
81
+
82
+ # If a cell is NOT empty (v_clamped != 0), mask all actions for this cell.
83
+ # Agent should not overwrite existing numbers.
84
+ if v_clamped != 0:
85
+ start_idx = i * self._size
86
+ end_idx = start_idx + self._size
87
+ mask[start_idx:end_idx] = 0.0
88
+
89
+ return {
90
+ "observation": grid.reshape(-1),
91
+ "action_mask": mask
92
+ }
93
+
94
+ @staticmethod
95
+ def _decode_action(action_id: int, grid_size: int) -> Tuple[int, int, int]:
96
+ g = grid_size
97
+ row = action_id // (g * g)
98
+ rem = action_id % (g * g)
99
+ col = rem // g
100
+ num = (rem % g) + 1
101
+ return row, col, num
102
+
103
+ def reset(self, *, seed: int | None = None, options: Dict[str, Any] | None = None):
104
+ text_obs = self._env.reset(seed=seed)
105
+ obs = self._encode_obs(text_obs)
106
+ return obs, {}
107
+
108
+ def step(self, action: int):
109
+ row, col, num = self._decode_action(int(action), self._size)
110
+ act_str = f"{row+1},{col+1},{num}"
111
+ text_obs, reward, done, info = self._env.step(act_str)
112
+ obs = self._encode_obs(text_obs)
113
+ terminated = bool(done)
114
+ truncated = False
115
+ return obs, float(reward), terminated, truncated, info or {}
116
+
117
+ def render(self):
118
+ return self._env.render()
119
+
120
+ def close(self):
121
+ self._env.close()
122
+
123
+
124
+ @dataclass
125
+ class Args:
126
+ exp_name: str = os.path.basename(__file__)[: -len(".py")]
127
+ seed: int = 1
128
+ torch_deterministic: bool = True
129
+ cuda: bool = True
130
+ track: bool = True
131
+ wandb_project_name: str = "cleanRL"
132
+ wandb_entity: str | None = None
133
+ capture_video: bool = False
134
+
135
+ # Algorithm
136
+ env_id: str = "Sudoku"
137
+ total_timesteps: int = 2000_000
138
+ learning_rate: float = 3e-4
139
+ num_envs: int = 8
140
+ num_steps: int = 128
141
+ anneal_lr: bool = True
142
+ gamma: float = 0.99
143
+ gae_lambda: float = 0.95
144
+ num_minibatches: int = 4
145
+ update_epochs: int = 4
146
+ norm_adv: bool = True
147
+ clip_coef: float = 0.2
148
+ clip_vloss: bool = True
149
+ ent_coef: float = 0.01
150
+ vf_coef: float = 0.5
151
+ max_grad_norm: float = 0.5
152
+ target_kl: float | None = None
153
+
154
+ # Sudoku specific
155
+ grid_size: int = 4
156
+ difficulty: str = "easy"
157
+
158
+ # runtime filled
159
+ batch_size: int = 0
160
+ minibatch_size: int = 0
161
+ num_iterations: int = 0
162
+
163
+ # eval
164
+ eval_splits: int = 2
165
+ eval_episodes: int = 4000
166
+
167
+
168
+ def make_env(idx, run_name, seed, grid_size, difficulty, capture_video=False):
169
+ def thunk():
170
+ config = SudokuEnvConfig(
171
+ grid_size=grid_size,
172
+ difficulty=difficulty,
173
+ render_mode='text',
174
+ render_format='simple',
175
+ )
176
+ env = SudokuEnv(config)
177
+ env = SudokuWrapper(env, grid_size)
178
+ # Use env's own max_steps default if available, otherwise a sane cap
179
+ # Keeping your request for strict step limit logic, although wrapper enforces logic
180
+ max_steps = 81
181
+ # max_steps = int(grid_size * grid_size * 6)
182
+ env = gym.wrappers.TimeLimit(env, max_episode_steps=max_steps)
183
+ env = gym.wrappers.RecordEpisodeStatistics(env)
184
+ if capture_video and idx == 0:
185
+ env = gym.wrappers.RecordVideo(env, f"videos/{run_name}")
186
+ return env
187
+ return thunk
188
+
189
+
190
+ def layer_init(layer, std=np.sqrt(2), bias_const=0.0):
191
+ torch.nn.init.orthogonal_(layer.weight, std)
192
+ torch.nn.init.constant_(layer.bias, bias_const)
193
+ return layer
194
+
195
+
196
+ class Agent(nn.Module):
197
+ def __init__(self, envs):
198
+ super().__init__()
199
+ # Accessing the shape from the Dict space
200
+ obs_shape = int(np.array(envs.single_observation_space['observation'].shape).prod())
201
+ hidden = 256 # Increased hidden size slightly for better capacity
202
+
203
+ self.critic = nn.Sequential(
204
+ layer_init(nn.Linear(obs_shape, hidden)),
205
+ nn.Tanh(),
206
+ layer_init(nn.Linear(hidden, hidden)),
207
+ nn.Tanh(),
208
+ layer_init(nn.Linear(hidden, 1), std=1.0),
209
+ )
210
+ self.actor = nn.Sequential(
211
+ layer_init(nn.Linear(obs_shape, hidden)),
212
+ nn.Tanh(),
213
+ layer_init(nn.Linear(hidden, hidden)),
214
+ nn.Tanh(),
215
+ layer_init(nn.Linear(hidden, envs.single_action_space.n), std=0.01),
216
+ )
217
+
218
+ def get_value(self, x):
219
+ return self.critic(x)
220
+
221
+ def get_action_and_value(self, x, action=None, action_mask=None):
222
+ logits = self.actor(x)
223
+
224
+ # Apply Action Masking
225
+ if action_mask is not None:
226
+ # Set logits of invalid actions to a very large negative number
227
+ logits = logits + (action_mask - 1.0) * 1e8
228
+
229
+ probs = Categorical(logits=logits)
230
+ if action is None:
231
+ action = probs.sample()
232
+ return action, probs.log_prob(action), probs.entropy(), self.critic(x)
233
+
234
+
235
+ if __name__ == "__main__":
236
+ args = tyro.cli(Args)
237
+ args.batch_size = int(args.num_envs * args.num_steps)
238
+ args.minibatch_size = int(args.batch_size // args.num_minibatches)
239
+ args.num_iterations = args.total_timesteps // args.batch_size
240
+ run_name = f"{args.env_id}__{args.exp_name}__{args.seed}__{int(time.time())}"
241
+
242
+ if args.track:
243
+ import wandb
244
+ wandb.init(
245
+ project=args.wandb_project_name,
246
+ entity=args.wandb_entity,
247
+ config=vars(args),
248
+ name=run_name,
249
+ monitor_gym=True,
250
+ save_code=True,
251
+ )
252
+ try:
253
+ wandb.define_metric("global_step")
254
+ for prefix in ["train/*", "rollout/*", "eval/*", "losses/*", "charts/*", "perf/*"]:
255
+ wandb.define_metric(prefix, step_metric="global_step")
256
+ except Exception:
257
+ pass
258
+
259
+ # seeding
260
+ random.seed(args.seed)
261
+ np.random.seed(args.seed)
262
+ torch.manual_seed(args.seed)
263
+ torch.backends.cudnn.deterministic = args.torch_deterministic
264
+
265
+ device = torch.device("cuda" if torch.cuda.is_available() and args.cuda else "cpu")
266
+
267
+ # envs
268
+ envs = gym.vector.SyncVectorEnv([
269
+ make_env(i, run_name, args.seed, args.grid_size, args.difficulty, args.capture_video)
270
+ for i in range(args.num_envs)
271
+ ])
272
+ assert isinstance(envs.single_action_space, gym.spaces.Discrete)
273
+
274
+ agent = Agent(envs).to(device)
275
+ optimizer = optim.Adam(agent.parameters(), lr=args.learning_rate, eps=1e-5)
276
+
277
+ # storage
278
+ # Note: obs storage now only stores the flattened grid part
279
+ obs_shape = envs.single_observation_space['observation'].shape
280
+ mask_shape = envs.single_observation_space['action_mask'].shape
281
+
282
+ obs = torch.zeros((args.num_steps, args.num_envs) + obs_shape).to(device)
283
+ masks = torch.zeros((args.num_steps, args.num_envs) + mask_shape).to(device) # Storage for masks
284
+
285
+ actions = torch.zeros((args.num_steps, args.num_envs) + envs.single_action_space.shape).to(device)
286
+ logprobs = torch.zeros((args.num_steps, args.num_envs)).to(device)
287
+ rewards = torch.zeros((args.num_steps, args.num_envs)).to(device)
288
+ dones = torch.zeros((args.num_steps, args.num_envs)).to(device)
289
+ values = torch.zeros((args.num_steps, args.num_envs)).to(device)
290
+
291
+ # start
292
+ global_step = 0
293
+ start_time = time.time()
294
+
295
+ # envs.reset() returns a Dict of stacked arrays
296
+ next_obs_dict, _ = envs.reset(seed=args.seed)
297
+ next_obs = torch.Tensor(next_obs_dict['observation']).to(device)
298
+ next_mask = torch.Tensor(next_obs_dict['action_mask']).to(device)
299
+ next_done = torch.zeros(args.num_envs).to(device)
300
+
301
+ episode_returns = []
302
+ episode_steps = []
303
+ episode_successes = []
304
+
305
+ # Eval helper
306
+ def collect_eval_trajectories(agent_model, make_env_fn, n_episodes, step_tag):
307
+ out_dir = Path(f"runs/{run_name}/trajectories/step_{step_tag}")
308
+ out_dir.mkdir(parents=True, exist_ok=True)
309
+ out_path = out_dir / "trajectories.jsonl"
310
+ env = make_env_fn()
311
+ collected = 0
312
+ summary_returns = []
313
+ summary_success = []
314
+ with out_path.open("w") as f:
315
+ while collected < n_episodes:
316
+ obs_dict, _ = env.reset(seed=args.seed + collected)
317
+ # Handle single env dict unpacking
318
+ state = obs_dict['observation']
319
+ mask = obs_dict['action_mask']
320
+
321
+ traj_states = [state.tolist()]
322
+ traj_actions = []
323
+ traj_rewards = []
324
+ traj_dones = []
325
+ traj_success = []
326
+ done = False
327
+ step_count = 0
328
+ max_eval_steps = getattr(env, '_max_episode_steps', None) or int(args.grid_size * args.grid_size * 6)
329
+
330
+ # Eval loop
331
+ current_obs = torch.tensor(state, dtype=torch.float32, device=device).unsqueeze(0)
332
+ current_mask = torch.tensor(mask, dtype=torch.float32, device=device).unsqueeze(0)
333
+
334
+ while not done:
335
+ with torch.no_grad():
336
+ # Pass mask to actor during eval
337
+ action, _, _, _ = agent_model.get_action_and_value(current_obs, action_mask=current_mask)
338
+ action_item = int(action.item())
339
+
340
+ next_obs_dict, reward, terminated, truncated, info = env.step(action_item)
341
+
342
+ traj_actions.append(action_item)
343
+ traj_rewards.append(float(reward))
344
+ step_count += 1
345
+ d = bool(terminated) or bool(truncated) or (step_count >= max_eval_steps)
346
+ traj_dones.append(d)
347
+ traj_success.append(bool(info.get('success', False)))
348
+
349
+ state = next_obs_dict['observation']
350
+ mask = next_obs_dict['action_mask']
351
+ current_obs = torch.tensor(state, dtype=torch.float32, device=device).unsqueeze(0)
352
+ current_mask = torch.tensor(mask, dtype=torch.float32, device=device).unsqueeze(0)
353
+
354
+ traj_states.append(state.tolist())
355
+ done = d
356
+
357
+ ep_ret = float(sum(traj_rewards))
358
+ ep_succ = bool(any(traj_success))
359
+ record = {
360
+ "states": traj_states,
361
+ "actions": traj_actions,
362
+ "rewards": traj_rewards,
363
+ "dones": traj_dones,
364
+ "success": traj_success,
365
+ "episode_return": ep_ret,
366
+ "episode_success": ep_succ,
367
+ }
368
+ f.write(json.dumps(record) + "\n")
369
+ collected += 1
370
+ summary_returns.append(ep_ret)
371
+ summary_success.append(1.0 if ep_succ else 0.0)
372
+ env.close()
373
+ try:
374
+ metrics = {
375
+ "global_step": int(step_tag),
376
+ "episodes": int(n_episodes),
377
+ "success_rate": float(np.mean(summary_success)) if len(summary_success) else 0.0,
378
+ "avg_return": float(np.mean(summary_returns)) if len(summary_returns) else 0.0,
379
+ "std_return": float(np.std(summary_returns)) if len(summary_returns) else 0.0,
380
+ }
381
+ with (out_dir / "metrics.json").open("w") as mf:
382
+ json.dump(metrics, mf)
383
+ except Exception as e:
384
+ print(f"Warning: failed to write eval metrics: {e}")
385
+
386
+ eval_every_iters = max(1, args.num_iterations // args.eval_splits)
387
+
388
+ # training loop
389
+ for iteration in range(1, args.num_iterations + 1):
390
+ if args.anneal_lr:
391
+ frac = 1.0 - (iteration - 1.0) / args.num_iterations
392
+ optimizer.param_groups[0]["lr"] = frac * args.learning_rate
393
+
394
+ for step in range(0, args.num_steps):
395
+ global_step += args.num_envs
396
+ obs[step] = next_obs
397
+ masks[step] = next_mask # Store mask
398
+ dones[step] = next_done
399
+
400
+ with torch.no_grad():
401
+ # PASS MASK HERE
402
+ action, logprob, _, value = agent.get_action_and_value(next_obs, action_mask=next_mask)
403
+ values[step] = value.flatten()
404
+ actions[step] = action
405
+ logprobs[step] = logprob
406
+
407
+ next_obs_dict, reward, terminations, truncations, infos = envs.step(action.cpu().numpy())
408
+ next_done = np.logical_or(terminations, truncations)
409
+ rewards[step] = torch.tensor(reward).to(device).view(-1)
410
+
411
+ # Unpack dict again
412
+ next_obs = torch.Tensor(next_obs_dict['observation']).to(device)
413
+ next_mask = torch.Tensor(next_obs_dict['action_mask']).to(device)
414
+ next_done = torch.Tensor(next_done).to(device)
415
+
416
+ try:
417
+ mask = None
418
+ if isinstance(infos, dict):
419
+ if "_episode" in infos:
420
+ mask = np.asarray(infos["_episode"]).astype(bool)
421
+ elif "episode" in infos and isinstance(infos["episode"], dict) and "_l" in infos["episode"]:
422
+ mask = np.asarray(infos["episode"]["_l"]).astype(bool)
423
+ if mask is not None and np.any(mask):
424
+ r_arr = np.asarray(infos.get("episode", {}).get("r", np.zeros_like(mask, dtype=float)))
425
+ l_arr = np.asarray(infos.get("episode", {}).get("l", np.zeros_like(mask, dtype=int)))
426
+ succ_arr = np.asarray(infos.get("success", np.zeros_like(mask, dtype=bool))).astype(float)
427
+ for i in np.where(mask)[0]:
428
+ episode_returns.append(float(r_arr[i]))
429
+ episode_steps.append(global_step)
430
+ episode_successes.append(float(succ_arr[i]))
431
+ if args.track:
432
+ try:
433
+ import wandb
434
+ log_dict = {
435
+ "global_step": int(global_step),
436
+ "rollout/ep_rew_mean": float(np.mean(r_arr[mask])) if np.any(mask) else None,
437
+ "rollout/ep_len_mean": float(np.mean(l_arr[mask])) if np.any(mask) else None,
438
+ "rollout/success_rate": float(np.mean(succ_arr[mask])) if np.any(mask) else None,
439
+ }
440
+ if np.any(mask):
441
+ last_idx = np.where(mask)[0][-1]
442
+ log_dict.update({
443
+ "train/episodic_return": float(r_arr[last_idx]),
444
+ "train/episodic_length": int(l_arr[last_idx]),
445
+ "train/success": float(succ_arr[last_idx]),
446
+ "train/success_rate_100": float(np.mean(episode_successes[-100:])) if len(episode_successes) >= 100 else None,
447
+ })
448
+ wandb.log(log_dict, step=global_step)
449
+ except Exception:
450
+ pass
451
+ except Exception:
452
+ pass
453
+
454
+ # GAE
455
+ with torch.no_grad():
456
+ next_value = agent.get_value(next_obs).reshape(1, -1)
457
+ advantages = torch.zeros_like(rewards).to(device)
458
+ lastgaelam = 0
459
+ for t in reversed(range(args.num_steps)):
460
+ if t == args.num_steps - 1:
461
+ nextnonterminal = 1.0 - next_done
462
+ nextvalues = next_value
463
+ else:
464
+ nextnonterminal = 1.0 - dones[t + 1]
465
+ nextvalues = values[t + 1]
466
+ delta = rewards[t] + args.gamma * nextvalues * nextnonterminal - values[t]
467
+ advantages[t] = lastgaelam = delta + args.gamma * args.gae_lambda * nextnonterminal * lastgaelam
468
+ returns = advantages + values
469
+
470
+ # flatten batch
471
+ b_obs = obs.reshape((-1,) + obs_shape)
472
+ b_masks = masks.reshape((-1,) + mask_shape) # Flatten masks
473
+ b_logprobs = logprobs.reshape(-1)
474
+ b_actions = actions.reshape((-1,) + envs.single_action_space.shape)
475
+ b_advantages = advantages.reshape(-1)
476
+ b_returns = returns.reshape(-1)
477
+ b_values = values.reshape(-1)
478
+
479
+ # update
480
+ b_inds = np.arange(args.batch_size)
481
+ for epoch in range(args.update_epochs):
482
+ np.random.shuffle(b_inds)
483
+ for start in range(0, args.batch_size, args.minibatch_size):
484
+ end = start + args.minibatch_size
485
+ mb_inds = b_inds[start:end]
486
+
487
+ # PASS MASK HERE
488
+ _, newlogprob, entropy, newvalue = agent.get_action_and_value(
489
+ b_obs[mb_inds],
490
+ action=b_actions.long()[mb_inds],
491
+ action_mask=b_masks[mb_inds]
492
+ )
493
+
494
+ logratio = newlogprob - b_logprobs[mb_inds]
495
+ ratio = logratio.exp()
496
+
497
+ with torch.no_grad():
498
+ old_approx_kl = (-logratio).mean()
499
+ approx_kl = ((ratio - 1) - logratio).mean()
500
+
501
+ mb_advantages = b_advantages[mb_inds]
502
+ if args.norm_adv:
503
+ mb_advantages = (mb_advantages - mb_advantages.mean()) / (mb_advantages.std() + 1e-8)
504
+
505
+ pg_loss1 = -mb_advantages * ratio
506
+ pg_loss2 = -mb_advantages * torch.clamp(ratio, 1 - args.clip_coef, 1 + args.clip_coef)
507
+ pg_loss = torch.max(pg_loss1, pg_loss2).mean()
508
+
509
+ newvalue = newvalue.view(-1)
510
+ if args.clip_vloss:
511
+ v_loss_unclipped = (newvalue - b_returns[mb_inds]) ** 2
512
+ v_clipped = b_values[mb_inds] + torch.clamp(
513
+ newvalue - b_values[mb_inds], -args.clip_coef, args.clip_coef,
514
+ )
515
+ v_loss_clipped = (v_clipped - b_returns[mb_inds]) ** 2
516
+ v_loss = 0.5 * torch.max(v_loss_unclipped, v_loss_clipped).mean()
517
+ else:
518
+ v_loss = 0.5 * ((newvalue - b_returns[mb_inds]) ** 2).mean()
519
+
520
+ entropy_loss = entropy.mean()
521
+ loss = pg_loss - args.ent_coef * entropy_loss + v_loss * args.vf_coef
522
+
523
+ optimizer.zero_grad()
524
+ loss.backward()
525
+ nn.utils.clip_grad_norm_(agent.parameters(), args.max_grad_norm)
526
+ optimizer.step()
527
+
528
+ if args.target_kl is not None and approx_kl > args.target_kl:
529
+ break
530
+
531
+ # logging
532
+ y_pred, y_true = b_values.cpu().numpy(), b_returns.cpu().numpy()
533
+ var_y = np.var(y_true)
534
+ explained_var = np.nan if var_y == 0 else 1 - np.var(y_true - y_pred) / var_y
535
+
536
+ sps = int(global_step / (time.time() - start_time))
537
+ progress = 100 * iteration / args.num_iterations
538
+ print(f"[{progress:5.1f}%] Iter {iteration:4d}/{args.num_iterations} | "
539
+ f"SPS: {sps:5d} | "
540
+ f"Reward: {rewards.mean().item():6.3f} | "
541
+ f"Val: {values.mean().item():6.3f} | "
542
+ f"VLoss: {v_loss.item():.4f} | "
543
+ f"PLoss: {pg_loss.item():.4f} | "
544
+ f"Ent: {entropy_loss.item():.4f}")
545
+ if args.track:
546
+ try:
547
+ import wandb
548
+ wandb.log({
549
+ "global_step": int(global_step),
550
+ "train/value_loss": float(v_loss.item()),
551
+ "train/policy_loss": float(pg_loss.item()),
552
+ "train/entropy": float(entropy_loss.item()),
553
+ "train/old_approx_kl": float(old_approx_kl.item()),
554
+ "train/approx_kl": float(approx_kl.item()),
555
+ "losses/explained_variance": float(explained_var),
556
+ "charts/avg_reward": float(rewards.mean().item()),
557
+ "charts/avg_value": float(values.mean().item()),
558
+ "perf/SPS": int(sps),
559
+ "train/learning_rate": float(optimizer.param_groups[0]["lr"]),
560
+ }, step=global_step)
561
+ except Exception:
562
+ pass
563
+
564
+ if iteration % eval_every_iters == 0:
565
+ try:
566
+ eval_thunk = make_env(0, run_name, args.seed + 9999, args.grid_size, args.difficulty, False)
567
+ collect_eval_trajectories(agent, eval_thunk, n_episodes=args.eval_episodes, step_tag=global_step)
568
+ if args.track:
569
+ try:
570
+ import json as _json
571
+ from pathlib import Path as _Path
572
+ mpath = _Path(f"runs/{run_name}/trajectories/step_{global_step}/metrics.json")
573
+ if mpath.exists():
574
+ with mpath.open("r") as mf:
575
+ metrics = _json.load(mf)
576
+ wandb.log({
577
+ "eval/success_rate": metrics.get("success_rate"),
578
+ "eval/avg_return": metrics.get("avg_return"),
579
+ "eval/std_return": metrics.get("std_return"),
580
+ "eval/episodes": metrics.get("episodes"),
581
+ }, step=global_step)
582
+ except Exception:
583
+ pass
584
+ print(f"Collected {args.eval_episodes} eval trajectories at global_step {global_step}")
585
+ except Exception as e:
586
+ print(f"Warning: eval trajectory collection failed at step {global_step}: {e}")
587
+
588
+ envs.close()
wandb/run-20260515_161238-gu8o8dz5/files/diff.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260515_161238-gu8o8dz5/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260515_161238-gu8o8dz5/files/requirements.txt ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ colorama==0.4.6
2
+ psutil==7.2.2
3
+ pyarrow==23.0.1
4
+ math-verify==0.9.0
5
+ pygame==2.6.1
6
+ partial-json-parser==0.2.1.1.post7
7
+ anyio==4.13.0
8
+ wandb==0.25.1
9
+ mathruler==0.1.0
10
+ tzdata==2026.1
11
+ gym-sokoban==0.0.6
12
+ sniffio==1.3.1
13
+ omegaconf==2.3.0
14
+ httpcore==1.0.9
15
+ scipy==1.15.3
16
+ multidict==6.7.1
17
+ nvidia-cusparse-cu12==12.3.1.170
18
+ fonttools==4.62.1
19
+ together==2.7.0
20
+ antlr4-python3-runtime==4.9.3
21
+ cupy-cuda12x==13.6.0
22
+ av==17.0.0
23
+ torch==2.6.0
24
+ datasets==4.8.4
25
+ pyparsing==3.3.2
26
+ markdown-it-py==4.0.0
27
+ accelerate==1.13.0
28
+ lark==1.2.2
29
+ sentencepiece==0.2.1
30
+ Flask==3.1.3
31
+ annotated-doc==0.0.4
32
+ rignore==0.7.6
33
+ ImageIO==2.37.3
34
+ outlines_core==0.1.26
35
+ gym==0.26.2
36
+ depyf==0.18.0
37
+ pydantic==2.12.5
38
+ nvidia-cuda-nvrtc-cu12==12.4.127
39
+ certifi==2026.2.25
40
+ aiohttp==3.13.5
41
+ flash_attn==2.7.4.post1
42
+ msgspec==0.21.0
43
+ matplotlib==3.10.8
44
+ pandas==2.3.3
45
+ openai==2.31.0
46
+ sentry-sdk==2.57.0
47
+ propcache==0.4.1
48
+ nvidia-curand-cu12==10.3.5.147
49
+ python-dateutil==2.9.0.post0
50
+ itsdangerous==2.2.0
51
+ cloudpickle==3.1.2
52
+ ray==2.54.1
53
+ cffi==2.0.0
54
+ pyzmq==27.1.0
55
+ Jinja2==3.1.6
56
+ nest-asyncio==1.6.0
57
+ orjson==3.11.8
58
+ pydantic-extra-types==2.11.2
59
+ nvidia-nccl-cu12==2.21.5
60
+ gitdb==4.0.12
61
+ Farama-Notifications==0.0.4
62
+ async-timeout==5.0.1
63
+ torchdata==0.11.0
64
+ ninja==1.13.0
65
+ hydra-core==1.3.2
66
+ GitPython==3.1.46
67
+ nvidia-cuda-runtime-cu12==12.4.127
68
+ msgpack==1.1.2
69
+ email-validator==2.3.0
70
+ yarl==1.23.0
71
+ numpy==1.26.4
72
+ charset-normalizer==3.4.7
73
+ pycountry==26.2.16
74
+ annotated-types==0.7.0
75
+ uvloop==0.22.1
76
+ torchvision==0.21.0
77
+ jsonschema-specifications==2025.9.1
78
+ uvicorn==0.44.0
79
+ nvidia-nvjitlink-cu12==12.4.127
80
+ sympy==1.13.1
81
+ latex2sympy2_extended==1.11.0
82
+ triton==3.2.0
83
+ tqdm==4.67.3
84
+ diskcache==5.6.3
85
+ kiwisolver==1.5.0
86
+ llguidance==0.7.30
87
+ prometheus_client==0.25.0
88
+ types-PyYAML==6.0.12.20260408
89
+ MarkupSafe==3.0.3
90
+ fastapi-cloud-cli==0.16.1
91
+ cachetools==7.0.5
92
+ pillow==12.2.0
93
+ airportsdata==20260315
94
+ mpmath==1.3.0
95
+ cycler==0.12.1
96
+ qwen-vl-utils==0.0.14
97
+ jsonschema==4.26.0
98
+ safetensors==0.7.0
99
+ gymnasium==1.2.3
100
+ h11==0.16.0
101
+ Pygments==2.20.0
102
+ zipp==3.23.0
103
+ outlines==0.1.11
104
+ typing_extensions==4.15.0
105
+ requests==2.33.1
106
+ watchfiles==1.1.1
107
+ shellingham==1.5.4
108
+ xformers==0.0.29.post2
109
+ blinker==1.9.0
110
+ distro==1.9.0
111
+ multiprocess==0.70.19
112
+ regex==2026.4.4
113
+ fastapi-cli==0.0.24
114
+ tabulate==0.10.0
115
+ referencing==0.37.0
116
+ xxhash==3.6.0
117
+ smmap==5.0.3
118
+ six==1.17.0
119
+ Werkzeug==3.1.8
120
+ click==8.3.2
121
+ py-cpuinfo==9.0.0
122
+ aiosignal==1.4.0
123
+ setuptools==69.1.0
124
+ setuptools==82.0.1
125
+ aiohappyeyeballs==2.6.1
126
+ starlette==0.52.1
127
+ gym-notices==0.1.0
128
+ typing-inspection==0.4.2
129
+ networkx==3.4.2
130
+ pydantic_core==2.41.5
131
+ pycparser==3.0
132
+ contourpy==1.3.2
133
+ codetiming==1.4.0
134
+ python-dotenv==1.2.2
135
+ rpds-py==0.30.0
136
+ blake3==1.0.8
137
+ python-multipart==0.0.24
138
+ fastapi==0.135.3
139
+ httpx==0.28.1
140
+ attrs==26.1.0
141
+ pytz==2026.1.post1
142
+ platformdirs==4.9.6
143
+ nvidia-cusolver-cu12==11.6.1.9
144
+ hf-xet==1.4.3
145
+ filelock==3.25.2
146
+ types-requests==2.33.0.20260408
147
+ idna==3.11
148
+ fsspec==2026.2.0
149
+ astor==0.8.1
150
+ interegular==0.3.3
151
+ nvidia-cudnn-cu12==9.1.0.70
152
+ frozenlist==1.8.0
153
+ pylatexenc==2.10
154
+ nvidia-cublas-cu12==12.4.5.8
155
+ httptools==0.7.1
156
+ python-json-logger==4.1.0
157
+ mdurl==0.1.2
158
+ mistral_common==1.11.0
159
+ vulkan==1.3.275.1
160
+ nvidia-cuda-cupti-cu12==12.4.127
161
+ pybind11==3.0.3
162
+ PyYAML==6.0.3
163
+ jiter==0.13.0
164
+ fastrlock==0.8.3
165
+ typeguard==4.5.1
166
+ typer==0.24.1
167
+ websockets==16.0
168
+ nvidia-cufft-cu12==11.2.1.3
169
+ nvidia-nvtx-cu12==12.4.127
170
+ psutil==7.2.2
171
+ tomli==2.4.1
172
+ types-tqdm==4.67.3.20260408
173
+ fastar==0.10.0
174
+ einops==0.8.2
175
+ lm-format-enforcer==0.10.12
176
+ opencv-python-headless==4.11.0.86
177
+ tiktoken==0.12.0
178
+ rich-toolkit==0.19.7
179
+ rich==14.3.3
180
+ dnspython==2.8.0
181
+ pydantic-settings==2.13.1
182
+ types-tabulate==0.10.0.20260408
183
+ torchaudio==2.6.0
184
+ urllib3==2.6.3
185
+ dill==0.4.1
186
+ docstring_parser==0.18.0
187
+ prometheus-fastapi-instrumentator==7.1.0
188
+ peft==0.18.1
189
+ exceptiongroup==1.3.1
190
+ tyro==1.0.13
191
+ nvidia-cusparselt-cu12==0.6.2
192
+ packaging==26.0
193
+ wheel==0.46.3
194
+ pip==26.0.1
195
+ pyjnius==1.7.0
196
+ pure_eval==0.2.3
197
+ ptyprocess==0.7.0
198
+ flatbuffers==25.12.19
199
+ faiss-gpu==1.7.2
200
+ wrapt==2.1.2
201
+ wcwidth==0.6.0
202
+ wasabi==1.1.3
203
+ traitlets==5.14.3
204
+ threadpoolctl==3.6.0
205
+ tenacity==9.1.4
206
+ spacy-loggers==1.0.5
207
+ spacy-legacy==3.0.12
208
+ soupsieve==2.8.3
209
+ RapidFuzz==3.14.5
210
+ rank-bm25==0.2.2
211
+ PySocks==1.7.1
212
+ PyJWT==2.12.1
213
+ parso==0.8.6
214
+ protobuf==4.25.9
215
+ pexpect==4.9.0
216
+ opentelemetry-semantic-conventions-ai==0.4.13
217
+ murmurhash==1.0.15
218
+ loguru==0.7.3
219
+ joblib==1.5.3
220
+ humanfriendly==10.0
221
+ httpx-sse==0.4.3
222
+ html2text==2025.4.15
223
+ grpcio==1.80.0
224
+ executing==2.2.1
225
+ decorator==5.2.1
226
+ debugpy==1.8.20
227
+ Cython==3.2.4
228
+ cymem==2.0.13
229
+ confection==1.3.3
230
+ colorama==0.4.6
231
+ cloudpathlib==0.23.0
232
+ catalogue==2.0.10
233
+ blis==1.3.3
234
+ asttokens==3.0.1
235
+ thefuzz==0.22.1
236
+ stack-data==0.6.3
237
+ srsly==2.5.3
238
+ smart_open==7.6.0
239
+ scikit-learn==1.7.2
240
+ prompt_toolkit==3.0.52
241
+ preshed==3.0.13
242
+ opentelemetry-proto==1.26.0
243
+ nltk==3.9.4
244
+ matplotlib-inline==0.2.1
245
+ jedi==0.19.2
246
+ googleapis-common-protos==1.74.0
247
+ Deprecated==1.3.1
248
+ cryptography==46.0.7
249
+ coloredlogs==15.0.1
250
+ beautifulsoup4==4.14.3
251
+ thinc==8.3.13
252
+ opentelemetry-exporter-otlp-proto-common==1.26.0
253
+ onnxruntime==1.23.2
254
+ ipython==8.39.0
255
+ gdown==6.0.0
256
+ cleantext==1.1.4
257
+ weasel==1.0.0
258
+ tensordict==0.8.3
259
+ sse-starlette==3.3.4
260
+ mcp==1.27.0
261
+ anthropic==0.96.0
262
+ spacy==3.8.14
263
+ opentelemetry-exporter-otlp-proto-http==1.26.0
264
+ opentelemetry-exporter-otlp-proto-grpc==1.26.0
265
+ kimina-client==0.2.1
266
+ pyserini==1.2.0
267
+ opentelemetry-exporter-otlp==1.26.0
268
+ compressed-tensors==0.9.2
269
+ vllm==0.8.2
270
+ py-spy==0.4.1
271
+ opencensus-context==0.1.3
272
+ distlib==0.4.0
273
+ colorful==0.5.8
274
+ tensorboard-data-server==0.7.2
275
+ python-discovery==1.2.2
276
+ pyasn1==0.6.3
277
+ proto-plus==1.27.2
278
+ Markdown==3.10.2
279
+ absl-py==2.4.0
280
+ virtualenv==21.2.4
281
+ tensorboard==2.20.0
282
+ pyasn1_modules==0.4.2
283
+ opentelemetry-api==1.24.0
284
+ google-auth==2.49.2
285
+ google-api-core==2.30.3
286
+ aiohttp-cors==0.8.1
287
+ opentelemetry-exporter-prometheus==0.62b0
288
+ opencensus==0.11.4
289
+ verl==0.5.0.dev0
290
+ huggingface_hub==0.36.2
291
+ opentelemetry-semantic-conventions==0.45b0
292
+ opentelemetry-sdk==1.24.0
293
+ llvmlite==0.43.0
294
+ tokenizers==0.21.4
295
+ gguf==0.10.0
296
+ importlib-metadata==7.0.0
297
+ hjson==3.1.0
298
+ deepspeed==0.16.9
299
+ transformers==4.51.1
300
+ xgrammar==0.1.16
301
+ ragen==0.1
302
+ numba==0.60.0
303
+ ragen==0.1
304
+ verl==0.5.0.dev0
305
+ autocommand==2.2.2
306
+ backports.tarfile==1.2.0
307
+ importlib_metadata==8.7.1
308
+ jaraco.text==4.0.0
309
+ jaraco.context==6.1.0
310
+ jaraco.functools==4.4.0
311
+ more-itertools==10.8.0
312
+ packaging==26.0
313
+ platformdirs==4.4.0
314
+ tomli==2.4.0
315
+ wheel==0.46.3
316
+ zipp==3.23.0
wandb/run-20260515_161238-gu8o8dz5/files/wandb-metadata.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.20",
4
+ "startedAt": "2026-05-15T08:12:38.521989Z",
5
+ "program": "/mnt/general/wanghy/RAGEN/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py",
6
+ "codePath": "cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py",
7
+ "codePathLocal": "cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py",
8
+ "git": {
9
+ "remote": "https://github.com/Harry-mic/SCOUT",
10
+ "commit": "b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0"
11
+ },
12
+ "email": "haoyu-wa22@mails.tsinghua.edu.cn",
13
+ "root": "/mnt/general/wanghy/RAGEN",
14
+ "host": "pt-a7f17fedde804edca572f81ace5fcaf3-worker-0",
15
+ "executable": "/opt/conda/envs/ragen_new/bin/python",
16
+ "cpu_count": 64,
17
+ "cpu_count_logical": 128,
18
+ "gpu": "NVIDIA H100 80GB HBM3",
19
+ "gpu_count": 8,
20
+ "disk": {
21
+ "/": {
22
+ "total": "60129542144000",
23
+ "used": "72513884160"
24
+ }
25
+ },
26
+ "memory": {
27
+ "total": "2159579672576"
28
+ },
29
+ "gpu_nvidia": [
30
+ {
31
+ "name": "NVIDIA H100 80GB HBM3",
32
+ "memoryTotal": "85520809984",
33
+ "cudaCores": 16896,
34
+ "architecture": "Hopper",
35
+ "uuid": "GPU-97b3b912-40cf-f573-ffce-8275a656891f"
36
+ },
37
+ {
38
+ "name": "NVIDIA H100 80GB HBM3",
39
+ "memoryTotal": "85520809984",
40
+ "cudaCores": 16896,
41
+ "architecture": "Hopper",
42
+ "uuid": "GPU-5e4acc7a-f7ab-1a15-312e-4e2a39c43b2c"
43
+ },
44
+ {
45
+ "name": "NVIDIA H100 80GB HBM3",
46
+ "memoryTotal": "85520809984",
47
+ "cudaCores": 16896,
48
+ "architecture": "Hopper",
49
+ "uuid": "GPU-b36695ed-370a-2556-79d8-b0a2c2659271"
50
+ },
51
+ {
52
+ "name": "NVIDIA H100 80GB HBM3",
53
+ "memoryTotal": "85520809984",
54
+ "cudaCores": 16896,
55
+ "architecture": "Hopper",
56
+ "uuid": "GPU-b3e13ca7-237c-931f-894b-798f9cfa5620"
57
+ },
58
+ {
59
+ "name": "NVIDIA H100 80GB HBM3",
60
+ "memoryTotal": "85520809984",
61
+ "cudaCores": 16896,
62
+ "architecture": "Hopper",
63
+ "uuid": "GPU-64647b1f-5d55-1b7e-bf3d-64fae3871140"
64
+ },
65
+ {
66
+ "name": "NVIDIA H100 80GB HBM3",
67
+ "memoryTotal": "85520809984",
68
+ "cudaCores": 16896,
69
+ "architecture": "Hopper",
70
+ "uuid": "GPU-fe8b9b7e-82a4-1238-4843-bbfd0269d746"
71
+ },
72
+ {
73
+ "name": "NVIDIA H100 80GB HBM3",
74
+ "memoryTotal": "85520809984",
75
+ "cudaCores": 16896,
76
+ "architecture": "Hopper",
77
+ "uuid": "GPU-4523d4e1-5745-8224-7bcd-44cf59b76bae"
78
+ },
79
+ {
80
+ "name": "NVIDIA H100 80GB HBM3",
81
+ "memoryTotal": "85520809984",
82
+ "cudaCores": 16896,
83
+ "architecture": "Hopper",
84
+ "uuid": "GPU-9262bcbd-a29f-d761-3330-ac2ce9f15e82"
85
+ }
86
+ ],
87
+ "cudaVersion": "12.4",
88
+ "writerId": "wivgvewa54gi2r1e37nw598ga9bd00ah"
89
+ }
wandb/run-20260515_161238-gu8o8dz5/run-gu8o8dz5.wandb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1c5ae04b784bf6effe9fcd4f7c79d4d47a53eb92e0dd052f3421e245b1b76e5
3
+ size 60424192
wandb/run-20260515_162634-oma8h4e9/files/code/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py ADDED
@@ -0,0 +1,588 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PPO with Action Masking for RAGEN Sudoku (4x4, max_step=20)
2
+ import os
3
+ import random
4
+ import time
5
+ from dataclasses import dataclass
6
+ from pathlib import Path
7
+ from typing import Tuple, Dict, Any, List
8
+ import json
9
+
10
+ import gymnasium as gym
11
+ import numpy as np
12
+ import torch
13
+ import torch.nn as nn
14
+ import torch.optim as optim
15
+ import tyro
16
+ from torch.distributions.categorical import Categorical
17
+
18
+ import sys
19
+ # 假设 ragen 库在两级目录之上,请根据实际情况调整
20
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../'))
21
+
22
+ from ragen.env.sudoku.env import SudokuEnv
23
+ from ragen.env.sudoku.config import SudokuEnvConfig
24
+
25
+
26
+ class SudokuWrapper(gym.Env):
27
+ """
28
+ Adapter to use ragen SudokuEnv with Gymnasium vector API.
29
+ Improvements: Returns a Dict observation with 'action_mask' to prevent
30
+ the agent from modifying cells that are already filled.
31
+ """
32
+ metadata = {"render_modes": ["rgb_array", "human", "ansi"]}
33
+
34
+ def __init__(self, env: SudokuEnv, grid_size: int):
35
+ super().__init__()
36
+ self._env = env
37
+ self._size = grid_size
38
+ # 0 denotes empty, 1..grid_size denote values
39
+ self._val_dim = self._size + 1
40
+
41
+ # Actions: (row, col, num) -> Flattened
42
+ self._act_n = self._size * self._size * self._size
43
+ self.action_space = gym.spaces.Discrete(self._act_n)
44
+
45
+ # Observation: Dict with mask
46
+ self.observation_space = gym.spaces.Dict({
47
+ "observation": gym.spaces.Box(low=0.0, high=1.0, shape=(self._size * self._size * self._val_dim,), dtype=np.float32),
48
+ "action_mask": gym.spaces.Box(low=0.0, high=1.0, shape=(self._act_n,), dtype=np.float32)
49
+ })
50
+
51
+ def _encode_obs(self, text_obs: str) -> Dict[str, np.ndarray]:
52
+ # Parse the 'simple' grid format
53
+ vals: List[int] = []
54
+ for line in text_obs.splitlines():
55
+ ls = line.strip()
56
+ if len(ls) == 0: continue
57
+ if set(ls) <= {'-'}: continue
58
+ tokens = [t for t in ls.split() if t != '|']
59
+ if len(tokens) == 0: continue
60
+ for t in tokens:
61
+ if t == '.': vals.append(0)
62
+ else:
63
+ try: v = int(t)
64
+ except ValueError: v = 0
65
+ vals.append(v)
66
+
67
+ target = self._size * self._size
68
+ if len(vals) < target: vals.extend([0] * (target - len(vals)))
69
+ if len(vals) > target: vals = vals[:target]
70
+
71
+ # One-hot encode grid
72
+ grid = np.zeros((target, self._val_dim), dtype=np.float32)
73
+ # Initialize mask (1.0 = valid, 0.0 = invalid)
74
+ mask = np.ones(self._act_n, dtype=np.float32)
75
+
76
+ for i, v in enumerate(vals):
77
+ v_clamped = int(v)
78
+ if v_clamped < 0 or v_clamped > self._size:
79
+ v_clamped = 0
80
+ grid[i, v_clamped] = 1.0
81
+
82
+ # If a cell is NOT empty (v_clamped != 0), mask all actions for this cell.
83
+ # Agent should not overwrite existing numbers.
84
+ if v_clamped != 0:
85
+ start_idx = i * self._size
86
+ end_idx = start_idx + self._size
87
+ mask[start_idx:end_idx] = 0.0
88
+
89
+ return {
90
+ "observation": grid.reshape(-1),
91
+ "action_mask": mask
92
+ }
93
+
94
+ @staticmethod
95
+ def _decode_action(action_id: int, grid_size: int) -> Tuple[int, int, int]:
96
+ g = grid_size
97
+ row = action_id // (g * g)
98
+ rem = action_id % (g * g)
99
+ col = rem // g
100
+ num = (rem % g) + 1
101
+ return row, col, num
102
+
103
+ def reset(self, *, seed: int | None = None, options: Dict[str, Any] | None = None):
104
+ text_obs = self._env.reset(seed=seed)
105
+ obs = self._encode_obs(text_obs)
106
+ return obs, {}
107
+
108
+ def step(self, action: int):
109
+ row, col, num = self._decode_action(int(action), self._size)
110
+ act_str = f"{row+1},{col+1},{num}"
111
+ text_obs, reward, done, info = self._env.step(act_str)
112
+ obs = self._encode_obs(text_obs)
113
+ terminated = bool(done)
114
+ truncated = False
115
+ return obs, float(reward), terminated, truncated, info or {}
116
+
117
+ def render(self):
118
+ return self._env.render()
119
+
120
+ def close(self):
121
+ self._env.close()
122
+
123
+
124
+ @dataclass
125
+ class Args:
126
+ exp_name: str = os.path.basename(__file__)[: -len(".py")]
127
+ seed: int = 1
128
+ torch_deterministic: bool = True
129
+ cuda: bool = True
130
+ track: bool = True
131
+ wandb_project_name: str = "cleanRL"
132
+ wandb_entity: str | None = None
133
+ capture_video: bool = False
134
+
135
+ # Algorithm
136
+ env_id: str = "Sudoku"
137
+ total_timesteps: int = 10000_000
138
+ learning_rate: float = 3e-4
139
+ num_envs: int = 8
140
+ num_steps: int = 128
141
+ anneal_lr: bool = True
142
+ gamma: float = 0.99
143
+ gae_lambda: float = 0.95
144
+ num_minibatches: int = 4
145
+ update_epochs: int = 4
146
+ norm_adv: bool = True
147
+ clip_coef: float = 0.2
148
+ clip_vloss: bool = True
149
+ ent_coef: float = 0.01
150
+ vf_coef: float = 0.5
151
+ max_grad_norm: float = 0.5
152
+ target_kl: float | None = None
153
+
154
+ # Sudoku specific
155
+ grid_size: int = 4
156
+ difficulty: str = "easy"
157
+
158
+ # runtime filled
159
+ batch_size: int = 0
160
+ minibatch_size: int = 0
161
+ num_iterations: int = 0
162
+
163
+ # eval
164
+ eval_splits: int = 2
165
+ eval_episodes: int = 4000
166
+
167
+
168
+ def make_env(idx, run_name, seed, grid_size, difficulty, capture_video=False):
169
+ def thunk():
170
+ config = SudokuEnvConfig(
171
+ grid_size=grid_size,
172
+ difficulty=difficulty,
173
+ render_mode='text',
174
+ render_format='simple',
175
+ )
176
+ env = SudokuEnv(config)
177
+ env = SudokuWrapper(env, grid_size)
178
+ # Use env's own max_steps default if available, otherwise a sane cap
179
+ # Keeping your request for strict step limit logic, although wrapper enforces logic
180
+ max_steps = 81
181
+ # max_steps = int(grid_size * grid_size * 6)
182
+ env = gym.wrappers.TimeLimit(env, max_episode_steps=max_steps)
183
+ env = gym.wrappers.RecordEpisodeStatistics(env)
184
+ if capture_video and idx == 0:
185
+ env = gym.wrappers.RecordVideo(env, f"videos/{run_name}")
186
+ return env
187
+ return thunk
188
+
189
+
190
+ def layer_init(layer, std=np.sqrt(2), bias_const=0.0):
191
+ torch.nn.init.orthogonal_(layer.weight, std)
192
+ torch.nn.init.constant_(layer.bias, bias_const)
193
+ return layer
194
+
195
+
196
+ class Agent(nn.Module):
197
+ def __init__(self, envs):
198
+ super().__init__()
199
+ # Accessing the shape from the Dict space
200
+ obs_shape = int(np.array(envs.single_observation_space['observation'].shape).prod())
201
+ hidden = 256 # Increased hidden size slightly for better capacity
202
+
203
+ self.critic = nn.Sequential(
204
+ layer_init(nn.Linear(obs_shape, hidden)),
205
+ nn.Tanh(),
206
+ layer_init(nn.Linear(hidden, hidden)),
207
+ nn.Tanh(),
208
+ layer_init(nn.Linear(hidden, 1), std=1.0),
209
+ )
210
+ self.actor = nn.Sequential(
211
+ layer_init(nn.Linear(obs_shape, hidden)),
212
+ nn.Tanh(),
213
+ layer_init(nn.Linear(hidden, hidden)),
214
+ nn.Tanh(),
215
+ layer_init(nn.Linear(hidden, envs.single_action_space.n), std=0.01),
216
+ )
217
+
218
+ def get_value(self, x):
219
+ return self.critic(x)
220
+
221
+ def get_action_and_value(self, x, action=None, action_mask=None):
222
+ logits = self.actor(x)
223
+
224
+ # Apply Action Masking
225
+ if action_mask is not None:
226
+ # Set logits of invalid actions to a very large negative number
227
+ logits = logits + (action_mask - 1.0) * 1e8
228
+
229
+ probs = Categorical(logits=logits)
230
+ if action is None:
231
+ action = probs.sample()
232
+ return action, probs.log_prob(action), probs.entropy(), self.critic(x)
233
+
234
+
235
+ if __name__ == "__main__":
236
+ args = tyro.cli(Args)
237
+ args.batch_size = int(args.num_envs * args.num_steps)
238
+ args.minibatch_size = int(args.batch_size // args.num_minibatches)
239
+ args.num_iterations = args.total_timesteps // args.batch_size
240
+ run_name = f"{args.env_id}__{args.exp_name}__{args.seed}__{int(time.time())}"
241
+
242
+ if args.track:
243
+ import wandb
244
+ wandb.init(
245
+ project=args.wandb_project_name,
246
+ entity=args.wandb_entity,
247
+ config=vars(args),
248
+ name=run_name,
249
+ monitor_gym=True,
250
+ save_code=True,
251
+ )
252
+ try:
253
+ wandb.define_metric("global_step")
254
+ for prefix in ["train/*", "rollout/*", "eval/*", "losses/*", "charts/*", "perf/*"]:
255
+ wandb.define_metric(prefix, step_metric="global_step")
256
+ except Exception:
257
+ pass
258
+
259
+ # seeding
260
+ random.seed(args.seed)
261
+ np.random.seed(args.seed)
262
+ torch.manual_seed(args.seed)
263
+ torch.backends.cudnn.deterministic = args.torch_deterministic
264
+
265
+ device = torch.device("cuda" if torch.cuda.is_available() and args.cuda else "cpu")
266
+
267
+ # envs
268
+ envs = gym.vector.SyncVectorEnv([
269
+ make_env(i, run_name, args.seed, args.grid_size, args.difficulty, args.capture_video)
270
+ for i in range(args.num_envs)
271
+ ])
272
+ assert isinstance(envs.single_action_space, gym.spaces.Discrete)
273
+
274
+ agent = Agent(envs).to(device)
275
+ optimizer = optim.Adam(agent.parameters(), lr=args.learning_rate, eps=1e-5)
276
+
277
+ # storage
278
+ # Note: obs storage now only stores the flattened grid part
279
+ obs_shape = envs.single_observation_space['observation'].shape
280
+ mask_shape = envs.single_observation_space['action_mask'].shape
281
+
282
+ obs = torch.zeros((args.num_steps, args.num_envs) + obs_shape).to(device)
283
+ masks = torch.zeros((args.num_steps, args.num_envs) + mask_shape).to(device) # Storage for masks
284
+
285
+ actions = torch.zeros((args.num_steps, args.num_envs) + envs.single_action_space.shape).to(device)
286
+ logprobs = torch.zeros((args.num_steps, args.num_envs)).to(device)
287
+ rewards = torch.zeros((args.num_steps, args.num_envs)).to(device)
288
+ dones = torch.zeros((args.num_steps, args.num_envs)).to(device)
289
+ values = torch.zeros((args.num_steps, args.num_envs)).to(device)
290
+
291
+ # start
292
+ global_step = 0
293
+ start_time = time.time()
294
+
295
+ # envs.reset() returns a Dict of stacked arrays
296
+ next_obs_dict, _ = envs.reset(seed=args.seed)
297
+ next_obs = torch.Tensor(next_obs_dict['observation']).to(device)
298
+ next_mask = torch.Tensor(next_obs_dict['action_mask']).to(device)
299
+ next_done = torch.zeros(args.num_envs).to(device)
300
+
301
+ episode_returns = []
302
+ episode_steps = []
303
+ episode_successes = []
304
+
305
+ # Eval helper
306
+ def collect_eval_trajectories(agent_model, make_env_fn, n_episodes, step_tag):
307
+ out_dir = Path(f"runs/{run_name}/trajectories/step_{step_tag}")
308
+ out_dir.mkdir(parents=True, exist_ok=True)
309
+ out_path = out_dir / "trajectories.jsonl"
310
+ env = make_env_fn()
311
+ collected = 0
312
+ summary_returns = []
313
+ summary_success = []
314
+ with out_path.open("w") as f:
315
+ while collected < n_episodes:
316
+ obs_dict, _ = env.reset(seed=args.seed + collected)
317
+ # Handle single env dict unpacking
318
+ state = obs_dict['observation']
319
+ mask = obs_dict['action_mask']
320
+
321
+ traj_states = [state.tolist()]
322
+ traj_actions = []
323
+ traj_rewards = []
324
+ traj_dones = []
325
+ traj_success = []
326
+ done = False
327
+ step_count = 0
328
+ max_eval_steps = getattr(env, '_max_episode_steps', None) or int(args.grid_size * args.grid_size * 6)
329
+
330
+ # Eval loop
331
+ current_obs = torch.tensor(state, dtype=torch.float32, device=device).unsqueeze(0)
332
+ current_mask = torch.tensor(mask, dtype=torch.float32, device=device).unsqueeze(0)
333
+
334
+ while not done:
335
+ with torch.no_grad():
336
+ # Pass mask to actor during eval
337
+ action, _, _, _ = agent_model.get_action_and_value(current_obs, action_mask=current_mask)
338
+ action_item = int(action.item())
339
+
340
+ next_obs_dict, reward, terminated, truncated, info = env.step(action_item)
341
+
342
+ traj_actions.append(action_item)
343
+ traj_rewards.append(float(reward))
344
+ step_count += 1
345
+ d = bool(terminated) or bool(truncated) or (step_count >= max_eval_steps)
346
+ traj_dones.append(d)
347
+ traj_success.append(bool(info.get('success', False)))
348
+
349
+ state = next_obs_dict['observation']
350
+ mask = next_obs_dict['action_mask']
351
+ current_obs = torch.tensor(state, dtype=torch.float32, device=device).unsqueeze(0)
352
+ current_mask = torch.tensor(mask, dtype=torch.float32, device=device).unsqueeze(0)
353
+
354
+ traj_states.append(state.tolist())
355
+ done = d
356
+
357
+ ep_ret = float(sum(traj_rewards))
358
+ ep_succ = bool(any(traj_success))
359
+ record = {
360
+ "states": traj_states,
361
+ "actions": traj_actions,
362
+ "rewards": traj_rewards,
363
+ "dones": traj_dones,
364
+ "success": traj_success,
365
+ "episode_return": ep_ret,
366
+ "episode_success": ep_succ,
367
+ }
368
+ f.write(json.dumps(record) + "\n")
369
+ collected += 1
370
+ summary_returns.append(ep_ret)
371
+ summary_success.append(1.0 if ep_succ else 0.0)
372
+ env.close()
373
+ try:
374
+ metrics = {
375
+ "global_step": int(step_tag),
376
+ "episodes": int(n_episodes),
377
+ "success_rate": float(np.mean(summary_success)) if len(summary_success) else 0.0,
378
+ "avg_return": float(np.mean(summary_returns)) if len(summary_returns) else 0.0,
379
+ "std_return": float(np.std(summary_returns)) if len(summary_returns) else 0.0,
380
+ }
381
+ with (out_dir / "metrics.json").open("w") as mf:
382
+ json.dump(metrics, mf)
383
+ except Exception as e:
384
+ print(f"Warning: failed to write eval metrics: {e}")
385
+
386
+ eval_every_iters = max(1, args.num_iterations // args.eval_splits)
387
+
388
+ # training loop
389
+ for iteration in range(1, args.num_iterations + 1):
390
+ if args.anneal_lr:
391
+ frac = 1.0 - (iteration - 1.0) / args.num_iterations
392
+ optimizer.param_groups[0]["lr"] = frac * args.learning_rate
393
+
394
+ for step in range(0, args.num_steps):
395
+ global_step += args.num_envs
396
+ obs[step] = next_obs
397
+ masks[step] = next_mask # Store mask
398
+ dones[step] = next_done
399
+
400
+ with torch.no_grad():
401
+ # PASS MASK HERE
402
+ action, logprob, _, value = agent.get_action_and_value(next_obs, action_mask=next_mask)
403
+ values[step] = value.flatten()
404
+ actions[step] = action
405
+ logprobs[step] = logprob
406
+
407
+ next_obs_dict, reward, terminations, truncations, infos = envs.step(action.cpu().numpy())
408
+ next_done = np.logical_or(terminations, truncations)
409
+ rewards[step] = torch.tensor(reward).to(device).view(-1)
410
+
411
+ # Unpack dict again
412
+ next_obs = torch.Tensor(next_obs_dict['observation']).to(device)
413
+ next_mask = torch.Tensor(next_obs_dict['action_mask']).to(device)
414
+ next_done = torch.Tensor(next_done).to(device)
415
+
416
+ try:
417
+ mask = None
418
+ if isinstance(infos, dict):
419
+ if "_episode" in infos:
420
+ mask = np.asarray(infos["_episode"]).astype(bool)
421
+ elif "episode" in infos and isinstance(infos["episode"], dict) and "_l" in infos["episode"]:
422
+ mask = np.asarray(infos["episode"]["_l"]).astype(bool)
423
+ if mask is not None and np.any(mask):
424
+ r_arr = np.asarray(infos.get("episode", {}).get("r", np.zeros_like(mask, dtype=float)))
425
+ l_arr = np.asarray(infos.get("episode", {}).get("l", np.zeros_like(mask, dtype=int)))
426
+ succ_arr = np.asarray(infos.get("success", np.zeros_like(mask, dtype=bool))).astype(float)
427
+ for i in np.where(mask)[0]:
428
+ episode_returns.append(float(r_arr[i]))
429
+ episode_steps.append(global_step)
430
+ episode_successes.append(float(succ_arr[i]))
431
+ if args.track:
432
+ try:
433
+ import wandb
434
+ log_dict = {
435
+ "global_step": int(global_step),
436
+ "rollout/ep_rew_mean": float(np.mean(r_arr[mask])) if np.any(mask) else None,
437
+ "rollout/ep_len_mean": float(np.mean(l_arr[mask])) if np.any(mask) else None,
438
+ "rollout/success_rate": float(np.mean(succ_arr[mask])) if np.any(mask) else None,
439
+ }
440
+ if np.any(mask):
441
+ last_idx = np.where(mask)[0][-1]
442
+ log_dict.update({
443
+ "train/episodic_return": float(r_arr[last_idx]),
444
+ "train/episodic_length": int(l_arr[last_idx]),
445
+ "train/success": float(succ_arr[last_idx]),
446
+ "train/success_rate_100": float(np.mean(episode_successes[-100:])) if len(episode_successes) >= 100 else None,
447
+ })
448
+ wandb.log(log_dict, step=global_step)
449
+ except Exception:
450
+ pass
451
+ except Exception:
452
+ pass
453
+
454
+ # GAE
455
+ with torch.no_grad():
456
+ next_value = agent.get_value(next_obs).reshape(1, -1)
457
+ advantages = torch.zeros_like(rewards).to(device)
458
+ lastgaelam = 0
459
+ for t in reversed(range(args.num_steps)):
460
+ if t == args.num_steps - 1:
461
+ nextnonterminal = 1.0 - next_done
462
+ nextvalues = next_value
463
+ else:
464
+ nextnonterminal = 1.0 - dones[t + 1]
465
+ nextvalues = values[t + 1]
466
+ delta = rewards[t] + args.gamma * nextvalues * nextnonterminal - values[t]
467
+ advantages[t] = lastgaelam = delta + args.gamma * args.gae_lambda * nextnonterminal * lastgaelam
468
+ returns = advantages + values
469
+
470
+ # flatten batch
471
+ b_obs = obs.reshape((-1,) + obs_shape)
472
+ b_masks = masks.reshape((-1,) + mask_shape) # Flatten masks
473
+ b_logprobs = logprobs.reshape(-1)
474
+ b_actions = actions.reshape((-1,) + envs.single_action_space.shape)
475
+ b_advantages = advantages.reshape(-1)
476
+ b_returns = returns.reshape(-1)
477
+ b_values = values.reshape(-1)
478
+
479
+ # update
480
+ b_inds = np.arange(args.batch_size)
481
+ for epoch in range(args.update_epochs):
482
+ np.random.shuffle(b_inds)
483
+ for start in range(0, args.batch_size, args.minibatch_size):
484
+ end = start + args.minibatch_size
485
+ mb_inds = b_inds[start:end]
486
+
487
+ # PASS MASK HERE
488
+ _, newlogprob, entropy, newvalue = agent.get_action_and_value(
489
+ b_obs[mb_inds],
490
+ action=b_actions.long()[mb_inds],
491
+ action_mask=b_masks[mb_inds]
492
+ )
493
+
494
+ logratio = newlogprob - b_logprobs[mb_inds]
495
+ ratio = logratio.exp()
496
+
497
+ with torch.no_grad():
498
+ old_approx_kl = (-logratio).mean()
499
+ approx_kl = ((ratio - 1) - logratio).mean()
500
+
501
+ mb_advantages = b_advantages[mb_inds]
502
+ if args.norm_adv:
503
+ mb_advantages = (mb_advantages - mb_advantages.mean()) / (mb_advantages.std() + 1e-8)
504
+
505
+ pg_loss1 = -mb_advantages * ratio
506
+ pg_loss2 = -mb_advantages * torch.clamp(ratio, 1 - args.clip_coef, 1 + args.clip_coef)
507
+ pg_loss = torch.max(pg_loss1, pg_loss2).mean()
508
+
509
+ newvalue = newvalue.view(-1)
510
+ if args.clip_vloss:
511
+ v_loss_unclipped = (newvalue - b_returns[mb_inds]) ** 2
512
+ v_clipped = b_values[mb_inds] + torch.clamp(
513
+ newvalue - b_values[mb_inds], -args.clip_coef, args.clip_coef,
514
+ )
515
+ v_loss_clipped = (v_clipped - b_returns[mb_inds]) ** 2
516
+ v_loss = 0.5 * torch.max(v_loss_unclipped, v_loss_clipped).mean()
517
+ else:
518
+ v_loss = 0.5 * ((newvalue - b_returns[mb_inds]) ** 2).mean()
519
+
520
+ entropy_loss = entropy.mean()
521
+ loss = pg_loss - args.ent_coef * entropy_loss + v_loss * args.vf_coef
522
+
523
+ optimizer.zero_grad()
524
+ loss.backward()
525
+ nn.utils.clip_grad_norm_(agent.parameters(), args.max_grad_norm)
526
+ optimizer.step()
527
+
528
+ if args.target_kl is not None and approx_kl > args.target_kl:
529
+ break
530
+
531
+ # logging
532
+ y_pred, y_true = b_values.cpu().numpy(), b_returns.cpu().numpy()
533
+ var_y = np.var(y_true)
534
+ explained_var = np.nan if var_y == 0 else 1 - np.var(y_true - y_pred) / var_y
535
+
536
+ sps = int(global_step / (time.time() - start_time))
537
+ progress = 100 * iteration / args.num_iterations
538
+ print(f"[{progress:5.1f}%] Iter {iteration:4d}/{args.num_iterations} | "
539
+ f"SPS: {sps:5d} | "
540
+ f"Reward: {rewards.mean().item():6.3f} | "
541
+ f"Val: {values.mean().item():6.3f} | "
542
+ f"VLoss: {v_loss.item():.4f} | "
543
+ f"PLoss: {pg_loss.item():.4f} | "
544
+ f"Ent: {entropy_loss.item():.4f}")
545
+ if args.track:
546
+ try:
547
+ import wandb
548
+ wandb.log({
549
+ "global_step": int(global_step),
550
+ "train/value_loss": float(v_loss.item()),
551
+ "train/policy_loss": float(pg_loss.item()),
552
+ "train/entropy": float(entropy_loss.item()),
553
+ "train/old_approx_kl": float(old_approx_kl.item()),
554
+ "train/approx_kl": float(approx_kl.item()),
555
+ "losses/explained_variance": float(explained_var),
556
+ "charts/avg_reward": float(rewards.mean().item()),
557
+ "charts/avg_value": float(values.mean().item()),
558
+ "perf/SPS": int(sps),
559
+ "train/learning_rate": float(optimizer.param_groups[0]["lr"]),
560
+ }, step=global_step)
561
+ except Exception:
562
+ pass
563
+
564
+ if iteration % eval_every_iters == 0:
565
+ try:
566
+ eval_thunk = make_env(0, run_name, args.seed + 9999, args.grid_size, args.difficulty, False)
567
+ collect_eval_trajectories(agent, eval_thunk, n_episodes=args.eval_episodes, step_tag=global_step)
568
+ if args.track:
569
+ try:
570
+ import json as _json
571
+ from pathlib import Path as _Path
572
+ mpath = _Path(f"runs/{run_name}/trajectories/step_{global_step}/metrics.json")
573
+ if mpath.exists():
574
+ with mpath.open("r") as mf:
575
+ metrics = _json.load(mf)
576
+ wandb.log({
577
+ "eval/success_rate": metrics.get("success_rate"),
578
+ "eval/avg_return": metrics.get("avg_return"),
579
+ "eval/std_return": metrics.get("std_return"),
580
+ "eval/episodes": metrics.get("episodes"),
581
+ }, step=global_step)
582
+ except Exception:
583
+ pass
584
+ print(f"Collected {args.eval_episodes} eval trajectories at global_step {global_step}")
585
+ except Exception as e:
586
+ print(f"Warning: eval trajectory collection failed at step {global_step}: {e}")
587
+
588
+ envs.close()
wandb/run-20260515_162634-oma8h4e9/files/config.yaml ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.1
4
+ code_path: code/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py
5
+ e:
6
+ rpamc3wni7ysqe4ryq6pxzkkfppcrszf:
7
+ codePath: cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py
8
+ codePathLocal: cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py
9
+ cpu_count: 64
10
+ cpu_count_logical: 128
11
+ cudaVersion: "12.4"
12
+ disk:
13
+ /:
14
+ total: "60129542144000"
15
+ used: "72513892352"
16
+ email: haoyu-wa22@mails.tsinghua.edu.cn
17
+ executable: /opt/conda/envs/ragen_new/bin/python
18
+ git:
19
+ commit: b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0
20
+ remote: https://github.com/Harry-mic/SCOUT
21
+ gpu: NVIDIA H100 80GB HBM3
22
+ gpu_count: 8
23
+ gpu_nvidia:
24
+ - architecture: Hopper
25
+ cudaCores: 16896
26
+ memoryTotal: "85520809984"
27
+ name: NVIDIA H100 80GB HBM3
28
+ uuid: GPU-97b3b912-40cf-f573-ffce-8275a656891f
29
+ - architecture: Hopper
30
+ cudaCores: 16896
31
+ memoryTotal: "85520809984"
32
+ name: NVIDIA H100 80GB HBM3
33
+ uuid: GPU-5e4acc7a-f7ab-1a15-312e-4e2a39c43b2c
34
+ - architecture: Hopper
35
+ cudaCores: 16896
36
+ memoryTotal: "85520809984"
37
+ name: NVIDIA H100 80GB HBM3
38
+ uuid: GPU-b36695ed-370a-2556-79d8-b0a2c2659271
39
+ - architecture: Hopper
40
+ cudaCores: 16896
41
+ memoryTotal: "85520809984"
42
+ name: NVIDIA H100 80GB HBM3
43
+ uuid: GPU-b3e13ca7-237c-931f-894b-798f9cfa5620
44
+ - architecture: Hopper
45
+ cudaCores: 16896
46
+ memoryTotal: "85520809984"
47
+ name: NVIDIA H100 80GB HBM3
48
+ uuid: GPU-64647b1f-5d55-1b7e-bf3d-64fae3871140
49
+ - architecture: Hopper
50
+ cudaCores: 16896
51
+ memoryTotal: "85520809984"
52
+ name: NVIDIA H100 80GB HBM3
53
+ uuid: GPU-fe8b9b7e-82a4-1238-4843-bbfd0269d746
54
+ - architecture: Hopper
55
+ cudaCores: 16896
56
+ memoryTotal: "85520809984"
57
+ name: NVIDIA H100 80GB HBM3
58
+ uuid: GPU-4523d4e1-5745-8224-7bcd-44cf59b76bae
59
+ - architecture: Hopper
60
+ cudaCores: 16896
61
+ memoryTotal: "85520809984"
62
+ name: NVIDIA H100 80GB HBM3
63
+ uuid: GPU-9262bcbd-a29f-d761-3330-ac2ce9f15e82
64
+ host: pt-a7f17fedde804edca572f81ace5fcaf3-worker-0
65
+ memory:
66
+ total: "2159579672576"
67
+ os: Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35
68
+ program: /mnt/general/wanghy/RAGEN/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py
69
+ python: CPython 3.10.20
70
+ root: /mnt/general/wanghy/RAGEN
71
+ startedAt: "2026-05-15T08:26:34.223611Z"
72
+ writerId: rpamc3wni7ysqe4ryq6pxzkkfppcrszf
73
+ m:
74
+ - "1": global_step
75
+ "6":
76
+ - 3
77
+ "7": []
78
+ - "2": perf/*
79
+ "5": 1
80
+ "6":
81
+ - 1
82
+ "7": []
83
+ - "2": train/*
84
+ "5": 1
85
+ "6":
86
+ - 1
87
+ "7": []
88
+ - "2": rollout/*
89
+ "5": 1
90
+ "6":
91
+ - 1
92
+ "7": []
93
+ - "2": eval/*
94
+ "5": 1
95
+ "6":
96
+ - 1
97
+ "7": []
98
+ - "2": losses/*
99
+ "5": 1
100
+ "6":
101
+ - 1
102
+ "7": []
103
+ - "2": charts/*
104
+ "5": 1
105
+ "6":
106
+ - 1
107
+ "7": []
108
+ python_version: 3.10.20
109
+ t:
110
+ "1":
111
+ - 1
112
+ - 11
113
+ - 30
114
+ - 49
115
+ - 50
116
+ - 51
117
+ - 105
118
+ "2":
119
+ - 1
120
+ - 11
121
+ - 30
122
+ - 49
123
+ - 50
124
+ - 51
125
+ - 105
126
+ "3":
127
+ - 7
128
+ - 13
129
+ - 16
130
+ - 41
131
+ - 61
132
+ "4": 3.10.20
133
+ "5": 0.25.1
134
+ "6": 4.51.1
135
+ "12": 0.25.1
136
+ "13": linux-x86_64
137
+ anneal_lr:
138
+ value: true
139
+ batch_size:
140
+ value: 1024
141
+ capture_video:
142
+ value: false
143
+ clip_coef:
144
+ value: 0.2
145
+ clip_vloss:
146
+ value: true
147
+ cuda:
148
+ value: true
149
+ difficulty:
150
+ value: easy
151
+ ent_coef:
152
+ value: 0.01
153
+ env_id:
154
+ value: Sudoku
155
+ eval_episodes:
156
+ value: 4000
157
+ eval_splits:
158
+ value: 2
159
+ exp_name:
160
+ value: ppo_sudoku_actionmask
161
+ gae_lambda:
162
+ value: 0.95
163
+ gamma:
164
+ value: 0.99
165
+ grid_size:
166
+ value: 4
167
+ learning_rate:
168
+ value: 0.0003
169
+ max_grad_norm:
170
+ value: 0.5
171
+ minibatch_size:
172
+ value: 256
173
+ norm_adv:
174
+ value: true
175
+ num_envs:
176
+ value: 8
177
+ num_iterations:
178
+ value: 9765
179
+ num_minibatches:
180
+ value: 4
181
+ num_steps:
182
+ value: 128
183
+ seed:
184
+ value: 1
185
+ target_kl:
186
+ value: null
187
+ torch_deterministic:
188
+ value: true
189
+ total_timesteps:
190
+ value: 10000000
191
+ track:
192
+ value: true
193
+ update_epochs:
194
+ value: 4
195
+ vf_coef:
196
+ value: 0.5
197
+ wandb_entity:
198
+ value: null
199
+ wandb_project_name:
200
+ value: cleanRL
wandb/run-20260515_162634-oma8h4e9/files/diff.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260515_162634-oma8h4e9/files/diff_b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0.patch ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/_10_rubikscube.yaml b/config/_10_rubikscube.yaml
2
+ index 277a8b1..a99b6a8 100644
3
+ --- a/config/_10_rubikscube.yaml
4
+ +++ b/config/_10_rubikscube.yaml
5
+ @@ -5,7 +5,7 @@ system:
6
+ CUDA_VISIBLE_DEVICES: "0,1,2,3"
7
+
8
+ trainer:
9
+ - experiment_name: 2048
10
+ + experiment_name: rubikscube
11
+ n_gpus_per_node: 4
12
+
13
+ actor_rollout_ref:
14
+ diff --git a/config/base.yaml b/config/base.yaml
15
+ index 6029703..c10ab55 100644
16
+ --- a/config/base.yaml
17
+ +++ b/config/base.yaml
18
+ @@ -10,8 +10,8 @@ seed:
19
+ val: 123
20
+
21
+ micro_batch_size_per_gpu: 1
22
+ -ppo_mini_batch_size: 32
23
+ -model_path:
24
+ +ppo_mini_batch_size: 16 #****
25
+ +model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
26
+ # /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
27
+ enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
28
+ grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
29
+ @@ -48,11 +48,11 @@ actor_rollout_ref:
30
+ name: vllm
31
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
32
+ tensor_model_parallel_size: 1
33
+ - max_model_len: 16384 #3600 why** 14400
34
+ + max_model_len: 16384 #3600 why** 14400
35
+ prompt_length: 1 # useless. Just put it here
36
+ - response_length: 400 # single-turn response length
37
+ - gpu_memory_utilization: 0.7
38
+ - max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
39
+ + response_length: 128 # single-turn response length 400 ****
40
+ + gpu_memory_utilization: 0.6
41
+ + max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
42
+ temperature: 1
43
+ rollout_filter_ratio: 0.25
44
+ rollout_filter_type: largest # smallest or largest
45
+ @@ -111,7 +111,7 @@ trainer:
46
+
47
+ agent_proxy:
48
+ max_context_window: -1 # set a value > 0 to enable context window for long trajectory
49
+ - max_turn: 25 #25 why** 700
50
+ + max_turn: 15 #25 why** 700
51
+ action_sep: "||"
52
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
53
+ use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
54
+ @@ -123,7 +123,7 @@ agent_proxy:
55
+ es_manager:
56
+ format_penalty: -0.1
57
+ train:
58
+ - env_groups: 8
59
+ + env_groups: 8
60
+ # under the same group, the env config and env seed are ensured to be equal
61
+ group_size: 16
62
+ env_configs:
63
+ diff --git a/config/envs.yaml b/config/envs.yaml
64
+ index d258d15..d7d687d 100644
65
+ --- a/config/envs.yaml
66
+ +++ b/config/envs.yaml
67
+ @@ -231,7 +231,7 @@ custom_envs:
68
+ Example: <answer>U</answer>
69
+ max_tokens: 96
70
+ env_config:
71
+ - scramble_depth: 3
72
+ + scramble_depth: 5
73
+ max_steps: 20
74
+ render_mode: "text"
75
+
76
+ diff --git a/config/eval.yaml b/config/eval.yaml
77
+ index 0802a0d..98d71dd 100644
78
+ --- a/config/eval.yaml
79
+ +++ b/config/eval.yaml
80
+ @@ -8,7 +8,7 @@ seed:
81
+ train: 10000
82
+ val: 123
83
+
84
+ -model_path: /mnt/general/wanghy/RAGEN/saves/qwen3b_it_fromit_think_sudoku_sequence_multitask/global_step_200/qwen2.5_3b_actor_hf
85
+ +model_path: /mnt/general/wanghy/RAGEN/saves/qwen3B_it_think_rubikscube2_frommlpsave/global_step_50/qwen2.5_7B_actor_hf
86
+ # /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
87
+
88
+ lora:
89
+ diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
90
+ index bcbf206..9fe6f71 100644
91
+ --- a/config/evaluate_api_llm.yaml
92
+ +++ b/config/evaluate_api_llm.yaml
93
+ @@ -5,7 +5,7 @@ defaults:
94
+ - base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
95
+
96
+ model_config:
97
+ - model_name: TA/openai/gpt-oss-120b # should be registered in model_info
98
+ + model_name: ark-deepseek-v3-250324 # should be registered in model_info
99
+ max_concurrency: 16
100
+
101
+ model_info:
102
+ @@ -39,27 +39,21 @@ model_info:
103
+ generation_kwargs:
104
+ temperature: 0
105
+ max_completion_tokens: 512
106
+ - ark-deepseek-v3-250324:
107
+ - provider_name: openai
108
+ - model_name: ark-deepseek-v3-250324
109
+ - generation_kwargs:
110
+ - temperature: 0
111
+ - max_completion_tokens: 512
112
+ deepseek-v3:
113
+ provider_name: deepseek
114
+ model_name: deepseek-chat
115
+ generation_kwargs:
116
+ temperature: 0
117
+ max_completion_tokens: 512
118
+ - glm-4.6:
119
+ + ark-deepseek-v3-250324:
120
+ provider_name: openai
121
+ - model_name: glm-4.6
122
+ + model_name: ark-deepseek-v3-250324
123
+ generation_kwargs:
124
+ temperature: 0
125
+ - max_completion_tokens: 512
126
+ - TA/openai/gpt-oss-120b:
127
+ + max_tokens: 8192
128
+ + gemini-2.5-pro:
129
+ provider_name: openai
130
+ - model_name: TA/openai/gpt-oss-120b
131
+ + model_name: gemini-2.5-pro
132
+ generation_kwargs:
133
+ temperature: 0
134
+ max_tokens: 8192
135
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
136
+ deleted file mode 120000
137
+ index e1061c0..0000000
138
+ --- a/config/ppo_trainer.yaml
139
+ +++ /dev/null
140
+ @@ -1 +0,0 @@
141
+ -../verl/verl/trainer/config/ppo_trainer.yaml
142
+
143
+ diff --git a/config/ppo_trainer.yaml b/config/ppo_trainer.yaml
144
+ new file mode 100644
145
+ index 0000000..c821483
146
+ --- /dev/null
147
+ +++ b/config/ppo_trainer.yaml
148
+ @@ -0,0 +1,308 @@
149
+ +# Format checks enforced on CI:
150
+ +# 1. Comments must appear above each field.
151
+ +# 2. There must be a blank line between each field.
152
+ +# 3. Inline comments (after a field on the same line) are not allowed.
153
+ +# 4. Indentation level is respected for nested fields.
154
+ +
155
+ +# specify the default per-component configs
156
+ +defaults:
157
+ +
158
+ + # <folder_name>@<field_name>.<field_name>: <yaml_file_name>
159
+ + # actor_rollout_ref.actor: trainer/config/actor/dp_actor.yaml
160
+ + - actor@actor_rollout_ref.actor: dp_actor
161
+ +
162
+ + # data: trainer/config/data/legacy_data.yaml
163
+ + - data@data: legacy_data
164
+ +
165
+ + # Reference model config.
166
+ + # Reference model will be enabled when actor.use_kl_loss or/and algorithm.use_kl_in_reward is/are True.
167
+ + - ref@actor_rollout_ref.ref: dp_ref
168
+ +
169
+ + # Rollout model config.
170
+ + - rollout@actor_rollout_ref.rollout: rollout
171
+ +
172
+ + # Model config.
173
+ + - model@actor_rollout_ref.model: hf_model
174
+ +
175
+ + # Critic model config.
176
+ + - critic@critic: dp_critic
177
+ +
178
+ + # Reward model config.
179
+ + - reward_model@reward_model: dp_reward_model
180
+ +
181
+ + # load the reference default config, then apply the fields in the current yaml
182
+ + # self config override anything above
183
+ + - _self_
184
+ +
185
+ +# config for actor, rollout and reference model
186
+ +actor_rollout_ref:
187
+ +
188
+ + # Whether it's a hybrid engine, currently only supports hybrid engine
189
+ + hybrid_engine: true
190
+ +
191
+ + # Timeout for operations executed against the process group
192
+ + nccl_timeout: 600
193
+ +
194
+ + # Rollout model config.
195
+ + rollout:
196
+ +
197
+ + # for huge model, layered summon can save memory (prevent OOM) but make it slower
198
+ + layered_summon: False
199
+ +
200
+ +# custom reward function definition
201
+ +custom_reward_function:
202
+ +
203
+ + # The path to the file containing your customized reward function.
204
+ + # If not specified, pre-implemented reward functions will be used.
205
+ + path: null
206
+ +
207
+ + # The name of the reward function within the specified file. Default is 'compute_score'.
208
+ + name: compute_score
209
+ +
210
+ +# config for the algorithm
211
+ +algorithm:
212
+ +
213
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
214
+ + _target_: verl.trainer.config.AlgoConfig
215
+ +
216
+ + # Discount factor for future rewards
217
+ + gamma: 1.0
218
+ +
219
+ + # Trade-off between bias and variance in the GAE estimator
220
+ + lam: 1.0
221
+ +
222
+ + # Advantage estimator type: "gae", "grpo", "reinforce_plus_plus", etc.
223
+ + adv_estimator: gae
224
+ +
225
+ + # Whether to normalize advantages by std (specific to GRPO)
226
+ + norm_adv_by_std_in_grpo: True
227
+ +
228
+ + # Whether to enable in-reward KL penalty
229
+ + use_kl_in_reward: False
230
+ +
231
+ + # How to estimate KL divergence: "kl", "abs", "mse", "low_var_kl", or "full"
232
+ + kl_penalty: kl
233
+ +
234
+ + # KL control configuration
235
+ + kl_ctrl:
236
+ +
237
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
238
+ + _target_: verl.trainer.config.KLControlConfig
239
+ +
240
+ + # KL control type: "fixed" or "adaptive"
241
+ + type: fixed
242
+ +
243
+ + # Initial coefficient for KL penalty
244
+ + kl_coef: 0.001
245
+ +
246
+ + # Horizon value for adaptive controller (if enabled)
247
+ + horizon: 10000
248
+ +
249
+ + # Target KL divergence (used for adaptive controller)
250
+ + target_kl: 0.1
251
+ +
252
+ + # Whether to enable preference feedback PPO
253
+ + use_pf_ppo: False
254
+ +
255
+ + # Preference feedback PPO settings
256
+ + pf_ppo:
257
+ +
258
+ + # Method for reweighting samples: "pow", "max_min", or "max_random"
259
+ + reweight_method: pow
260
+ +
261
+ + # Power used for weight scaling in "pow" method
262
+ + weight_pow: 2.0
263
+ +
264
+ +# config for the trainer
265
+ +trainer:
266
+ +
267
+ + # Whether to balance batch sizes across distributed workers
268
+ + balance_batch: True
269
+ +
270
+ + # Number of epochs in training
271
+ + total_epochs: 30
272
+ +
273
+ + # Total training steps (can be set explicitly or derived from epochs)
274
+ + total_training_steps: null
275
+ +
276
+ + # Project name for experiment tracking (e.g., wandb)
277
+ + project_name: verl_examples
278
+ +
279
+ + # Experiment name for run identification in tracking tools
280
+ + experiment_name: gsm8k
281
+ +
282
+ + # Logging backends to use: "console", "wandb", etc.
283
+ + logger: ["console", "wandb"]
284
+ +
285
+ + # Number of generations to log during validation
286
+ + log_val_generations: 0
287
+ +
288
+ + # Directory for logging rollout data; no dump if null
289
+ + rollout_data_dir: null
290
+ +
291
+ + # Directory for logging validation data; no dump if null
292
+ + validation_data_dir: null
293
+ +
294
+ + # Number of nodes used in the training
295
+ + nnodes: 1
296
+ +
297
+ + # Number of GPUs per node
298
+ + n_gpus_per_node: 8
299
+ +
300
+ + # Save frequency (by iteration) for model checkpoints
301
+ + save_freq: -1
302
+ +
303
+ + # ESI refers to the elastic server instance used during training, similar to the training plan. For example,
304
+ + # if you purchase 10 hours of computing power, the ESI will automatically shut down after 10 hours of training.
305
+ + # To ensure a checkpoint is saved before ESI shuts down, the system will start saving a checkpoint in advance.
306
+ + # The advance time is calculated as: Advance Time = Longest historical step duration + Checkpoint save duration + esi_redundant_time.
307
+ + # Here, esi_redundant_time is a user-defined value that further extends the advance time for added safety.
308
+ + esi_redundant_time: 0
309
+ +
310
+ + # Resume mode: "auto", "disable", or "resume_path"
311
+ + # "auto": resume from last checkpoint if available
312
+ + # "disable": start from scratch
313
+ + # "resume_path": resume from a user-defined path
314
+ + resume_mode: auto
315
+ +
316
+ + # Path to resume training from (only used when resume_mode is "resume_path")
317
+ + resume_from_path: null
318
+ +
319
+ + # Whether to run validation before training begins
320
+ + val_before_train: True
321
+ +
322
+ + # Whether to run validation only
323
+ + val_only: False
324
+ +
325
+ + # Validation frequency (in training iterations)
326
+ + test_freq: -1
327
+ +
328
+ + # Number of iterations to warm up the critic before updating policy
329
+ + critic_warmup: 0
330
+ +
331
+ + # Default path to distributed filesystem for saving checkpoints
332
+ + default_hdfs_dir: null
333
+ +
334
+ + # Whether to delete local checkpoints after loading
335
+ + del_local_ckpt_after_load: False
336
+ +
337
+ + # Default local directory for saving checkpoints
338
+ + default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
339
+ +
340
+ + # Maximum number of actor checkpoints to keep
341
+ + max_actor_ckpt_to_keep: null
342
+ +
343
+ + # Maximum number of critic checkpoints to keep
344
+ + max_critic_ckpt_to_keep: null
345
+ +
346
+ + # Timeout (in seconds) for Ray worker to wait for registration
347
+ + ray_wait_register_center_timeout: 300
348
+ +
349
+ + # Device to run training on (e.g., "cuda", "cpu")
350
+ + device: cuda
351
+ +
352
+ + # whether to use legacy worker implementation
353
+ + # mode: "auto", "enable", or "disable"
354
+ + use_legacy_worker_impl: auto
355
+ +
356
+ +# profiler configs
357
+ +global_profiler:
358
+ +
359
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
360
+ + _target_: verl.utils.profiler.ProfilerConfig
361
+ +
362
+ + # Profiling tool: choose between nsys, npu, torch, torch_memory
363
+ + tool: null
364
+ +
365
+ + # profile steps
366
+ + steps: null
367
+ +
368
+ + # Whether to combine continuous steps into one database.
369
+ + ## If True, worker.profiler.discrete must be False, [1,2] in one, [5] in another.
370
+ + ## If False, [1] in one, [2] in another, [5] in another.
371
+ + profile_continuous_steps: False
372
+ +
373
+ + # Path to save profiling contents
374
+ + save_path: "outputs/profile"
375
+ +
376
+ + # Specific tool configs, can use +profiler.tool_config.[tool].xxx to config
377
+ + global_tool_config:
378
+ +
379
+ + # nsys config
380
+ + nsys:
381
+ +
382
+ + # Required when using verl.utils.omega_conf_to_dataclass to instantiate dataclass configs
383
+ + _target_: verl.utils.profiler.config.NsightToolConfig
384
+ +
385
+ + # True for each task has its own database, False for all tasks in one training step share one database.
386
+ + discrete: False
387
+ +
388
+ + # controller Nvidia Nsight Systems Options. Must set when profile_steps is not None.
389
+ + ## reference https://docs.nvidia.com/nsight-systems/UserGuide/index.html
390
+ + ## reference https://docs.ray.io/en/latest/ray-observability/user-guides/profiling.html
391
+ + controller_nsight_options:
392
+ +
393
+ + # Select the API(s) to be traced.
394
+ + trace: "cuda,nvtx,cublas,ucx"
395
+ +
396
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
397
+ + cuda-memory-usage: "true"
398
+ +
399
+ + # CUDA graphs will be traced as a whole
400
+ + cuda-graph-trace: "graph"
401
+ +
402
+ + # worker Nvidia Nsight Systems Options. Must set when profile_steps is not None.
403
+ + worker_nsight_options:
404
+ +
405
+ + # Select the API(s) to be traced.
406
+ + trace: "cuda,nvtx,cublas,ucx"
407
+ +
408
+ + # Track the GPU memory usage by CUDA kernels. Must be string type "true" or "false".
409
+ + cuda-memory-usage: "true"
410
+ +
411
+ + # CUDA graphs will be traced as a whole
412
+ + cuda-graph-trace: "graph"
413
+ +
414
+ + # Profiling only in a range of torch.cuda.profiler.start and stop. Do not change this config.
415
+ + capture-range: "cudaProfilerApi"
416
+ +
417
+ + # Specify the desired behavior when a capture range ends.
418
+ + # In verl we need the torch.cuda.profiler.start/stop pair to repeats n times.
419
+ + # valid values are "repeat-shutdown:n" or null.
420
+ + # For normal whole step profiling, n = len(profile_steps);
421
+ + # but for discrete profiling, n = len(profile_steps) * Number(subtasks).
422
+ + # Or you can just leave it null and the program will use n = len(profile_steps) * 6;
423
+ + capture-range-end: null
424
+ +
425
+ + # Send signal to the target application's process group. We let the program to exit by itself.
426
+ + kill: none
427
+ +
428
+ + # enable memory visualization for debugging memory usage
429
+ + torch_memory:
430
+ +
431
+ + # Maximum number of allocation entries to record
432
+ + trace_alloc_max_entries: 100_000
433
+ +
434
+ + # The depth of the call stack to capture for each allocation
435
+ + stack_depth: 32
436
+ +
437
+ + # 'alloc': records only allocation events || 'state': records memory state changes || 'all': records both.
438
+ + context: "all"
439
+ +
440
+ + # 'python': records Python stacks || 'cpp': records C++ stacks (available in some versions) || 'all': records both.
441
+ + stacks: "all"
442
+ +
443
+ + # devices, record_context etc.
444
+ + kw_args: {}
445
+ +
446
+ +# configs related to ray
447
+ +ray_kwargs:
448
+ +
449
+ + # configs related to ray initialization
450
+ + ray_init:
451
+ +
452
+ + # Number of CPUs for Ray. Use a fixed number instead of null when using SLURM.
453
+ + num_cpus: null
454
+ +
455
+ + # Path to save Ray timeline JSON for performance profiling
456
+ + timeline_json_file: null
457
+ Submodule external/kimina-lean-server contains modified content
458
+ diff --git a/external/kimina-lean-server/setup.sh b/external/kimina-lean-server/setup.sh
459
+ old mode 100755
460
+ new mode 100644
461
+ Submodule external/webshop-minimal contains modified content
462
+ diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
463
+ index 5a1b04f..238ed5a 100644
464
+ --- a/external/webshop-minimal/requirements.txt
465
+ +++ b/external/webshop-minimal/requirements.txt
466
+ @@ -4,7 +4,7 @@ flask
467
+ html2text
468
+ rank_bm25
469
+ pyserini
470
+ -faiss-cpu
471
+ +faiss-gpu
472
+ thefuzz
473
+ gdown
474
+ spacy
475
+ diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
476
+ index 9950c34..de054f4 100644
477
+ --- a/ragen/env/frozen_lake/config.py
478
+ +++ b/ragen/env/frozen_lake/config.py
479
+ @@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
480
+ size: int = 4
481
+ p: float = 0.9
482
+ success_rate: float = 0.8
483
+ - is_slippery: bool = False
484
+ + is_slippery: bool = True
485
+ map_seed: Optional[int] = None
486
+ render_mode: str = "text"
487
+ observation_format: str = "grid"
488
+ diff --git a/scripts/runs/bandit_jobs.sh b/scripts/runs/bandit_jobs.sh
489
+ old mode 100755
490
+ new mode 100644
491
+ diff --git a/scripts/runs/frozenlake_jobs.sh b/scripts/runs/frozenlake_jobs.sh
492
+ old mode 100755
493
+ new mode 100644
494
+ diff --git a/scripts/runs/sokoban_jobs.sh b/scripts/runs/sokoban_jobs.sh
495
+ old mode 100755
496
+ new mode 100644
497
+ diff --git a/scripts/runs/webshop_jobs.sh b/scripts/runs/webshop_jobs.sh
498
+ old mode 100755
499
+ new mode 100644
500
+ diff --git a/train_all.sh b/train_all.sh
501
+ old mode 100755
502
+ new mode 100644
503
+ Submodule verl contains modified content
504
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math.sh
505
+ old mode 100755
506
+ new mode 100644
507
+ diff --git a/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh b/verl/examples/gpg_trainer/run_qwen2-7b_math_megatron.sh
508
+ old mode 100755
509
+ new mode 100644
510
+ diff --git a/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh b/verl/examples/sglang_multiturn/run_qwen0.5b_gsm8k_multiturn_curriculum.sh
511
+ old mode 100755
512
+ new mode 100644
513
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_4xgpu_server.sh
514
+ old mode 100755
515
+ new mode 100644
516
+ diff --git a/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh b/verl/examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn_server.sh
517
+ old mode 100755
518
+ new mode 100644
519
+ diff --git a/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh b/verl/examples/sglang_multiturn/run_qwen3-4b_gsm8k_multiturn.sh
520
+ old mode 100755
521
+ new mode 100644
522
+ diff --git a/verl/recipe/sppo/run_qwen2.5-7b_rm.sh b/verl/recipe/sppo/run_qwen2.5-7b_rm.sh
523
+ old mode 100755
524
+ new mode 100644
525
+ diff --git a/verl/scripts/generate_trainer_config.sh b/verl/scripts/generate_trainer_config.sh
526
+ old mode 100755
527
+ new mode 100644
528
+ diff --git a/verl/scripts/install_vllm_sglang_mcore.sh b/verl/scripts/install_vllm_sglang_mcore.sh
529
+ old mode 100755
530
+ new mode 100644
531
+ diff --git a/verl/tests/special_e2e/generation/run_gen_qwen05.sh b/verl/tests/special_e2e/generation/run_gen_qwen05.sh
532
+ old mode 100755
533
+ new mode 100644
534
+ diff --git a/verl/tests/special_e2e/run_one_step_off_policy.sh b/verl/tests/special_e2e/run_one_step_off_policy.sh
535
+ old mode 100755
536
+ new mode 100644
wandb/run-20260515_162634-oma8h4e9/files/requirements.txt ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ colorama==0.4.6
2
+ psutil==7.2.2
3
+ pyarrow==23.0.1
4
+ math-verify==0.9.0
5
+ pygame==2.6.1
6
+ partial-json-parser==0.2.1.1.post7
7
+ anyio==4.13.0
8
+ wandb==0.25.1
9
+ mathruler==0.1.0
10
+ tzdata==2026.1
11
+ gym-sokoban==0.0.6
12
+ sniffio==1.3.1
13
+ omegaconf==2.3.0
14
+ httpcore==1.0.9
15
+ scipy==1.15.3
16
+ multidict==6.7.1
17
+ nvidia-cusparse-cu12==12.3.1.170
18
+ fonttools==4.62.1
19
+ together==2.7.0
20
+ antlr4-python3-runtime==4.9.3
21
+ cupy-cuda12x==13.6.0
22
+ av==17.0.0
23
+ torch==2.6.0
24
+ datasets==4.8.4
25
+ pyparsing==3.3.2
26
+ markdown-it-py==4.0.0
27
+ accelerate==1.13.0
28
+ lark==1.2.2
29
+ sentencepiece==0.2.1
30
+ Flask==3.1.3
31
+ annotated-doc==0.0.4
32
+ rignore==0.7.6
33
+ ImageIO==2.37.3
34
+ outlines_core==0.1.26
35
+ gym==0.26.2
36
+ depyf==0.18.0
37
+ pydantic==2.12.5
38
+ nvidia-cuda-nvrtc-cu12==12.4.127
39
+ certifi==2026.2.25
40
+ aiohttp==3.13.5
41
+ flash_attn==2.7.4.post1
42
+ msgspec==0.21.0
43
+ matplotlib==3.10.8
44
+ pandas==2.3.3
45
+ openai==2.31.0
46
+ sentry-sdk==2.57.0
47
+ propcache==0.4.1
48
+ nvidia-curand-cu12==10.3.5.147
49
+ python-dateutil==2.9.0.post0
50
+ itsdangerous==2.2.0
51
+ cloudpickle==3.1.2
52
+ ray==2.54.1
53
+ cffi==2.0.0
54
+ pyzmq==27.1.0
55
+ Jinja2==3.1.6
56
+ nest-asyncio==1.6.0
57
+ orjson==3.11.8
58
+ pydantic-extra-types==2.11.2
59
+ nvidia-nccl-cu12==2.21.5
60
+ gitdb==4.0.12
61
+ Farama-Notifications==0.0.4
62
+ async-timeout==5.0.1
63
+ torchdata==0.11.0
64
+ ninja==1.13.0
65
+ hydra-core==1.3.2
66
+ GitPython==3.1.46
67
+ nvidia-cuda-runtime-cu12==12.4.127
68
+ msgpack==1.1.2
69
+ email-validator==2.3.0
70
+ yarl==1.23.0
71
+ numpy==1.26.4
72
+ charset-normalizer==3.4.7
73
+ pycountry==26.2.16
74
+ annotated-types==0.7.0
75
+ uvloop==0.22.1
76
+ torchvision==0.21.0
77
+ jsonschema-specifications==2025.9.1
78
+ uvicorn==0.44.0
79
+ nvidia-nvjitlink-cu12==12.4.127
80
+ sympy==1.13.1
81
+ latex2sympy2_extended==1.11.0
82
+ triton==3.2.0
83
+ tqdm==4.67.3
84
+ diskcache==5.6.3
85
+ kiwisolver==1.5.0
86
+ llguidance==0.7.30
87
+ prometheus_client==0.25.0
88
+ types-PyYAML==6.0.12.20260408
89
+ MarkupSafe==3.0.3
90
+ fastapi-cloud-cli==0.16.1
91
+ cachetools==7.0.5
92
+ pillow==12.2.0
93
+ airportsdata==20260315
94
+ mpmath==1.3.0
95
+ cycler==0.12.1
96
+ qwen-vl-utils==0.0.14
97
+ jsonschema==4.26.0
98
+ safetensors==0.7.0
99
+ gymnasium==1.2.3
100
+ h11==0.16.0
101
+ Pygments==2.20.0
102
+ zipp==3.23.0
103
+ outlines==0.1.11
104
+ typing_extensions==4.15.0
105
+ requests==2.33.1
106
+ watchfiles==1.1.1
107
+ shellingham==1.5.4
108
+ xformers==0.0.29.post2
109
+ blinker==1.9.0
110
+ distro==1.9.0
111
+ multiprocess==0.70.19
112
+ regex==2026.4.4
113
+ fastapi-cli==0.0.24
114
+ tabulate==0.10.0
115
+ referencing==0.37.0
116
+ xxhash==3.6.0
117
+ smmap==5.0.3
118
+ six==1.17.0
119
+ Werkzeug==3.1.8
120
+ click==8.3.2
121
+ py-cpuinfo==9.0.0
122
+ aiosignal==1.4.0
123
+ setuptools==69.1.0
124
+ setuptools==82.0.1
125
+ aiohappyeyeballs==2.6.1
126
+ starlette==0.52.1
127
+ gym-notices==0.1.0
128
+ typing-inspection==0.4.2
129
+ networkx==3.4.2
130
+ pydantic_core==2.41.5
131
+ pycparser==3.0
132
+ contourpy==1.3.2
133
+ codetiming==1.4.0
134
+ python-dotenv==1.2.2
135
+ rpds-py==0.30.0
136
+ blake3==1.0.8
137
+ python-multipart==0.0.24
138
+ fastapi==0.135.3
139
+ httpx==0.28.1
140
+ attrs==26.1.0
141
+ pytz==2026.1.post1
142
+ platformdirs==4.9.6
143
+ nvidia-cusolver-cu12==11.6.1.9
144
+ hf-xet==1.4.3
145
+ filelock==3.25.2
146
+ types-requests==2.33.0.20260408
147
+ idna==3.11
148
+ fsspec==2026.2.0
149
+ astor==0.8.1
150
+ interegular==0.3.3
151
+ nvidia-cudnn-cu12==9.1.0.70
152
+ frozenlist==1.8.0
153
+ pylatexenc==2.10
154
+ nvidia-cublas-cu12==12.4.5.8
155
+ httptools==0.7.1
156
+ python-json-logger==4.1.0
157
+ mdurl==0.1.2
158
+ mistral_common==1.11.0
159
+ vulkan==1.3.275.1
160
+ nvidia-cuda-cupti-cu12==12.4.127
161
+ pybind11==3.0.3
162
+ PyYAML==6.0.3
163
+ jiter==0.13.0
164
+ fastrlock==0.8.3
165
+ typeguard==4.5.1
166
+ typer==0.24.1
167
+ websockets==16.0
168
+ nvidia-cufft-cu12==11.2.1.3
169
+ nvidia-nvtx-cu12==12.4.127
170
+ psutil==7.2.2
171
+ tomli==2.4.1
172
+ types-tqdm==4.67.3.20260408
173
+ fastar==0.10.0
174
+ einops==0.8.2
175
+ lm-format-enforcer==0.10.12
176
+ opencv-python-headless==4.11.0.86
177
+ tiktoken==0.12.0
178
+ rich-toolkit==0.19.7
179
+ rich==14.3.3
180
+ dnspython==2.8.0
181
+ pydantic-settings==2.13.1
182
+ types-tabulate==0.10.0.20260408
183
+ torchaudio==2.6.0
184
+ urllib3==2.6.3
185
+ dill==0.4.1
186
+ docstring_parser==0.18.0
187
+ prometheus-fastapi-instrumentator==7.1.0
188
+ peft==0.18.1
189
+ exceptiongroup==1.3.1
190
+ tyro==1.0.13
191
+ nvidia-cusparselt-cu12==0.6.2
192
+ packaging==26.0
193
+ wheel==0.46.3
194
+ pip==26.0.1
195
+ pyjnius==1.7.0
196
+ pure_eval==0.2.3
197
+ ptyprocess==0.7.0
198
+ flatbuffers==25.12.19
199
+ faiss-gpu==1.7.2
200
+ wrapt==2.1.2
201
+ wcwidth==0.6.0
202
+ wasabi==1.1.3
203
+ traitlets==5.14.3
204
+ threadpoolctl==3.6.0
205
+ tenacity==9.1.4
206
+ spacy-loggers==1.0.5
207
+ spacy-legacy==3.0.12
208
+ soupsieve==2.8.3
209
+ RapidFuzz==3.14.5
210
+ rank-bm25==0.2.2
211
+ PySocks==1.7.1
212
+ PyJWT==2.12.1
213
+ parso==0.8.6
214
+ protobuf==4.25.9
215
+ pexpect==4.9.0
216
+ opentelemetry-semantic-conventions-ai==0.4.13
217
+ murmurhash==1.0.15
218
+ loguru==0.7.3
219
+ joblib==1.5.3
220
+ humanfriendly==10.0
221
+ httpx-sse==0.4.3
222
+ html2text==2025.4.15
223
+ grpcio==1.80.0
224
+ executing==2.2.1
225
+ decorator==5.2.1
226
+ debugpy==1.8.20
227
+ Cython==3.2.4
228
+ cymem==2.0.13
229
+ confection==1.3.3
230
+ colorama==0.4.6
231
+ cloudpathlib==0.23.0
232
+ catalogue==2.0.10
233
+ blis==1.3.3
234
+ asttokens==3.0.1
235
+ thefuzz==0.22.1
236
+ stack-data==0.6.3
237
+ srsly==2.5.3
238
+ smart_open==7.6.0
239
+ scikit-learn==1.7.2
240
+ prompt_toolkit==3.0.52
241
+ preshed==3.0.13
242
+ opentelemetry-proto==1.26.0
243
+ nltk==3.9.4
244
+ matplotlib-inline==0.2.1
245
+ jedi==0.19.2
246
+ googleapis-common-protos==1.74.0
247
+ Deprecated==1.3.1
248
+ cryptography==46.0.7
249
+ coloredlogs==15.0.1
250
+ beautifulsoup4==4.14.3
251
+ thinc==8.3.13
252
+ opentelemetry-exporter-otlp-proto-common==1.26.0
253
+ onnxruntime==1.23.2
254
+ ipython==8.39.0
255
+ gdown==6.0.0
256
+ cleantext==1.1.4
257
+ weasel==1.0.0
258
+ tensordict==0.8.3
259
+ sse-starlette==3.3.4
260
+ mcp==1.27.0
261
+ anthropic==0.96.0
262
+ spacy==3.8.14
263
+ opentelemetry-exporter-otlp-proto-http==1.26.0
264
+ opentelemetry-exporter-otlp-proto-grpc==1.26.0
265
+ kimina-client==0.2.1
266
+ pyserini==1.2.0
267
+ opentelemetry-exporter-otlp==1.26.0
268
+ compressed-tensors==0.9.2
269
+ vllm==0.8.2
270
+ py-spy==0.4.1
271
+ opencensus-context==0.1.3
272
+ distlib==0.4.0
273
+ colorful==0.5.8
274
+ tensorboard-data-server==0.7.2
275
+ python-discovery==1.2.2
276
+ pyasn1==0.6.3
277
+ proto-plus==1.27.2
278
+ Markdown==3.10.2
279
+ absl-py==2.4.0
280
+ virtualenv==21.2.4
281
+ tensorboard==2.20.0
282
+ pyasn1_modules==0.4.2
283
+ opentelemetry-api==1.24.0
284
+ google-auth==2.49.2
285
+ google-api-core==2.30.3
286
+ aiohttp-cors==0.8.1
287
+ opentelemetry-exporter-prometheus==0.62b0
288
+ opencensus==0.11.4
289
+ verl==0.5.0.dev0
290
+ huggingface_hub==0.36.2
291
+ opentelemetry-semantic-conventions==0.45b0
292
+ opentelemetry-sdk==1.24.0
293
+ llvmlite==0.43.0
294
+ tokenizers==0.21.4
295
+ gguf==0.10.0
296
+ importlib-metadata==7.0.0
297
+ hjson==3.1.0
298
+ deepspeed==0.16.9
299
+ transformers==4.51.1
300
+ xgrammar==0.1.16
301
+ ragen==0.1
302
+ numba==0.60.0
303
+ ragen==0.1
304
+ verl==0.5.0.dev0
305
+ autocommand==2.2.2
306
+ backports.tarfile==1.2.0
307
+ importlib_metadata==8.7.1
308
+ jaraco.text==4.0.0
309
+ jaraco.context==6.1.0
310
+ jaraco.functools==4.4.0
311
+ more-itertools==10.8.0
312
+ packaging==26.0
313
+ platformdirs==4.4.0
314
+ tomli==2.4.0
315
+ wheel==0.46.3
316
+ zipp==3.23.0
wandb/run-20260515_162634-oma8h4e9/files/wandb-metadata.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.20",
4
+ "startedAt": "2026-05-15T08:26:34.223611Z",
5
+ "program": "/mnt/general/wanghy/RAGEN/cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py",
6
+ "codePath": "cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py",
7
+ "codePathLocal": "cleanrl/cleanrl/scout_ppo/ppo_sudoku_actionmask.py",
8
+ "git": {
9
+ "remote": "https://github.com/Harry-mic/SCOUT",
10
+ "commit": "b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0"
11
+ },
12
+ "email": "haoyu-wa22@mails.tsinghua.edu.cn",
13
+ "root": "/mnt/general/wanghy/RAGEN",
14
+ "host": "pt-a7f17fedde804edca572f81ace5fcaf3-worker-0",
15
+ "executable": "/opt/conda/envs/ragen_new/bin/python",
16
+ "cpu_count": 64,
17
+ "cpu_count_logical": 128,
18
+ "gpu": "NVIDIA H100 80GB HBM3",
19
+ "gpu_count": 8,
20
+ "disk": {
21
+ "/": {
22
+ "total": "60129542144000",
23
+ "used": "72513892352"
24
+ }
25
+ },
26
+ "memory": {
27
+ "total": "2159579672576"
28
+ },
29
+ "gpu_nvidia": [
30
+ {
31
+ "name": "NVIDIA H100 80GB HBM3",
32
+ "memoryTotal": "85520809984",
33
+ "cudaCores": 16896,
34
+ "architecture": "Hopper",
35
+ "uuid": "GPU-97b3b912-40cf-f573-ffce-8275a656891f"
36
+ },
37
+ {
38
+ "name": "NVIDIA H100 80GB HBM3",
39
+ "memoryTotal": "85520809984",
40
+ "cudaCores": 16896,
41
+ "architecture": "Hopper",
42
+ "uuid": "GPU-5e4acc7a-f7ab-1a15-312e-4e2a39c43b2c"
43
+ },
44
+ {
45
+ "name": "NVIDIA H100 80GB HBM3",
46
+ "memoryTotal": "85520809984",
47
+ "cudaCores": 16896,
48
+ "architecture": "Hopper",
49
+ "uuid": "GPU-b36695ed-370a-2556-79d8-b0a2c2659271"
50
+ },
51
+ {
52
+ "name": "NVIDIA H100 80GB HBM3",
53
+ "memoryTotal": "85520809984",
54
+ "cudaCores": 16896,
55
+ "architecture": "Hopper",
56
+ "uuid": "GPU-b3e13ca7-237c-931f-894b-798f9cfa5620"
57
+ },
58
+ {
59
+ "name": "NVIDIA H100 80GB HBM3",
60
+ "memoryTotal": "85520809984",
61
+ "cudaCores": 16896,
62
+ "architecture": "Hopper",
63
+ "uuid": "GPU-64647b1f-5d55-1b7e-bf3d-64fae3871140"
64
+ },
65
+ {
66
+ "name": "NVIDIA H100 80GB HBM3",
67
+ "memoryTotal": "85520809984",
68
+ "cudaCores": 16896,
69
+ "architecture": "Hopper",
70
+ "uuid": "GPU-fe8b9b7e-82a4-1238-4843-bbfd0269d746"
71
+ },
72
+ {
73
+ "name": "NVIDIA H100 80GB HBM3",
74
+ "memoryTotal": "85520809984",
75
+ "cudaCores": 16896,
76
+ "architecture": "Hopper",
77
+ "uuid": "GPU-4523d4e1-5745-8224-7bcd-44cf59b76bae"
78
+ },
79
+ {
80
+ "name": "NVIDIA H100 80GB HBM3",
81
+ "memoryTotal": "85520809984",
82
+ "cudaCores": 16896,
83
+ "architecture": "Hopper",
84
+ "uuid": "GPU-9262bcbd-a29f-d761-3330-ac2ce9f15e82"
85
+ }
86
+ ],
87
+ "cudaVersion": "12.4",
88
+ "writerId": "rpamc3wni7ysqe4ryq6pxzkkfppcrszf"
89
+ }
wandb/run-20260515_162634-oma8h4e9/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"_runtime":3111.936040208,"train/old_approx_kl":8.741393685340881e-06,"charts/avg_reward":1.521484375,"eval/success_rate":0.9855,"_wandb":{"runtime":3111},"eval/episodes":4000,"_step":9999360,"rollout/ep_rew_mean":16,"eval/std_return":2.42313727105482,"rollout/success_rate":1,"_timestamp":1.7788367075641153e+09,"perf/SPS":3216,"global_step":9999360,"train/entropy":0.6433544158935547,"train/learning_rate":3.072196620584888e-08,"eval/avg_return":15.642875,"train/episodic_length":6,"losses/explained_variance":0.827873170375824,"charts/avg_value":10.706439971923828,"train/approx_kl":5.820766091346741e-09,"train/success":1,"train/policy_loss":-5.54695725440979e-06,"train/episodic_return":16,"train/success_rate_100":0.96,"train/value_loss":2.485055923461914,"rollout/ep_len_mean":6}
wandb/run-20260515_162634-oma8h4e9/run-oma8h4e9.wandb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c393b069802d31064ee7b3c235e0f77cb817e9a6a5a4ad02ff2aca8bd898a64d
3
+ size 495368288
wandb/run-20260602_163908-h5c4lnf8/files/config.yaml ADDED
@@ -0,0 +1,962 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.23.0
4
+ e:
5
+ xujgpyta9fobjr0dv9c8irk09puw6cyf:
6
+ args:
7
+ - --node-ip-address=10.119.99.71
8
+ - --node-manager-port=40857
9
+ - --object-store-name=/tmp/ray/session_2026-06-02_16-37-20_802181_63/sockets/plasma_store
10
+ - --raylet-name=/tmp/ray/session_2026-06-02_16-37-20_802181_63/sockets/raylet
11
+ - --redis-address=None
12
+ - --metrics-agent-port=61011
13
+ - --logging-rotate-bytes=536870912
14
+ - --logging-rotate-backup-count=5
15
+ - --runtime-env-agent-port=64336
16
+ - --gcs-address=10.119.99.71:58508
17
+ - --session-name=session_2026-06-02_16-37-20_802181_63
18
+ - --temp-dir=/tmp/ray
19
+ - --webui=127.0.0.1:8265
20
+ - --cluster-id=84bd6fc9f3347ae38148ba1fc34ddb17acef60e63f043d1f96cdb6a1
21
+ - --startup-token=112
22
+ - --worker-launch-time-ms=1780389444445
23
+ - --node-id=b414ad5d57488276b4be7a2e773fdd2e0d34dafbb1c67008822cb310
24
+ - --runtime-env-hash=-839022692
25
+ cpu_count: 64
26
+ cpu_count_logical: 128
27
+ cudaVersion: "12.4"
28
+ disk:
29
+ /:
30
+ total: "60129542144000"
31
+ used: "3272704"
32
+ email: haoyu-wa22@mails.tsinghua.edu.cn
33
+ executable: /root/local/miniconda3/envs/ragen/bin/python
34
+ git:
35
+ commit: b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0
36
+ remote: https://github.com/Harry-mic/SCOUT
37
+ gpu: NVIDIA H100 80GB HBM3
38
+ gpu_count: 8
39
+ gpu_nvidia:
40
+ - architecture: Hopper
41
+ cudaCores: 16896
42
+ memoryTotal: "85520809984"
43
+ name: NVIDIA H100 80GB HBM3
44
+ uuid: GPU-089f171c-391c-dbe6-9732-e9dcab584b2a
45
+ - architecture: Hopper
46
+ cudaCores: 16896
47
+ memoryTotal: "85520809984"
48
+ name: NVIDIA H100 80GB HBM3
49
+ uuid: GPU-dd51e744-372c-c614-a72c-669a2e06a129
50
+ - architecture: Hopper
51
+ cudaCores: 16896
52
+ memoryTotal: "85520809984"
53
+ name: NVIDIA H100 80GB HBM3
54
+ uuid: GPU-b90b5f70-0fa3-34a8-3493-47d296746407
55
+ - architecture: Hopper
56
+ cudaCores: 16896
57
+ memoryTotal: "85520809984"
58
+ name: NVIDIA H100 80GB HBM3
59
+ uuid: GPU-c0dd667b-31c0-dafb-d08e-1ad2118cb424
60
+ - architecture: Hopper
61
+ cudaCores: 16896
62
+ memoryTotal: "85520809984"
63
+ name: NVIDIA H100 80GB HBM3
64
+ uuid: GPU-2d1ce5d0-61a8-a6bc-0add-5cbd5c318090
65
+ - architecture: Hopper
66
+ cudaCores: 16896
67
+ memoryTotal: "85520809984"
68
+ name: NVIDIA H100 80GB HBM3
69
+ uuid: GPU-54dd1f4c-02ad-838f-3539-9944b7e06aef
70
+ - architecture: Hopper
71
+ cudaCores: 16896
72
+ memoryTotal: "85520809984"
73
+ name: NVIDIA H100 80GB HBM3
74
+ uuid: GPU-ac5dd66a-cc74-66d9-e1c1-07dfad209fcc
75
+ - architecture: Hopper
76
+ cudaCores: 16896
77
+ memoryTotal: "85520809984"
78
+ name: NVIDIA H100 80GB HBM3
79
+ uuid: GPU-26a4af72-9a63-2169-5525-ca7c5848b780
80
+ host: pt-8d304999aaac4ce1bdbc8c16dc65a596-worker-0
81
+ memory:
82
+ total: "2159611842560"
83
+ os: Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35
84
+ program: /root/local/miniconda3/envs/ragen/lib/python3.10/site-packages/ray/_private/workers/default_worker.py
85
+ python: CPython 3.10.19
86
+ root: /mnt/general/wanghy/RAGEN
87
+ startedAt: "2026-06-02T08:39:08.900060Z"
88
+ writerId: xujgpyta9fobjr0dv9c8irk09puw6cyf
89
+ m: []
90
+ python_version: 3.10.19
91
+ t:
92
+ "1":
93
+ - 1
94
+ - 5
95
+ - 11
96
+ - 30
97
+ - 41
98
+ - 49
99
+ - 50
100
+ - 51
101
+ - 53
102
+ - 71
103
+ - 95
104
+ - 97
105
+ - 98
106
+ - 105
107
+ "2":
108
+ - 1
109
+ - 5
110
+ - 11
111
+ - 30
112
+ - 41
113
+ - 49
114
+ - 50
115
+ - 51
116
+ - 53
117
+ - 71
118
+ - 95
119
+ - 97
120
+ - 98
121
+ - 105
122
+ "3":
123
+ - 2
124
+ - 13
125
+ - 16
126
+ - 61
127
+ "4": 3.10.19
128
+ "5": 0.23.0
129
+ "6": 4.57.3
130
+ "12": 0.23.0
131
+ "13": linux-x86_64
132
+ actor_rollout_ref:
133
+ value:
134
+ actor:
135
+ _target_: verl.workers.config.FSDPActorConfig
136
+ checkpoint:
137
+ _target_: verl.trainer.config.CheckpointConfig
138
+ async_save: false
139
+ load_contents:
140
+ - model
141
+ - optimizer
142
+ - extra
143
+ save_contents:
144
+ - model
145
+ - optimizer
146
+ - extra
147
+ clip_ratio: 0.2
148
+ clip_ratio_c: 3
149
+ clip_ratio_high: 0.2
150
+ clip_ratio_low: 0.2
151
+ entropy_checkpointing: false
152
+ entropy_coeff: 0.001
153
+ entropy_from_logits_with_chunking: false
154
+ freeze_vision_tower: false
155
+ fsdp_config:
156
+ _target_: verl.workers.config.FSDPEngineConfig
157
+ entropy_checkpointing: false
158
+ entropy_from_logits_with_chunking: false
159
+ forward_only: false
160
+ forward_prefetch: false
161
+ fsdp_size: -1
162
+ model_dtype: fp32
163
+ offload_policy: false
164
+ optimizer_offload: false
165
+ param_offload: false
166
+ reshard_after_forward: true
167
+ strategy: fsdp
168
+ ulysses_sequence_parallel_size: 1
169
+ use_orig_params: false
170
+ use_torch_compile: true
171
+ wrap_policy:
172
+ min_num_params: 0
173
+ grad_clip: 1
174
+ grpo_advantage_length_weight: false
175
+ kl_loss_coef: 0.001
176
+ kl_loss_type: kl
177
+ loss_agg_mode: token-mean
178
+ optim:
179
+ _target_: verl.workers.config.FSDPOptimizerConfig
180
+ betas:
181
+ - 0.9
182
+ - 0.999
183
+ clip_grad: 1
184
+ lr: 1e-06
185
+ lr_warmup_steps: -1
186
+ lr_warmup_steps_ratio: 0
187
+ min_lr_ratio: 0
188
+ num_cycles: 0.5
189
+ total_training_steps: 200
190
+ warmup_style: constant
191
+ weight_decay: 0.01
192
+ policy_loss:
193
+ _target_: verl.workers.config.PolicyLossConfig
194
+ clip_cov_lb: 1
195
+ clip_cov_ratio: 0.0002
196
+ clip_cov_ub: 5
197
+ kl_cov_ratio: 0.0002
198
+ loss_mode: vanilla
199
+ ppo_kl_coef: 0.1
200
+ ppo_epochs: 1
201
+ ppo_max_token_len_per_gpu: 16384
202
+ ppo_micro_batch_size: null
203
+ ppo_micro_batch_size_per_gpu: 1
204
+ ppo_mini_batch_size: 16
205
+ profiler:
206
+ _target_: verl.utils.profiler.ProfilerConfig
207
+ all_ranks: false
208
+ enable: false
209
+ ranks: []
210
+ save_path: outputs/profile
211
+ tool: null
212
+ tool_config:
213
+ npu:
214
+ _target_: verl.utils.profiler.config.NPUToolConfig
215
+ analysis: true
216
+ contents: []
217
+ discrete: false
218
+ level: level1
219
+ nsys:
220
+ _target_: verl.utils.profiler.config.NsightToolConfig
221
+ discrete: false
222
+ torch:
223
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
224
+ step_end: null
225
+ step_start: 0
226
+ torch_memory:
227
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
228
+ stack_depth: 32
229
+ trace_alloc_max_entries: 100000
230
+ shuffle: false
231
+ strategy: fsdp
232
+ tis_imp_ratio_cap: -1
233
+ ulysses_sequence_parallel_size: 1
234
+ use_dynamic_bsz: false
235
+ use_fused_kernels: false
236
+ use_kl_loss: false
237
+ use_ref: true
238
+ use_remove_padding: false
239
+ use_torch_compile: true
240
+ hybrid_engine: true
241
+ model:
242
+ _target_: verl.workers.config.HFModelConfig
243
+ custom_chat_template: null
244
+ enable_activation_offload: false
245
+ enable_gradient_checkpointing: true
246
+ exclude_modules: null
247
+ external_lib: null
248
+ fused_kernel_options:
249
+ impl_backend: torch
250
+ hf_config_path: null
251
+ lora_alpha: 16
252
+ lora_rank: 0
253
+ path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
254
+ target_modules: all-linear
255
+ tokenizer_path: null
256
+ torch_dtype: bfloat16
257
+ trust_remote_code: false
258
+ use_fused_kernels: false
259
+ use_liger: false
260
+ use_remove_padding: false
261
+ use_shm: false
262
+ nccl_timeout: 600
263
+ ref:
264
+ entropy_checkpointing: false
265
+ entropy_from_logits_with_chunking: false
266
+ fsdp_config:
267
+ _target_: verl.workers.config.FSDPEngineConfig
268
+ entropy_checkpointing: false
269
+ entropy_from_logits_with_chunking: false
270
+ forward_only: false
271
+ forward_prefetch: false
272
+ fsdp_size: -1
273
+ model_dtype: fp32
274
+ offload_policy: false
275
+ optimizer_offload: false
276
+ param_offload: false
277
+ reshard_after_forward: true
278
+ strategy: fsdp
279
+ ulysses_sequence_parallel_size: 1
280
+ use_orig_params: false
281
+ use_torch_compile: true
282
+ wrap_policy:
283
+ min_num_params: 0
284
+ log_prob_max_token_len_per_gpu: 16384
285
+ log_prob_micro_batch_size: null
286
+ log_prob_micro_batch_size_per_gpu: 1
287
+ log_prob_use_dynamic_bsz: false
288
+ model: null
289
+ profiler:
290
+ _target_: verl.utils.profiler.ProfilerConfig
291
+ all_ranks: false
292
+ enable: false
293
+ ranks: []
294
+ save_path: outputs/profile
295
+ tool: null
296
+ tool_config:
297
+ npu:
298
+ _target_: verl.utils.profiler.config.NPUToolConfig
299
+ analysis: true
300
+ contents: []
301
+ discrete: false
302
+ level: level1
303
+ nsys:
304
+ _target_: verl.utils.profiler.config.NsightToolConfig
305
+ discrete: false
306
+ torch:
307
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
308
+ step_end: null
309
+ step_start: 0
310
+ torch_memory:
311
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
312
+ stack_depth: 32
313
+ trace_alloc_max_entries: 100000
314
+ strategy: fsdp
315
+ ulysses_sequence_parallel_size: 1
316
+ use_torch_compile: true
317
+ rollout:
318
+ _target_: verl.workers.config.RolloutConfig
319
+ agent:
320
+ _target_: verl.workers.config.AgentLoopConfig
321
+ agent_loop_config_path: null
322
+ custom_async_server:
323
+ _target_: verl.workers.config.CustomAsyncServerConfig
324
+ name: null
325
+ path: null
326
+ num_workers: 8
327
+ calculate_log_probs: false
328
+ cudagraph_capture_sizes: null
329
+ data_parallel_size: 1
330
+ disable_log_stats: true
331
+ do_sample: true
332
+ dtype: bfloat16
333
+ enable_chunked_prefill: true
334
+ enable_prefix_caching: true
335
+ enforce_eager: true
336
+ expert_parallel_size: 1
337
+ free_cache_engine: true
338
+ gpu_memory_utilization: 0.6
339
+ ignore_eos: false
340
+ layered_summon: false
341
+ load_format: dummy
342
+ log_prob_max_token_len_per_gpu: 16384
343
+ log_prob_micro_batch_size: null
344
+ log_prob_micro_batch_size_per_gpu: 1
345
+ log_prob_use_dynamic_bsz: false
346
+ max_model_len: 16384
347
+ max_num_batched_tokens: 16384
348
+ max_num_seqs: 1024
349
+ mode: sync
350
+ multi_stage_wake_up: false
351
+ multi_turn:
352
+ _target_: verl.workers.config.MultiTurnConfig
353
+ enable: false
354
+ format: hermes
355
+ interaction_config_path: null
356
+ max_assistant_turns: null
357
+ max_parallel_calls: 1
358
+ max_tool_response_length: 256
359
+ max_user_turns: null
360
+ num_repeat_rollouts: null
361
+ tokenization_sanity_check_mode: strict
362
+ tool_config_path: null
363
+ tool_response_truncate_side: middle
364
+ use_inference_chat_template: false
365
+ "n": 1
366
+ name: vllm
367
+ over_sample_rate: 0
368
+ profiler:
369
+ _target_: verl.utils.profiler.ProfilerConfig
370
+ all_ranks: false
371
+ enable: false
372
+ ranks: []
373
+ save_path: outputs/profile
374
+ tool: null
375
+ tool_config:
376
+ npu:
377
+ _target_: verl.utils.profiler.config.NPUToolConfig
378
+ analysis: true
379
+ contents: []
380
+ discrete: false
381
+ level: level1
382
+ nsys:
383
+ _target_: verl.utils.profiler.config.NsightToolConfig
384
+ discrete: false
385
+ torch:
386
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
387
+ step_end: null
388
+ step_start: 0
389
+ torch_memory:
390
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
391
+ stack_depth: 32
392
+ trace_alloc_max_entries: 100000
393
+ prompt_length: 1
394
+ response_length: 500
395
+ rollout_filter_metric: reward_variance
396
+ rollout_filter_ratio: 1
397
+ rollout_filter_type: largest
398
+ skip_dump_dir: /tmp/rollout_dump
399
+ skip_rollout: false
400
+ skip_tokenizer_init: true
401
+ temperature: 1
402
+ tensor_model_parallel_size: 1
403
+ top_k: -1
404
+ top_p: 1
405
+ trace:
406
+ _target_: verl.workers.config.TraceConfig
407
+ backend: null
408
+ token2text: false
409
+ update_weights_bucket_megabytes: 512
410
+ val_kwargs:
411
+ _target_: verl.workers.config.SamplingConfig
412
+ do_sample: true
413
+ "n": 1
414
+ temperature: 0.5
415
+ top_k: -1
416
+ top_p: 1
417
+ agent_proxy:
418
+ value:
419
+ action_sep: '||'
420
+ enable_think: true
421
+ max_actions_per_turn: 1
422
+ max_context_window: -1
423
+ max_turn: 15
424
+ reward_normalization:
425
+ grouping: state
426
+ method: identity
427
+ use_turn_scores: false
428
+ algorithm:
429
+ value:
430
+ _target_: verl.trainer.config.AlgoConfig
431
+ adv_estimator: gae
432
+ bi_level_gae: false
433
+ gamma: 1
434
+ high_level_gamma: 0.95
435
+ kl_ctrl:
436
+ _target_: verl.trainer.config.KLControlConfig
437
+ horizon: 10000
438
+ kl_coef: 0.001
439
+ target_kl: 0.1
440
+ type: fixed
441
+ kl_penalty: kl
442
+ lam: 1
443
+ norm_adv_by_std_in_grpo: true
444
+ pf_ppo:
445
+ reweight_method: pow
446
+ weight_pow: 2
447
+ use_kl_in_reward: false
448
+ use_pf_ppo: false
449
+ critic:
450
+ value:
451
+ _target_: verl.workers.config.FSDPCriticConfig
452
+ checkpoint:
453
+ _target_: verl.trainer.config.CheckpointConfig
454
+ async_save: false
455
+ load_contents:
456
+ - model
457
+ - optimizer
458
+ - extra
459
+ save_contents:
460
+ - model
461
+ - optimizer
462
+ - extra
463
+ cliprange_value: 0.5
464
+ enable: null
465
+ forward_max_token_len_per_gpu: 32768
466
+ forward_micro_batch_size: null
467
+ forward_micro_batch_size_per_gpu: 1
468
+ grad_clip: 1
469
+ loss_agg_mode: token-mean
470
+ model:
471
+ _target_: verl.workers.config.FSDPCriticModelCfg
472
+ enable_activation_offload: false
473
+ enable_gradient_checkpointing: true
474
+ external_lib: null
475
+ fsdp_config:
476
+ _target_: verl.workers.config.FSDPEngineConfig
477
+ entropy_checkpointing: false
478
+ entropy_from_logits_with_chunking: false
479
+ forward_only: false
480
+ forward_prefetch: false
481
+ fsdp_size: -1
482
+ model_dtype: fp32
483
+ offload_policy: false
484
+ optimizer_offload: false
485
+ param_offload: false
486
+ reshard_after_forward: true
487
+ strategy: fsdp
488
+ ulysses_sequence_parallel_size: 1
489
+ use_orig_params: false
490
+ use_torch_compile: true
491
+ wrap_policy:
492
+ min_num_params: 0
493
+ lora_alpha: 16
494
+ lora_rank: 0
495
+ path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
496
+ target_modules: all-linear
497
+ tokenizer_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
498
+ trust_remote_code: false
499
+ use_remove_padding: false
500
+ use_shm: false
501
+ optim:
502
+ _target_: verl.workers.config.FSDPOptimizerConfig
503
+ betas:
504
+ - 0.9
505
+ - 0.999
506
+ clip_grad: 1
507
+ lr: 1e-05
508
+ lr_warmup_steps: -1
509
+ lr_warmup_steps_ratio: 0
510
+ min_lr_ratio: 0
511
+ num_cycles: 0.5
512
+ total_training_steps: 200
513
+ warmup_style: constant
514
+ weight_decay: 0.01
515
+ ppo_epochs: 1
516
+ ppo_max_token_len_per_gpu: 32768
517
+ ppo_micro_batch_size: null
518
+ ppo_micro_batch_size_per_gpu: 1
519
+ ppo_mini_batch_size: 16
520
+ profiler:
521
+ _target_: verl.utils.profiler.ProfilerConfig
522
+ all_ranks: false
523
+ enable: false
524
+ ranks: []
525
+ save_path: outputs/profile
526
+ tool: null
527
+ tool_config:
528
+ npu:
529
+ _target_: verl.utils.profiler.config.NPUToolConfig
530
+ analysis: true
531
+ contents: []
532
+ discrete: false
533
+ level: level1
534
+ nsys:
535
+ _target_: verl.utils.profiler.config.NsightToolConfig
536
+ discrete: false
537
+ torch:
538
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
539
+ step_end: null
540
+ step_start: 0
541
+ torch_memory:
542
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
543
+ stack_depth: 32
544
+ trace_alloc_max_entries: 100000
545
+ rollout_n: 1
546
+ shuffle: false
547
+ strategy: fsdp
548
+ ulysses_sequence_parallel_size: 1
549
+ use_dynamic_bsz: false
550
+ ctx_manager:
551
+ value:
552
+ generation:
553
+ gen_config:
554
+ kwargs: null
555
+ response_length: 500
556
+ temperature: 1
557
+ top_k: -1
558
+ top_p: 1
559
+ custom_envs:
560
+ value:
561
+ Bandit:
562
+ env_config:
563
+ split: train
564
+ env_instruction: ""
565
+ env_type: bandit
566
+ max_actions_per_traj: 1
567
+ max_tokens: 100
568
+ BanditTest:
569
+ env_config:
570
+ split: test
571
+ env_instruction: ""
572
+ env_type: bandit
573
+ max_actions_per_traj: 1
574
+ max_tokens: 100
575
+ CoordFrozenLake:
576
+ env_config:
577
+ observation_format: grid_coord
578
+ env_instruction: |
579
+ You are solving the FrozenLake puzzle. The observation includes both a symbol grid and zero-indexed coordinates for the start, goal, player, and any holes.
580
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner (5, 5).
581
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended tile.
582
+ Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
583
+ env_type: frozen_lake
584
+ max_actions_per_traj: 25
585
+ max_tokens: 120
586
+ CoordSokoban:
587
+ env_config:
588
+ dim_x: 6
589
+ dim_y: 6
590
+ max_steps: 100
591
+ num_boxes: 2
592
+ observation_format: grid_coord
593
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you need to push all boxes to targets.\nYou are provided with a symbol grid and the zero-indexed coordinates of the player, each box, and each target. \nCoordinates range from the top-left corner (0, 0) to the bottom-right corner (5, 5). \nWhen you are exactly next to a box, you can push it by moving in the same direction. \nYou cannot push a box through a wall, and you cannot pull a box.\nThe answer should be a sequence of actions, like <answer>Right || Right || Up</answer>.\n"
594
+ env_type: sokoban
595
+ max_actions_per_traj: 10
596
+ max_tokens: 120
597
+ Countdown:
598
+ env_config: null
599
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num list to create an equation that equals the target. Example answer format: <think> To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3 = 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
600
+ env_type: countdown
601
+ max_actions_per_traj: 1
602
+ max_tokens: 100
603
+ FrozenLake:
604
+ env_config: null
605
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and go to the target. You may move to the unintended direction due to the slippery ice. Example answer format: <think>To forbid the hole and go to the target, I should go left then go up.</think><answer>Left || Up</answer>'
606
+ env_type: frozen_lake
607
+ max_actions_per_traj: 25
608
+ max_tokens: 100
609
+ LargerSokoban:
610
+ env_config:
611
+ dim_x: 8
612
+ dim_y: 8
613
+ max_steps: 100
614
+ num_boxes: 2
615
+ search_depth: 10
616
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and you need to push all boxes to targets. \nWhen you are right next to a box, you can push it by moving in the same direction. \nYou cannot push a box through a wall, and you cannot pull a box. \nThe answer should be a sequence of actions, like <answer>Right || Right || Up</answer>\n"
617
+ env_type: sokoban
618
+ max_actions_per_traj: 10
619
+ max_tokens: 100
620
+ Lean:
621
+ env_config: null
622
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement, propose a sequence of tactics that completes the proof. Think step by step about which tactics to apply next. Provide tactics separated by '||', for example <answer>intro || simp || rfl</answer>.
623
+ env_type: lean
624
+ max_actions_per_traj: 30
625
+ max_tokens: 512
626
+ MediumSudoku:
627
+ env_config:
628
+ difficulty: medium
629
+ grid_size: 9
630
+ max_steps: 81
631
+ render_format: with_feedback
632
+ show_conflicts: true
633
+ show_valid_numbers: true
634
+ env_instruction: |
635
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column, and 3x3 box contains the numbers 1-9 without repetition.
636
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are shown as dots (.).
637
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer> or <answer>2,3,5</answer>
638
+ The environment will provide feedback on valid/invalid moves and show conflicts if any occur.
639
+ env_type: sudoku
640
+ max_actions_per_traj: 30
641
+ max_tokens: 150
642
+ max_workers: 32
643
+ parallel_friendly: false
644
+ MetamathQA:
645
+ env_config: null
646
+ env_instruction: 'You are solving Math problems. '
647
+ env_type: metamathqa
648
+ max_actions_per_traj: 1
649
+ max_tokens: 100
650
+ SimpleSokoban:
651
+ env_config:
652
+ dim_x: 6
653
+ dim_y: 6
654
+ max_steps: 100
655
+ num_boxes: 2
656
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and you need to push all boxes to targets. \nWhen you are right next to a box, you can push it by moving in the same direction. \nYou cannot push a box through a wall, and you cannot pull a box. \nThe answer should be a sequence of actions, like <answer>Right || Right || Up</answer>\n"
657
+ env_type: sokoban
658
+ max_actions_per_traj: 10
659
+ max_tokens: 100
660
+ SimpleSudoku:
661
+ env_config:
662
+ difficulty: easy
663
+ grid_size: 4
664
+ max_steps: 20
665
+ render_format: with_feedback
666
+ show_conflicts: false
667
+ show_valid_numbers: false
668
+ env_instruction: |
669
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column, and 2x2 box contains the numbers 1-4 without repetition.
670
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are shown as dots (.).
671
+ Place numbers one at a time using the format, for example: <answer>place 1 at row 2 col 3</answer> or <answer>1,2,3</answer>
672
+ The environment will provide feedback on valid/invalid moves and show conflicts if any occur.
673
+ env_type: sudoku
674
+ max_actions_per_traj: 20
675
+ max_tokens: 150
676
+ max_workers: 32
677
+ parallel_friendly: false
678
+ SokobanDifferentGridVocab:
679
+ env_config:
680
+ dim_x: 6
681
+ dim_y: 6
682
+ grid_lookup:
683
+ "0": W
684
+ "1": .
685
+ "2": G
686
+ "3": C
687
+ "4": B
688
+ "5": A
689
+ "6": '@'
690
+ grid_vocab:
691
+ .: empty
692
+ '@': player on target
693
+ A: player
694
+ B: box
695
+ C: box on target
696
+ G: target
697
+ W: wall
698
+ max_steps: 100
699
+ num_boxes: 1
700
+ search_depth: 30
701
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and you need to push all boxes to targets. \nWhen you are right next to a box, you can push it by moving in the same direction. \nYou cannot push a box through a wall, and you cannot pull a box. \nThe answer should be a sequence of actions, like <answer>Right || Right || Up</answer>\n"
702
+ env_type: sokoban
703
+ max_actions_per_traj: 10
704
+ max_tokens: 100
705
+ VisualSimpleSokoban:
706
+ env_config:
707
+ dim_x: 6
708
+ dim_y: 6
709
+ max_steps: 100
710
+ num_boxes: 1
711
+ render_mode: rgb_array
712
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you need to push all boxes to targets. When you are right next to a box, you can push it by moving in the same direction. You cannot push a box through a wall, and you cannot pull a box. The answer should be a sequence of actions, like <answer>Right || Right || Up</answer>
713
+ env_type: sokoban
714
+ max_actions_per_traj: 10
715
+ max_tokens: 100
716
+ WebShop:
717
+ env_config:
718
+ dataset: small
719
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy a product that close to the production description. You need to search, read the search results, pick a product, choose the size and color and buy. You should only choose action from the available actions list provided later. Example process: I need a gingko light and 20x20 pillow cover that is hand painted. First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
720
+ env_type: webshop
721
+ max_actions_per_traj: 9
722
+ max_tokens: 200
723
+ blackjack:
724
+ env_config: null
725
+ env_instruction: |
726
+ You are playing Blackjack against a dealer. The dealer must hit on 16 or less and stand on 17 or more.
727
+ Choose either Stick or Hit. Respond with a single action.
728
+ Example: <answer>Hit</answer>
729
+ env_type: blackjack
730
+ max_actions_per_traj: 10
731
+ max_tokens: 64
732
+ game_2048:
733
+ env_config: null
734
+ env_instruction: |
735
+ You are playing the 2048 game on a 4x4 grid. Merge equal tiles by sliding Up, Right, Down, or Left.
736
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with a single action.
737
+ Example: <answer>Up</answer>
738
+ env_type: game_2048
739
+ max_actions_per_traj: 700
740
+ max_tokens: 8192
741
+ rubikscube:
742
+ env_config:
743
+ max_steps: 20
744
+ render_mode: text
745
+ scramble_depth: 5
746
+ env_instruction: |
747
+ You are solving a 2x2 Rubik's Cube (Pocket Cube). The goal is to restore the cube so that each of the faces consists of a single, unique color.
748
+ Available actions use standard Singmaster notation for face rotations: U, U', D, D', L, L', R, R', F, F', B, B'.
749
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
750
+ - Modifiers: A letter alone means 90° clockwise (e.g., 'R'). A letter with prime (') means 90° counter-clockwise (e.g., "R'").
751
+ Respond with a sequence of actions separated by "||".
752
+ Example: <answer>U</answer>
753
+ env_type: rubikscube
754
+ max_actions_per_traj: 20
755
+ max_tokens: 96
756
+ custom_reward_function:
757
+ value:
758
+ name: compute_score
759
+ path: null
760
+ data:
761
+ value:
762
+ custom_cls:
763
+ name: null
764
+ path: null
765
+ datagen:
766
+ name: null
767
+ path: null
768
+ dataloader_num_workers: 8
769
+ filter_overlong_prompts: false
770
+ filter_overlong_prompts_workers: 1
771
+ image_key: images
772
+ max_prompt_length: null
773
+ max_response_length: null
774
+ prompt_key: prompt
775
+ return_full_prompt: false
776
+ return_multi_modal_inputs: true
777
+ return_raw_chat: false
778
+ return_raw_input_ids: false
779
+ reward_fn_key: data_source
780
+ sampler:
781
+ class_name: null
782
+ class_path: null
783
+ shuffle: true
784
+ tokenizer: null
785
+ train_batch_size: 128
786
+ train_files: ~/data/rlhf/gsm8k/train.parquet
787
+ truncation: error
788
+ trust_remote_code: false
789
+ use_shm: false
790
+ val_batch_size: null
791
+ val_files: ~/data/rlhf/gsm8k/test.parquet
792
+ validation_shuffle: false
793
+ video_key: videos
794
+ enable_response_mask:
795
+ value: true
796
+ es_manager:
797
+ value:
798
+ format_penalty: -0.1
799
+ train:
800
+ env_configs:
801
+ n_groups:
802
+ - 8
803
+ tags:
804
+ - SimpleSudoku
805
+ env_groups: 8
806
+ group_size: 16
807
+ val:
808
+ env_configs:
809
+ n_groups:
810
+ - 32
811
+ tags:
812
+ - SimpleSudoku
813
+ env_groups: 32
814
+ group_size: 16
815
+ global_profiler:
816
+ value:
817
+ _target_: verl.utils.profiler.ProfilerConfig
818
+ global_tool_config:
819
+ nsys:
820
+ _target_: verl.utils.profiler.config.NsightToolConfig
821
+ controller_nsight_options:
822
+ cuda-graph-trace: graph
823
+ cuda-memory-usage: "true"
824
+ trace: cuda,nvtx,cublas,ucx
825
+ discrete: false
826
+ worker_nsight_options:
827
+ capture-range: cudaProfilerApi
828
+ capture-range-end: null
829
+ cuda-graph-trace: graph
830
+ cuda-memory-usage: "true"
831
+ kill: none
832
+ trace: cuda,nvtx,cublas,ucx
833
+ torch_memory:
834
+ context: all
835
+ stack_depth: 32
836
+ stacks: all
837
+ trace_alloc_max_entries: 100000
838
+ profile_continuous_steps: false
839
+ save_path: outputs/profile
840
+ steps: null
841
+ tool: null
842
+ grpo_advantage_length_weight:
843
+ value: false
844
+ lora:
845
+ value:
846
+ alpha: 16
847
+ rank: 0
848
+ target_modules: all-linear
849
+ micro_batch_size_per_gpu:
850
+ value: 1
851
+ model_path:
852
+ value: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
853
+ ppo_mini_batch_size:
854
+ value: 16
855
+ ray_kwargs:
856
+ value:
857
+ ray_init:
858
+ num_cpus: null
859
+ timeline_json_file: null
860
+ reward_model:
861
+ value:
862
+ enable: false
863
+ enable_resource_pool: false
864
+ forward_max_token_len_per_gpu: 32768
865
+ launch_reward_fn_async: false
866
+ max_length: null
867
+ micro_batch_size: null
868
+ micro_batch_size_per_gpu: null
869
+ model:
870
+ external_lib: null
871
+ fsdp_config:
872
+ _target_: verl.workers.config.FSDPEngineConfig
873
+ forward_prefetch: false
874
+ fsdp_size: -1
875
+ param_offload: false
876
+ reshard_after_forward: true
877
+ wrap_policy:
878
+ min_num_params: 0
879
+ input_tokenizer: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
880
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
881
+ trust_remote_code: false
882
+ use_fused_kernels: false
883
+ use_remove_padding: false
884
+ use_shm: false
885
+ n_gpus_per_node: 0
886
+ nnodes: 0
887
+ profiler:
888
+ _target_: verl.utils.profiler.ProfilerConfig
889
+ all_ranks: false
890
+ enable: false
891
+ ranks: []
892
+ save_path: outputs/profile
893
+ tool: null
894
+ tool_config:
895
+ npu:
896
+ _target_: verl.utils.profiler.config.NPUToolConfig
897
+ analysis: true
898
+ contents: []
899
+ discrete: false
900
+ level: level1
901
+ nsys:
902
+ _target_: verl.utils.profiler.config.NsightToolConfig
903
+ discrete: false
904
+ torch:
905
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
906
+ step_end: null
907
+ step_start: 0
908
+ torch_memory:
909
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
910
+ stack_depth: 32
911
+ trace_alloc_max_entries: 100000
912
+ reward_manager: naive
913
+ sandbox_fusion:
914
+ max_concurrent: 64
915
+ memory_limit_mb: 1024
916
+ url: null
917
+ strategy: fsdp
918
+ ulysses_sequence_parallel_size: 1
919
+ use_dynamic_bsz: false
920
+ seed:
921
+ value:
922
+ train: 10000
923
+ val: 123
924
+ system:
925
+ value:
926
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
927
+ trainer:
928
+ value:
929
+ balance_batch: true
930
+ critic_warmup: 0
931
+ default_hdfs_dir: null
932
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
933
+ del_local_ckpt_after_load: false
934
+ device: cuda
935
+ esi_redundant_time: 0
936
+ experiment_name: sudoku-4x4-nohint-action1
937
+ generations_to_log_to_wandb:
938
+ train: 128
939
+ val: 20
940
+ local_log_dir: results/
941
+ log_val_generations: 0
942
+ logger:
943
+ - console
944
+ - wandb
945
+ max_actor_ckpt_to_keep: 1
946
+ max_critic_ckpt_to_keep: 1
947
+ n_gpus_per_node: 8
948
+ nnodes: 1
949
+ project_name: ragen_latest_qwen_25_3b_it
950
+ ray_wait_register_center_timeout: 300
951
+ resume_from_path: null
952
+ resume_mode: auto
953
+ rollout_data_dir: null
954
+ save_freq: -1
955
+ test_freq: 10
956
+ total_epochs: 30
957
+ total_training_steps: 200
958
+ use_legacy_worker_impl: auto
959
+ val_before_train: true
960
+ val_only: false
961
+ validation_data_dir: null
962
+ validation_steps: 1
wandb/run-20260602_163908-h5c4lnf8/files/media/table/val/generations_139_f7c670102555a5d96888.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260602_163908-h5c4lnf8/files/media/table/val/generations_19_5713605c4ea772ad65df.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260602_163908-h5c4lnf8/files/media/table/val/generations_39_6156419471d1bb841f99.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260602_163908-h5c4lnf8/files/requirements.txt ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ragen==0.1
2
+ ragen==0.1
3
+ colorama==0.4.6
4
+ psutil==7.1.3
5
+ Farama-Notifications==0.0.4
6
+ MarkupSafe==2.1.5
7
+ PyJWT==2.10.1
8
+ PySocks==1.7.1
9
+ absl-py==2.3.1
10
+ accelerate==1.12.0
11
+ aiohappyeyeballs==2.6.1
12
+ aiohttp==3.13.2
13
+ aiohttp-cors==0.8.1
14
+ aiosignal==1.4.0
15
+ airportsdata==20250909
16
+ annotated-doc==0.0.4
17
+ annotated-types==0.7.0
18
+ anthropic==0.75.0
19
+ antlr4-python3-runtime==4.9.3
20
+ anyio==4.12.0
21
+ astor==0.8.1
22
+ asttokens==3.0.1
23
+ async-timeout==5.0.1
24
+ attrs==25.4.0
25
+ beautifulsoup4==4.14.3
26
+ black==25.11.0
27
+ blake3==1.0.8
28
+ blinker==1.9.0
29
+ blis==1.3.3
30
+ cachetools==6.2.2
31
+ catalogue==2.0.10
32
+ certifi==2025.11.12
33
+ cffi==2.0.0
34
+ charset-normalizer==3.4.4
35
+ cleantext==1.1.4
36
+ click==8.2.1
37
+ cloudpathlib==0.23.0
38
+ cloudpickle==3.1.2
39
+ codetiming==1.4.0
40
+ colorama==0.4.6
41
+ coloredlogs==15.0.1
42
+ colorful==0.5.8
43
+ compressed-tensors==0.9.3
44
+ confection==0.1.5
45
+ contourpy==1.3.2
46
+ cryptography==46.0.3
47
+ cupy-cuda12x==13.6.0
48
+ cycler==0.12.1
49
+ cymem==2.0.13
50
+ Cython==3.2.2
51
+ datasets==4.4.1
52
+ debugpy==1.8.17
53
+ decorator==5.2.1
54
+ Deprecated==1.3.1
55
+ depyf==0.18.0
56
+ dill==0.4.0
57
+ diskcache==5.6.3
58
+ distlib==0.4.0
59
+ distro==1.9.0
60
+ dnspython==2.8.0
61
+ docstring_parser==0.17.0
62
+ einops==0.8.1
63
+ email-validator==2.3.0
64
+ eval_type_backport==0.2.2
65
+ exceptiongroup==1.3.1
66
+ executing==2.2.1
67
+ faiss-gpu==1.7.2
68
+ fastapi==0.123.1
69
+ fastapi-cli==0.0.16
70
+ fastapi-cloud-cli==0.5.2
71
+ fastar==0.8.0
72
+ fastrlock==0.8.3
73
+ filelock==3.19.1
74
+ flash_attn==2.8.3
75
+ Flask==3.1.2
76
+ flatbuffers==25.9.23
77
+ fonttools==4.61.0
78
+ frozenlist==1.8.0
79
+ fsspec==2025.9.0
80
+ gdown==5.2.0
81
+ gguf==0.17.1
82
+ gitdb==4.0.12
83
+ GitPython==3.1.45
84
+ google-api-core==2.28.1
85
+ google-auth==2.43.0
86
+ googleapis-common-protos==1.72.0
87
+ grpcio==1.76.0
88
+ gym==0.26.2
89
+ gym-notices==0.1.0
90
+ gym-sokoban==0.0.6
91
+ gymnasium==1.2.2
92
+ h11==0.16.0
93
+ hf-xet==1.2.0
94
+ html2text==2025.4.15
95
+ httpcore==1.0.9
96
+ httptools==0.7.1
97
+ httpx==0.28.1
98
+ httpx-sse==0.4.3
99
+ huggingface-hub==0.36.0
100
+ humanfriendly==10.0
101
+ hydra-core==1.3.2
102
+ idna==3.11
103
+ ImageIO==2.37.2
104
+ importlib_metadata==8.0.0
105
+ interegular==0.3.3
106
+ ipython==8.37.0
107
+ itsdangerous==2.2.0
108
+ jedi==0.19.2
109
+ Jinja2==3.1.6
110
+ jiter==0.12.0
111
+ joblib==1.5.2
112
+ jsonschema==4.25.1
113
+ jsonschema-specifications==2025.9.1
114
+ kimina-client==0.2.1
115
+ kiwisolver==1.4.9
116
+ lark==1.2.2
117
+ llguidance==0.7.30
118
+ llvmlite==0.44.0
119
+ lm-format-enforcer==0.10.12
120
+ loguru==0.7.3
121
+ Markdown==3.10
122
+ markdown-it-py==4.0.0
123
+ matplotlib==3.10.7
124
+ matplotlib-inline==0.2.1
125
+ mcp==1.22.0
126
+ mdurl==0.1.2
127
+ mistral_common==1.8.6
128
+ mpmath==1.3.0
129
+ msgpack==1.1.2
130
+ msgspec==0.20.0
131
+ multidict==6.7.0
132
+ multiprocess==0.70.18
133
+ murmurhash==1.0.15
134
+ mypy_extensions==1.1.0
135
+ nest-asyncio==1.6.0
136
+ networkx==3.3
137
+ ninja==1.13.0
138
+ nltk==3.9.2
139
+ numba==0.61.2
140
+ numpy==1.26.4
141
+ nvidia-cublas-cu12==12.4.5.8
142
+ nvidia-cuda-cupti-cu12==12.4.127
143
+ nvidia-cuda-nvrtc-cu12==12.4.127
144
+ nvidia-cuda-runtime-cu12==12.4.127
145
+ nvidia-cudnn-cu12==9.1.0.70
146
+ nvidia-cufft-cu12==11.2.1.3
147
+ nvidia-curand-cu12==10.3.5.147
148
+ nvidia-cusolver-cu12==11.6.1.9
149
+ nvidia-cusparse-cu12==12.3.1.170
150
+ nvidia-cusparselt-cu12==0.6.2
151
+ nvidia-nccl-cu12==2.21.5
152
+ nvidia-nvjitlink-cu12==12.4.127
153
+ nvidia-nvtx-cu12==12.4.127
154
+ omegaconf==2.3.0
155
+ onnxruntime==1.23.2
156
+ openai==2.8.1
157
+ opencensus==0.11.4
158
+ opencensus-context==0.1.3
159
+ opencv-python-headless==4.12.0.88
160
+ opentelemetry-api==1.38.0
161
+ opentelemetry-exporter-otlp==1.26.0
162
+ opentelemetry-exporter-otlp-proto-common==1.26.0
163
+ opentelemetry-exporter-otlp-proto-grpc==1.26.0
164
+ opentelemetry-exporter-otlp-proto-http==1.26.0
165
+ opentelemetry-exporter-prometheus==0.59b0
166
+ opentelemetry-proto==1.26.0
167
+ opentelemetry-sdk==1.38.0
168
+ opentelemetry-semantic-conventions==0.59b0
169
+ opentelemetry-semantic-conventions-ai==0.4.13
170
+ orjson==3.11.4
171
+ outlines==0.1.11
172
+ outlines_core==0.1.26
173
+ packaging==25.0
174
+ pandas==2.3.3
175
+ parso==0.8.5
176
+ partial-json-parser==0.2.1.1.post7
177
+ pathspec==0.12.1
178
+ peft==0.18.0
179
+ pexpect==4.9.0
180
+ pillow==11.3.0
181
+ pip==25.3
182
+ platformdirs==4.5.0
183
+ preshed==3.0.12
184
+ prometheus_client==0.23.1
185
+ prometheus-fastapi-instrumentator==7.1.0
186
+ prompt_toolkit==3.0.52
187
+ propcache==0.4.1
188
+ proto-plus==1.26.1
189
+ protobuf==4.25.8
190
+ psutil==7.1.3
191
+ ptyprocess==0.7.0
192
+ pure_eval==0.2.3
193
+ py-cpuinfo==9.0.0
194
+ py-spy==0.4.1
195
+ pyarrow==22.0.0
196
+ pyasn1==0.6.1
197
+ pyasn1_modules==0.4.2
198
+ pybind11==3.0.1
199
+ pycountry==24.6.1
200
+ pycparser==2.23
201
+ pydantic==2.12.5
202
+ pydantic_core==2.41.5
203
+ pydantic-extra-types==2.10.6
204
+ pydantic-settings==2.12.0
205
+ pygame==2.6.1
206
+ Pygments==2.19.2
207
+ pyjnius==1.7.0
208
+ pylatexenc==2.10
209
+ pyparsing==3.2.5
210
+ pyserini==1.2.0
211
+ python-dateutil==2.9.0.post0
212
+ python-dotenv==1.2.1
213
+ python-json-logger==4.0.0
214
+ python-multipart==0.0.20
215
+ pytokens==0.3.0
216
+ pytz==2025.2
217
+ PyYAML==6.0.3
218
+ pyzmq==27.1.0
219
+ ragen==0.1
220
+ rank-bm25==0.2.2
221
+ RapidFuzz==3.14.3
222
+ ray==2.52.1
223
+ referencing==0.37.0
224
+ regex==2025.11.3
225
+ requests==2.32.5
226
+ rich==14.2.0
227
+ rich-toolkit==0.17.0
228
+ rignore==0.7.6
229
+ rpds-py==0.30.0
230
+ rsa==4.9.1
231
+ safetensors==0.7.0
232
+ scikit-learn==1.7.2
233
+ scipy==1.15.3
234
+ sentencepiece==0.2.1
235
+ sentry-sdk==2.46.0
236
+ setuptools==80.9.0
237
+ shellingham==1.5.4
238
+ six==1.17.0
239
+ smart_open==7.5.0
240
+ smmap==5.0.2
241
+ sniffio==1.3.1
242
+ soupsieve==2.8
243
+ spacy==3.8.11
244
+ spacy-legacy==3.0.12
245
+ spacy-loggers==1.0.5
246
+ srsly==2.5.2
247
+ sse-starlette==3.0.3
248
+ stack-data==0.6.3
249
+ starlette==0.50.0
250
+ sympy==1.13.1
251
+ tabulate==0.9.0
252
+ tenacity==9.1.2
253
+ tensorboard==2.20.0
254
+ tensorboard-data-server==0.7.2
255
+ tensordict==0.8.3
256
+ thefuzz==0.22.1
257
+ thinc==8.3.10
258
+ threadpoolctl==3.6.0
259
+ tiktoken==0.12.0
260
+ together==1.5.31
261
+ tokenizers==0.22.1
262
+ tomli==2.3.0
263
+ torch==2.6.0+cu124
264
+ torchaudio==2.6.0
265
+ torchdata==0.11.0
266
+ torchvision==0.21.0
267
+ tqdm==4.67.1
268
+ traitlets==5.14.3
269
+ transformers==4.57.3
270
+ triton==3.2.0
271
+ typer==0.19.2
272
+ typer-slim==0.20.0
273
+ typing_extensions==4.15.0
274
+ typing-inspection==0.4.2
275
+ tzdata==2025.2
276
+ urllib3==2.5.0
277
+ uvicorn==0.38.0
278
+ uvloop==0.22.1
279
+ verl==0.5.0.dev0
280
+ virtualenv==20.35.4
281
+ vllm==0.8.5
282
+ wandb==0.23.0
283
+ wasabi==1.1.3
284
+ watchfiles==1.1.1
285
+ wcwidth==0.2.14
286
+ weasel==0.4.3
287
+ websockets==15.0.1
288
+ Werkzeug==3.1.4
289
+ wheel==0.45.1
290
+ wrapt==2.0.1
291
+ xformers==0.0.29.post2
292
+ xgrammar==0.1.18
293
+ xxhash==3.6.0
294
+ yarl==1.22.0
295
+ zipp==3.23.0
296
+ ragen==0.1
297
+ verl==0.5.0.dev0
298
+ autocommand==2.2.2
299
+ backports.tarfile==1.2.0
300
+ importlib_metadata==8.0.0
301
+ inflect==7.3.1
302
+ jaraco.collections==5.1.0
303
+ jaraco.context==5.3.0
304
+ jaraco.functools==4.0.1
305
+ jaraco.text==3.12.1
306
+ more-itertools==10.3.0
307
+ packaging==24.2
308
+ platformdirs==4.2.2
309
+ tomli==2.0.1
310
+ typeguard==4.3.0
311
+ typing_extensions==4.12.2
312
+ wheel==0.45.1
313
+ zipp==3.19.2
wandb/run-20260602_163908-h5c4lnf8/files/wandb-metadata.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.19",
4
+ "startedAt": "2026-06-02T08:39:08.900060Z",
5
+ "args": [
6
+ "--node-ip-address=10.119.99.71",
7
+ "--node-manager-port=40857",
8
+ "--object-store-name=/tmp/ray/session_2026-06-02_16-37-20_802181_63/sockets/plasma_store",
9
+ "--raylet-name=/tmp/ray/session_2026-06-02_16-37-20_802181_63/sockets/raylet",
10
+ "--redis-address=None",
11
+ "--metrics-agent-port=61011",
12
+ "--logging-rotate-bytes=536870912",
13
+ "--logging-rotate-backup-count=5",
14
+ "--runtime-env-agent-port=64336",
15
+ "--gcs-address=10.119.99.71:58508",
16
+ "--session-name=session_2026-06-02_16-37-20_802181_63",
17
+ "--temp-dir=/tmp/ray",
18
+ "--webui=127.0.0.1:8265",
19
+ "--cluster-id=84bd6fc9f3347ae38148ba1fc34ddb17acef60e63f043d1f96cdb6a1",
20
+ "--startup-token=112",
21
+ "--worker-launch-time-ms=1780389444445",
22
+ "--node-id=b414ad5d57488276b4be7a2e773fdd2e0d34dafbb1c67008822cb310",
23
+ "--runtime-env-hash=-839022692"
24
+ ],
25
+ "program": "/root/local/miniconda3/envs/ragen/lib/python3.10/site-packages/ray/_private/workers/default_worker.py",
26
+ "git": {
27
+ "remote": "https://github.com/Harry-mic/SCOUT",
28
+ "commit": "b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0"
29
+ },
30
+ "email": "haoyu-wa22@mails.tsinghua.edu.cn",
31
+ "root": "/mnt/general/wanghy/RAGEN",
32
+ "host": "pt-8d304999aaac4ce1bdbc8c16dc65a596-worker-0",
33
+ "executable": "/root/local/miniconda3/envs/ragen/bin/python",
34
+ "cpu_count": 64,
35
+ "cpu_count_logical": 128,
36
+ "gpu": "NVIDIA H100 80GB HBM3",
37
+ "gpu_count": 8,
38
+ "disk": {
39
+ "/": {
40
+ "total": "60129542144000",
41
+ "used": "3272704"
42
+ }
43
+ },
44
+ "memory": {
45
+ "total": "2159611842560"
46
+ },
47
+ "gpu_nvidia": [
48
+ {
49
+ "name": "NVIDIA H100 80GB HBM3",
50
+ "memoryTotal": "85520809984",
51
+ "cudaCores": 16896,
52
+ "architecture": "Hopper",
53
+ "uuid": "GPU-089f171c-391c-dbe6-9732-e9dcab584b2a"
54
+ },
55
+ {
56
+ "name": "NVIDIA H100 80GB HBM3",
57
+ "memoryTotal": "85520809984",
58
+ "cudaCores": 16896,
59
+ "architecture": "Hopper",
60
+ "uuid": "GPU-dd51e744-372c-c614-a72c-669a2e06a129"
61
+ },
62
+ {
63
+ "name": "NVIDIA H100 80GB HBM3",
64
+ "memoryTotal": "85520809984",
65
+ "cudaCores": 16896,
66
+ "architecture": "Hopper",
67
+ "uuid": "GPU-b90b5f70-0fa3-34a8-3493-47d296746407"
68
+ },
69
+ {
70
+ "name": "NVIDIA H100 80GB HBM3",
71
+ "memoryTotal": "85520809984",
72
+ "cudaCores": 16896,
73
+ "architecture": "Hopper",
74
+ "uuid": "GPU-c0dd667b-31c0-dafb-d08e-1ad2118cb424"
75
+ },
76
+ {
77
+ "name": "NVIDIA H100 80GB HBM3",
78
+ "memoryTotal": "85520809984",
79
+ "cudaCores": 16896,
80
+ "architecture": "Hopper",
81
+ "uuid": "GPU-2d1ce5d0-61a8-a6bc-0add-5cbd5c318090"
82
+ },
83
+ {
84
+ "name": "NVIDIA H100 80GB HBM3",
85
+ "memoryTotal": "85520809984",
86
+ "cudaCores": 16896,
87
+ "architecture": "Hopper",
88
+ "uuid": "GPU-54dd1f4c-02ad-838f-3539-9944b7e06aef"
89
+ },
90
+ {
91
+ "name": "NVIDIA H100 80GB HBM3",
92
+ "memoryTotal": "85520809984",
93
+ "cudaCores": 16896,
94
+ "architecture": "Hopper",
95
+ "uuid": "GPU-ac5dd66a-cc74-66d9-e1c1-07dfad209fcc"
96
+ },
97
+ {
98
+ "name": "NVIDIA H100 80GB HBM3",
99
+ "memoryTotal": "85520809984",
100
+ "cudaCores": 16896,
101
+ "architecture": "Hopper",
102
+ "uuid": "GPU-26a4af72-9a63-2169-5525-ca7c5848b780"
103
+ }
104
+ ],
105
+ "cudaVersion": "12.4",
106
+ "writerId": "xujgpyta9fobjr0dv9c8irk09puw6cyf"
107
+ }
wandb/run-20260602_163908-h5c4lnf8/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"rollout/chosen_in_group_reward_mean":-1.5,"timing_s/values":1.2375335600227118,"global_seqlen/min":47115,"response_length/clip_ratio":0.0078125,"val-env/SimpleSudoku/steps_remaining":0.2350260416666666,"global_seqlen/max":47904,"_runtime":15051.57103574,"critic/rewards/max":-1.5,"rollout/chosen_in_group_reward_std":0,"val-aux/unknown/reward/best@16/mean":-1.5,"critic/score/mean":-1.5,"val-aux/unknown/reward/worst@32/std":0,"val-aux/unknown/reward/best@128/mean":-1.5,"train/SimpleSudoku/episodic_return":0,"perf/throughput":612.8385968510593,"val-aux/unknown/reward/worst@256/mean":-1.5,"val-env/SimpleSudoku/success":0,"val-env/SimpleSudoku/non-zero/cells_filled":0.7333333333333334,"val-env/SimpleSudoku/non-zero/pass@16":1,"train/SimpleSudoku/pass@16":0,"train/SimpleSudoku/valid_numbers":0,"train/SimpleSudoku/steps_remaining":0.14843749999999994,"train/SimpleSudoku/non-zero/success":1,"global_seqlen/minmax_diff":789,"global_seqlen/balanced_min":47475,"perf/cpu_memory_used_gb":145.84748458862305,"val-aux/unknown/reward/best@8/mean":-1.5,"critic/vf_loss":1.804428694640592e-05,"train/SimpleSudoku/success":0,"response_length_non_aborted/clip_ratio":0.0078125,"global_seqlen/mean":47479.5,"timing_s/gen":16.51886278297752,"critic/score/max":-1.5,"val-aux/unknown/reward/best@32/std":0,"train/charts/avg_episode_return":0,"val-aux/unknown/reward/best@64/std":0,"val-aux/unknown/reward/std@512":0,"train/SimpleSudoku/error":0,"actor/pg_clipfrac":0.1909701218828559,"train/SimpleSudoku/action_is_effective":0.0078125,"val-aux/unknown/reward/best@256/mean":-1.5,"train/SimpleSudoku/non-zero/cells_remaining":0.33333333333333326,"val-aux/unknown/reward/worst@256/std":0,"train/SimpleSudoku/correct_placement":0.007812499999999999,"rollout/in_group_max":-1.5,"train/SimpleSudoku/cells_filled":0.08593749999999997,"critic/advantages/min":-22.47217559814453,"perf/total_num_tokens":379836,"timing_s/testing":44.64179565664381,"rollout/in_group_std":0,"critic/rewards/min":-1.5,"val-env/SimpleSudoku/non-zero/steps_remaining":1.2666666666666664,"val-env/SimpleSudoku/non-zero/cells_remaining":0.33333333333333326,"timing_per_token_ms/update_critic":0.014127838562066414,"val-env/SimpleSudoku/correct_placement":0.01028645833333333,"val-env/SimpleSudoku/cells_remaining":0.06184895833333332,"val-env/response_length":261.642578125,"response_length/mean":2967.4609375,"train/SimpleSudoku/non-zero/action_is_effective":0.06666666666666667,"train/SimpleSudoku/non-zero/correct_placement":0.06666666666666667,"val-env/SimpleSudoku/raw_reward":0,"val-aux/unknown/reward/best@4/mean":-1.5,"rollout/ref_log_prob":-2.0205864906311035,"prompt_length/clip_ratio":0.0078125,"val-aux/unknown/reward/best@8/std":0,"response_length_non_aborted/mean":2967.4609375,"response_length_non_aborted/min":2909,"val-env/charts/avg_episode_return":0,"val-aux/unknown/reward/best@32/mean":-1.5,"val-aux/unknown/reward/worst@64/mean":-1.5,"val-env/SimpleSudoku/action_is_valid":0.012369791666666668,"val/generations":{"sha256":"dd443c58fa2c693fedfbf789ef478f1ee25a49c0f970b7bc47ad234c6020194d","ncols":61,"log_mode":"IMMUTABLE","path":"media/table/val/generations_199_dd443c58fa2c693fedfb.table.json","artifact_path":"wandb-client-artifact://61fu3yfy3g4rm11un0fxwpk552zc734xbs2q1wp769zalezifcxa0owsv9mqo28oxbiprzway8rjselmnj2qhonkyltlb7zk37a76ngwp6h1ktfjshvuknsjtkiwymut/val/generations.table.json","size":5240215,"_latest_artifact_path":"wandb-client-artifact://8rposlbagcy12m9e3jac5z79e1xe1sa1064b55ijja2x0qhfpp3xqv1lizcleylgte58krt90gd61dgwhurookkml4jmdm4a7pg5ykt1snj47wp9upcsfujzqjdpcrb9:latest/val/generations.table.json","nrows":21,"_type":"table-file"},"val-aux/unknown/reward/best@2/std":0,"val-aux/unknown/reward/worst@16/std":0,"val-aux/unknown/reward/worst@512/std":0,"rollout/chosen_in_group_reward_max":-1.5,"perf/max_memory_allocated_gb":85.0548768043518,"timing_s/adv":0.1450896319001913,"timing_per_token_ms/update_actor":0.016082790392032507,"critic/returns/max":-1.5,"val-aux/unknown/reward/worst@64/std":0,"timing_per_token_ms/gen":0.04348957516547322,"val-env/SimpleSudoku/non-zero/num_actions":1,"val-aux/unknown/reward/best@256/std":0,"val-env/SimpleSudoku/episodic_return":0,"val-env/SimpleSudoku/non-zero/correct_placement":0.06666666666666664,"timing_per_token_ms/ref":0.004577696253015235,"val-aux/unknown/reward/worst@128/mean":-1.5,"val-env/SimpleSudoku/error":0,"critic/rewards/mean":-1.5,"critic/returns/min":-1.5,"train/SimpleSudoku/non-zero/num_actions":1,"response_length_non_aborted/max":3143,"val-aux/unknown/reward/worst@16/mean":-1.5,"perf/time_per_step":77.47472212743014,"timing_per_token_ms/values":0.003258073379097062,"critic/advantages/mean":5.963733951119821e-09,"prompt_length/max":1,"val-env/SimpleSudoku/action_is_effective":0.012369791666666668,"val-aux/unknown/reward/best@2/mean":-1.5,"train/SimpleSudoku/cells_remaining":0.03906249999999999,"train/SimpleSudoku/non-zero/cells_filled":0.7333333333333331,"critic/grad_norm":0.13168655754998326,"timing_s/step":77.47472212743014,"critic/lr":1e-05,"val-core/unknown/reward/best@512/std":0,"critic/values/min":-1.6484375,"val-env/SimpleSudoku/non-zero/success":1,"rollout/in_group_mean":-1.5,"_step":200,"critic/returns/mean":-1.5,"critic/vpred_mean":-1.4995767399668694,"val-aux/unknown/reward/best@64/mean":-1.5,"val-aux/unknown/reward/worst@32/mean":-1.5,"train/SimpleSudoku/non-zero/steps_remaining":1.2666666666666662,"_timestamp":1.7804046017678175e+09,"response/aborted_ratio":0,"perf/mfu/critic":0.20693354739183392,"val-aux/unknown/reward/worst@512/mean":-1.5,"response_length/max":3143,"response_length/min":2909,"critic/score/min":-1.5,"prompt_length/min":0,"rollout/chosen_in_group_std":0,"timing_s/total":14922.658925771713,"train/SimpleSudoku/action_is_valid":0.0078125,"val-aux/unknown/reward/best@4/std":0,"val-env/SimpleSudoku/valid_numbers":0,"timing_s/update_actor":6.108822771348059,"actor/lr":1e-06,"train/SimpleSudoku/num_actions":0,"val-core/unknown/reward/best@512/mean":-1.5,"val-aux/unknown/reward/worst@2/std":0,"rollout/in_group_reward_mean":-1.5,"val-aux/unknown/reward/best@128/std":0,"train/response_length":284.84375,"val-env/SimpleSudoku/pass@16":0,"val-aux/unknown/reward/worst@4/std":0,"timing_per_token_ms/adv":0.00038197967517610574,"val-aux/unknown/reward/worst@128/std":0,"critic/vf_clipfrac":0,"val-aux/unknown/reward/worst@8/mean":-1.5,"timing_s/update_critic":5.3662616880610585,"critic/advantages/max":16.816442489624023,"timing_s/old_log_prob":1.7121353344991803,"actor/entropy":0.059398408979177475,"actor/ppo_kl":0.25673066452145576,"val-aux/unknown/reward/best@16/std":0,"perf/max_memory_reserved_gb":95.701171875,"timing_s/ref":1.7387738339602947,"val-core/unknown/reward/mean@512":-1.5,"val-env/SimpleSudoku/non-zero/action_is_valid":0.06666666666666664,"critic/vf_explained_var":-6.65411901473999,"train/SimpleSudoku/raw_reward":0,"val-env/SimpleSudoku/num_actions":0,"rollout/in_group_reward_max":-1.5,"val-env/SimpleSudoku/cells_filled":0.13606770833333334,"val-aux/unknown/reward/worst@2/mean":-1.5,"_wandb":{"runtime":15051},"val-aux/unknown/reward/worst@8/std":0,"rollout/in_group_reward_std":0,"critic/values/mean":-1.5013045072555542,"actor/pg_loss":0.03950008543324657,"rollout/chosen_in_group_mean":-1.5,"rollout/chosen_in_group_max":-1.5,"train/SimpleSudoku/non-zero/action_is_valid":0.06666666666666667,"global_seqlen/balanced_max":47507,"perf/mfu/actor":0.18168074867067482,"val-env/SimpleSudoku/non-zero/action_is_effective":0.06666666666666664,"actor/pg_clipfrac_lower":0.018831426088581793,"actor/grad_norm":31.330472588539124,"val-aux/unknown/reward/worst@4/mean":-1.5,"prompt_length/mean":0.0078125,"critic/values/max":-1.3046875,"train/SimpleSudoku/non-zero/pass@16":1}
wandb/run-20260602_163908-h5c4lnf8/run-h5c4lnf8.wandb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34f7d0a9597f8faa8c4608f71242603dca084d186fbe07b985060ea460fb8b72
3
+ size 6617712
wandb/run-20260602_211333-zvukmwu2/files/wandb-metadata.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.19",
4
+ "startedAt": "2026-06-02T13:13:33.724901Z",
5
+ "args": [
6
+ "--node-ip-address=10.119.96.124",
7
+ "--node-manager-port=35733",
8
+ "--object-store-name=/tmp/ray/session_2026-06-02_21-11-54_431321_63/sockets/plasma_store",
9
+ "--raylet-name=/tmp/ray/session_2026-06-02_21-11-54_431321_63/sockets/raylet",
10
+ "--redis-address=None",
11
+ "--metrics-agent-port=62363",
12
+ "--logging-rotate-bytes=536870912",
13
+ "--logging-rotate-backup-count=5",
14
+ "--runtime-env-agent-port=54255",
15
+ "--gcs-address=10.119.96.124:51608",
16
+ "--session-name=session_2026-06-02_21-11-54_431321_63",
17
+ "--temp-dir=/tmp/ray",
18
+ "--webui=127.0.0.1:8265",
19
+ "--cluster-id=c6183f59462744eca1a6543543b0e4c99bbde7f8ade67682111b7ab9",
20
+ "--startup-token=112",
21
+ "--worker-launch-time-ms=1780405917770",
22
+ "--node-id=11ba2a93c7bcc50c0f55b4204da5cff04050cbc6b6a9c7be39a5550f",
23
+ "--runtime-env-hash=-839022692"
24
+ ],
25
+ "program": "/root/local/miniconda3/envs/ragen/lib/python3.10/site-packages/ray/_private/workers/default_worker.py",
26
+ "git": {
27
+ "remote": "https://github.com/Harry-mic/SCOUT",
28
+ "commit": "b365f5022f55c02c8a7077c3fcd7d0af6abdc5f0"
29
+ },
30
+ "email": "haoyu-wa22@mails.tsinghua.edu.cn",
31
+ "root": "/mnt/general/wanghy/RAGEN",
32
+ "host": "pt-c065f0fd87d04b4a91e5f0c014d981ec-worker-0",
33
+ "executable": "/root/local/miniconda3/envs/ragen/bin/python",
34
+ "cpu_count": 64,
35
+ "cpu_count_logical": 128,
36
+ "gpu": "NVIDIA H100 80GB HBM3",
37
+ "gpu_count": 8,
38
+ "disk": {
39
+ "/": {
40
+ "total": "60129542144000",
41
+ "used": "3268608"
42
+ }
43
+ },
44
+ "memory": {
45
+ "total": "2159579938816"
46
+ },
47
+ "gpu_nvidia": [
48
+ {
49
+ "name": "NVIDIA H100 80GB HBM3",
50
+ "memoryTotal": "85520809984",
51
+ "cudaCores": 16896,
52
+ "architecture": "Hopper",
53
+ "uuid": "GPU-e7eef8e0-be1e-0495-4dfa-3249b800ed7e"
54
+ },
55
+ {
56
+ "name": "NVIDIA H100 80GB HBM3",
57
+ "memoryTotal": "85520809984",
58
+ "cudaCores": 16896,
59
+ "architecture": "Hopper",
60
+ "uuid": "GPU-0d364614-ae2e-9a5e-89af-fc4d4ebb1587"
61
+ },
62
+ {
63
+ "name": "NVIDIA H100 80GB HBM3",
64
+ "memoryTotal": "85520809984",
65
+ "cudaCores": 16896,
66
+ "architecture": "Hopper",
67
+ "uuid": "GPU-96317307-9273-75d9-69f8-e96dcd2de164"
68
+ },
69
+ {
70
+ "name": "NVIDIA H100 80GB HBM3",
71
+ "memoryTotal": "85520809984",
72
+ "cudaCores": 16896,
73
+ "architecture": "Hopper",
74
+ "uuid": "GPU-ded0782b-667b-19b0-8394-a812a841980e"
75
+ },
76
+ {
77
+ "name": "NVIDIA H100 80GB HBM3",
78
+ "memoryTotal": "85520809984",
79
+ "cudaCores": 16896,
80
+ "architecture": "Hopper",
81
+ "uuid": "GPU-f3eb01ef-538d-33ef-b591-50d93e046cfe"
82
+ },
83
+ {
84
+ "name": "NVIDIA H100 80GB HBM3",
85
+ "memoryTotal": "85520809984",
86
+ "cudaCores": 16896,
87
+ "architecture": "Hopper",
88
+ "uuid": "GPU-961d5026-538d-c41b-d5c3-16146c87ac32"
89
+ },
90
+ {
91
+ "name": "NVIDIA H100 80GB HBM3",
92
+ "memoryTotal": "85520809984",
93
+ "cudaCores": 16896,
94
+ "architecture": "Hopper",
95
+ "uuid": "GPU-deaa8300-97f0-d013-b595-43bd8f825d0e"
96
+ },
97
+ {
98
+ "name": "NVIDIA H100 80GB HBM3",
99
+ "memoryTotal": "85520809984",
100
+ "cudaCores": 16896,
101
+ "architecture": "Hopper",
102
+ "uuid": "GPU-b2bd9595-a04d-610c-e532-bf97c99afd61"
103
+ }
104
+ ],
105
+ "cudaVersion": "12.4",
106
+ "writerId": "64uxfxiycfatedh1bs7sc8pav6cd1wdm"
107
+ }
wandb/run-20260602_211333-zvukmwu2/run-zvukmwu2.wandb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64b748a1e6c6b30bb4bde2ced021b2d0a3cb96454a0e05054d7ba2f38a6a1ffe
3
+ size 6774443
wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_199_94689ae7e83ee2520f96.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_59_8270095eb69e08a912c5.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_79_cd8e96d54a2f6ead54c9.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260603_105223-opxt7tw0/files/media/table/val/generations_99_ad31415a979365766dec.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260603_105223-opxt7tw0/run-opxt7tw0.wandb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a1c89f017d27223923c3cec08481a92b3fab45474468464701a31183eed3c5c
3
+ size 7026915
wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_0_6dd20cc41529fc260e77.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_19_b65fd772de4381cf211a.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_29_339db967622b943b1711.table.json ADDED
The diff for this file is too large to render. See raw diff
 
wandb/run-20260605_101802-qcsqassg/files/media/table/val/generations_39_d5aaa2038a99eb45c6ed.table.json ADDED
The diff for this file is too large to render. See raw diff