GuoruiSong commited on
Commit
22a49bf
·
verified ·
1 Parent(s): b50f36e

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. reward/wandb/run-20260529_221554-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py +339 -0
  2. reward/wandb/run-20260529_221554-fmmkx1a5/files/config.yaml +281 -0
  3. reward/wandb/run-20260529_221554-fmmkx1a5/files/output.log +4 -0
  4. reward/wandb/run-20260529_221554-fmmkx1a5/files/requirements.txt +157 -0
  5. reward/wandb/run-20260529_221554-fmmkx1a5/files/wandb-metadata.json +98 -0
  6. reward/wandb/run-20260529_221554-fmmkx1a5/files/wandb-summary.json +1 -0
  7. reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug-core.log +18 -0
  8. reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug-internal.log +28 -0
  9. reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug.log +25 -0
  10. reward/wandb/run-20260529_221554-fmmkx1a5/run-fmmkx1a5.wandb +0 -0
  11. reward/wandb/run-20260530_084258-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py +339 -0
  12. reward/wandb/run-20260530_084258-fmmkx1a5/files/config.yaml +281 -0
  13. reward/wandb/run-20260530_084258-fmmkx1a5/files/output.log +4 -0
  14. reward/wandb/run-20260530_084258-fmmkx1a5/files/requirements.txt +157 -0
  15. reward/wandb/run-20260530_084258-fmmkx1a5/files/wandb-metadata.json +98 -0
  16. reward/wandb/run-20260530_084258-fmmkx1a5/files/wandb-summary.json +1 -0
  17. reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug-core.log +18 -0
  18. reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug-internal.log +28 -0
  19. reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug.log +25 -0
  20. reward/wandb/run-20260530_084258-fmmkx1a5/run-fmmkx1a5.wandb +0 -0
  21. reward/wandb/run-20260530_094731-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py +339 -0
  22. reward/wandb/run-20260530_094731-fmmkx1a5/files/output.log +4 -0
  23. reward/wandb/run-20260530_094731-fmmkx1a5/files/requirements.txt +157 -0
  24. reward/wandb/run-20260530_130037-fmmkx1a5/files/config.yaml +229 -0
  25. reward/wandb/run-20260530_130037-fmmkx1a5/files/wandb-metadata.json +26 -0
  26. reward/wandb/run-20260530_130037-fmmkx1a5/files/wandb-summary.json +1 -0
  27. reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug-core.log +18 -0
  28. reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug-internal.log +28 -0
  29. reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug.log +25 -0
  30. reward/wandb/run-20260530_130037-fmmkx1a5/run-fmmkx1a5.wandb +0 -0
  31. reward/wandb/run-20260530_140614-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py +339 -0
  32. reward/wandb/run-20260530_140614-fmmkx1a5/files/config.yaml +281 -0
  33. reward/wandb/run-20260530_140614-fmmkx1a5/files/output.log +4 -0
  34. reward/wandb/run-20260530_140614-fmmkx1a5/files/requirements.txt +157 -0
  35. reward/wandb/run-20260530_140614-fmmkx1a5/files/wandb-metadata.json +98 -0
  36. reward/wandb/run-20260530_140614-fmmkx1a5/files/wandb-summary.json +1 -0
  37. reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug-core.log +18 -0
  38. reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug-internal.log +28 -0
  39. reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug.log +25 -0
  40. reward/wandb/run-20260530_140614-fmmkx1a5/run-fmmkx1a5.wandb +0 -0
  41. reward/wandb/run-20260530_172226-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py +339 -0
  42. reward/wandb/run-20260530_172226-fmmkx1a5/files/config.yaml +281 -0
  43. reward/wandb/run-20260530_172226-fmmkx1a5/files/output.log +4 -0
  44. reward/wandb/run-20260530_172226-fmmkx1a5/files/requirements.txt +157 -0
  45. reward/wandb/run-20260530_172226-fmmkx1a5/files/wandb-metadata.json +98 -0
  46. reward/wandb/run-20260530_172226-fmmkx1a5/files/wandb-summary.json +1 -0
  47. reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug-core.log +18 -0
  48. reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug-internal.log +28 -0
  49. reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug.log +25 -0
  50. reward/wandb/run-20260530_172226-fmmkx1a5/run-fmmkx1a5.wandb +0 -0
reward/wandb/run-20260529_221554-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import math_utils_v
3
+ import nest_asyncio
4
+ from concurrent.futures import ThreadPoolExecutor
5
+ import asyncio
6
+ import re
7
+ from termcolor import cprint
8
+ from omegaconf import MISSING
9
+ from omegaconf import DictConfig, ListConfig, OmegaConf
10
+ from typing import List, Union
11
+ import os
12
+ from collections import defaultdict
13
+ import sys
14
+
15
+ REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
+ sys.path.insert(0, REPO_ROOT)
17
+
18
+ import wandb
19
+ from train.utils import flatten_omega_conf, ensure_wandb_run_id
20
+
21
+ def resolve_media_abs_path(sample: dict, dataset_root: str | None, media_type: str = "image") -> str | None:
22
+ p = sample.get(f"{media_type}_abs_path")
23
+ if p is None:
24
+ p = sample.get(media_type) or sample.get(f"{media_type}_path")
25
+ if p is None:
26
+ return None
27
+ if not os.path.isabs(p) and dataset_root:
28
+ p = os.path.join(dataset_root, p)
29
+ try:
30
+ return os.path.abspath(p)
31
+ except Exception:
32
+ return p
33
+
34
+ def get_config():
35
+ cli_conf = OmegaConf.from_cli()
36
+ yaml_conf = OmegaConf.load(cli_conf.config)
37
+ conf = OmegaConf.merge(yaml_conf, cli_conf)
38
+ return conf
39
+
40
+ def remove_endoftext(obj: Union[str, List[str]]) -> Union[str, List[str]]:
41
+ token = '<|endoftext|>'
42
+ if isinstance(obj, str):
43
+ return obj.replace(token, '')
44
+ if isinstance(obj, list):
45
+ return [s.replace(token, '') if isinstance(s, str) else s for s in obj]
46
+ raise TypeError("Expected str or list of str")
47
+
48
+
49
+ if __name__ == "__main__":
50
+
51
+ config = get_config()
52
+ run = None
53
+ if config.experiment.function == "train":
54
+ existing_run_id = OmegaConf.select(config, "wandb.run_id", default=None)
55
+ run_id = ensure_wandb_run_id(config)
56
+ resume_wandb_run = config.wandb.resume
57
+ if existing_run_id is None:
58
+ resume_wandb_run = False
59
+ wandb_config = {k: v for k, v in flatten_omega_conf(config, resolve=True)}
60
+ run = wandb.init(
61
+ project=config.experiment.project,
62
+ entity=config.wandb.get("entity", None),
63
+ id=run_id,
64
+ resume=resume_wandb_run,
65
+ config=wandb_config,
66
+ reinit=True,
67
+ name=config.experiment.project,
68
+ )
69
+
70
+ project_name = config.experiment.project
71
+
72
+ if config.experiment.current_epoch == 1:
73
+ pretrained_model = config.model.pretrained_model
74
+ else:
75
+ pretrained_model = "../" + project_name + "/ckpt/" + config.model.optimized_name
76
+
77
+ if config.experiment.function == "train":
78
+ shrink = config.training.shrink
79
+ dataset = config.dataset.train_dataset
80
+ outputs_name = "rl-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
81
+
82
+ elif config.experiment.function == "evaluation":
83
+ dataset = config.evaluation.eval_dataset
84
+ outputs_name = "eval-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
85
+
86
+ file_name = "../" + project_name + "/temp_data/outputs-" + outputs_name + ".json"
87
+
88
+ with open(file_name, 'r') as f:
89
+ data = json.load(f)
90
+
91
+ index_list = []
92
+ extracted_output_list = []
93
+ response_length_list = []
94
+ for i in range(len(data)):
95
+ data[i]["correctness"] = []
96
+ response_length_list += data[i]["response_length"]
97
+ index_list += [i] * len(data[i]["extracted_output"])
98
+ extracted_output_list += remove_endoftext(data[i]["extracted_output"])
99
+
100
+ nest_asyncio.apply()
101
+
102
+ async def get_correctness_all():
103
+ executor = ThreadPoolExecutor(max_workers=64)
104
+ tasks = []
105
+
106
+ for p in range(len(index_list)):
107
+ pred = extracted_output_list[p]
108
+ idx = index_list[p]
109
+
110
+ # 选择题正确性匹配逻辑
111
+ if config.dataset.data_type == "video_reverse" or config.evaluation.data_type == "video_reverse":
112
+ gt = data[idx].get("response", "")
113
+
114
+ async def mcq_check(p_str, g_str):
115
+ if p_str in g_str or g_str in p_str:
116
+ return True
117
+
118
+ p_str = str(p_str).strip()
119
+ g_str = str(g_str).strip()
120
+ p_match = re.search(r'^([A-Z])[\.\s]', p_str)
121
+ g_match = re.search(r'^([A-Z])[\.\s]', g_str)
122
+ if p_match and g_match:
123
+ return p_match.group(1) == g_match.group(1)
124
+ return g_str in p_str
125
+
126
+ tasks.append(mcq_check(pred, gt))
127
+ else:
128
+ gt = data[idx].get("ground_truth_answer", "")
129
+ tasks.append(math_utils_v.is_equal(pred, gt, executor))
130
+
131
+ return await asyncio.gather(*tasks)
132
+
133
+ correctness_all = asyncio.run(get_correctness_all())
134
+ for p, ok in enumerate(correctness_all):
135
+ index_i = index_list[p]
136
+ data[index_i]["correctness"].append(bool(ok))
137
+
138
+ # =========================================================================
139
+ # 核心新增逻辑:跨样本群组计算 T-GRPO 奖励 和 逆转无偏奖励
140
+ # =========================================================================
141
+
142
+ # 1. 按照 data_id 分组映射索引
143
+ grouped_data = defaultdict(lambda: {
144
+ "forward_False": [], "backward_False": [],
145
+ "forward_True": [], "backward_True": []
146
+ })
147
+
148
+ for i in range(len(data)):
149
+ d_id = data[i].get("data_id")
150
+ if d_id is None:
151
+ continue
152
+ r_type = data[i].get("reversal_type", "forward")
153
+ is_shuf = str(data[i].get("is_shuffled", False))
154
+ grouped_data[d_id][f"{r_type}_{is_shuf}"].append(i)
155
+
156
+ # 计算并应用群组奖励
157
+ all_temporal_bonuses = [] # 新增:记录所有的时序红利
158
+ all_unbiased_bonuses = [] # 新增:记录所有的无偏红利
159
+
160
+ # 2. 计算并应用群组奖励
161
+ for d_id, group in grouped_data.items():
162
+
163
+ def get_acc(key):
164
+ if not group[key]: return 0.0
165
+ idx = group[key][0]
166
+ corr = data[idx]["correctness"]
167
+ return sum(corr) / len(corr) if len(corr) > 0 else 0.0
168
+
169
+ # 获取四组情况的正确率
170
+ acc_f_ord = get_acc("forward_False")
171
+ acc_f_shuf = get_acc("forward_True")
172
+ acc_b_ord = get_acc("backward_False")
173
+ acc_b_shuf = get_acc("backward_True")
174
+
175
+ # T-GRPO 奖励: 顺序正确率 >= 0.8 * 打乱正确率,得 0.3
176
+ f_temporal_bonus = 0.3 if acc_f_ord >= 0.8 * acc_f_shuf else 0.0
177
+ b_temporal_bonus = 0.3 if acc_b_ord >= 0.8 * acc_b_shuf else 0.0
178
+
179
+ # 逆转无偏奖励: 正反正确率差值 <= 0.2,且都不是彻底全错,得 0.3
180
+ unbiased_bonus = 0.0
181
+ if abs(acc_f_ord - acc_b_ord) <= 0.2 and (acc_f_ord > 0.1 or acc_b_ord > 0.1):
182
+ unbiased_bonus = 0.3
183
+
184
+ # 新增:将当前组的奖励记录下来用于统计
185
+ if group["forward_False"]:
186
+ all_temporal_bonuses.append(f_temporal_bonus)
187
+ all_unbiased_bonuses.append(unbiased_bonus)
188
+ if group["backward_False"]:
189
+ all_temporal_bonuses.append(b_temporal_bonus)
190
+ all_unbiased_bonuses.append(unbiased_bonus)
191
+
192
+ # 仅将奖励发放给 顺序组(is_shuffled=False) 中回答正确的样本
193
+ def apply_bonus(key, temporal_bonus, unbiased_bonus):
194
+ if not group[key]: return
195
+ idx = group[key][0]
196
+ raw_rewards = []
197
+ for is_correct in data[idx]["correctness"]:
198
+ if is_correct:
199
+ # 基础分 1.0 + 时序红利 + 无偏红利
200
+ raw_rewards.append(1.0 + temporal_bonus + unbiased_bonus)
201
+ else:
202
+ raw_rewards.append(0.0)
203
+ data[idx]["raw_rewards"] = raw_rewards
204
+
205
+ apply_bonus("forward_False", f_temporal_bonus, unbiased_bonus)
206
+ apply_bonus("backward_False", b_temporal_bonus, unbiased_bonus)
207
+
208
+ # =========================================================================
209
+
210
+ def z_score_normalize(lst):
211
+ mean = sum(lst) / len(lst) if len(lst) > 0 else 0.0
212
+ std = (sum((x - mean) ** 2 for x in lst) / len(lst)) ** 0.5 if len(lst) > 0 else 0.0
213
+ if std == 0:
214
+ return [0 for _ in lst]
215
+ return [(x - mean) / std for x in lst]
216
+
217
+ final_data = []
218
+ ordered_correctness = [] # 用于日志打印,不记录被打乱的实验数据
219
+
220
+ for i in range(len(data)):
221
+ # 丢弃打乱的对照组,它们仅仅用于上面的计算参照,不进入强化学习
222
+ if data[i].get("is_shuffled", False):
223
+ continue
224
+
225
+ ordered_correctness.extend(data[i]["correctness"])
226
+
227
+ # 如果部分数据没有走过分组逻辑,默认回退为原始 correct 分数
228
+ raw_rewards = data[i].get("raw_rewards", [float(c) for c in data[i]["correctness"]])
229
+ lengths = data[i]["response_length"]
230
+
231
+ # 长度惩罚
232
+ if config.reward.strict_len_check:
233
+ for j in range(len(lengths)):
234
+ if OmegaConf.select(config, "rollout.max_gen_length", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_gen_length - 5:
235
+ raw_rewards[j] = 0.0
236
+ if OmegaConf.select(config, "rollout.max_token", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_token - 5:
237
+ raw_rewards[j] = 0.0
238
+
239
+ # Z-Score 优势归一化
240
+ rewards = z_score_normalize(raw_rewards)
241
+ data[i]["rewards"] = rewards
242
+
243
+ if config.experiment.function == "train":
244
+ proportion = sum(data[i]["correctness"]) / len(data[i]["correctness"]) if len(data[i]["correctness"]) > 0 else 0.0
245
+ # 如果全部回答都是错的,或者全是对的(无差别区分度),则剔除该样本
246
+ if proportion > 0.95 or proportion < 0.05:
247
+ continue
248
+
249
+ for j in range(len(rewards)):
250
+ data_i = {}
251
+ data_i["prompt"] = data[i]["prompt"]
252
+ data_i["reward"] = rewards[j]
253
+ data_i["response"] = data[i]["full_output"][j]
254
+ data_i["step_map"] = data[i]["step_map"][j]
255
+
256
+ # 保留其他需要的上下文 ID
257
+ data_i["data_id"] = data[i].get("data_id")
258
+ data_i["reversal_type"] = data[i].get("reversal_type")
259
+
260
+ if "image_token_ids" in data[i]:
261
+ data_i["image_token_ids"] = data[i]["image_token_ids"]
262
+
263
+ p_video_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "video")
264
+ if p_video_abs is not None:
265
+ data_i["video_abs_path"] = p_video_abs
266
+
267
+ p_image_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "image")
268
+ if p_image_abs is not None:
269
+ data_i["image_abs_path"] = p_image_abs
270
+
271
+ final_data.append(data_i)
272
+
273
+ if config.experiment.function == "evaluation":
274
+ data[i]["step_map"] = []
275
+
276
+ if config.experiment.function == "train":
277
+ with open("../" + project_name + "/temp_data/" + config.dataset.optimization_data + ".json", "w", encoding="utf-8") as f:
278
+ json.dump(final_data, f, indent=2, ensure_ascii=False)
279
+
280
+
281
+ os.makedirs(os.path.dirname(file_name), exist_ok=True)
282
+ with open(file_name, "w", encoding="utf-8") as f:
283
+ json.dump(data, f, indent=2, ensure_ascii=False)
284
+
285
+
286
+ outputs_result_name = "../" + project_name + "/results/results-" + outputs_name + ".txt"
287
+ os.makedirs(os.path.dirname(outputs_result_name), exist_ok=True)
288
+ with open(outputs_result_name, "a") as f:
289
+ # Save + print
290
+ def save_and_print(text):
291
+ cprint("\n\n\n" + text, color="green")
292
+ f.write(text + "\n")
293
+
294
+ # 只计算有序组(有效学习组)的准确率来作为监控指标
295
+ acc = (sum(ordered_correctness)/len(ordered_correctness)) if len(ordered_correctness) > 0 else float("nan")
296
+ avg_len = sum(response_length_list)/len(response_length_list)
297
+
298
+ # 新增:计算 T-GRPO 和 Unbiased 奖励的平均值
299
+ avg_temp = sum(all_temporal_bonuses)/len(all_temporal_bonuses) if all_temporal_bonuses else 0.0
300
+ avg_unbias = sum(all_unbiased_bonuses)/len(all_unbiased_bonuses) if all_unbiased_bonuses else 0.0
301
+
302
+ output_text = f"train step: {config.experiment.current_epoch} "
303
+ if config.experiment.function == "train":
304
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
305
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} block_size: {config.rollout.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
306
+ else:
307
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} top_k: {config.rollout.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
308
+ else:
309
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
310
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} block_size: {config.evaluation.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
311
+ else:
312
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} top_k: {config.evaluation.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
313
+ save_and_print(output_text)
314
+
315
+ if config.experiment.function == "train":
316
+ csv_file_path = f"../{project_name}/results/all_rewards.csv"
317
+
318
+ # 如果是第1个 epoch/step,或者是新文件,就先写入表头
319
+ write_header = not os.path.exists(csv_file_path) or config.experiment.current_epoch == 1
320
+
321
+ with open(csv_file_path, "a", encoding="utf-8") as f_csv:
322
+ if write_header:
323
+ f_csv.write("step,acc_reward,t_grpo_reward,unbiased_reward,response_length\n")
324
+
325
+ # 按行追加当前 step 的数据
326
+ f_csv.write(f"{config.experiment.current_epoch},{acc:.4f},{avg_temp:.4f},{avg_unbias:.4f},{avg_len:.2f}\n")
327
+
328
+ if run is not None:
329
+ wandb.log(
330
+ {
331
+ "reward/acc": acc,
332
+ "reward/t_grpo_bonus": avg_temp,
333
+ "reward/unbiased_bonus": avg_unbias,
334
+ "reward/avg_response_length": avg_len,
335
+ "reward/train_step": config.experiment.current_epoch,
336
+ },
337
+ step=config.experiment.current_epoch,
338
+ )
339
+ wandb.finish()
reward/wandb/run-20260529_221554-fmmkx1a5/files/config.yaml ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.0
4
+ code_path: code/reward/rl_reward_video_reversal.py
5
+ e:
6
+ 9v6vb7yo5gbvjd6gs7vvg3bj8tktayc4:
7
+ args:
8
+ - config=../configs/rl_lavida_video_reversal.yaml
9
+ - wandb.run_id=fmmkx1a5
10
+ - experiment.function=train
11
+ - evaluation.block_size=None
12
+ - evaluation.top_k=None
13
+ - evaluation.remasking_strategy=None
14
+ - experiment.current_epoch=2
15
+ codePath: reward/rl_reward_video_reversal.py
16
+ codePathLocal: rl_reward_video_reversal.py
17
+ cpu_count: 96
18
+ cpu_count_logical: 192
19
+ cudaVersion: "12.8"
20
+ disk:
21
+ /:
22
+ total: "806578724864"
23
+ used: "624733908992"
24
+ email: shixi_runqing@staff.weibo.com
25
+ executable: /data8/runqing/miniconda/envs/dllm-rl/bin/python
26
+ git:
27
+ commit: 10b4fd1cba83e4496c20585dc2fd01dc02f20255
28
+ remote: https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git
29
+ gpu: NVIDIA H800
30
+ gpu_count: 8
31
+ gpu_nvidia:
32
+ - architecture: Hopper
33
+ cudaCores: 16896
34
+ memoryTotal: "85520809984"
35
+ name: NVIDIA H800
36
+ uuid: GPU-f768b684-b9ce-23a2-81a6-af16161cf9be
37
+ - architecture: Hopper
38
+ cudaCores: 16896
39
+ memoryTotal: "85520809984"
40
+ name: NVIDIA H800
41
+ uuid: GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9
42
+ - architecture: Hopper
43
+ cudaCores: 16896
44
+ memoryTotal: "85520809984"
45
+ name: NVIDIA H800
46
+ uuid: GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6
47
+ - architecture: Hopper
48
+ cudaCores: 16896
49
+ memoryTotal: "85520809984"
50
+ name: NVIDIA H800
51
+ uuid: GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53
52
+ - architecture: Hopper
53
+ cudaCores: 16896
54
+ memoryTotal: "85520809984"
55
+ name: NVIDIA H800
56
+ uuid: GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad
57
+ - architecture: Hopper
58
+ cudaCores: 16896
59
+ memoryTotal: "85520809984"
60
+ name: NVIDIA H800
61
+ uuid: GPU-f531028f-805c-3301-61b3-0c46329dc9c0
62
+ - architecture: Hopper
63
+ cudaCores: 16896
64
+ memoryTotal: "85520809984"
65
+ name: NVIDIA H800
66
+ uuid: GPU-2775489f-18c8-2328-8829-c46238575379
67
+ - architecture: Hopper
68
+ cudaCores: 16896
69
+ memoryTotal: "85520809984"
70
+ name: NVIDIA H800
71
+ uuid: GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd
72
+ host: b1301b38c75f
73
+ memory:
74
+ total: "2164113764352"
75
+ os: Linux-5.15.0-144-generic-x86_64-with-glibc2.35
76
+ program: /data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py
77
+ python: CPython 3.10.19
78
+ root: /data4/runqing/dLLM-RL/reward
79
+ startedAt: "2026-05-29T14:15:54.850916Z"
80
+ writerId: 9v6vb7yo5gbvjd6gs7vvg3bj8tktayc4
81
+ m: []
82
+ python_version: 3.10.19
83
+ t:
84
+ "1":
85
+ - 1
86
+ - 41
87
+ "2":
88
+ - 1
89
+ - 41
90
+ "3":
91
+ - 2
92
+ - 5
93
+ - 13
94
+ - 14
95
+ - 16
96
+ - 61
97
+ - 62
98
+ "4": 3.10.19
99
+ "5": 0.25.0
100
+ "10":
101
+ - 20
102
+ "12": 0.25.0
103
+ "13": linux-x86_64
104
+ config:
105
+ value: ../configs/rl_lavida_video_reversal.yaml
106
+ dataset.data_type:
107
+ value: video_reverse
108
+ dataset.optimization_data:
109
+ value: rl_data
110
+ dataset.train_dataset:
111
+ value: video_reversal_rl_train
112
+ evaluation.batch_size:
113
+ value: 1
114
+ evaluation.block_size:
115
+ value: None
116
+ evaluation.data_type:
117
+ value: video_reverse
118
+ evaluation.dynamic_threshold:
119
+ value: 0.9
120
+ evaluation.eval_dataset:
121
+ value: video_reversal_rl_eval
122
+ evaluation.further_horizon:
123
+ value: 128
124
+ evaluation.if_eval:
125
+ value: false
126
+ evaluation.max_gen_length:
127
+ value: 128
128
+ evaluation.num_response_per_task:
129
+ value: 3
130
+ evaluation.remasking_strategy:
131
+ value: None
132
+ evaluation.remasking_strategy.0:
133
+ value: low_confidence_static
134
+ evaluation.remasking_strategy.1:
135
+ value: low_confidence_dynamic
136
+ evaluation.steps:
137
+ value: 128
138
+ evaluation.target:
139
+ value: confidence
140
+ evaluation.temperature:
141
+ value: 0.1
142
+ evaluation.top_k:
143
+ value: None
144
+ evaluation.use_cache:
145
+ value: true
146
+ execute.num_chunk:
147
+ value: 128
148
+ experiment.current_epoch:
149
+ value: 2
150
+ experiment.deepspeed_file:
151
+ value: 1_node_8_gpus_deepspeed_zero2
152
+ experiment.eval_every:
153
+ value: 5
154
+ experiment.function:
155
+ value: train
156
+ experiment.logging_dir:
157
+ value: rl_lavida_video_reversal/logs
158
+ experiment.node_index:
159
+ value: 0
160
+ experiment.num_node:
161
+ value: 1
162
+ experiment.project:
163
+ value: rl_lavida_video_reversal
164
+ experiment.save_every:
165
+ value: 10
166
+ experiment.start_from_scratch:
167
+ value: true
168
+ experiment.total_step:
169
+ value: 30
170
+ lr_scheduler.params.learning_rate:
171
+ value: 1e-06
172
+ lr_scheduler.params.min_lr_scale:
173
+ value: 1
174
+ lr_scheduler.params.warmup_steps:
175
+ value: 0
176
+ lr_scheduler.scheduler:
177
+ value: cosine
178
+ model.image_resolution:
179
+ value: 512
180
+ model.model_base:
181
+ value: lavida
182
+ model.optimized_name:
183
+ value: optimized
184
+ model.pretrained_model:
185
+ value: /data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized
186
+ model.vq_model_path:
187
+ value: /data4/runqing/hf/magvitv2
188
+ optimizer.name:
189
+ value: adamw
190
+ optimizer.params.beta1:
191
+ value: 0.9
192
+ optimizer.params.beta2:
193
+ value: 0.999
194
+ optimizer.params.epsilon:
195
+ value: 1e-08
196
+ optimizer.params.learning_rate:
197
+ value: 1e-06
198
+ optimizer.params.scale_lr:
199
+ value: false
200
+ optimizer.params.weight_decay:
201
+ value: 0
202
+ reward.answer_must_in_box:
203
+ value: true
204
+ reward.strict_len_check:
205
+ value: false
206
+ rollout.batch_size:
207
+ value: 1
208
+ rollout.block_size:
209
+ value: 32
210
+ rollout.dynamic_threshold:
211
+ value: 0.9
212
+ rollout.further_horizon:
213
+ value: 128
214
+ rollout.max_gen_length:
215
+ value: 128
216
+ rollout.num_response_per_task:
217
+ value: 8
218
+ rollout.num_task_per_step:
219
+ value: 128
220
+ rollout.remasking_strategy:
221
+ value: low_confidence_dynamic
222
+ rollout.steps:
223
+ value: 128
224
+ rollout.target:
225
+ value: confidence
226
+ rollout.temperature:
227
+ value: 0.8
228
+ rollout.use_cache:
229
+ value: true
230
+ system.HF_HOME:
231
+ value: null
232
+ system.HTTP_PROXY:
233
+ value: null
234
+ system.base_dir:
235
+ value: /data4/runqing/dLLM-RL
236
+ system.env_name:
237
+ value: /data8/runqing/miniconda/envs/dllm-rl
238
+ system.envs_dir:
239
+ value: /data8/runqing/miniconda/envs/dllm-rl
240
+ training.batch_size_lm:
241
+ value: 1
242
+ training.beta:
243
+ value: 0.01
244
+ training.enable_tf32:
245
+ value: true
246
+ training.eps:
247
+ value: 0.2
248
+ training.gradient_accumulation_steps:
249
+ value: 2
250
+ training.lower_p:
251
+ value: 0.35
252
+ training.mask_times_per_sample:
253
+ value: 2
254
+ training.max_gen_length:
255
+ value: 128
256
+ training.max_grad_norm:
257
+ value: 1
258
+ training.max_prompt_len:
259
+ value: 512
260
+ training.method:
261
+ value: random_masking
262
+ training.mixed_precision:
263
+ value: bf16
264
+ training.num_train_epochs:
265
+ value: 1
266
+ training.post_num:
267
+ value: 1
268
+ training.seed:
269
+ value: 10086
270
+ training.shrink:
271
+ value: 8
272
+ training.upper_p:
273
+ value: 0.9
274
+ training.use_kl_estimator_k3:
275
+ value: true
276
+ wandb.entity:
277
+ value: null
278
+ wandb.resume:
279
+ value: auto
280
+ wandb.run_id:
281
+ value: fmmkx1a5
reward/wandb/run-20260529_221554-fmmkx1a5/files/output.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+
2
+
3
+
4
+ train step: 2 remasking_strategy: low_confidence_dynamic block_size: 32 acc: 0.4375 avg length: 126.60
reward/wandb/run-20260529_221554-fmmkx1a5/files/requirements.txt ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ transformers==4.52.4
2
+ nvidia-nvtx-cu12==12.4.127
3
+ deepspeed==0.18.6
4
+ typing-inspection==0.4.2
5
+ scipy==1.15.3
6
+ MarkupSafe==3.0.3
7
+ nvidia-cuda-runtime-cu12==12.4.127
8
+ detoxify==0.5.2
9
+ yarl==1.22.0
10
+ tornado==6.5.4
11
+ nvidia-curand-cu12==10.3.5.147
12
+ nest-asyncio==1.6.0
13
+ safetensors==0.7.0
14
+ async-timeout==5.0.1
15
+ typing_extensions==4.15.0
16
+ asttokens==3.0.1
17
+ cuda-python==13.1.1
18
+ executing==2.2.1
19
+ nvidia-cudnn-frontend==1.18.0
20
+ comm==0.2.3
21
+ tokenizers==0.21.4
22
+ six==1.17.0
23
+ Pygments==2.19.2
24
+ nvidia-cusparselt-cu12==0.6.2
25
+ apache-tvm-ffi==0.1.8.post2
26
+ flash_attn==2.7.4.post1
27
+ tqdm==4.67.3
28
+ tensorboard-data-server==0.7.2
29
+ annotated-types==0.7.0
30
+ math-verify==0.9.0
31
+ idna==3.11
32
+ regex==2026.1.15
33
+ nvidia-cutlass-dsl-libs-base==4.4.0
34
+ flashinfer-python==0.6.3
35
+ click==8.3.1
36
+ pytz==2025.2
37
+ wheel==0.46.3
38
+ ipykernel==7.2.0
39
+ stack-data==0.6.3
40
+ absl-py==2.4.0
41
+ wandb==0.25.0
42
+ pandas==2.3.3
43
+ termcolor==3.3.0
44
+ sympy==1.13.1
45
+ joblib==1.5.3
46
+ prompt_toolkit==3.0.52
47
+ attrs==25.4.0
48
+ nvidia-cusolver-cu12==11.6.1.9
49
+ xxhash==3.6.0
50
+ aiohappyeyeballs==2.6.1
51
+ python-dateutil==2.9.0.post0
52
+ frozenlist==1.8.0
53
+ nvidia-ml-py==13.590.48
54
+ multiprocess==0.70.18
55
+ decorator==5.2.1
56
+ cuda-pathfinder==1.3.4
57
+ multidict==6.7.1
58
+ pure_eval==0.2.3
59
+ nvidia-cufft-cu12==11.2.1.3
60
+ omegaconf==2.3.0
61
+ PyYAML==6.0.3
62
+ debugpy==1.8.20
63
+ psutil==7.2.2
64
+ ninja==1.13.0
65
+ nvidia-cublas-cu12==12.4.5.8
66
+ triton==3.2.0
67
+ antlr4-python3-runtime==4.9.3
68
+ peft==0.18.1
69
+ aiosignal==1.4.0
70
+ accelerate==1.12.0
71
+ liger_kernel==0.7.0
72
+ anyio==4.12.1
73
+ decord==0.6.0
74
+ h11==0.16.0
75
+ urllib3==2.6.3
76
+ wcwidth==0.6.0
77
+ networkx==3.4.2
78
+ huggingface_hub==0.36.2
79
+ tzdata==2025.3
80
+ xformers==0.0.29.post3
81
+ tabulate==0.9.0
82
+ certifi==2026.1.4
83
+ tensorboard==2.20.0
84
+ matplotlib-inline==0.2.1
85
+ pip==26.0.1
86
+ smmap==5.0.2
87
+ nvidia-cuda-cupti-cu12==12.4.127
88
+ Markdown==3.10.2
89
+ nvidia-nccl-cu12==2.21.5
90
+ aiohttp==3.13.3
91
+ scikit-learn==1.7.2
92
+ nvidia-cutlass-dsl==4.4.0
93
+ setuptools==82.0.0
94
+ jupyter_core==5.9.1
95
+ asyncio==4.0.0
96
+ einops==0.8.2
97
+ pydantic==2.12.5
98
+ av==16.1.0
99
+ protobuf==6.33.5
100
+ evaluate==0.4.6
101
+ Jinja2==3.1.6
102
+ exceptiongroup==1.3.1
103
+ ipython==8.38.0
104
+ sentry-sdk==2.53.0
105
+ httpx==0.28.1
106
+ msgpack==1.1.2
107
+ platformdirs==4.9.2
108
+ hjson==3.1.0
109
+ torchvision==0.21.0
110
+ parso==0.8.6
111
+ cuda-bindings==13.1.1
112
+ pexpect==4.9.0
113
+ threadpoolctl==3.6.0
114
+ pyarrow==23.0.1
115
+ jedi==0.19.2
116
+ nvidia-cuda-nvrtc-cu12==12.4.127
117
+ Werkzeug==3.1.5
118
+ fsspec==2025.10.0
119
+ pydantic_core==2.41.5
120
+ GitPython==3.1.46
121
+ propcache==0.4.1
122
+ mpmath==1.3.0
123
+ nvidia-nvjitlink-cu12==12.4.127
124
+ nvidia-cusparse-cu12==12.3.1.170
125
+ hf-xet==1.2.0
126
+ charset-normalizer==3.4.4
127
+ dill==0.4.0
128
+ datasets==4.5.0
129
+ py-cpuinfo==9.0.0
130
+ sentencepiece==0.2.1
131
+ latex2sympy2_extended==1.11.0
132
+ jupyter_client==8.8.0
133
+ pyzmq==27.1.0
134
+ numpy==2.2.6
135
+ gitdb==4.0.12
136
+ grpcio==1.78.0
137
+ packaging==26.0
138
+ requests==2.32.5
139
+ nvidia-cudnn-cu12==9.1.0.70
140
+ httpcore==1.0.9
141
+ traitlets==5.14.3
142
+ filelock==3.24.2
143
+ ptyprocess==0.7.0
144
+ pillow==12.1.1
145
+ torch==2.6.0
146
+ more-itertools==10.8.0
147
+ wheel==0.46.3
148
+ jaraco.text==4.0.0
149
+ zipp==3.23.0
150
+ autocommand==2.2.2
151
+ jaraco.context==6.1.0
152
+ jaraco.functools==4.4.0
153
+ tomli==2.4.0
154
+ backports.tarfile==1.2.0
155
+ importlib_metadata==8.7.1
156
+ platformdirs==4.4.0
157
+ packaging==26.0
reward/wandb/run-20260529_221554-fmmkx1a5/files/wandb-metadata.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.15.0-144-generic-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.19",
4
+ "startedAt": "2026-05-29T14:15:54.850916Z",
5
+ "args": [
6
+ "config=../configs/rl_lavida_video_reversal.yaml",
7
+ "wandb.run_id=fmmkx1a5",
8
+ "experiment.function=train",
9
+ "evaluation.block_size=None",
10
+ "evaluation.top_k=None",
11
+ "evaluation.remasking_strategy=None",
12
+ "experiment.current_epoch=2"
13
+ ],
14
+ "program": "/data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py",
15
+ "codePath": "reward/rl_reward_video_reversal.py",
16
+ "codePathLocal": "rl_reward_video_reversal.py",
17
+ "git": {
18
+ "remote": "https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git",
19
+ "commit": "10b4fd1cba83e4496c20585dc2fd01dc02f20255"
20
+ },
21
+ "email": "shixi_runqing@staff.weibo.com",
22
+ "root": "/data4/runqing/dLLM-RL/reward",
23
+ "host": "b1301b38c75f",
24
+ "executable": "/data8/runqing/miniconda/envs/dllm-rl/bin/python",
25
+ "cpu_count": 96,
26
+ "cpu_count_logical": 192,
27
+ "gpu": "NVIDIA H800",
28
+ "gpu_count": 8,
29
+ "disk": {
30
+ "/": {
31
+ "total": "806578724864",
32
+ "used": "624733908992"
33
+ }
34
+ },
35
+ "memory": {
36
+ "total": "2164113764352"
37
+ },
38
+ "gpu_nvidia": [
39
+ {
40
+ "name": "NVIDIA H800",
41
+ "memoryTotal": "85520809984",
42
+ "cudaCores": 16896,
43
+ "architecture": "Hopper",
44
+ "uuid": "GPU-f768b684-b9ce-23a2-81a6-af16161cf9be"
45
+ },
46
+ {
47
+ "name": "NVIDIA H800",
48
+ "memoryTotal": "85520809984",
49
+ "cudaCores": 16896,
50
+ "architecture": "Hopper",
51
+ "uuid": "GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9"
52
+ },
53
+ {
54
+ "name": "NVIDIA H800",
55
+ "memoryTotal": "85520809984",
56
+ "cudaCores": 16896,
57
+ "architecture": "Hopper",
58
+ "uuid": "GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6"
59
+ },
60
+ {
61
+ "name": "NVIDIA H800",
62
+ "memoryTotal": "85520809984",
63
+ "cudaCores": 16896,
64
+ "architecture": "Hopper",
65
+ "uuid": "GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53"
66
+ },
67
+ {
68
+ "name": "NVIDIA H800",
69
+ "memoryTotal": "85520809984",
70
+ "cudaCores": 16896,
71
+ "architecture": "Hopper",
72
+ "uuid": "GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad"
73
+ },
74
+ {
75
+ "name": "NVIDIA H800",
76
+ "memoryTotal": "85520809984",
77
+ "cudaCores": 16896,
78
+ "architecture": "Hopper",
79
+ "uuid": "GPU-f531028f-805c-3301-61b3-0c46329dc9c0"
80
+ },
81
+ {
82
+ "name": "NVIDIA H800",
83
+ "memoryTotal": "85520809984",
84
+ "cudaCores": 16896,
85
+ "architecture": "Hopper",
86
+ "uuid": "GPU-2775489f-18c8-2328-8829-c46238575379"
87
+ },
88
+ {
89
+ "name": "NVIDIA H800",
90
+ "memoryTotal": "85520809984",
91
+ "cudaCores": 16896,
92
+ "architecture": "Hopper",
93
+ "uuid": "GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd"
94
+ }
95
+ ],
96
+ "cudaVersion": "12.8",
97
+ "writerId": "9v6vb7yo5gbvjd6gs7vvg3bj8tktayc4"
98
+ }
reward/wandb/run-20260529_221554-fmmkx1a5/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"reward/acc":0.396484375,"reward/t_grpo_bonus":0.2718750000000003,"_step":22,"train/loss":0.3783190548419952,"_timestamp":1.7800614303455548e+09,"reward/train_step":1,"reward/unbiased_bonus":0.09374999999999996,"train/learning_rate":7.300325188655752e-07,"_wandb":{"runtime":831},"reward/avg_response_length":124.568359375,"_runtime":831}
reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug-core.log ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-29T22:15:54.916217099+08:00","level":"INFO","msg":"main: starting server","port-filename":"/tmp/tmpnjlyxjcf/port-1545303.txt","pid":1545303,"log-level":0,"disable-analytics":false,"shutdown-on-parent-exit":false,"enable-dcgm-profiling":false}
2
+ {"time":"2026-05-29T22:15:54.916863285+08:00","level":"INFO","msg":"server: will exit if parent process dies","ppid":1545303}
3
+ {"time":"2026-05-29T22:15:54.916810975+08:00","level":"INFO","msg":"server: accepting connections","addr":{"Name":"/tmp/wandb-1545303-1545462-1059829217/socket","Net":"unix"}}
4
+ {"time":"2026-05-29T22:15:55.098950313+08:00","level":"INFO","msg":"connection: ManageConnectionData: new connection created","id":"1(@)"}
5
+ {"time":"2026-05-29T22:15:55.107452271+08:00","level":"INFO","msg":"handleInformInit: received","streamId":"fmmkx1a5","id":"1(@)"}
6
+ {"time":"2026-05-29T22:15:55.506832105+08:00","level":"INFO","msg":"handleInformInit: stream started","streamId":"fmmkx1a5","id":"1(@)"}
7
+ {"time":"2026-05-29T22:15:55.913188801+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"b6ibcl45930i"}
8
+ {"time":"2026-05-29T22:15:56.086394294+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"b6ibcl45930i"}
9
+ {"time":"2026-05-29T22:15:56.087275774+08:00","level":"INFO","msg":"handleInformFinish: finish message received","streamId":"fmmkx1a5","id":"1(@)"}
10
+ {"time":"2026-05-29T22:15:56.08792542+08:00","level":"INFO","msg":"handleInformFinish: stream closed","streamId":"fmmkx1a5","id":"1(@)"}
11
+ {"time":"2026-05-29T22:15:56.08793382+08:00","level":"INFO","msg":"handleInformTeardown: server teardown initiated","id":"1(@)"}
12
+ {"time":"2026-05-29T22:15:56.087943598+08:00","level":"INFO","msg":"handleInformTeardown: server shutdown complete","id":"1(@)"}
13
+ {"time":"2026-05-29T22:15:56.087956992+08:00","level":"INFO","msg":"server is shutting down"}
14
+ {"time":"2026-05-29T22:15:56.087965168+08:00","level":"INFO","msg":"connection: closing","id":"1(@)"}
15
+ {"time":"2026-05-29T22:15:56.088033671+08:00","level":"INFO","msg":"server: listener closed","addr":{"Name":"/tmp/wandb-1545303-1545462-1059829217/socket","Net":"unix"}}
16
+ {"time":"2026-05-29T22:15:56.088108544+08:00","level":"INFO","msg":"connection: closed successfully","id":"1(@)"}
17
+ {"time":"2026-05-29T22:15:56.088124869+08:00","level":"INFO","msg":"connection: ManageConnectionData: connection closed","id":"1(@)"}
18
+ {"time":"2026-05-29T22:15:56.08814705+08:00","level":"INFO","msg":"server is closed"}
reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug-internal.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-29T22:15:55.107608042+08:00","level":"INFO","msg":"stream: starting","core version":"0.25.0"}
2
+ {"time":"2026-05-29T22:15:55.506304256+08:00","level":"ERROR","msg":"featurechecker: failed to load features, all will be disabled","error":"input:4:3: Cannot query field \"features\" on type \"ServerInfo\".\n"}
3
+ {"time":"2026-05-29T22:15:55.506493458+08:00","level":"INFO","msg":"stream: created new stream","id":"fmmkx1a5"}
4
+ {"time":"2026-05-29T22:15:55.506582321+08:00","level":"INFO","msg":"handler: started","stream_id":"fmmkx1a5"}
5
+ {"time":"2026-05-29T22:15:55.506790233+08:00","level":"INFO","msg":"stream: started","id":"fmmkx1a5"}
6
+ {"time":"2026-05-29T22:15:55.506837975+08:00","level":"INFO","msg":"sender: started","stream_id":"fmmkx1a5"}
7
+ {"time":"2026-05-29T22:15:55.50683912+08:00","level":"INFO","msg":"writer: started","stream_id":"fmmkx1a5"}
8
+ {"time":"2026-05-29T22:15:55.51294541+08:00","level":"WARN","msg":"runupserter: server does not expand metric globs but the x_server_side_expand_glob_metrics setting is set; ignoring"}
9
+ {"time":"2026-05-29T22:15:55.704255203+08:00","level":"ERROR","msg":"git repo not found","error":"repository does not exist"}
10
+ {"time":"2026-05-29T22:15:55.912502593+08:00","level":"WARN","msg":"handler: ignoring partial history record","step":2,"current":23}
11
+ {"time":"2026-05-29T22:15:56.03177134+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=231f89d757f146c89d122c6b204331314ecc34a3b559f7055e87e55c860d7022"}
12
+ {"time":"2026-05-29T22:15:56.031925201+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Resource><RequestId>18B40EEB317EEAA2</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/files/wandb-metadata.json, Name: wandb-metadata.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=231f89d757f146c89d122c6b204331314ecc34a3b559f7055e87e55c860d7022, Size: 2849}"}
13
+ {"time":"2026-05-29T22:15:56.032404479+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=1d1ff4a82c29db5aba1262b2700d06081767a02c462370a0dd175e88c43c5edf"}
14
+ {"time":"2026-05-29T22:15:56.032523843+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Resource><RequestId>18B40EEB321EE2B8</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/files/requirements.txt, Name: requirements.txt, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=1d1ff4a82c29db5aba1262b2700d06081767a02c462370a0dd175e88c43c5edf, Size: 2982}"}
15
+ {"time":"2026-05-29T22:15:56.032649353+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=5c277688d99c41377f45b290552a9a9b5cfe550766475b8eff652f38bdb8ca80"}
16
+ {"time":"2026-05-29T22:15:56.03283444+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Resource><RequestId>18B40EEB319BEC42</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/files/output.log, Name: output.log, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=5c277688d99c41377f45b290552a9a9b5cfe550766475b8eff652f38bdb8ca80, Size: 110}"}
17
+ {"time":"2026-05-29T22:15:56.033306069+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=f5914a6bc6102645fbd2b78197626db949d04b2894b1d0280b37630855e0fc41"}
18
+ {"time":"2026-05-29T22:15:56.033380582+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=03df8770a2c9eb5e4332393435e9ca5442cbbe168d52eb67ae42ed8aabbc5576"}
19
+ {"time":"2026-05-29T22:15:56.035655507+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Resource><RequestId>18B40EEB3065ED8E</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/files/wandb-summary.json, Name: wandb-summary.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=03df8770a2c9eb5e4332393435e9ca5442cbbe168d52eb67ae42ed8aabbc5576, Size: 339}"}
20
+ {"time":"2026-05-29T22:15:56.035661211+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Resource><RequestId>18B40EEB306C9CB5</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/files/config.yaml, Name: config.yaml, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=f5914a6bc6102645fbd2b78197626db949d04b2894b1d0280b37630855e0fc41, Size: 7994}"}
21
+ {"time":"2026-05-29T22:15:56.043145879+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=1ae264df17bdf80ce72299b8f151fd1f9fe5c4e093d4bed8d91a26a22f7a8cc0"}
22
+ {"time":"2026-05-29T22:15:56.043291024+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Resource><RequestId>18B40EEB3190E40F</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py, Name: code/reward/rl_reward_video_reversal.py, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260529%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260529T141555Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=1ae264df17bdf80ce72299b8f151fd1f9fe5c4e093d4bed8d91a26a22f7a8cc0, Size: 14790}"}
23
+ {"time":"2026-05-29T22:15:56.04360073+08:00","level":"INFO","msg":"fileTransfer: Close: file transfer manager closed"}
24
+ {"time":"2026-05-29T22:15:56.081592389+08:00","level":"INFO","msg":"handler: operation stats","stats":{}}
25
+ {"time":"2026-05-29T22:15:56.08729549+08:00","level":"INFO","msg":"stream: closing","id":"fmmkx1a5"}
26
+ {"time":"2026-05-29T22:15:56.087309718+08:00","level":"INFO","msg":"handler: closed","stream_id":"fmmkx1a5"}
27
+ {"time":"2026-05-29T22:15:56.087366331+08:00","level":"INFO","msg":"sender: closed","stream_id":"fmmkx1a5"}
28
+ {"time":"2026-05-29T22:15:56.087377904+08:00","level":"INFO","msg":"stream: closed","id":"fmmkx1a5"}
reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug.log ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2026-05-29 22:15:54,853 INFO MainThread:1545303 [wandb_setup.py:_flush():81] Current SDK version is 0.25.0
2
+ 2026-05-29 22:15:54,853 INFO MainThread:1545303 [wandb_setup.py:_flush():81] Configure stats pid to 1545303
3
+ 2026-05-29 22:15:54,854 INFO MainThread:1545303 [wandb_setup.py:_flush():81] Loading settings from environment variables
4
+ 2026-05-29 22:15:54,854 INFO MainThread:1545303 [wandb_init.py:setup_run_log_directory():717] Logging user logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug.log
5
+ 2026-05-29 22:15:54,854 INFO MainThread:1545303 [wandb_init.py:setup_run_log_directory():718] Logging internal logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260529_221554-fmmkx1a5/logs/debug-internal.log
6
+ 2026-05-29 22:15:54,854 INFO MainThread:1545303 [wandb_init.py:init():844] calling init triggers
7
+ 2026-05-29 22:15:54,854 INFO MainThread:1545303 [wandb_init.py:init():849] wandb.init called with sweep_config: {}
8
+ config: {'wandb.entity': None, 'wandb.resume': 'auto', 'wandb.run_id': 'fmmkx1a5', 'system.HTTP_PROXY': None, 'system.HF_HOME': None, 'system.env_name': '/data8/runqing/miniconda/envs/dllm-rl', 'system.envs_dir': '/data8/runqing/miniconda/envs/dllm-rl', 'system.base_dir': '/data4/runqing/dLLM-RL', 'experiment.project': 'rl_lavida_video_reversal', 'experiment.function': 'train', 'experiment.start_from_scratch': True, 'experiment.total_step': 30, 'experiment.save_every': 10, 'experiment.eval_every': 5, 'experiment.current_epoch': 2, 'experiment.deepspeed_file': '1_node_8_gpus_deepspeed_zero2', 'experiment.num_node': 1, 'experiment.node_index': 0, 'model.pretrained_model': '/data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized', 'model.optimized_name': 'optimized', 'model.model_base': 'lavida', 'model.vq_model_path': '/data4/runqing/hf/magvitv2', 'model.image_resolution': 512, 'dataset.train_dataset': 'video_reversal_rl_train', 'dataset.data_type': 'video_reverse', 'dataset.optimization_data': 'rl_data', 'rollout.num_task_per_step': 128, 'rollout.num_response_per_task': 8, 'rollout.temperature': 0.8, 'rollout.steps': 128, 'rollout.max_gen_length': 128, 'rollout.batch_size': 1, 'rollout.remasking_strategy': 'low_confidence_dynamic', 'rollout.target': 'confidence', 'rollout.dynamic_threshold': 0.9, 'rollout.block_size': 32, 'rollout.further_horizon': 128, 'rollout.use_cache': True, 'reward.answer_must_in_box': True, 'reward.strict_len_check': False, 'execute.num_chunk': 128, 'training.gradient_accumulation_steps': 2, 'training.batch_size_lm': 1, 'training.mixed_precision': 'bf16', 'training.enable_tf32': True, 'training.seed': 10086, 'training.num_train_epochs': 1, 'training.max_grad_norm': 1.0, 'training.method': 'random_masking', 'training.lower_p': 0.35, 'training.upper_p': 0.9, 'training.shrink': 8, 'training.post_num': 1, 'training.mask_times_per_sample': 2, 'training.max_gen_length': 128, 'training.max_prompt_len': 512, 'training.eps': 0.2, 'training.beta': 0.01, 'training.use_kl_estimator_k3': True, 'optimizer.name': 'adamw', 'optimizer.params.learning_rate': 1e-06, 'optimizer.params.scale_lr': False, 'optimizer.params.beta1': 0.9, 'optimizer.params.beta2': 0.999, 'optimizer.params.weight_decay': 0.0, 'optimizer.params.epsilon': 1e-08, 'lr_scheduler.scheduler': 'cosine', 'lr_scheduler.params.learning_rate': 1e-06, 'lr_scheduler.params.warmup_steps': 0, 'lr_scheduler.params.min_lr_scale': 1.0, 'evaluation.if_eval': False, 'evaluation.eval_dataset': 'video_reversal_rl_eval', 'evaluation.data_type': 'video_reverse', 'evaluation.num_response_per_task': 3, 'evaluation.temperature': 0.1, 'evaluation.steps': 128, 'evaluation.max_gen_length': 128, 'evaluation.batch_size': 1, 'evaluation.remasking_strategy': 'None', 'evaluation.target': 'confidence', 'evaluation.dynamic_threshold': 0.9, 'evaluation.block_size': 'None', 'evaluation.further_horizon': 128, 'evaluation.use_cache': True, 'evaluation.top_k': 'None', 'config': '../configs/rl_lavida_video_reversal.yaml', '_wandb': {'code_path': 'code/reward/rl_reward_video_reversal.py'}}
9
+ 2026-05-29 22:15:54,854 INFO MainThread:1545303 [wandb_init.py:init():892] starting backend
10
+ 2026-05-29 22:15:55,099 INFO MainThread:1545303 [wandb_init.py:init():895] sending inform_init request
11
+ 2026-05-29 22:15:55,104 INFO MainThread:1545303 [wandb_init.py:init():903] backend started and connected
12
+ 2026-05-29 22:15:55,106 INFO MainThread:1545303 [wandb_init.py:init():973] updated telemetry
13
+ 2026-05-29 22:15:55,109 INFO MainThread:1545303 [wandb_init.py:init():997] communicating run to backend with 90.0 second timeout
14
+ 2026-05-29 22:15:55,698 INFO MainThread:1545303 [wandb_init.py:init():1037] run resumed
15
+ 2026-05-29 22:15:55,702 INFO MainThread:1545303 [wandb_init.py:init():1042] starting run threads in backend
16
+ 2026-05-29 22:15:55,792 INFO MainThread:1545303 [wandb_run.py:_console_start():2524] atexit reg
17
+ 2026-05-29 22:15:55,792 INFO MainThread:1545303 [wandb_run.py:_redirect():2373] redirect: wrap_raw
18
+ 2026-05-29 22:15:55,792 INFO MainThread:1545303 [wandb_run.py:_redirect():2442] Wrapping output streams.
19
+ 2026-05-29 22:15:55,792 INFO MainThread:1545303 [wandb_run.py:_redirect():2465] Redirects installed.
20
+ 2026-05-29 22:15:55,795 INFO MainThread:1545303 [wandb_init.py:init():1082] run started, returning control to user process
21
+ 2026-05-29 22:15:55,912 INFO MainThread:1545303 [wandb_run.py:_finish():2291] finishing run shixi_runqing/rl_lavida_video_reversal/fmmkx1a5
22
+ 2026-05-29 22:15:55,912 INFO MainThread:1545303 [wandb_run.py:_atexit_cleanup():2490] got exitcode: 0
23
+ 2026-05-29 22:15:55,912 INFO MainThread:1545303 [wandb_run.py:_restore():2472] restore
24
+ 2026-05-29 22:15:55,913 INFO MainThread:1545303 [wandb_run.py:_restore():2478] restore done
25
+ 2026-05-29 22:15:56,086 INFO MainThread:1545303 [wandb_run.py:_footer_sync_info():3868] logging synced files
reward/wandb/run-20260529_221554-fmmkx1a5/run-fmmkx1a5.wandb ADDED
Binary file (6.09 kB). View file
 
reward/wandb/run-20260530_084258-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import math_utils_v
3
+ import nest_asyncio
4
+ from concurrent.futures import ThreadPoolExecutor
5
+ import asyncio
6
+ import re
7
+ from termcolor import cprint
8
+ from omegaconf import MISSING
9
+ from omegaconf import DictConfig, ListConfig, OmegaConf
10
+ from typing import List, Union
11
+ import os
12
+ from collections import defaultdict
13
+ import sys
14
+
15
+ REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
+ sys.path.insert(0, REPO_ROOT)
17
+
18
+ import wandb
19
+ from train.utils import flatten_omega_conf, ensure_wandb_run_id
20
+
21
+ def resolve_media_abs_path(sample: dict, dataset_root: str | None, media_type: str = "image") -> str | None:
22
+ p = sample.get(f"{media_type}_abs_path")
23
+ if p is None:
24
+ p = sample.get(media_type) or sample.get(f"{media_type}_path")
25
+ if p is None:
26
+ return None
27
+ if not os.path.isabs(p) and dataset_root:
28
+ p = os.path.join(dataset_root, p)
29
+ try:
30
+ return os.path.abspath(p)
31
+ except Exception:
32
+ return p
33
+
34
+ def get_config():
35
+ cli_conf = OmegaConf.from_cli()
36
+ yaml_conf = OmegaConf.load(cli_conf.config)
37
+ conf = OmegaConf.merge(yaml_conf, cli_conf)
38
+ return conf
39
+
40
+ def remove_endoftext(obj: Union[str, List[str]]) -> Union[str, List[str]]:
41
+ token = '<|endoftext|>'
42
+ if isinstance(obj, str):
43
+ return obj.replace(token, '')
44
+ if isinstance(obj, list):
45
+ return [s.replace(token, '') if isinstance(s, str) else s for s in obj]
46
+ raise TypeError("Expected str or list of str")
47
+
48
+
49
+ if __name__ == "__main__":
50
+
51
+ config = get_config()
52
+ run = None
53
+ if config.experiment.function == "train":
54
+ existing_run_id = OmegaConf.select(config, "wandb.run_id", default=None)
55
+ run_id = ensure_wandb_run_id(config)
56
+ resume_wandb_run = config.wandb.resume
57
+ if existing_run_id is None:
58
+ resume_wandb_run = False
59
+ wandb_config = {k: v for k, v in flatten_omega_conf(config, resolve=True)}
60
+ run = wandb.init(
61
+ project=config.experiment.project,
62
+ entity=config.wandb.get("entity", None),
63
+ id=run_id,
64
+ resume=resume_wandb_run,
65
+ config=wandb_config,
66
+ reinit=True,
67
+ name=config.experiment.project,
68
+ )
69
+
70
+ project_name = config.experiment.project
71
+
72
+ if config.experiment.current_epoch == 1:
73
+ pretrained_model = config.model.pretrained_model
74
+ else:
75
+ pretrained_model = "../" + project_name + "/ckpt/" + config.model.optimized_name
76
+
77
+ if config.experiment.function == "train":
78
+ shrink = config.training.shrink
79
+ dataset = config.dataset.train_dataset
80
+ outputs_name = "rl-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
81
+
82
+ elif config.experiment.function == "evaluation":
83
+ dataset = config.evaluation.eval_dataset
84
+ outputs_name = "eval-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
85
+
86
+ file_name = "../" + project_name + "/temp_data/outputs-" + outputs_name + ".json"
87
+
88
+ with open(file_name, 'r') as f:
89
+ data = json.load(f)
90
+
91
+ index_list = []
92
+ extracted_output_list = []
93
+ response_length_list = []
94
+ for i in range(len(data)):
95
+ data[i]["correctness"] = []
96
+ response_length_list += data[i]["response_length"]
97
+ index_list += [i] * len(data[i]["extracted_output"])
98
+ extracted_output_list += remove_endoftext(data[i]["extracted_output"])
99
+
100
+ nest_asyncio.apply()
101
+
102
+ async def get_correctness_all():
103
+ executor = ThreadPoolExecutor(max_workers=64)
104
+ tasks = []
105
+
106
+ for p in range(len(index_list)):
107
+ pred = extracted_output_list[p]
108
+ idx = index_list[p]
109
+
110
+ # 选择题正确性匹配逻辑
111
+ if config.dataset.data_type == "video_reverse" or config.evaluation.data_type == "video_reverse":
112
+ gt = data[idx].get("response", "")
113
+
114
+ async def mcq_check(p_str, g_str):
115
+ if p_str in g_str or g_str in p_str:
116
+ return True
117
+
118
+ p_str = str(p_str).strip()
119
+ g_str = str(g_str).strip()
120
+ p_match = re.search(r'^([A-Z])[\.\s]', p_str)
121
+ g_match = re.search(r'^([A-Z])[\.\s]', g_str)
122
+ if p_match and g_match:
123
+ return p_match.group(1) == g_match.group(1)
124
+ return g_str in p_str
125
+
126
+ tasks.append(mcq_check(pred, gt))
127
+ else:
128
+ gt = data[idx].get("ground_truth_answer", "")
129
+ tasks.append(math_utils_v.is_equal(pred, gt, executor))
130
+
131
+ return await asyncio.gather(*tasks)
132
+
133
+ correctness_all = asyncio.run(get_correctness_all())
134
+ for p, ok in enumerate(correctness_all):
135
+ index_i = index_list[p]
136
+ data[index_i]["correctness"].append(bool(ok))
137
+
138
+ # =========================================================================
139
+ # 核心新增逻辑:跨样本群组计算 T-GRPO 奖励 和 逆转无偏奖励
140
+ # =========================================================================
141
+
142
+ # 1. 按照 data_id 分组映射索引
143
+ grouped_data = defaultdict(lambda: {
144
+ "forward_False": [], "backward_False": [],
145
+ "forward_True": [], "backward_True": []
146
+ })
147
+
148
+ for i in range(len(data)):
149
+ d_id = data[i].get("data_id")
150
+ if d_id is None:
151
+ continue
152
+ r_type = data[i].get("reversal_type", "forward")
153
+ is_shuf = str(data[i].get("is_shuffled", False))
154
+ grouped_data[d_id][f"{r_type}_{is_shuf}"].append(i)
155
+
156
+ # 计算并应用群组奖励
157
+ all_temporal_bonuses = [] # 新增:记录所有的时序红利
158
+ all_unbiased_bonuses = [] # 新增:记录所有的无偏红利
159
+
160
+ # 2. 计算并应用群组奖励
161
+ for d_id, group in grouped_data.items():
162
+
163
+ def get_acc(key):
164
+ if not group[key]: return 0.0
165
+ idx = group[key][0]
166
+ corr = data[idx]["correctness"]
167
+ return sum(corr) / len(corr) if len(corr) > 0 else 0.0
168
+
169
+ # 获取四组情况的正确率
170
+ acc_f_ord = get_acc("forward_False")
171
+ acc_f_shuf = get_acc("forward_True")
172
+ acc_b_ord = get_acc("backward_False")
173
+ acc_b_shuf = get_acc("backward_True")
174
+
175
+ # T-GRPO 奖励: 顺序正确率 >= 0.8 * 打乱正确率,得 0.3
176
+ f_temporal_bonus = 0.3 if acc_f_ord >= 0.8 * acc_f_shuf else 0.0
177
+ b_temporal_bonus = 0.3 if acc_b_ord >= 0.8 * acc_b_shuf else 0.0
178
+
179
+ # 逆转无偏奖励: 正反正确率差值 <= 0.2,且都不是彻底全错,得 0.3
180
+ unbiased_bonus = 0.0
181
+ if abs(acc_f_ord - acc_b_ord) <= 0.2 and (acc_f_ord > 0.1 or acc_b_ord > 0.1):
182
+ unbiased_bonus = 0.3
183
+
184
+ # 新增:将当前组的奖励记录下来用于统计
185
+ if group["forward_False"]:
186
+ all_temporal_bonuses.append(f_temporal_bonus)
187
+ all_unbiased_bonuses.append(unbiased_bonus)
188
+ if group["backward_False"]:
189
+ all_temporal_bonuses.append(b_temporal_bonus)
190
+ all_unbiased_bonuses.append(unbiased_bonus)
191
+
192
+ # 仅将奖励发放给 顺序组(is_shuffled=False) 中回答正确的样本
193
+ def apply_bonus(key, temporal_bonus, unbiased_bonus):
194
+ if not group[key]: return
195
+ idx = group[key][0]
196
+ raw_rewards = []
197
+ for is_correct in data[idx]["correctness"]:
198
+ if is_correct:
199
+ # 基础分 1.0 + 时序红利 + 无偏红利
200
+ raw_rewards.append(1.0 + temporal_bonus + unbiased_bonus)
201
+ else:
202
+ raw_rewards.append(0.0)
203
+ data[idx]["raw_rewards"] = raw_rewards
204
+
205
+ apply_bonus("forward_False", f_temporal_bonus, unbiased_bonus)
206
+ apply_bonus("backward_False", b_temporal_bonus, unbiased_bonus)
207
+
208
+ # =========================================================================
209
+
210
+ def z_score_normalize(lst):
211
+ mean = sum(lst) / len(lst) if len(lst) > 0 else 0.0
212
+ std = (sum((x - mean) ** 2 for x in lst) / len(lst)) ** 0.5 if len(lst) > 0 else 0.0
213
+ if std == 0:
214
+ return [0 for _ in lst]
215
+ return [(x - mean) / std for x in lst]
216
+
217
+ final_data = []
218
+ ordered_correctness = [] # 用于日志打印,不记录被打乱的实验数据
219
+
220
+ for i in range(len(data)):
221
+ # 丢弃打乱的对照组,它们仅仅用于上面的计算参照,不进入强化学习
222
+ if data[i].get("is_shuffled", False):
223
+ continue
224
+
225
+ ordered_correctness.extend(data[i]["correctness"])
226
+
227
+ # 如果部分数据没有走过分组逻辑,默认回退为原始 correct 分数
228
+ raw_rewards = data[i].get("raw_rewards", [float(c) for c in data[i]["correctness"]])
229
+ lengths = data[i]["response_length"]
230
+
231
+ # 长度惩罚
232
+ if config.reward.strict_len_check:
233
+ for j in range(len(lengths)):
234
+ if OmegaConf.select(config, "rollout.max_gen_length", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_gen_length - 5:
235
+ raw_rewards[j] = 0.0
236
+ if OmegaConf.select(config, "rollout.max_token", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_token - 5:
237
+ raw_rewards[j] = 0.0
238
+
239
+ # Z-Score 优势归一化
240
+ rewards = z_score_normalize(raw_rewards)
241
+ data[i]["rewards"] = rewards
242
+
243
+ if config.experiment.function == "train":
244
+ proportion = sum(data[i]["correctness"]) / len(data[i]["correctness"]) if len(data[i]["correctness"]) > 0 else 0.0
245
+ # 如果全部回答都是错的,或者全是对的(无差别区分度),则剔除该样本
246
+ if proportion > 0.95 or proportion < 0.05:
247
+ continue
248
+
249
+ for j in range(len(rewards)):
250
+ data_i = {}
251
+ data_i["prompt"] = data[i]["prompt"]
252
+ data_i["reward"] = rewards[j]
253
+ data_i["response"] = data[i]["full_output"][j]
254
+ data_i["step_map"] = data[i]["step_map"][j]
255
+
256
+ # 保留其他需要的上下文 ID
257
+ data_i["data_id"] = data[i].get("data_id")
258
+ data_i["reversal_type"] = data[i].get("reversal_type")
259
+
260
+ if "image_token_ids" in data[i]:
261
+ data_i["image_token_ids"] = data[i]["image_token_ids"]
262
+
263
+ p_video_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "video")
264
+ if p_video_abs is not None:
265
+ data_i["video_abs_path"] = p_video_abs
266
+
267
+ p_image_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "image")
268
+ if p_image_abs is not None:
269
+ data_i["image_abs_path"] = p_image_abs
270
+
271
+ final_data.append(data_i)
272
+
273
+ if config.experiment.function == "evaluation":
274
+ data[i]["step_map"] = []
275
+
276
+ if config.experiment.function == "train":
277
+ with open("../" + project_name + "/temp_data/" + config.dataset.optimization_data + ".json", "w", encoding="utf-8") as f:
278
+ json.dump(final_data, f, indent=2, ensure_ascii=False)
279
+
280
+
281
+ os.makedirs(os.path.dirname(file_name), exist_ok=True)
282
+ with open(file_name, "w", encoding="utf-8") as f:
283
+ json.dump(data, f, indent=2, ensure_ascii=False)
284
+
285
+
286
+ outputs_result_name = "../" + project_name + "/results/results-" + outputs_name + ".txt"
287
+ os.makedirs(os.path.dirname(outputs_result_name), exist_ok=True)
288
+ with open(outputs_result_name, "a") as f:
289
+ # Save + print
290
+ def save_and_print(text):
291
+ cprint("\n\n\n" + text, color="green")
292
+ f.write(text + "\n")
293
+
294
+ # 只计算有序组(有效学习组)的准确率来作为监控指标
295
+ acc = (sum(ordered_correctness)/len(ordered_correctness)) if len(ordered_correctness) > 0 else float("nan")
296
+ avg_len = sum(response_length_list)/len(response_length_list)
297
+
298
+ # 新增:计算 T-GRPO 和 Unbiased 奖励的平均值
299
+ avg_temp = sum(all_temporal_bonuses)/len(all_temporal_bonuses) if all_temporal_bonuses else 0.0
300
+ avg_unbias = sum(all_unbiased_bonuses)/len(all_unbiased_bonuses) if all_unbiased_bonuses else 0.0
301
+
302
+ output_text = f"train step: {config.experiment.current_epoch} "
303
+ if config.experiment.function == "train":
304
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
305
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} block_size: {config.rollout.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
306
+ else:
307
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} top_k: {config.rollout.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
308
+ else:
309
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
310
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} block_size: {config.evaluation.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
311
+ else:
312
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} top_k: {config.evaluation.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
313
+ save_and_print(output_text)
314
+
315
+ if config.experiment.function == "train":
316
+ csv_file_path = f"../{project_name}/results/all_rewards.csv"
317
+
318
+ # 如果是第1个 epoch/step,或者是新文件,就先写入表头
319
+ write_header = not os.path.exists(csv_file_path) or config.experiment.current_epoch == 1
320
+
321
+ with open(csv_file_path, "a", encoding="utf-8") as f_csv:
322
+ if write_header:
323
+ f_csv.write("step,acc_reward,t_grpo_reward,unbiased_reward,response_length\n")
324
+
325
+ # 按行追加当前 step 的数据
326
+ f_csv.write(f"{config.experiment.current_epoch},{acc:.4f},{avg_temp:.4f},{avg_unbias:.4f},{avg_len:.2f}\n")
327
+
328
+ if run is not None:
329
+ wandb.log(
330
+ {
331
+ "reward/acc": acc,
332
+ "reward/t_grpo_bonus": avg_temp,
333
+ "reward/unbiased_bonus": avg_unbias,
334
+ "reward/avg_response_length": avg_len,
335
+ "reward/train_step": config.experiment.current_epoch,
336
+ },
337
+ step=config.experiment.current_epoch,
338
+ )
339
+ wandb.finish()
reward/wandb/run-20260530_084258-fmmkx1a5/files/config.yaml ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.0
4
+ code_path: code/reward/rl_reward_video_reversal.py
5
+ e:
6
+ 2aacvefe0obt8wa99uruiotru45v48a8:
7
+ args:
8
+ - config=../configs/rl_lavida_video_reversal.yaml
9
+ - wandb.run_id=fmmkx1a5
10
+ - experiment.function=train
11
+ - evaluation.block_size=None
12
+ - evaluation.top_k=None
13
+ - evaluation.remasking_strategy=None
14
+ - experiment.current_epoch=12
15
+ codePath: reward/rl_reward_video_reversal.py
16
+ codePathLocal: rl_reward_video_reversal.py
17
+ cpu_count: 96
18
+ cpu_count_logical: 192
19
+ cudaVersion: "12.8"
20
+ disk:
21
+ /:
22
+ total: "806578724864"
23
+ used: "625488928768"
24
+ email: shixi_runqing@staff.weibo.com
25
+ executable: /data8/runqing/miniconda/envs/dllm-rl/bin/python
26
+ git:
27
+ commit: 10b4fd1cba83e4496c20585dc2fd01dc02f20255
28
+ remote: https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git
29
+ gpu: NVIDIA H800
30
+ gpu_count: 8
31
+ gpu_nvidia:
32
+ - architecture: Hopper
33
+ cudaCores: 16896
34
+ memoryTotal: "85520809984"
35
+ name: NVIDIA H800
36
+ uuid: GPU-f768b684-b9ce-23a2-81a6-af16161cf9be
37
+ - architecture: Hopper
38
+ cudaCores: 16896
39
+ memoryTotal: "85520809984"
40
+ name: NVIDIA H800
41
+ uuid: GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9
42
+ - architecture: Hopper
43
+ cudaCores: 16896
44
+ memoryTotal: "85520809984"
45
+ name: NVIDIA H800
46
+ uuid: GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6
47
+ - architecture: Hopper
48
+ cudaCores: 16896
49
+ memoryTotal: "85520809984"
50
+ name: NVIDIA H800
51
+ uuid: GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53
52
+ - architecture: Hopper
53
+ cudaCores: 16896
54
+ memoryTotal: "85520809984"
55
+ name: NVIDIA H800
56
+ uuid: GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad
57
+ - architecture: Hopper
58
+ cudaCores: 16896
59
+ memoryTotal: "85520809984"
60
+ name: NVIDIA H800
61
+ uuid: GPU-f531028f-805c-3301-61b3-0c46329dc9c0
62
+ - architecture: Hopper
63
+ cudaCores: 16896
64
+ memoryTotal: "85520809984"
65
+ name: NVIDIA H800
66
+ uuid: GPU-2775489f-18c8-2328-8829-c46238575379
67
+ - architecture: Hopper
68
+ cudaCores: 16896
69
+ memoryTotal: "85520809984"
70
+ name: NVIDIA H800
71
+ uuid: GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd
72
+ host: b1301b38c75f
73
+ memory:
74
+ total: "2164113764352"
75
+ os: Linux-5.15.0-144-generic-x86_64-with-glibc2.35
76
+ program: /data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py
77
+ python: CPython 3.10.19
78
+ root: /data4/runqing/dLLM-RL/reward
79
+ startedAt: "2026-05-30T00:42:58.584735Z"
80
+ writerId: 2aacvefe0obt8wa99uruiotru45v48a8
81
+ m: []
82
+ python_version: 3.10.19
83
+ t:
84
+ "1":
85
+ - 1
86
+ - 41
87
+ "2":
88
+ - 1
89
+ - 41
90
+ "3":
91
+ - 2
92
+ - 5
93
+ - 13
94
+ - 14
95
+ - 16
96
+ - 61
97
+ - 62
98
+ "4": 3.10.19
99
+ "5": 0.25.0
100
+ "10":
101
+ - 20
102
+ "12": 0.25.0
103
+ "13": linux-x86_64
104
+ config:
105
+ value: ../configs/rl_lavida_video_reversal.yaml
106
+ dataset.data_type:
107
+ value: video_reverse
108
+ dataset.optimization_data:
109
+ value: rl_data
110
+ dataset.train_dataset:
111
+ value: video_reversal_rl_train
112
+ evaluation.batch_size:
113
+ value: 1
114
+ evaluation.block_size:
115
+ value: None
116
+ evaluation.data_type:
117
+ value: video_reverse
118
+ evaluation.dynamic_threshold:
119
+ value: 0.9
120
+ evaluation.eval_dataset:
121
+ value: video_reversal_rl_eval
122
+ evaluation.further_horizon:
123
+ value: 128
124
+ evaluation.if_eval:
125
+ value: false
126
+ evaluation.max_gen_length:
127
+ value: 128
128
+ evaluation.num_response_per_task:
129
+ value: 3
130
+ evaluation.remasking_strategy:
131
+ value: None
132
+ evaluation.remasking_strategy.0:
133
+ value: low_confidence_static
134
+ evaluation.remasking_strategy.1:
135
+ value: low_confidence_dynamic
136
+ evaluation.steps:
137
+ value: 128
138
+ evaluation.target:
139
+ value: confidence
140
+ evaluation.temperature:
141
+ value: 0.1
142
+ evaluation.top_k:
143
+ value: None
144
+ evaluation.use_cache:
145
+ value: true
146
+ execute.num_chunk:
147
+ value: 128
148
+ experiment.current_epoch:
149
+ value: 12
150
+ experiment.deepspeed_file:
151
+ value: 1_node_8_gpus_deepspeed_zero2
152
+ experiment.eval_every:
153
+ value: 5
154
+ experiment.function:
155
+ value: train
156
+ experiment.logging_dir:
157
+ value: rl_lavida_video_reversal/logs
158
+ experiment.node_index:
159
+ value: 0
160
+ experiment.num_node:
161
+ value: 1
162
+ experiment.project:
163
+ value: rl_lavida_video_reversal
164
+ experiment.save_every:
165
+ value: 10
166
+ experiment.start_from_scratch:
167
+ value: true
168
+ experiment.total_step:
169
+ value: 30
170
+ lr_scheduler.params.learning_rate:
171
+ value: 1e-06
172
+ lr_scheduler.params.min_lr_scale:
173
+ value: 1
174
+ lr_scheduler.params.warmup_steps:
175
+ value: 0
176
+ lr_scheduler.scheduler:
177
+ value: cosine
178
+ model.image_resolution:
179
+ value: 512
180
+ model.model_base:
181
+ value: lavida
182
+ model.optimized_name:
183
+ value: optimized
184
+ model.pretrained_model:
185
+ value: /data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized
186
+ model.vq_model_path:
187
+ value: /data4/runqing/hf/magvitv2
188
+ optimizer.name:
189
+ value: adamw
190
+ optimizer.params.beta1:
191
+ value: 0.9
192
+ optimizer.params.beta2:
193
+ value: 0.999
194
+ optimizer.params.epsilon:
195
+ value: 1e-08
196
+ optimizer.params.learning_rate:
197
+ value: 1e-06
198
+ optimizer.params.scale_lr:
199
+ value: false
200
+ optimizer.params.weight_decay:
201
+ value: 0
202
+ reward.answer_must_in_box:
203
+ value: true
204
+ reward.strict_len_check:
205
+ value: false
206
+ rollout.batch_size:
207
+ value: 1
208
+ rollout.block_size:
209
+ value: 32
210
+ rollout.dynamic_threshold:
211
+ value: 0.9
212
+ rollout.further_horizon:
213
+ value: 128
214
+ rollout.max_gen_length:
215
+ value: 128
216
+ rollout.num_response_per_task:
217
+ value: 8
218
+ rollout.num_task_per_step:
219
+ value: 128
220
+ rollout.remasking_strategy:
221
+ value: low_confidence_dynamic
222
+ rollout.steps:
223
+ value: 128
224
+ rollout.target:
225
+ value: confidence
226
+ rollout.temperature:
227
+ value: 0.8
228
+ rollout.use_cache:
229
+ value: true
230
+ system.HF_HOME:
231
+ value: null
232
+ system.HTTP_PROXY:
233
+ value: null
234
+ system.base_dir:
235
+ value: /data4/runqing/dLLM-RL
236
+ system.env_name:
237
+ value: /data8/runqing/miniconda/envs/dllm-rl
238
+ system.envs_dir:
239
+ value: /data8/runqing/miniconda/envs/dllm-rl
240
+ training.batch_size_lm:
241
+ value: 1
242
+ training.beta:
243
+ value: 0.01
244
+ training.enable_tf32:
245
+ value: true
246
+ training.eps:
247
+ value: 0.2
248
+ training.gradient_accumulation_steps:
249
+ value: 2
250
+ training.lower_p:
251
+ value: 0.35
252
+ training.mask_times_per_sample:
253
+ value: 2
254
+ training.max_gen_length:
255
+ value: 128
256
+ training.max_grad_norm:
257
+ value: 1
258
+ training.max_prompt_len:
259
+ value: 512
260
+ training.method:
261
+ value: random_masking
262
+ training.mixed_precision:
263
+ value: bf16
264
+ training.num_train_epochs:
265
+ value: 1
266
+ training.post_num:
267
+ value: 1
268
+ training.seed:
269
+ value: 10086
270
+ training.shrink:
271
+ value: 8
272
+ training.upper_p:
273
+ value: 0.9
274
+ training.use_kl_estimator_k3:
275
+ value: true
276
+ wandb.entity:
277
+ value: null
278
+ wandb.resume:
279
+ value: auto
280
+ wandb.run_id:
281
+ value: fmmkx1a5
reward/wandb/run-20260530_084258-fmmkx1a5/files/output.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+
2
+
3
+
4
+ train step: 12 remasking_strategy: low_confidence_dynamic block_size: 32 acc: 0.3457 avg length: 126.02
reward/wandb/run-20260530_084258-fmmkx1a5/files/requirements.txt ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ transformers==4.52.4
2
+ nvidia-nvtx-cu12==12.4.127
3
+ deepspeed==0.18.6
4
+ typing-inspection==0.4.2
5
+ scipy==1.15.3
6
+ MarkupSafe==3.0.3
7
+ nvidia-cuda-runtime-cu12==12.4.127
8
+ detoxify==0.5.2
9
+ yarl==1.22.0
10
+ tornado==6.5.4
11
+ nvidia-curand-cu12==10.3.5.147
12
+ nest-asyncio==1.6.0
13
+ safetensors==0.7.0
14
+ async-timeout==5.0.1
15
+ typing_extensions==4.15.0
16
+ asttokens==3.0.1
17
+ cuda-python==13.1.1
18
+ executing==2.2.1
19
+ nvidia-cudnn-frontend==1.18.0
20
+ comm==0.2.3
21
+ tokenizers==0.21.4
22
+ six==1.17.0
23
+ Pygments==2.19.2
24
+ nvidia-cusparselt-cu12==0.6.2
25
+ apache-tvm-ffi==0.1.8.post2
26
+ flash_attn==2.7.4.post1
27
+ tqdm==4.67.3
28
+ tensorboard-data-server==0.7.2
29
+ annotated-types==0.7.0
30
+ math-verify==0.9.0
31
+ idna==3.11
32
+ regex==2026.1.15
33
+ nvidia-cutlass-dsl-libs-base==4.4.0
34
+ flashinfer-python==0.6.3
35
+ click==8.3.1
36
+ pytz==2025.2
37
+ wheel==0.46.3
38
+ ipykernel==7.2.0
39
+ stack-data==0.6.3
40
+ absl-py==2.4.0
41
+ wandb==0.25.0
42
+ pandas==2.3.3
43
+ termcolor==3.3.0
44
+ sympy==1.13.1
45
+ joblib==1.5.3
46
+ prompt_toolkit==3.0.52
47
+ attrs==25.4.0
48
+ nvidia-cusolver-cu12==11.6.1.9
49
+ xxhash==3.6.0
50
+ aiohappyeyeballs==2.6.1
51
+ python-dateutil==2.9.0.post0
52
+ frozenlist==1.8.0
53
+ nvidia-ml-py==13.590.48
54
+ multiprocess==0.70.18
55
+ decorator==5.2.1
56
+ cuda-pathfinder==1.3.4
57
+ multidict==6.7.1
58
+ pure_eval==0.2.3
59
+ nvidia-cufft-cu12==11.2.1.3
60
+ omegaconf==2.3.0
61
+ PyYAML==6.0.3
62
+ debugpy==1.8.20
63
+ psutil==7.2.2
64
+ ninja==1.13.0
65
+ nvidia-cublas-cu12==12.4.5.8
66
+ triton==3.2.0
67
+ antlr4-python3-runtime==4.9.3
68
+ peft==0.18.1
69
+ aiosignal==1.4.0
70
+ accelerate==1.12.0
71
+ liger_kernel==0.7.0
72
+ anyio==4.12.1
73
+ decord==0.6.0
74
+ h11==0.16.0
75
+ urllib3==2.6.3
76
+ wcwidth==0.6.0
77
+ networkx==3.4.2
78
+ huggingface_hub==0.36.2
79
+ tzdata==2025.3
80
+ xformers==0.0.29.post3
81
+ tabulate==0.9.0
82
+ certifi==2026.1.4
83
+ tensorboard==2.20.0
84
+ matplotlib-inline==0.2.1
85
+ pip==26.0.1
86
+ smmap==5.0.2
87
+ nvidia-cuda-cupti-cu12==12.4.127
88
+ Markdown==3.10.2
89
+ nvidia-nccl-cu12==2.21.5
90
+ aiohttp==3.13.3
91
+ scikit-learn==1.7.2
92
+ nvidia-cutlass-dsl==4.4.0
93
+ setuptools==82.0.0
94
+ jupyter_core==5.9.1
95
+ asyncio==4.0.0
96
+ einops==0.8.2
97
+ pydantic==2.12.5
98
+ av==16.1.0
99
+ protobuf==6.33.5
100
+ evaluate==0.4.6
101
+ Jinja2==3.1.6
102
+ exceptiongroup==1.3.1
103
+ ipython==8.38.0
104
+ sentry-sdk==2.53.0
105
+ httpx==0.28.1
106
+ msgpack==1.1.2
107
+ platformdirs==4.9.2
108
+ hjson==3.1.0
109
+ torchvision==0.21.0
110
+ parso==0.8.6
111
+ cuda-bindings==13.1.1
112
+ pexpect==4.9.0
113
+ threadpoolctl==3.6.0
114
+ pyarrow==23.0.1
115
+ jedi==0.19.2
116
+ nvidia-cuda-nvrtc-cu12==12.4.127
117
+ Werkzeug==3.1.5
118
+ fsspec==2025.10.0
119
+ pydantic_core==2.41.5
120
+ GitPython==3.1.46
121
+ propcache==0.4.1
122
+ mpmath==1.3.0
123
+ nvidia-nvjitlink-cu12==12.4.127
124
+ nvidia-cusparse-cu12==12.3.1.170
125
+ hf-xet==1.2.0
126
+ charset-normalizer==3.4.4
127
+ dill==0.4.0
128
+ datasets==4.5.0
129
+ py-cpuinfo==9.0.0
130
+ sentencepiece==0.2.1
131
+ latex2sympy2_extended==1.11.0
132
+ jupyter_client==8.8.0
133
+ pyzmq==27.1.0
134
+ numpy==2.2.6
135
+ gitdb==4.0.12
136
+ grpcio==1.78.0
137
+ packaging==26.0
138
+ requests==2.32.5
139
+ nvidia-cudnn-cu12==9.1.0.70
140
+ httpcore==1.0.9
141
+ traitlets==5.14.3
142
+ filelock==3.24.2
143
+ ptyprocess==0.7.0
144
+ pillow==12.1.1
145
+ torch==2.6.0
146
+ more-itertools==10.8.0
147
+ wheel==0.46.3
148
+ jaraco.text==4.0.0
149
+ zipp==3.23.0
150
+ autocommand==2.2.2
151
+ jaraco.context==6.1.0
152
+ jaraco.functools==4.4.0
153
+ tomli==2.4.0
154
+ backports.tarfile==1.2.0
155
+ importlib_metadata==8.7.1
156
+ platformdirs==4.4.0
157
+ packaging==26.0
reward/wandb/run-20260530_084258-fmmkx1a5/files/wandb-metadata.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.15.0-144-generic-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.19",
4
+ "startedAt": "2026-05-30T00:42:58.584735Z",
5
+ "args": [
6
+ "config=../configs/rl_lavida_video_reversal.yaml",
7
+ "wandb.run_id=fmmkx1a5",
8
+ "experiment.function=train",
9
+ "evaluation.block_size=None",
10
+ "evaluation.top_k=None",
11
+ "evaluation.remasking_strategy=None",
12
+ "experiment.current_epoch=12"
13
+ ],
14
+ "program": "/data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py",
15
+ "codePath": "reward/rl_reward_video_reversal.py",
16
+ "codePathLocal": "rl_reward_video_reversal.py",
17
+ "git": {
18
+ "remote": "https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git",
19
+ "commit": "10b4fd1cba83e4496c20585dc2fd01dc02f20255"
20
+ },
21
+ "email": "shixi_runqing@staff.weibo.com",
22
+ "root": "/data4/runqing/dLLM-RL/reward",
23
+ "host": "b1301b38c75f",
24
+ "executable": "/data8/runqing/miniconda/envs/dllm-rl/bin/python",
25
+ "cpu_count": 96,
26
+ "cpu_count_logical": 192,
27
+ "gpu": "NVIDIA H800",
28
+ "gpu_count": 8,
29
+ "disk": {
30
+ "/": {
31
+ "total": "806578724864",
32
+ "used": "625488928768"
33
+ }
34
+ },
35
+ "memory": {
36
+ "total": "2164113764352"
37
+ },
38
+ "gpu_nvidia": [
39
+ {
40
+ "name": "NVIDIA H800",
41
+ "memoryTotal": "85520809984",
42
+ "cudaCores": 16896,
43
+ "architecture": "Hopper",
44
+ "uuid": "GPU-f768b684-b9ce-23a2-81a6-af16161cf9be"
45
+ },
46
+ {
47
+ "name": "NVIDIA H800",
48
+ "memoryTotal": "85520809984",
49
+ "cudaCores": 16896,
50
+ "architecture": "Hopper",
51
+ "uuid": "GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9"
52
+ },
53
+ {
54
+ "name": "NVIDIA H800",
55
+ "memoryTotal": "85520809984",
56
+ "cudaCores": 16896,
57
+ "architecture": "Hopper",
58
+ "uuid": "GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6"
59
+ },
60
+ {
61
+ "name": "NVIDIA H800",
62
+ "memoryTotal": "85520809984",
63
+ "cudaCores": 16896,
64
+ "architecture": "Hopper",
65
+ "uuid": "GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53"
66
+ },
67
+ {
68
+ "name": "NVIDIA H800",
69
+ "memoryTotal": "85520809984",
70
+ "cudaCores": 16896,
71
+ "architecture": "Hopper",
72
+ "uuid": "GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad"
73
+ },
74
+ {
75
+ "name": "NVIDIA H800",
76
+ "memoryTotal": "85520809984",
77
+ "cudaCores": 16896,
78
+ "architecture": "Hopper",
79
+ "uuid": "GPU-f531028f-805c-3301-61b3-0c46329dc9c0"
80
+ },
81
+ {
82
+ "name": "NVIDIA H800",
83
+ "memoryTotal": "85520809984",
84
+ "cudaCores": 16896,
85
+ "architecture": "Hopper",
86
+ "uuid": "GPU-2775489f-18c8-2328-8829-c46238575379"
87
+ },
88
+ {
89
+ "name": "NVIDIA H800",
90
+ "memoryTotal": "85520809984",
91
+ "cudaCores": 16896,
92
+ "architecture": "Hopper",
93
+ "uuid": "GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd"
94
+ }
95
+ ],
96
+ "cudaVersion": "12.8",
97
+ "writerId": "2aacvefe0obt8wa99uruiotru45v48a8"
98
+ }
reward/wandb/run-20260530_084258-fmmkx1a5/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"reward/avg_response_length":124.568359375,"reward/t_grpo_bonus":0.2718750000000003,"reward/train_step":1,"reward/unbiased_bonus":0.09374999999999996,"_wandb":{"runtime":9652},"train/learning_rate":7.985792958513929e-07,"_runtime":9652,"reward/acc":0.396484375,"_step":26,"_timestamp":1.7800760271916904e+09,"train/loss":-0.37430867552757263}
reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug-core.log ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T08:42:58.651507091+08:00","level":"INFO","msg":"main: starting server","port-filename":"/tmp/tmp0xbcec7n/port-2623782.txt","pid":2623782,"log-level":0,"disable-analytics":false,"shutdown-on-parent-exit":false,"enable-dcgm-profiling":false}
2
+ {"time":"2026-05-30T08:42:58.6525989+08:00","level":"INFO","msg":"server: will exit if parent process dies","ppid":2623782}
3
+ {"time":"2026-05-30T08:42:58.652550723+08:00","level":"INFO","msg":"server: accepting connections","addr":{"Name":"/tmp/wandb-2623782-2623941-40438141/socket","Net":"unix"}}
4
+ {"time":"2026-05-30T08:42:58.833109411+08:00","level":"INFO","msg":"connection: ManageConnectionData: new connection created","id":"1(@)"}
5
+ {"time":"2026-05-30T08:42:58.841828573+08:00","level":"INFO","msg":"handleInformInit: received","streamId":"fmmkx1a5","id":"1(@)"}
6
+ {"time":"2026-05-30T08:42:59.150562688+08:00","level":"INFO","msg":"handleInformInit: stream started","streamId":"fmmkx1a5","id":"1(@)"}
7
+ {"time":"2026-05-30T08:42:59.646886909+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"9crt38nk4siv"}
8
+ {"time":"2026-05-30T08:42:59.827269344+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"9crt38nk4siv"}
9
+ {"time":"2026-05-30T08:42:59.827754355+08:00","level":"INFO","msg":"handleInformFinish: finish message received","streamId":"fmmkx1a5","id":"1(@)"}
10
+ {"time":"2026-05-30T08:42:59.829005532+08:00","level":"INFO","msg":"handleInformFinish: stream closed","streamId":"fmmkx1a5","id":"1(@)"}
11
+ {"time":"2026-05-30T08:42:59.829017088+08:00","level":"INFO","msg":"handleInformTeardown: server teardown initiated","id":"1(@)"}
12
+ {"time":"2026-05-30T08:42:59.829027529+08:00","level":"INFO","msg":"handleInformTeardown: server shutdown complete","id":"1(@)"}
13
+ {"time":"2026-05-30T08:42:59.829038181+08:00","level":"INFO","msg":"connection: closing","id":"1(@)"}
14
+ {"time":"2026-05-30T08:42:59.829050017+08:00","level":"INFO","msg":"server is shutting down"}
15
+ {"time":"2026-05-30T08:42:59.82907331+08:00","level":"INFO","msg":"connection: closed successfully","id":"1(@)"}
16
+ {"time":"2026-05-30T08:42:59.829131312+08:00","level":"INFO","msg":"connection: ManageConnectionData: connection closed","id":"1(@)"}
17
+ {"time":"2026-05-30T08:42:59.82928606+08:00","level":"INFO","msg":"server: listener closed","addr":{"Name":"/tmp/wandb-2623782-2623941-40438141/socket","Net":"unix"}}
18
+ {"time":"2026-05-30T08:42:59.82934797+08:00","level":"INFO","msg":"server is closed"}
reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug-internal.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T08:42:58.842033301+08:00","level":"INFO","msg":"stream: starting","core version":"0.25.0"}
2
+ {"time":"2026-05-30T08:42:59.14996453+08:00","level":"ERROR","msg":"featurechecker: failed to load features, all will be disabled","error":"input:4:3: Cannot query field \"features\" on type \"ServerInfo\".\n"}
3
+ {"time":"2026-05-30T08:42:59.150188431+08:00","level":"INFO","msg":"stream: created new stream","id":"fmmkx1a5"}
4
+ {"time":"2026-05-30T08:42:59.15028258+08:00","level":"INFO","msg":"handler: started","stream_id":"fmmkx1a5"}
5
+ {"time":"2026-05-30T08:42:59.150542823+08:00","level":"INFO","msg":"stream: started","id":"fmmkx1a5"}
6
+ {"time":"2026-05-30T08:42:59.150585703+08:00","level":"INFO","msg":"sender: started","stream_id":"fmmkx1a5"}
7
+ {"time":"2026-05-30T08:42:59.150587877+08:00","level":"INFO","msg":"writer: started","stream_id":"fmmkx1a5"}
8
+ {"time":"2026-05-30T08:42:59.153753763+08:00","level":"WARN","msg":"runupserter: server does not expand metric globs but the x_server_side_expand_glob_metrics setting is set; ignoring"}
9
+ {"time":"2026-05-30T08:42:59.432660244+08:00","level":"ERROR","msg":"git repo not found","error":"repository does not exist"}
10
+ {"time":"2026-05-30T08:42:59.646942355+08:00","level":"WARN","msg":"handler: ignoring partial history record","step":12,"current":27}
11
+ {"time":"2026-05-30T08:42:59.773783859+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=dc957bb8647c8b4b83f95bb2b78244c9843049a4f9bdfc34e83b90b26f272734"}
12
+ {"time":"2026-05-30T08:42:59.773979505+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Resource><RequestId>18B431232722F535</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/files/config.yaml, Name: config.yaml, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=dc957bb8647c8b4b83f95bb2b78244c9843049a4f9bdfc34e83b90b26f272734, Size: 7996}"}
13
+ {"time":"2026-05-30T08:42:59.77456765+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=0ee63f85d0f2320a8842a142c53b7bda58c9d52fdabd61663d44d6fad6653878"}
14
+ {"time":"2026-05-30T08:42:59.774747612+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Resource><RequestId>18B4312326DF88B4</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/files/output.log, Name: output.log, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=0ee63f85d0f2320a8842a142c53b7bda58c9d52fdabd61663d44d6fad6653878, Size: 111}"}
15
+ {"time":"2026-05-30T08:42:59.776054459+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=457b1ef0410fa65e447821702eb7666d6f4542bab0f8fcee9239d3e5c766be63"}
16
+ {"time":"2026-05-30T08:42:59.776253156+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Resource><RequestId>18B43123264E33CF</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/files/requirements.txt, Name: requirements.txt, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=457b1ef0410fa65e447821702eb7666d6f4542bab0f8fcee9239d3e5c766be63, Size: 2982}"}
17
+ {"time":"2026-05-30T08:42:59.776608103+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fef79f56ca13c941e61228ed10f80d81745d5a6258fb502d7593c4327c31a32c"}
18
+ {"time":"2026-05-30T08:42:59.776696418+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Resource><RequestId>18B431232644599A</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/files/wandb-metadata.json, Name: wandb-metadata.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fef79f56ca13c941e61228ed10f80d81745d5a6258fb502d7593c4327c31a32c, Size: 2850}"}
19
+ {"time":"2026-05-30T08:42:59.779167328+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fdebf0437d6cae1da1bf80601acf92e4b5be9d3eb8a3489c3176ad7e9442b995"}
20
+ {"time":"2026-05-30T08:42:59.779297778+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Resource><RequestId>18B43123266BFA54</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/files/wandb-summary.json, Name: wandb-summary.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fdebf0437d6cae1da1bf80601acf92e4b5be9d3eb8a3489c3176ad7e9442b995, Size: 343}"}
21
+ {"time":"2026-05-30T08:42:59.781388436+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=8dedff0374eeb4f186f6ed930d2c298b4447f95484032bf22844acac50393168"}
22
+ {"time":"2026-05-30T08:42:59.781455578+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Resource><RequestId>18B4312326D62EA8</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py, Name: code/reward/rl_reward_video_reversal.py, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T004259Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=8dedff0374eeb4f186f6ed930d2c298b4447f95484032bf22844acac50393168, Size: 14790}"}
23
+ {"time":"2026-05-30T08:42:59.782109924+08:00","level":"INFO","msg":"fileTransfer: Close: file transfer manager closed"}
24
+ {"time":"2026-05-30T08:42:59.823322592+08:00","level":"INFO","msg":"handler: operation stats","stats":{}}
25
+ {"time":"2026-05-30T08:42:59.827776338+08:00","level":"INFO","msg":"stream: closing","id":"fmmkx1a5"}
26
+ {"time":"2026-05-30T08:42:59.827791816+08:00","level":"INFO","msg":"handler: closed","stream_id":"fmmkx1a5"}
27
+ {"time":"2026-05-30T08:42:59.82785749+08:00","level":"INFO","msg":"sender: closed","stream_id":"fmmkx1a5"}
28
+ {"time":"2026-05-30T08:42:59.827869944+08:00","level":"INFO","msg":"stream: closed","id":"fmmkx1a5"}
reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug.log ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_setup.py:_flush():81] Current SDK version is 0.25.0
2
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_setup.py:_flush():81] Configure stats pid to 2623782
3
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_setup.py:_flush():81] Loading settings from environment variables
4
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_init.py:setup_run_log_directory():717] Logging user logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug.log
5
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_init.py:setup_run_log_directory():718] Logging internal logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_084258-fmmkx1a5/logs/debug-internal.log
6
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_init.py:init():844] calling init triggers
7
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_init.py:init():849] wandb.init called with sweep_config: {}
8
+ config: {'wandb.entity': None, 'wandb.resume': 'auto', 'wandb.run_id': 'fmmkx1a5', 'system.HTTP_PROXY': None, 'system.HF_HOME': None, 'system.env_name': '/data8/runqing/miniconda/envs/dllm-rl', 'system.envs_dir': '/data8/runqing/miniconda/envs/dllm-rl', 'system.base_dir': '/data4/runqing/dLLM-RL', 'experiment.project': 'rl_lavida_video_reversal', 'experiment.function': 'train', 'experiment.start_from_scratch': True, 'experiment.total_step': 30, 'experiment.save_every': 10, 'experiment.eval_every': 5, 'experiment.current_epoch': 12, 'experiment.deepspeed_file': '1_node_8_gpus_deepspeed_zero2', 'experiment.num_node': 1, 'experiment.node_index': 0, 'model.pretrained_model': '/data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized', 'model.optimized_name': 'optimized', 'model.model_base': 'lavida', 'model.vq_model_path': '/data4/runqing/hf/magvitv2', 'model.image_resolution': 512, 'dataset.train_dataset': 'video_reversal_rl_train', 'dataset.data_type': 'video_reverse', 'dataset.optimization_data': 'rl_data', 'rollout.num_task_per_step': 128, 'rollout.num_response_per_task': 8, 'rollout.temperature': 0.8, 'rollout.steps': 128, 'rollout.max_gen_length': 128, 'rollout.batch_size': 1, 'rollout.remasking_strategy': 'low_confidence_dynamic', 'rollout.target': 'confidence', 'rollout.dynamic_threshold': 0.9, 'rollout.block_size': 32, 'rollout.further_horizon': 128, 'rollout.use_cache': True, 'reward.answer_must_in_box': True, 'reward.strict_len_check': False, 'execute.num_chunk': 128, 'training.gradient_accumulation_steps': 2, 'training.batch_size_lm': 1, 'training.mixed_precision': 'bf16', 'training.enable_tf32': True, 'training.seed': 10086, 'training.num_train_epochs': 1, 'training.max_grad_norm': 1.0, 'training.method': 'random_masking', 'training.lower_p': 0.35, 'training.upper_p': 0.9, 'training.shrink': 8, 'training.post_num': 1, 'training.mask_times_per_sample': 2, 'training.max_gen_length': 128, 'training.max_prompt_len': 512, 'training.eps': 0.2, 'training.beta': 0.01, 'training.use_kl_estimator_k3': True, 'optimizer.name': 'adamw', 'optimizer.params.learning_rate': 1e-06, 'optimizer.params.scale_lr': False, 'optimizer.params.beta1': 0.9, 'optimizer.params.beta2': 0.999, 'optimizer.params.weight_decay': 0.0, 'optimizer.params.epsilon': 1e-08, 'lr_scheduler.scheduler': 'cosine', 'lr_scheduler.params.learning_rate': 1e-06, 'lr_scheduler.params.warmup_steps': 0, 'lr_scheduler.params.min_lr_scale': 1.0, 'evaluation.if_eval': False, 'evaluation.eval_dataset': 'video_reversal_rl_eval', 'evaluation.data_type': 'video_reverse', 'evaluation.num_response_per_task': 3, 'evaluation.temperature': 0.1, 'evaluation.steps': 128, 'evaluation.max_gen_length': 128, 'evaluation.batch_size': 1, 'evaluation.remasking_strategy': 'None', 'evaluation.target': 'confidence', 'evaluation.dynamic_threshold': 0.9, 'evaluation.block_size': 'None', 'evaluation.further_horizon': 128, 'evaluation.use_cache': True, 'evaluation.top_k': 'None', 'config': '../configs/rl_lavida_video_reversal.yaml', '_wandb': {'code_path': 'code/reward/rl_reward_video_reversal.py'}}
9
+ 2026-05-30 08:42:58,588 INFO MainThread:2623782 [wandb_init.py:init():892] starting backend
10
+ 2026-05-30 08:42:58,833 INFO MainThread:2623782 [wandb_init.py:init():895] sending inform_init request
11
+ 2026-05-30 08:42:58,838 INFO MainThread:2623782 [wandb_init.py:init():903] backend started and connected
12
+ 2026-05-30 08:42:58,840 INFO MainThread:2623782 [wandb_init.py:init():973] updated telemetry
13
+ 2026-05-30 08:42:58,843 INFO MainThread:2623782 [wandb_init.py:init():997] communicating run to backend with 90.0 second timeout
14
+ 2026-05-30 08:42:59,426 INFO MainThread:2623782 [wandb_init.py:init():1037] run resumed
15
+ 2026-05-30 08:42:59,430 INFO MainThread:2623782 [wandb_init.py:init():1042] starting run threads in backend
16
+ 2026-05-30 08:42:59,520 INFO MainThread:2623782 [wandb_run.py:_console_start():2524] atexit reg
17
+ 2026-05-30 08:42:59,520 INFO MainThread:2623782 [wandb_run.py:_redirect():2373] redirect: wrap_raw
18
+ 2026-05-30 08:42:59,520 INFO MainThread:2623782 [wandb_run.py:_redirect():2442] Wrapping output streams.
19
+ 2026-05-30 08:42:59,520 INFO MainThread:2623782 [wandb_run.py:_redirect():2465] Redirects installed.
20
+ 2026-05-30 08:42:59,524 INFO MainThread:2623782 [wandb_init.py:init():1082] run started, returning control to user process
21
+ 2026-05-30 08:42:59,644 INFO MainThread:2623782 [wandb_run.py:_finish():2291] finishing run shixi_runqing/rl_lavida_video_reversal/fmmkx1a5
22
+ 2026-05-30 08:42:59,644 INFO MainThread:2623782 [wandb_run.py:_atexit_cleanup():2490] got exitcode: 0
23
+ 2026-05-30 08:42:59,645 INFO MainThread:2623782 [wandb_run.py:_restore():2472] restore
24
+ 2026-05-30 08:42:59,645 INFO MainThread:2623782 [wandb_run.py:_restore():2478] restore done
25
+ 2026-05-30 08:42:59,827 INFO MainThread:2623782 [wandb_run.py:_footer_sync_info():3868] logging synced files
reward/wandb/run-20260530_084258-fmmkx1a5/run-fmmkx1a5.wandb ADDED
Binary file (6.1 kB). View file
 
reward/wandb/run-20260530_094731-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import math_utils_v
3
+ import nest_asyncio
4
+ from concurrent.futures import ThreadPoolExecutor
5
+ import asyncio
6
+ import re
7
+ from termcolor import cprint
8
+ from omegaconf import MISSING
9
+ from omegaconf import DictConfig, ListConfig, OmegaConf
10
+ from typing import List, Union
11
+ import os
12
+ from collections import defaultdict
13
+ import sys
14
+
15
+ REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
+ sys.path.insert(0, REPO_ROOT)
17
+
18
+ import wandb
19
+ from train.utils import flatten_omega_conf, ensure_wandb_run_id
20
+
21
+ def resolve_media_abs_path(sample: dict, dataset_root: str | None, media_type: str = "image") -> str | None:
22
+ p = sample.get(f"{media_type}_abs_path")
23
+ if p is None:
24
+ p = sample.get(media_type) or sample.get(f"{media_type}_path")
25
+ if p is None:
26
+ return None
27
+ if not os.path.isabs(p) and dataset_root:
28
+ p = os.path.join(dataset_root, p)
29
+ try:
30
+ return os.path.abspath(p)
31
+ except Exception:
32
+ return p
33
+
34
+ def get_config():
35
+ cli_conf = OmegaConf.from_cli()
36
+ yaml_conf = OmegaConf.load(cli_conf.config)
37
+ conf = OmegaConf.merge(yaml_conf, cli_conf)
38
+ return conf
39
+
40
+ def remove_endoftext(obj: Union[str, List[str]]) -> Union[str, List[str]]:
41
+ token = '<|endoftext|>'
42
+ if isinstance(obj, str):
43
+ return obj.replace(token, '')
44
+ if isinstance(obj, list):
45
+ return [s.replace(token, '') if isinstance(s, str) else s for s in obj]
46
+ raise TypeError("Expected str or list of str")
47
+
48
+
49
+ if __name__ == "__main__":
50
+
51
+ config = get_config()
52
+ run = None
53
+ if config.experiment.function == "train":
54
+ existing_run_id = OmegaConf.select(config, "wandb.run_id", default=None)
55
+ run_id = ensure_wandb_run_id(config)
56
+ resume_wandb_run = config.wandb.resume
57
+ if existing_run_id is None:
58
+ resume_wandb_run = False
59
+ wandb_config = {k: v for k, v in flatten_omega_conf(config, resolve=True)}
60
+ run = wandb.init(
61
+ project=config.experiment.project,
62
+ entity=config.wandb.get("entity", None),
63
+ id=run_id,
64
+ resume=resume_wandb_run,
65
+ config=wandb_config,
66
+ reinit=True,
67
+ name=config.experiment.project,
68
+ )
69
+
70
+ project_name = config.experiment.project
71
+
72
+ if config.experiment.current_epoch == 1:
73
+ pretrained_model = config.model.pretrained_model
74
+ else:
75
+ pretrained_model = "../" + project_name + "/ckpt/" + config.model.optimized_name
76
+
77
+ if config.experiment.function == "train":
78
+ shrink = config.training.shrink
79
+ dataset = config.dataset.train_dataset
80
+ outputs_name = "rl-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
81
+
82
+ elif config.experiment.function == "evaluation":
83
+ dataset = config.evaluation.eval_dataset
84
+ outputs_name = "eval-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
85
+
86
+ file_name = "../" + project_name + "/temp_data/outputs-" + outputs_name + ".json"
87
+
88
+ with open(file_name, 'r') as f:
89
+ data = json.load(f)
90
+
91
+ index_list = []
92
+ extracted_output_list = []
93
+ response_length_list = []
94
+ for i in range(len(data)):
95
+ data[i]["correctness"] = []
96
+ response_length_list += data[i]["response_length"]
97
+ index_list += [i] * len(data[i]["extracted_output"])
98
+ extracted_output_list += remove_endoftext(data[i]["extracted_output"])
99
+
100
+ nest_asyncio.apply()
101
+
102
+ async def get_correctness_all():
103
+ executor = ThreadPoolExecutor(max_workers=64)
104
+ tasks = []
105
+
106
+ for p in range(len(index_list)):
107
+ pred = extracted_output_list[p]
108
+ idx = index_list[p]
109
+
110
+ # 选择题正确性匹配逻辑
111
+ if config.dataset.data_type == "video_reverse" or config.evaluation.data_type == "video_reverse":
112
+ gt = data[idx].get("response", "")
113
+
114
+ async def mcq_check(p_str, g_str):
115
+ if p_str in g_str or g_str in p_str:
116
+ return True
117
+
118
+ p_str = str(p_str).strip()
119
+ g_str = str(g_str).strip()
120
+ p_match = re.search(r'^([A-Z])[\.\s]', p_str)
121
+ g_match = re.search(r'^([A-Z])[\.\s]', g_str)
122
+ if p_match and g_match:
123
+ return p_match.group(1) == g_match.group(1)
124
+ return g_str in p_str
125
+
126
+ tasks.append(mcq_check(pred, gt))
127
+ else:
128
+ gt = data[idx].get("ground_truth_answer", "")
129
+ tasks.append(math_utils_v.is_equal(pred, gt, executor))
130
+
131
+ return await asyncio.gather(*tasks)
132
+
133
+ correctness_all = asyncio.run(get_correctness_all())
134
+ for p, ok in enumerate(correctness_all):
135
+ index_i = index_list[p]
136
+ data[index_i]["correctness"].append(bool(ok))
137
+
138
+ # =========================================================================
139
+ # 核心新增逻辑:跨样本群组计算 T-GRPO 奖励 和 逆转无偏奖励
140
+ # =========================================================================
141
+
142
+ # 1. 按照 data_id 分组映射索引
143
+ grouped_data = defaultdict(lambda: {
144
+ "forward_False": [], "backward_False": [],
145
+ "forward_True": [], "backward_True": []
146
+ })
147
+
148
+ for i in range(len(data)):
149
+ d_id = data[i].get("data_id")
150
+ if d_id is None:
151
+ continue
152
+ r_type = data[i].get("reversal_type", "forward")
153
+ is_shuf = str(data[i].get("is_shuffled", False))
154
+ grouped_data[d_id][f"{r_type}_{is_shuf}"].append(i)
155
+
156
+ # 计算并应用群组奖励
157
+ all_temporal_bonuses = [] # 新增:记录所有的时序红利
158
+ all_unbiased_bonuses = [] # 新增:记录所有的无偏红利
159
+
160
+ # 2. 计算并应用群组奖励
161
+ for d_id, group in grouped_data.items():
162
+
163
+ def get_acc(key):
164
+ if not group[key]: return 0.0
165
+ idx = group[key][0]
166
+ corr = data[idx]["correctness"]
167
+ return sum(corr) / len(corr) if len(corr) > 0 else 0.0
168
+
169
+ # 获取四组情况的正确率
170
+ acc_f_ord = get_acc("forward_False")
171
+ acc_f_shuf = get_acc("forward_True")
172
+ acc_b_ord = get_acc("backward_False")
173
+ acc_b_shuf = get_acc("backward_True")
174
+
175
+ # T-GRPO 奖励: 顺序正确率 >= 0.8 * 打乱正确率,得 0.3
176
+ f_temporal_bonus = 0.3 if acc_f_ord >= 0.8 * acc_f_shuf else 0.0
177
+ b_temporal_bonus = 0.3 if acc_b_ord >= 0.8 * acc_b_shuf else 0.0
178
+
179
+ # 逆转无偏奖励: 正反正确率差值 <= 0.2,且都不是彻底全错,得 0.3
180
+ unbiased_bonus = 0.0
181
+ if abs(acc_f_ord - acc_b_ord) <= 0.2 and (acc_f_ord > 0.1 or acc_b_ord > 0.1):
182
+ unbiased_bonus = 0.3
183
+
184
+ # 新增:将当前组的奖励记录下来用于统计
185
+ if group["forward_False"]:
186
+ all_temporal_bonuses.append(f_temporal_bonus)
187
+ all_unbiased_bonuses.append(unbiased_bonus)
188
+ if group["backward_False"]:
189
+ all_temporal_bonuses.append(b_temporal_bonus)
190
+ all_unbiased_bonuses.append(unbiased_bonus)
191
+
192
+ # 仅将奖励发放给 顺序组(is_shuffled=False) 中回答正确的样本
193
+ def apply_bonus(key, temporal_bonus, unbiased_bonus):
194
+ if not group[key]: return
195
+ idx = group[key][0]
196
+ raw_rewards = []
197
+ for is_correct in data[idx]["correctness"]:
198
+ if is_correct:
199
+ # 基础分 1.0 + 时序红利 + 无偏红利
200
+ raw_rewards.append(1.0 + temporal_bonus + unbiased_bonus)
201
+ else:
202
+ raw_rewards.append(0.0)
203
+ data[idx]["raw_rewards"] = raw_rewards
204
+
205
+ apply_bonus("forward_False", f_temporal_bonus, unbiased_bonus)
206
+ apply_bonus("backward_False", b_temporal_bonus, unbiased_bonus)
207
+
208
+ # =========================================================================
209
+
210
+ def z_score_normalize(lst):
211
+ mean = sum(lst) / len(lst) if len(lst) > 0 else 0.0
212
+ std = (sum((x - mean) ** 2 for x in lst) / len(lst)) ** 0.5 if len(lst) > 0 else 0.0
213
+ if std == 0:
214
+ return [0 for _ in lst]
215
+ return [(x - mean) / std for x in lst]
216
+
217
+ final_data = []
218
+ ordered_correctness = [] # 用于日志打印,不记录被打乱的实验数据
219
+
220
+ for i in range(len(data)):
221
+ # 丢弃打乱的对照组,它们仅仅用于上面的计算参照,不进入强化学习
222
+ if data[i].get("is_shuffled", False):
223
+ continue
224
+
225
+ ordered_correctness.extend(data[i]["correctness"])
226
+
227
+ # 如果部分数据没有走过分组逻辑,默认回退为原始 correct 分数
228
+ raw_rewards = data[i].get("raw_rewards", [float(c) for c in data[i]["correctness"]])
229
+ lengths = data[i]["response_length"]
230
+
231
+ # 长度惩罚
232
+ if config.reward.strict_len_check:
233
+ for j in range(len(lengths)):
234
+ if OmegaConf.select(config, "rollout.max_gen_length", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_gen_length - 5:
235
+ raw_rewards[j] = 0.0
236
+ if OmegaConf.select(config, "rollout.max_token", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_token - 5:
237
+ raw_rewards[j] = 0.0
238
+
239
+ # Z-Score 优势归一化
240
+ rewards = z_score_normalize(raw_rewards)
241
+ data[i]["rewards"] = rewards
242
+
243
+ if config.experiment.function == "train":
244
+ proportion = sum(data[i]["correctness"]) / len(data[i]["correctness"]) if len(data[i]["correctness"]) > 0 else 0.0
245
+ # 如果全部回答都是错的,或者全是对的(无差别区分度),则剔除该样本
246
+ if proportion > 0.95 or proportion < 0.05:
247
+ continue
248
+
249
+ for j in range(len(rewards)):
250
+ data_i = {}
251
+ data_i["prompt"] = data[i]["prompt"]
252
+ data_i["reward"] = rewards[j]
253
+ data_i["response"] = data[i]["full_output"][j]
254
+ data_i["step_map"] = data[i]["step_map"][j]
255
+
256
+ # 保留其他需要的上下文 ID
257
+ data_i["data_id"] = data[i].get("data_id")
258
+ data_i["reversal_type"] = data[i].get("reversal_type")
259
+
260
+ if "image_token_ids" in data[i]:
261
+ data_i["image_token_ids"] = data[i]["image_token_ids"]
262
+
263
+ p_video_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "video")
264
+ if p_video_abs is not None:
265
+ data_i["video_abs_path"] = p_video_abs
266
+
267
+ p_image_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "image")
268
+ if p_image_abs is not None:
269
+ data_i["image_abs_path"] = p_image_abs
270
+
271
+ final_data.append(data_i)
272
+
273
+ if config.experiment.function == "evaluation":
274
+ data[i]["step_map"] = []
275
+
276
+ if config.experiment.function == "train":
277
+ with open("../" + project_name + "/temp_data/" + config.dataset.optimization_data + ".json", "w", encoding="utf-8") as f:
278
+ json.dump(final_data, f, indent=2, ensure_ascii=False)
279
+
280
+
281
+ os.makedirs(os.path.dirname(file_name), exist_ok=True)
282
+ with open(file_name, "w", encoding="utf-8") as f:
283
+ json.dump(data, f, indent=2, ensure_ascii=False)
284
+
285
+
286
+ outputs_result_name = "../" + project_name + "/results/results-" + outputs_name + ".txt"
287
+ os.makedirs(os.path.dirname(outputs_result_name), exist_ok=True)
288
+ with open(outputs_result_name, "a") as f:
289
+ # Save + print
290
+ def save_and_print(text):
291
+ cprint("\n\n\n" + text, color="green")
292
+ f.write(text + "\n")
293
+
294
+ # 只计算有序组(有效学习组)的准确率来作为监控指标
295
+ acc = (sum(ordered_correctness)/len(ordered_correctness)) if len(ordered_correctness) > 0 else float("nan")
296
+ avg_len = sum(response_length_list)/len(response_length_list)
297
+
298
+ # 新增:计算 T-GRPO 和 Unbiased 奖励的平均值
299
+ avg_temp = sum(all_temporal_bonuses)/len(all_temporal_bonuses) if all_temporal_bonuses else 0.0
300
+ avg_unbias = sum(all_unbiased_bonuses)/len(all_unbiased_bonuses) if all_unbiased_bonuses else 0.0
301
+
302
+ output_text = f"train step: {config.experiment.current_epoch} "
303
+ if config.experiment.function == "train":
304
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
305
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} block_size: {config.rollout.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
306
+ else:
307
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} top_k: {config.rollout.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
308
+ else:
309
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
310
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} block_size: {config.evaluation.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
311
+ else:
312
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} top_k: {config.evaluation.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
313
+ save_and_print(output_text)
314
+
315
+ if config.experiment.function == "train":
316
+ csv_file_path = f"../{project_name}/results/all_rewards.csv"
317
+
318
+ # 如果是第1个 epoch/step,或者是新文件,就先写入表头
319
+ write_header = not os.path.exists(csv_file_path) or config.experiment.current_epoch == 1
320
+
321
+ with open(csv_file_path, "a", encoding="utf-8") as f_csv:
322
+ if write_header:
323
+ f_csv.write("step,acc_reward,t_grpo_reward,unbiased_reward,response_length\n")
324
+
325
+ # 按行追加当前 step 的数据
326
+ f_csv.write(f"{config.experiment.current_epoch},{acc:.4f},{avg_temp:.4f},{avg_unbias:.4f},{avg_len:.2f}\n")
327
+
328
+ if run is not None:
329
+ wandb.log(
330
+ {
331
+ "reward/acc": acc,
332
+ "reward/t_grpo_bonus": avg_temp,
333
+ "reward/unbiased_bonus": avg_unbias,
334
+ "reward/avg_response_length": avg_len,
335
+ "reward/train_step": config.experiment.current_epoch,
336
+ },
337
+ step=config.experiment.current_epoch,
338
+ )
339
+ wandb.finish()
reward/wandb/run-20260530_094731-fmmkx1a5/files/output.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+
2
+
3
+
4
+ train step: 13 remasking_strategy: low_confidence_dynamic block_size: 32 acc: 0.4570 avg length: 123.99
reward/wandb/run-20260530_094731-fmmkx1a5/files/requirements.txt ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ transformers==4.52.4
2
+ nvidia-nvtx-cu12==12.4.127
3
+ deepspeed==0.18.6
4
+ typing-inspection==0.4.2
5
+ scipy==1.15.3
6
+ MarkupSafe==3.0.3
7
+ nvidia-cuda-runtime-cu12==12.4.127
8
+ detoxify==0.5.2
9
+ yarl==1.22.0
10
+ tornado==6.5.4
11
+ nvidia-curand-cu12==10.3.5.147
12
+ nest-asyncio==1.6.0
13
+ safetensors==0.7.0
14
+ async-timeout==5.0.1
15
+ typing_extensions==4.15.0
16
+ asttokens==3.0.1
17
+ cuda-python==13.1.1
18
+ executing==2.2.1
19
+ nvidia-cudnn-frontend==1.18.0
20
+ comm==0.2.3
21
+ tokenizers==0.21.4
22
+ six==1.17.0
23
+ Pygments==2.19.2
24
+ nvidia-cusparselt-cu12==0.6.2
25
+ apache-tvm-ffi==0.1.8.post2
26
+ flash_attn==2.7.4.post1
27
+ tqdm==4.67.3
28
+ tensorboard-data-server==0.7.2
29
+ annotated-types==0.7.0
30
+ math-verify==0.9.0
31
+ idna==3.11
32
+ regex==2026.1.15
33
+ nvidia-cutlass-dsl-libs-base==4.4.0
34
+ flashinfer-python==0.6.3
35
+ click==8.3.1
36
+ pytz==2025.2
37
+ wheel==0.46.3
38
+ ipykernel==7.2.0
39
+ stack-data==0.6.3
40
+ absl-py==2.4.0
41
+ wandb==0.25.0
42
+ pandas==2.3.3
43
+ termcolor==3.3.0
44
+ sympy==1.13.1
45
+ joblib==1.5.3
46
+ prompt_toolkit==3.0.52
47
+ attrs==25.4.0
48
+ nvidia-cusolver-cu12==11.6.1.9
49
+ xxhash==3.6.0
50
+ aiohappyeyeballs==2.6.1
51
+ python-dateutil==2.9.0.post0
52
+ frozenlist==1.8.0
53
+ nvidia-ml-py==13.590.48
54
+ multiprocess==0.70.18
55
+ decorator==5.2.1
56
+ cuda-pathfinder==1.3.4
57
+ multidict==6.7.1
58
+ pure_eval==0.2.3
59
+ nvidia-cufft-cu12==11.2.1.3
60
+ omegaconf==2.3.0
61
+ PyYAML==6.0.3
62
+ debugpy==1.8.20
63
+ psutil==7.2.2
64
+ ninja==1.13.0
65
+ nvidia-cublas-cu12==12.4.5.8
66
+ triton==3.2.0
67
+ antlr4-python3-runtime==4.9.3
68
+ peft==0.18.1
69
+ aiosignal==1.4.0
70
+ accelerate==1.12.0
71
+ liger_kernel==0.7.0
72
+ anyio==4.12.1
73
+ decord==0.6.0
74
+ h11==0.16.0
75
+ urllib3==2.6.3
76
+ wcwidth==0.6.0
77
+ networkx==3.4.2
78
+ huggingface_hub==0.36.2
79
+ tzdata==2025.3
80
+ xformers==0.0.29.post3
81
+ tabulate==0.9.0
82
+ certifi==2026.1.4
83
+ tensorboard==2.20.0
84
+ matplotlib-inline==0.2.1
85
+ pip==26.0.1
86
+ smmap==5.0.2
87
+ nvidia-cuda-cupti-cu12==12.4.127
88
+ Markdown==3.10.2
89
+ nvidia-nccl-cu12==2.21.5
90
+ aiohttp==3.13.3
91
+ scikit-learn==1.7.2
92
+ nvidia-cutlass-dsl==4.4.0
93
+ setuptools==82.0.0
94
+ jupyter_core==5.9.1
95
+ asyncio==4.0.0
96
+ einops==0.8.2
97
+ pydantic==2.12.5
98
+ av==16.1.0
99
+ protobuf==6.33.5
100
+ evaluate==0.4.6
101
+ Jinja2==3.1.6
102
+ exceptiongroup==1.3.1
103
+ ipython==8.38.0
104
+ sentry-sdk==2.53.0
105
+ httpx==0.28.1
106
+ msgpack==1.1.2
107
+ platformdirs==4.9.2
108
+ hjson==3.1.0
109
+ torchvision==0.21.0
110
+ parso==0.8.6
111
+ cuda-bindings==13.1.1
112
+ pexpect==4.9.0
113
+ threadpoolctl==3.6.0
114
+ pyarrow==23.0.1
115
+ jedi==0.19.2
116
+ nvidia-cuda-nvrtc-cu12==12.4.127
117
+ Werkzeug==3.1.5
118
+ fsspec==2025.10.0
119
+ pydantic_core==2.41.5
120
+ GitPython==3.1.46
121
+ propcache==0.4.1
122
+ mpmath==1.3.0
123
+ nvidia-nvjitlink-cu12==12.4.127
124
+ nvidia-cusparse-cu12==12.3.1.170
125
+ hf-xet==1.2.0
126
+ charset-normalizer==3.4.4
127
+ dill==0.4.0
128
+ datasets==4.5.0
129
+ py-cpuinfo==9.0.0
130
+ sentencepiece==0.2.1
131
+ latex2sympy2_extended==1.11.0
132
+ jupyter_client==8.8.0
133
+ pyzmq==27.1.0
134
+ numpy==2.2.6
135
+ gitdb==4.0.12
136
+ grpcio==1.78.0
137
+ packaging==26.0
138
+ requests==2.32.5
139
+ nvidia-cudnn-cu12==9.1.0.70
140
+ httpcore==1.0.9
141
+ traitlets==5.14.3
142
+ filelock==3.24.2
143
+ ptyprocess==0.7.0
144
+ pillow==12.1.1
145
+ torch==2.6.0
146
+ more-itertools==10.8.0
147
+ wheel==0.46.3
148
+ jaraco.text==4.0.0
149
+ zipp==3.23.0
150
+ autocommand==2.2.2
151
+ jaraco.context==6.1.0
152
+ jaraco.functools==4.4.0
153
+ tomli==2.4.0
154
+ backports.tarfile==1.2.0
155
+ importlib_metadata==8.7.1
156
+ platformdirs==4.4.0
157
+ packaging==26.0
reward/wandb/run-20260530_130037-fmmkx1a5/files/config.yaml ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.0
4
+ code_path: code/reward/rl_reward_video_reversal.py
5
+ e:
6
+ t9tot6m5yyrch9prbh2p6m7b930d7i6h:
7
+ args:
8
+ - config=../configs/rl_lavida_video_reversal.yaml
9
+ - wandb.run_id=fmmkx1a5
10
+ - experiment.function=train
11
+ - evaluation.block_size=None
12
+ - evaluation.top_k=None
13
+ - evaluation.remasking_strategy=None
14
+ - experiment.current_epoch=16
15
+ codePath: reward/rl_reward_video_reversal.py
16
+ codePathLocal: rl_reward_video_reversal.py
17
+ email: shixi_runqing@staff.weibo.com
18
+ executable: /data8/runqing/miniconda/envs/dllm-rl/bin/python
19
+ git:
20
+ commit: 10b4fd1cba83e4496c20585dc2fd01dc02f20255
21
+ remote: https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git
22
+ host: b1301b38c75f
23
+ os: Linux-5.15.0-144-generic-x86_64-with-glibc2.35
24
+ program: /data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py
25
+ python: CPython 3.10.19
26
+ root: /data4/runqing/dLLM-RL/reward
27
+ startedAt: "2026-05-30T05:00:37.910384Z"
28
+ writerId: t9tot6m5yyrch9prbh2p6m7b930d7i6h
29
+ m: []
30
+ python_version: 3.10.19
31
+ t:
32
+ "1":
33
+ - 1
34
+ - 41
35
+ "2":
36
+ - 1
37
+ - 41
38
+ "3":
39
+ - 2
40
+ - 5
41
+ - 13
42
+ - 14
43
+ - 16
44
+ - 61
45
+ - 62
46
+ "4": 3.10.19
47
+ "5": 0.25.0
48
+ "10":
49
+ - 20
50
+ "12": 0.25.0
51
+ "13": linux-x86_64
52
+ config:
53
+ value: ../configs/rl_lavida_video_reversal.yaml
54
+ dataset.data_type:
55
+ value: video_reverse
56
+ dataset.optimization_data:
57
+ value: rl_data
58
+ dataset.train_dataset:
59
+ value: video_reversal_rl_train
60
+ evaluation.batch_size:
61
+ value: 1
62
+ evaluation.block_size:
63
+ value: None
64
+ evaluation.data_type:
65
+ value: video_reverse
66
+ evaluation.dynamic_threshold:
67
+ value: 0.9
68
+ evaluation.eval_dataset:
69
+ value: video_reversal_rl_eval
70
+ evaluation.further_horizon:
71
+ value: 128
72
+ evaluation.if_eval:
73
+ value: false
74
+ evaluation.max_gen_length:
75
+ value: 128
76
+ evaluation.num_response_per_task:
77
+ value: 3
78
+ evaluation.remasking_strategy:
79
+ value: None
80
+ evaluation.remasking_strategy.0:
81
+ value: low_confidence_static
82
+ evaluation.remasking_strategy.1:
83
+ value: low_confidence_dynamic
84
+ evaluation.steps:
85
+ value: 128
86
+ evaluation.target:
87
+ value: confidence
88
+ evaluation.temperature:
89
+ value: 0.1
90
+ evaluation.top_k:
91
+ value: None
92
+ evaluation.use_cache:
93
+ value: true
94
+ execute.num_chunk:
95
+ value: 128
96
+ experiment.current_epoch:
97
+ value: 16
98
+ experiment.deepspeed_file:
99
+ value: 1_node_8_gpus_deepspeed_zero2
100
+ experiment.eval_every:
101
+ value: 5
102
+ experiment.function:
103
+ value: train
104
+ experiment.logging_dir:
105
+ value: rl_lavida_video_reversal/logs
106
+ experiment.node_index:
107
+ value: 0
108
+ experiment.num_node:
109
+ value: 1
110
+ experiment.project:
111
+ value: rl_lavida_video_reversal
112
+ experiment.save_every:
113
+ value: 10
114
+ experiment.start_from_scratch:
115
+ value: true
116
+ experiment.total_step:
117
+ value: 30
118
+ lr_scheduler.params.learning_rate:
119
+ value: 1e-06
120
+ lr_scheduler.params.min_lr_scale:
121
+ value: 1
122
+ lr_scheduler.params.warmup_steps:
123
+ value: 0
124
+ lr_scheduler.scheduler:
125
+ value: cosine
126
+ model.image_resolution:
127
+ value: 512
128
+ model.model_base:
129
+ value: lavida
130
+ model.optimized_name:
131
+ value: optimized
132
+ model.pretrained_model:
133
+ value: /data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized
134
+ model.vq_model_path:
135
+ value: /data4/runqing/hf/magvitv2
136
+ optimizer.name:
137
+ value: adamw
138
+ optimizer.params.beta1:
139
+ value: 0.9
140
+ optimizer.params.beta2:
141
+ value: 0.999
142
+ optimizer.params.epsilon:
143
+ value: 1e-08
144
+ optimizer.params.learning_rate:
145
+ value: 1e-06
146
+ optimizer.params.scale_lr:
147
+ value: false
148
+ optimizer.params.weight_decay:
149
+ value: 0
150
+ reward.answer_must_in_box:
151
+ value: true
152
+ reward.strict_len_check:
153
+ value: false
154
+ rollout.batch_size:
155
+ value: 1
156
+ rollout.block_size:
157
+ value: 32
158
+ rollout.dynamic_threshold:
159
+ value: 0.9
160
+ rollout.further_horizon:
161
+ value: 128
162
+ rollout.max_gen_length:
163
+ value: 128
164
+ rollout.num_response_per_task:
165
+ value: 8
166
+ rollout.num_task_per_step:
167
+ value: 128
168
+ rollout.remasking_strategy:
169
+ value: low_confidence_dynamic
170
+ rollout.steps:
171
+ value: 128
172
+ rollout.target:
173
+ value: confidence
174
+ rollout.temperature:
175
+ value: 0.8
176
+ rollout.use_cache:
177
+ value: true
178
+ system.HF_HOME:
179
+ value: null
180
+ system.HTTP_PROXY:
181
+ value: null
182
+ system.base_dir:
183
+ value: /data4/runqing/dLLM-RL
184
+ system.env_name:
185
+ value: /data8/runqing/miniconda/envs/dllm-rl
186
+ system.envs_dir:
187
+ value: /data8/runqing/miniconda/envs/dllm-rl
188
+ training.batch_size_lm:
189
+ value: 1
190
+ training.beta:
191
+ value: 0.01
192
+ training.enable_tf32:
193
+ value: true
194
+ training.eps:
195
+ value: 0.2
196
+ training.gradient_accumulation_steps:
197
+ value: 2
198
+ training.lower_p:
199
+ value: 0.35
200
+ training.mask_times_per_sample:
201
+ value: 2
202
+ training.max_gen_length:
203
+ value: 128
204
+ training.max_grad_norm:
205
+ value: 1
206
+ training.max_prompt_len:
207
+ value: 512
208
+ training.method:
209
+ value: random_masking
210
+ training.mixed_precision:
211
+ value: bf16
212
+ training.num_train_epochs:
213
+ value: 1
214
+ training.post_num:
215
+ value: 1
216
+ training.seed:
217
+ value: 10086
218
+ training.shrink:
219
+ value: 8
220
+ training.upper_p:
221
+ value: 0.9
222
+ training.use_kl_estimator_k3:
223
+ value: true
224
+ wandb.entity:
225
+ value: null
226
+ wandb.resume:
227
+ value: auto
228
+ wandb.run_id:
229
+ value: fmmkx1a5
reward/wandb/run-20260530_130037-fmmkx1a5/files/wandb-metadata.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.15.0-144-generic-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.19",
4
+ "startedAt": "2026-05-30T05:00:37.910384Z",
5
+ "args": [
6
+ "config=../configs/rl_lavida_video_reversal.yaml",
7
+ "wandb.run_id=fmmkx1a5",
8
+ "experiment.function=train",
9
+ "evaluation.block_size=None",
10
+ "evaluation.top_k=None",
11
+ "evaluation.remasking_strategy=None",
12
+ "experiment.current_epoch=16"
13
+ ],
14
+ "program": "/data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py",
15
+ "codePath": "reward/rl_reward_video_reversal.py",
16
+ "codePathLocal": "rl_reward_video_reversal.py",
17
+ "git": {
18
+ "remote": "https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git",
19
+ "commit": "10b4fd1cba83e4496c20585dc2fd01dc02f20255"
20
+ },
21
+ "email": "shixi_runqing@staff.weibo.com",
22
+ "root": "/data4/runqing/dLLM-RL/reward",
23
+ "host": "b1301b38c75f",
24
+ "executable": "/data8/runqing/miniconda/envs/dllm-rl/bin/python",
25
+ "writerId": "t9tot6m5yyrch9prbh2p6m7b930d7i6h"
26
+ }
reward/wandb/run-20260530_130037-fmmkx1a5/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"reward/train_step":1,"reward/avg_response_length":124.568359375,"_runtime":13475,"reward/acc":0.396484375,"train/loss":2.6498982906341553,"_step":28,"reward/unbiased_bonus":0.09374999999999996,"reward/t_grpo_bonus":0.2718750000000003,"_timestamp":1.7801027754513717e+09,"_wandb":{"runtime":13475},"train/learning_rate":8.236931423909135e-07}
reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug-core.log ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T13:00:37.975224034+08:00","level":"INFO","msg":"main: starting server","port-filename":"/tmp/tmpahn5_g6y/port-3074430.txt","pid":3074430,"log-level":0,"disable-analytics":false,"shutdown-on-parent-exit":false,"enable-dcgm-profiling":false}
2
+ {"time":"2026-05-30T13:00:37.977064646+08:00","level":"INFO","msg":"server: will exit if parent process dies","ppid":3074430}
3
+ {"time":"2026-05-30T13:00:37.97704103+08:00","level":"INFO","msg":"server: accepting connections","addr":{"Name":"/tmp/wandb-3074430-3074593-3219396225/socket","Net":"unix"}}
4
+ {"time":"2026-05-30T13:00:38.156407899+08:00","level":"INFO","msg":"connection: ManageConnectionData: new connection created","id":"1(@)"}
5
+ {"time":"2026-05-30T13:00:38.16506748+08:00","level":"INFO","msg":"handleInformInit: received","streamId":"fmmkx1a5","id":"1(@)"}
6
+ {"time":"2026-05-30T13:00:38.873987577+08:00","level":"INFO","msg":"handleInformInit: stream started","streamId":"fmmkx1a5","id":"1(@)"}
7
+ {"time":"2026-05-30T13:00:39.341927278+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"bjkwijgrdp5k"}
8
+ {"time":"2026-05-30T13:00:39.523307526+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"bjkwijgrdp5k"}
9
+ {"time":"2026-05-30T13:00:39.523813657+08:00","level":"INFO","msg":"handleInformFinish: finish message received","streamId":"fmmkx1a5","id":"1(@)"}
10
+ {"time":"2026-05-30T13:00:39.524407208+08:00","level":"INFO","msg":"handleInformFinish: stream closed","streamId":"fmmkx1a5","id":"1(@)"}
11
+ {"time":"2026-05-30T13:00:39.52447316+08:00","level":"INFO","msg":"handleInformTeardown: server teardown initiated","id":"1(@)"}
12
+ {"time":"2026-05-30T13:00:39.524490911+08:00","level":"INFO","msg":"handleInformTeardown: server shutdown complete","id":"1(@)"}
13
+ {"time":"2026-05-30T13:00:39.524504761+08:00","level":"INFO","msg":"server is shutting down"}
14
+ {"time":"2026-05-30T13:00:39.524507006+08:00","level":"INFO","msg":"connection: closing","id":"1(@)"}
15
+ {"time":"2026-05-30T13:00:39.524570758+08:00","level":"INFO","msg":"server: listener closed","addr":{"Name":"/tmp/wandb-3074430-3074593-3219396225/socket","Net":"unix"}}
16
+ {"time":"2026-05-30T13:00:39.524657353+08:00","level":"INFO","msg":"connection: closed successfully","id":"1(@)"}
17
+ {"time":"2026-05-30T13:00:39.524675003+08:00","level":"INFO","msg":"connection: ManageConnectionData: connection closed","id":"1(@)"}
18
+ {"time":"2026-05-30T13:00:39.524697553+08:00","level":"INFO","msg":"server is closed"}
reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug-internal.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T13:00:38.165255851+08:00","level":"INFO","msg":"stream: starting","core version":"0.25.0"}
2
+ {"time":"2026-05-30T13:00:38.873597319+08:00","level":"ERROR","msg":"featurechecker: failed to load features, all will be disabled","error":"input:4:3: Cannot query field \"features\" on type \"ServerInfo\".\n"}
3
+ {"time":"2026-05-30T13:00:38.87376058+08:00","level":"INFO","msg":"stream: created new stream","id":"fmmkx1a5"}
4
+ {"time":"2026-05-30T13:00:38.873835219+08:00","level":"INFO","msg":"handler: started","stream_id":"fmmkx1a5"}
5
+ {"time":"2026-05-30T13:00:38.873968632+08:00","level":"INFO","msg":"stream: started","id":"fmmkx1a5"}
6
+ {"time":"2026-05-30T13:00:38.874006752+08:00","level":"INFO","msg":"sender: started","stream_id":"fmmkx1a5"}
7
+ {"time":"2026-05-30T13:00:38.874007356+08:00","level":"INFO","msg":"writer: started","stream_id":"fmmkx1a5"}
8
+ {"time":"2026-05-30T13:00:38.879147983+08:00","level":"WARN","msg":"runupserter: server does not expand metric globs but the x_server_side_expand_glob_metrics setting is set; ignoring"}
9
+ {"time":"2026-05-30T13:00:39.132247063+08:00","level":"ERROR","msg":"git repo not found","error":"repository does not exist"}
10
+ {"time":"2026-05-30T13:00:39.340834497+08:00","level":"WARN","msg":"handler: ignoring partial history record","step":16,"current":29}
11
+ {"time":"2026-05-30T13:00:39.465225553+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=4cc7c39be99093eb00c1e92f0f8f4bef6e86129038ba5ff31e5d540135caf901"}
12
+ {"time":"2026-05-30T13:00:39.466406185+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Resource><RequestId>18B43F32A3D36D81</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/files/output.log, Name: output.log, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=4cc7c39be99093eb00c1e92f0f8f4bef6e86129038ba5ff31e5d540135caf901, Size: 111}"}
13
+ {"time":"2026-05-30T13:00:39.471323935+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=b1443bc334efb050c903966f0f40b712f8d22e4978df993615e578fd1ee5102f"}
14
+ {"time":"2026-05-30T13:00:39.471295135+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=88141471abfa62e44c01c8d590f5863467ce8ae34883e6dfbc82c0da5ee15428"}
15
+ {"time":"2026-05-30T13:00:39.471263688+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=d876600ebeb47953b27507f340295c7681116f401bd528d90dc37e940b930f19"}
16
+ {"time":"2026-05-30T13:00:39.471087042+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=b935d05243ad2507ca0001df363d6df1541670c4f2e58f59fa61a7cafa3ac530"}
17
+ {"time":"2026-05-30T13:00:39.472712396+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Resource><RequestId>18B43F32A46DF75A</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/files/requirements.txt, Name: requirements.txt, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=88141471abfa62e44c01c8d590f5863467ce8ae34883e6dfbc82c0da5ee15428, Size: 2982}"}
18
+ {"time":"2026-05-30T13:00:39.472735403+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Resource><RequestId>18B43F32A46D35A1</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/files/config.yaml, Name: config.yaml, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=d876600ebeb47953b27507f340295c7681116f401bd528d90dc37e940b930f19, Size: 5678}"}
19
+ {"time":"2026-05-30T13:00:39.472663476+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Resource><RequestId>18B43F32A45C4020</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/files/wandb-metadata.json, Name: wandb-metadata.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=b1443bc334efb050c903966f0f40b712f8d22e4978df993615e578fd1ee5102f, Size: 976}"}
20
+ {"time":"2026-05-30T13:00:39.472838084+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Resource><RequestId>18B43F32A404E735</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/files/wandb-summary.json, Name: wandb-summary.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=b935d05243ad2507ca0001df363d6df1541670c4f2e58f59fa61a7cafa3ac530, Size: 343}"}
21
+ {"time":"2026-05-30T13:00:39.476960886+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=7f281381a5078c8573e02ada4c01c9aa94edc51e28423c28b58b3100282ad65f"}
22
+ {"time":"2026-05-30T13:00:39.477111734+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Resource><RequestId>18B43F32A34E6FFB</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py, Name: code/reward/rl_reward_video_reversal.py, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T050039Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=7f281381a5078c8573e02ada4c01c9aa94edc51e28423c28b58b3100282ad65f, Size: 14790}"}
23
+ {"time":"2026-05-30T13:00:39.477428282+08:00","level":"INFO","msg":"fileTransfer: Close: file transfer manager closed"}
24
+ {"time":"2026-05-30T13:00:39.518405645+08:00","level":"INFO","msg":"handler: operation stats","stats":{}}
25
+ {"time":"2026-05-30T13:00:39.523829797+08:00","level":"INFO","msg":"stream: closing","id":"fmmkx1a5"}
26
+ {"time":"2026-05-30T13:00:39.523843188+08:00","level":"INFO","msg":"handler: closed","stream_id":"fmmkx1a5"}
27
+ {"time":"2026-05-30T13:00:39.523882693+08:00","level":"INFO","msg":"sender: closed","stream_id":"fmmkx1a5"}
28
+ {"time":"2026-05-30T13:00:39.523893403+08:00","level":"INFO","msg":"stream: closed","id":"fmmkx1a5"}
reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug.log ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2026-05-30 13:00:37,912 INFO MainThread:3074430 [wandb_setup.py:_flush():81] Current SDK version is 0.25.0
2
+ 2026-05-30 13:00:37,912 INFO MainThread:3074430 [wandb_setup.py:_flush():81] Configure stats pid to 3074430
3
+ 2026-05-30 13:00:37,912 INFO MainThread:3074430 [wandb_setup.py:_flush():81] Loading settings from environment variables
4
+ 2026-05-30 13:00:37,912 INFO MainThread:3074430 [wandb_init.py:setup_run_log_directory():717] Logging user logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug.log
5
+ 2026-05-30 13:00:37,912 INFO MainThread:3074430 [wandb_init.py:setup_run_log_directory():718] Logging internal logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_130037-fmmkx1a5/logs/debug-internal.log
6
+ 2026-05-30 13:00:37,912 INFO MainThread:3074430 [wandb_init.py:init():844] calling init triggers
7
+ 2026-05-30 13:00:37,912 INFO MainThread:3074430 [wandb_init.py:init():849] wandb.init called with sweep_config: {}
8
+ config: {'wandb.entity': None, 'wandb.resume': 'auto', 'wandb.run_id': 'fmmkx1a5', 'system.HTTP_PROXY': None, 'system.HF_HOME': None, 'system.env_name': '/data8/runqing/miniconda/envs/dllm-rl', 'system.envs_dir': '/data8/runqing/miniconda/envs/dllm-rl', 'system.base_dir': '/data4/runqing/dLLM-RL', 'experiment.project': 'rl_lavida_video_reversal', 'experiment.function': 'train', 'experiment.start_from_scratch': True, 'experiment.total_step': 30, 'experiment.save_every': 10, 'experiment.eval_every': 5, 'experiment.current_epoch': 16, 'experiment.deepspeed_file': '1_node_8_gpus_deepspeed_zero2', 'experiment.num_node': 1, 'experiment.node_index': 0, 'model.pretrained_model': '/data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized', 'model.optimized_name': 'optimized', 'model.model_base': 'lavida', 'model.vq_model_path': '/data4/runqing/hf/magvitv2', 'model.image_resolution': 512, 'dataset.train_dataset': 'video_reversal_rl_train', 'dataset.data_type': 'video_reverse', 'dataset.optimization_data': 'rl_data', 'rollout.num_task_per_step': 128, 'rollout.num_response_per_task': 8, 'rollout.temperature': 0.8, 'rollout.steps': 128, 'rollout.max_gen_length': 128, 'rollout.batch_size': 1, 'rollout.remasking_strategy': 'low_confidence_dynamic', 'rollout.target': 'confidence', 'rollout.dynamic_threshold': 0.9, 'rollout.block_size': 32, 'rollout.further_horizon': 128, 'rollout.use_cache': True, 'reward.answer_must_in_box': True, 'reward.strict_len_check': False, 'execute.num_chunk': 128, 'training.gradient_accumulation_steps': 2, 'training.batch_size_lm': 1, 'training.mixed_precision': 'bf16', 'training.enable_tf32': True, 'training.seed': 10086, 'training.num_train_epochs': 1, 'training.max_grad_norm': 1.0, 'training.method': 'random_masking', 'training.lower_p': 0.35, 'training.upper_p': 0.9, 'training.shrink': 8, 'training.post_num': 1, 'training.mask_times_per_sample': 2, 'training.max_gen_length': 128, 'training.max_prompt_len': 512, 'training.eps': 0.2, 'training.beta': 0.01, 'training.use_kl_estimator_k3': True, 'optimizer.name': 'adamw', 'optimizer.params.learning_rate': 1e-06, 'optimizer.params.scale_lr': False, 'optimizer.params.beta1': 0.9, 'optimizer.params.beta2': 0.999, 'optimizer.params.weight_decay': 0.0, 'optimizer.params.epsilon': 1e-08, 'lr_scheduler.scheduler': 'cosine', 'lr_scheduler.params.learning_rate': 1e-06, 'lr_scheduler.params.warmup_steps': 0, 'lr_scheduler.params.min_lr_scale': 1.0, 'evaluation.if_eval': False, 'evaluation.eval_dataset': 'video_reversal_rl_eval', 'evaluation.data_type': 'video_reverse', 'evaluation.num_response_per_task': 3, 'evaluation.temperature': 0.1, 'evaluation.steps': 128, 'evaluation.max_gen_length': 128, 'evaluation.batch_size': 1, 'evaluation.remasking_strategy': 'None', 'evaluation.target': 'confidence', 'evaluation.dynamic_threshold': 0.9, 'evaluation.block_size': 'None', 'evaluation.further_horizon': 128, 'evaluation.use_cache': True, 'evaluation.top_k': 'None', 'config': '../configs/rl_lavida_video_reversal.yaml', '_wandb': {'code_path': 'code/reward/rl_reward_video_reversal.py'}}
9
+ 2026-05-30 13:00:37,913 INFO MainThread:3074430 [wandb_init.py:init():892] starting backend
10
+ 2026-05-30 13:00:38,156 INFO MainThread:3074430 [wandb_init.py:init():895] sending inform_init request
11
+ 2026-05-30 13:00:38,162 INFO MainThread:3074430 [wandb_init.py:init():903] backend started and connected
12
+ 2026-05-30 13:00:38,163 INFO MainThread:3074430 [wandb_init.py:init():973] updated telemetry
13
+ 2026-05-30 13:00:38,166 INFO MainThread:3074430 [wandb_init.py:init():997] communicating run to backend with 90.0 second timeout
14
+ 2026-05-30 13:00:39,126 INFO MainThread:3074430 [wandb_init.py:init():1037] run resumed
15
+ 2026-05-30 13:00:39,130 INFO MainThread:3074430 [wandb_init.py:init():1042] starting run threads in backend
16
+ 2026-05-30 13:00:39,220 INFO MainThread:3074430 [wandb_run.py:_console_start():2524] atexit reg
17
+ 2026-05-30 13:00:39,220 INFO MainThread:3074430 [wandb_run.py:_redirect():2373] redirect: wrap_raw
18
+ 2026-05-30 13:00:39,220 INFO MainThread:3074430 [wandb_run.py:_redirect():2442] Wrapping output streams.
19
+ 2026-05-30 13:00:39,220 INFO MainThread:3074430 [wandb_run.py:_redirect():2465] Redirects installed.
20
+ 2026-05-30 13:00:39,223 INFO MainThread:3074430 [wandb_init.py:init():1082] run started, returning control to user process
21
+ 2026-05-30 13:00:39,340 INFO MainThread:3074430 [wandb_run.py:_finish():2291] finishing run shixi_runqing/rl_lavida_video_reversal/fmmkx1a5
22
+ 2026-05-30 13:00:39,341 INFO MainThread:3074430 [wandb_run.py:_atexit_cleanup():2490] got exitcode: 0
23
+ 2026-05-30 13:00:39,341 INFO MainThread:3074430 [wandb_run.py:_restore():2472] restore
24
+ 2026-05-30 13:00:39,341 INFO MainThread:3074430 [wandb_run.py:_restore():2478] restore done
25
+ 2026-05-30 13:00:39,523 INFO MainThread:3074430 [wandb_run.py:_footer_sync_info():3868] logging synced files
reward/wandb/run-20260530_130037-fmmkx1a5/run-fmmkx1a5.wandb ADDED
Binary file (5.38 kB). View file
 
reward/wandb/run-20260530_140614-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import math_utils_v
3
+ import nest_asyncio
4
+ from concurrent.futures import ThreadPoolExecutor
5
+ import asyncio
6
+ import re
7
+ from termcolor import cprint
8
+ from omegaconf import MISSING
9
+ from omegaconf import DictConfig, ListConfig, OmegaConf
10
+ from typing import List, Union
11
+ import os
12
+ from collections import defaultdict
13
+ import sys
14
+
15
+ REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
+ sys.path.insert(0, REPO_ROOT)
17
+
18
+ import wandb
19
+ from train.utils import flatten_omega_conf, ensure_wandb_run_id
20
+
21
+ def resolve_media_abs_path(sample: dict, dataset_root: str | None, media_type: str = "image") -> str | None:
22
+ p = sample.get(f"{media_type}_abs_path")
23
+ if p is None:
24
+ p = sample.get(media_type) or sample.get(f"{media_type}_path")
25
+ if p is None:
26
+ return None
27
+ if not os.path.isabs(p) and dataset_root:
28
+ p = os.path.join(dataset_root, p)
29
+ try:
30
+ return os.path.abspath(p)
31
+ except Exception:
32
+ return p
33
+
34
+ def get_config():
35
+ cli_conf = OmegaConf.from_cli()
36
+ yaml_conf = OmegaConf.load(cli_conf.config)
37
+ conf = OmegaConf.merge(yaml_conf, cli_conf)
38
+ return conf
39
+
40
+ def remove_endoftext(obj: Union[str, List[str]]) -> Union[str, List[str]]:
41
+ token = '<|endoftext|>'
42
+ if isinstance(obj, str):
43
+ return obj.replace(token, '')
44
+ if isinstance(obj, list):
45
+ return [s.replace(token, '') if isinstance(s, str) else s for s in obj]
46
+ raise TypeError("Expected str or list of str")
47
+
48
+
49
+ if __name__ == "__main__":
50
+
51
+ config = get_config()
52
+ run = None
53
+ if config.experiment.function == "train":
54
+ existing_run_id = OmegaConf.select(config, "wandb.run_id", default=None)
55
+ run_id = ensure_wandb_run_id(config)
56
+ resume_wandb_run = config.wandb.resume
57
+ if existing_run_id is None:
58
+ resume_wandb_run = False
59
+ wandb_config = {k: v for k, v in flatten_omega_conf(config, resolve=True)}
60
+ run = wandb.init(
61
+ project=config.experiment.project,
62
+ entity=config.wandb.get("entity", None),
63
+ id=run_id,
64
+ resume=resume_wandb_run,
65
+ config=wandb_config,
66
+ reinit=True,
67
+ name=config.experiment.project,
68
+ )
69
+
70
+ project_name = config.experiment.project
71
+
72
+ if config.experiment.current_epoch == 1:
73
+ pretrained_model = config.model.pretrained_model
74
+ else:
75
+ pretrained_model = "../" + project_name + "/ckpt/" + config.model.optimized_name
76
+
77
+ if config.experiment.function == "train":
78
+ shrink = config.training.shrink
79
+ dataset = config.dataset.train_dataset
80
+ outputs_name = "rl-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
81
+
82
+ elif config.experiment.function == "evaluation":
83
+ dataset = config.evaluation.eval_dataset
84
+ outputs_name = "eval-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
85
+
86
+ file_name = "../" + project_name + "/temp_data/outputs-" + outputs_name + ".json"
87
+
88
+ with open(file_name, 'r') as f:
89
+ data = json.load(f)
90
+
91
+ index_list = []
92
+ extracted_output_list = []
93
+ response_length_list = []
94
+ for i in range(len(data)):
95
+ data[i]["correctness"] = []
96
+ response_length_list += data[i]["response_length"]
97
+ index_list += [i] * len(data[i]["extracted_output"])
98
+ extracted_output_list += remove_endoftext(data[i]["extracted_output"])
99
+
100
+ nest_asyncio.apply()
101
+
102
+ async def get_correctness_all():
103
+ executor = ThreadPoolExecutor(max_workers=64)
104
+ tasks = []
105
+
106
+ for p in range(len(index_list)):
107
+ pred = extracted_output_list[p]
108
+ idx = index_list[p]
109
+
110
+ # 选择题正确性匹配逻辑
111
+ if config.dataset.data_type == "video_reverse" or config.evaluation.data_type == "video_reverse":
112
+ gt = data[idx].get("response", "")
113
+
114
+ async def mcq_check(p_str, g_str):
115
+ if p_str in g_str or g_str in p_str:
116
+ return True
117
+
118
+ p_str = str(p_str).strip()
119
+ g_str = str(g_str).strip()
120
+ p_match = re.search(r'^([A-Z])[\.\s]', p_str)
121
+ g_match = re.search(r'^([A-Z])[\.\s]', g_str)
122
+ if p_match and g_match:
123
+ return p_match.group(1) == g_match.group(1)
124
+ return g_str in p_str
125
+
126
+ tasks.append(mcq_check(pred, gt))
127
+ else:
128
+ gt = data[idx].get("ground_truth_answer", "")
129
+ tasks.append(math_utils_v.is_equal(pred, gt, executor))
130
+
131
+ return await asyncio.gather(*tasks)
132
+
133
+ correctness_all = asyncio.run(get_correctness_all())
134
+ for p, ok in enumerate(correctness_all):
135
+ index_i = index_list[p]
136
+ data[index_i]["correctness"].append(bool(ok))
137
+
138
+ # =========================================================================
139
+ # 核心新增逻辑:跨样本群组计算 T-GRPO 奖励 和 逆转无偏奖励
140
+ # =========================================================================
141
+
142
+ # 1. 按照 data_id 分组映射索引
143
+ grouped_data = defaultdict(lambda: {
144
+ "forward_False": [], "backward_False": [],
145
+ "forward_True": [], "backward_True": []
146
+ })
147
+
148
+ for i in range(len(data)):
149
+ d_id = data[i].get("data_id")
150
+ if d_id is None:
151
+ continue
152
+ r_type = data[i].get("reversal_type", "forward")
153
+ is_shuf = str(data[i].get("is_shuffled", False))
154
+ grouped_data[d_id][f"{r_type}_{is_shuf}"].append(i)
155
+
156
+ # 计算并应用群组奖励
157
+ all_temporal_bonuses = [] # 新增:记录所有的时序红利
158
+ all_unbiased_bonuses = [] # 新增:记录所有的无偏红利
159
+
160
+ # 2. 计算并应用群组奖励
161
+ for d_id, group in grouped_data.items():
162
+
163
+ def get_acc(key):
164
+ if not group[key]: return 0.0
165
+ idx = group[key][0]
166
+ corr = data[idx]["correctness"]
167
+ return sum(corr) / len(corr) if len(corr) > 0 else 0.0
168
+
169
+ # 获取四组情况的正确率
170
+ acc_f_ord = get_acc("forward_False")
171
+ acc_f_shuf = get_acc("forward_True")
172
+ acc_b_ord = get_acc("backward_False")
173
+ acc_b_shuf = get_acc("backward_True")
174
+
175
+ # T-GRPO 奖励: 顺序正确率 >= 0.8 * 打乱正确率,得 0.3
176
+ f_temporal_bonus = 0.3 if acc_f_ord >= 0.8 * acc_f_shuf else 0.0
177
+ b_temporal_bonus = 0.3 if acc_b_ord >= 0.8 * acc_b_shuf else 0.0
178
+
179
+ # 逆转无偏奖励: 正反正确率差值 <= 0.2,且都不是彻底全错,得 0.3
180
+ unbiased_bonus = 0.0
181
+ if abs(acc_f_ord - acc_b_ord) <= 0.2 and (acc_f_ord > 0.1 or acc_b_ord > 0.1):
182
+ unbiased_bonus = 0.3
183
+
184
+ # 新增:将当前组的奖励记录下来用于统计
185
+ if group["forward_False"]:
186
+ all_temporal_bonuses.append(f_temporal_bonus)
187
+ all_unbiased_bonuses.append(unbiased_bonus)
188
+ if group["backward_False"]:
189
+ all_temporal_bonuses.append(b_temporal_bonus)
190
+ all_unbiased_bonuses.append(unbiased_bonus)
191
+
192
+ # 仅将奖励发放给 顺序组(is_shuffled=False) 中回答正确的样本
193
+ def apply_bonus(key, temporal_bonus, unbiased_bonus):
194
+ if not group[key]: return
195
+ idx = group[key][0]
196
+ raw_rewards = []
197
+ for is_correct in data[idx]["correctness"]:
198
+ if is_correct:
199
+ # 基础分 1.0 + 时序红利 + 无偏红利
200
+ raw_rewards.append(1.0 + temporal_bonus + unbiased_bonus)
201
+ else:
202
+ raw_rewards.append(0.0)
203
+ data[idx]["raw_rewards"] = raw_rewards
204
+
205
+ apply_bonus("forward_False", f_temporal_bonus, unbiased_bonus)
206
+ apply_bonus("backward_False", b_temporal_bonus, unbiased_bonus)
207
+
208
+ # =========================================================================
209
+
210
+ def z_score_normalize(lst):
211
+ mean = sum(lst) / len(lst) if len(lst) > 0 else 0.0
212
+ std = (sum((x - mean) ** 2 for x in lst) / len(lst)) ** 0.5 if len(lst) > 0 else 0.0
213
+ if std == 0:
214
+ return [0 for _ in lst]
215
+ return [(x - mean) / std for x in lst]
216
+
217
+ final_data = []
218
+ ordered_correctness = [] # 用于日志打印,不记录被打乱的实验数据
219
+
220
+ for i in range(len(data)):
221
+ # 丢弃打乱的对照组,它们仅仅用于上面的计算参照,不进入强化学习
222
+ if data[i].get("is_shuffled", False):
223
+ continue
224
+
225
+ ordered_correctness.extend(data[i]["correctness"])
226
+
227
+ # 如果部分数据没有走过分组逻辑,默认回退为原始 correct 分数
228
+ raw_rewards = data[i].get("raw_rewards", [float(c) for c in data[i]["correctness"]])
229
+ lengths = data[i]["response_length"]
230
+
231
+ # 长度惩罚
232
+ if config.reward.strict_len_check:
233
+ for j in range(len(lengths)):
234
+ if OmegaConf.select(config, "rollout.max_gen_length", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_gen_length - 5:
235
+ raw_rewards[j] = 0.0
236
+ if OmegaConf.select(config, "rollout.max_token", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_token - 5:
237
+ raw_rewards[j] = 0.0
238
+
239
+ # Z-Score 优势归一化
240
+ rewards = z_score_normalize(raw_rewards)
241
+ data[i]["rewards"] = rewards
242
+
243
+ if config.experiment.function == "train":
244
+ proportion = sum(data[i]["correctness"]) / len(data[i]["correctness"]) if len(data[i]["correctness"]) > 0 else 0.0
245
+ # 如果全部回答都是错的,或者全是对的(无差别区分度),则剔除该样本
246
+ if proportion > 0.95 or proportion < 0.05:
247
+ continue
248
+
249
+ for j in range(len(rewards)):
250
+ data_i = {}
251
+ data_i["prompt"] = data[i]["prompt"]
252
+ data_i["reward"] = rewards[j]
253
+ data_i["response"] = data[i]["full_output"][j]
254
+ data_i["step_map"] = data[i]["step_map"][j]
255
+
256
+ # 保留其他需要的上下文 ID
257
+ data_i["data_id"] = data[i].get("data_id")
258
+ data_i["reversal_type"] = data[i].get("reversal_type")
259
+
260
+ if "image_token_ids" in data[i]:
261
+ data_i["image_token_ids"] = data[i]["image_token_ids"]
262
+
263
+ p_video_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "video")
264
+ if p_video_abs is not None:
265
+ data_i["video_abs_path"] = p_video_abs
266
+
267
+ p_image_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "image")
268
+ if p_image_abs is not None:
269
+ data_i["image_abs_path"] = p_image_abs
270
+
271
+ final_data.append(data_i)
272
+
273
+ if config.experiment.function == "evaluation":
274
+ data[i]["step_map"] = []
275
+
276
+ if config.experiment.function == "train":
277
+ with open("../" + project_name + "/temp_data/" + config.dataset.optimization_data + ".json", "w", encoding="utf-8") as f:
278
+ json.dump(final_data, f, indent=2, ensure_ascii=False)
279
+
280
+
281
+ os.makedirs(os.path.dirname(file_name), exist_ok=True)
282
+ with open(file_name, "w", encoding="utf-8") as f:
283
+ json.dump(data, f, indent=2, ensure_ascii=False)
284
+
285
+
286
+ outputs_result_name = "../" + project_name + "/results/results-" + outputs_name + ".txt"
287
+ os.makedirs(os.path.dirname(outputs_result_name), exist_ok=True)
288
+ with open(outputs_result_name, "a") as f:
289
+ # Save + print
290
+ def save_and_print(text):
291
+ cprint("\n\n\n" + text, color="green")
292
+ f.write(text + "\n")
293
+
294
+ # 只计算有序组(有效学习组)的准确率来作为监控指标
295
+ acc = (sum(ordered_correctness)/len(ordered_correctness)) if len(ordered_correctness) > 0 else float("nan")
296
+ avg_len = sum(response_length_list)/len(response_length_list)
297
+
298
+ # 新增:计算 T-GRPO 和 Unbiased 奖励的平均值
299
+ avg_temp = sum(all_temporal_bonuses)/len(all_temporal_bonuses) if all_temporal_bonuses else 0.0
300
+ avg_unbias = sum(all_unbiased_bonuses)/len(all_unbiased_bonuses) if all_unbiased_bonuses else 0.0
301
+
302
+ output_text = f"train step: {config.experiment.current_epoch} "
303
+ if config.experiment.function == "train":
304
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
305
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} block_size: {config.rollout.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
306
+ else:
307
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} top_k: {config.rollout.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
308
+ else:
309
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
310
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} block_size: {config.evaluation.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
311
+ else:
312
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} top_k: {config.evaluation.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
313
+ save_and_print(output_text)
314
+
315
+ if config.experiment.function == "train":
316
+ csv_file_path = f"../{project_name}/results/all_rewards.csv"
317
+
318
+ # 如果是第1个 epoch/step,或者是新文件,就先写入表头
319
+ write_header = not os.path.exists(csv_file_path) or config.experiment.current_epoch == 1
320
+
321
+ with open(csv_file_path, "a", encoding="utf-8") as f_csv:
322
+ if write_header:
323
+ f_csv.write("step,acc_reward,t_grpo_reward,unbiased_reward,response_length\n")
324
+
325
+ # 按行追加当前 step 的数据
326
+ f_csv.write(f"{config.experiment.current_epoch},{acc:.4f},{avg_temp:.4f},{avg_unbias:.4f},{avg_len:.2f}\n")
327
+
328
+ if run is not None:
329
+ wandb.log(
330
+ {
331
+ "reward/acc": acc,
332
+ "reward/t_grpo_bonus": avg_temp,
333
+ "reward/unbiased_bonus": avg_unbias,
334
+ "reward/avg_response_length": avg_len,
335
+ "reward/train_step": config.experiment.current_epoch,
336
+ },
337
+ step=config.experiment.current_epoch,
338
+ )
339
+ wandb.finish()
reward/wandb/run-20260530_140614-fmmkx1a5/files/config.yaml ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.0
4
+ code_path: code/reward/rl_reward_video_reversal.py
5
+ e:
6
+ imdr4j6cax5po0b3qgu3odrrqmyfb0d3:
7
+ args:
8
+ - config=../configs/rl_lavida_video_reversal.yaml
9
+ - wandb.run_id=fmmkx1a5
10
+ - experiment.function=train
11
+ - evaluation.block_size=None
12
+ - evaluation.top_k=None
13
+ - evaluation.remasking_strategy=None
14
+ - experiment.current_epoch=17
15
+ codePath: reward/rl_reward_video_reversal.py
16
+ codePathLocal: rl_reward_video_reversal.py
17
+ cpu_count: 96
18
+ cpu_count_logical: 192
19
+ cudaVersion: "12.8"
20
+ disk:
21
+ /:
22
+ total: "806578724864"
23
+ used: "625497956352"
24
+ email: shixi_runqing@staff.weibo.com
25
+ executable: /data8/runqing/miniconda/envs/dllm-rl/bin/python
26
+ git:
27
+ commit: 10b4fd1cba83e4496c20585dc2fd01dc02f20255
28
+ remote: https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git
29
+ gpu: NVIDIA H800
30
+ gpu_count: 8
31
+ gpu_nvidia:
32
+ - architecture: Hopper
33
+ cudaCores: 16896
34
+ memoryTotal: "85520809984"
35
+ name: NVIDIA H800
36
+ uuid: GPU-f768b684-b9ce-23a2-81a6-af16161cf9be
37
+ - architecture: Hopper
38
+ cudaCores: 16896
39
+ memoryTotal: "85520809984"
40
+ name: NVIDIA H800
41
+ uuid: GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9
42
+ - architecture: Hopper
43
+ cudaCores: 16896
44
+ memoryTotal: "85520809984"
45
+ name: NVIDIA H800
46
+ uuid: GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6
47
+ - architecture: Hopper
48
+ cudaCores: 16896
49
+ memoryTotal: "85520809984"
50
+ name: NVIDIA H800
51
+ uuid: GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53
52
+ - architecture: Hopper
53
+ cudaCores: 16896
54
+ memoryTotal: "85520809984"
55
+ name: NVIDIA H800
56
+ uuid: GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad
57
+ - architecture: Hopper
58
+ cudaCores: 16896
59
+ memoryTotal: "85520809984"
60
+ name: NVIDIA H800
61
+ uuid: GPU-f531028f-805c-3301-61b3-0c46329dc9c0
62
+ - architecture: Hopper
63
+ cudaCores: 16896
64
+ memoryTotal: "85520809984"
65
+ name: NVIDIA H800
66
+ uuid: GPU-2775489f-18c8-2328-8829-c46238575379
67
+ - architecture: Hopper
68
+ cudaCores: 16896
69
+ memoryTotal: "85520809984"
70
+ name: NVIDIA H800
71
+ uuid: GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd
72
+ host: b1301b38c75f
73
+ memory:
74
+ total: "2164113764352"
75
+ os: Linux-5.15.0-144-generic-x86_64-with-glibc2.35
76
+ program: /data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py
77
+ python: CPython 3.10.19
78
+ root: /data4/runqing/dLLM-RL/reward
79
+ startedAt: "2026-05-30T06:06:14.187311Z"
80
+ writerId: imdr4j6cax5po0b3qgu3odrrqmyfb0d3
81
+ m: []
82
+ python_version: 3.10.19
83
+ t:
84
+ "1":
85
+ - 1
86
+ - 41
87
+ "2":
88
+ - 1
89
+ - 41
90
+ "3":
91
+ - 2
92
+ - 5
93
+ - 13
94
+ - 14
95
+ - 16
96
+ - 61
97
+ - 62
98
+ "4": 3.10.19
99
+ "5": 0.25.0
100
+ "10":
101
+ - 20
102
+ "12": 0.25.0
103
+ "13": linux-x86_64
104
+ config:
105
+ value: ../configs/rl_lavida_video_reversal.yaml
106
+ dataset.data_type:
107
+ value: video_reverse
108
+ dataset.optimization_data:
109
+ value: rl_data
110
+ dataset.train_dataset:
111
+ value: video_reversal_rl_train
112
+ evaluation.batch_size:
113
+ value: 1
114
+ evaluation.block_size:
115
+ value: None
116
+ evaluation.data_type:
117
+ value: video_reverse
118
+ evaluation.dynamic_threshold:
119
+ value: 0.9
120
+ evaluation.eval_dataset:
121
+ value: video_reversal_rl_eval
122
+ evaluation.further_horizon:
123
+ value: 128
124
+ evaluation.if_eval:
125
+ value: false
126
+ evaluation.max_gen_length:
127
+ value: 128
128
+ evaluation.num_response_per_task:
129
+ value: 3
130
+ evaluation.remasking_strategy:
131
+ value: None
132
+ evaluation.remasking_strategy.0:
133
+ value: low_confidence_static
134
+ evaluation.remasking_strategy.1:
135
+ value: low_confidence_dynamic
136
+ evaluation.steps:
137
+ value: 128
138
+ evaluation.target:
139
+ value: confidence
140
+ evaluation.temperature:
141
+ value: 0.1
142
+ evaluation.top_k:
143
+ value: None
144
+ evaluation.use_cache:
145
+ value: true
146
+ execute.num_chunk:
147
+ value: 128
148
+ experiment.current_epoch:
149
+ value: 17
150
+ experiment.deepspeed_file:
151
+ value: 1_node_8_gpus_deepspeed_zero2
152
+ experiment.eval_every:
153
+ value: 5
154
+ experiment.function:
155
+ value: train
156
+ experiment.logging_dir:
157
+ value: rl_lavida_video_reversal/logs
158
+ experiment.node_index:
159
+ value: 0
160
+ experiment.num_node:
161
+ value: 1
162
+ experiment.project:
163
+ value: rl_lavida_video_reversal
164
+ experiment.save_every:
165
+ value: 10
166
+ experiment.start_from_scratch:
167
+ value: true
168
+ experiment.total_step:
169
+ value: 30
170
+ lr_scheduler.params.learning_rate:
171
+ value: 1e-06
172
+ lr_scheduler.params.min_lr_scale:
173
+ value: 1
174
+ lr_scheduler.params.warmup_steps:
175
+ value: 0
176
+ lr_scheduler.scheduler:
177
+ value: cosine
178
+ model.image_resolution:
179
+ value: 512
180
+ model.model_base:
181
+ value: lavida
182
+ model.optimized_name:
183
+ value: optimized
184
+ model.pretrained_model:
185
+ value: /data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized
186
+ model.vq_model_path:
187
+ value: /data4/runqing/hf/magvitv2
188
+ optimizer.name:
189
+ value: adamw
190
+ optimizer.params.beta1:
191
+ value: 0.9
192
+ optimizer.params.beta2:
193
+ value: 0.999
194
+ optimizer.params.epsilon:
195
+ value: 1e-08
196
+ optimizer.params.learning_rate:
197
+ value: 1e-06
198
+ optimizer.params.scale_lr:
199
+ value: false
200
+ optimizer.params.weight_decay:
201
+ value: 0
202
+ reward.answer_must_in_box:
203
+ value: true
204
+ reward.strict_len_check:
205
+ value: false
206
+ rollout.batch_size:
207
+ value: 1
208
+ rollout.block_size:
209
+ value: 32
210
+ rollout.dynamic_threshold:
211
+ value: 0.9
212
+ rollout.further_horizon:
213
+ value: 128
214
+ rollout.max_gen_length:
215
+ value: 128
216
+ rollout.num_response_per_task:
217
+ value: 8
218
+ rollout.num_task_per_step:
219
+ value: 128
220
+ rollout.remasking_strategy:
221
+ value: low_confidence_dynamic
222
+ rollout.steps:
223
+ value: 128
224
+ rollout.target:
225
+ value: confidence
226
+ rollout.temperature:
227
+ value: 0.8
228
+ rollout.use_cache:
229
+ value: true
230
+ system.HF_HOME:
231
+ value: null
232
+ system.HTTP_PROXY:
233
+ value: null
234
+ system.base_dir:
235
+ value: /data4/runqing/dLLM-RL
236
+ system.env_name:
237
+ value: /data8/runqing/miniconda/envs/dllm-rl
238
+ system.envs_dir:
239
+ value: /data8/runqing/miniconda/envs/dllm-rl
240
+ training.batch_size_lm:
241
+ value: 1
242
+ training.beta:
243
+ value: 0.01
244
+ training.enable_tf32:
245
+ value: true
246
+ training.eps:
247
+ value: 0.2
248
+ training.gradient_accumulation_steps:
249
+ value: 2
250
+ training.lower_p:
251
+ value: 0.35
252
+ training.mask_times_per_sample:
253
+ value: 2
254
+ training.max_gen_length:
255
+ value: 128
256
+ training.max_grad_norm:
257
+ value: 1
258
+ training.max_prompt_len:
259
+ value: 512
260
+ training.method:
261
+ value: random_masking
262
+ training.mixed_precision:
263
+ value: bf16
264
+ training.num_train_epochs:
265
+ value: 1
266
+ training.post_num:
267
+ value: 1
268
+ training.seed:
269
+ value: 10086
270
+ training.shrink:
271
+ value: 8
272
+ training.upper_p:
273
+ value: 0.9
274
+ training.use_kl_estimator_k3:
275
+ value: true
276
+ wandb.entity:
277
+ value: null
278
+ wandb.resume:
279
+ value: auto
280
+ wandb.run_id:
281
+ value: fmmkx1a5
reward/wandb/run-20260530_140614-fmmkx1a5/files/output.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+
2
+
3
+
4
+ train step: 17 remasking_strategy: low_confidence_dynamic block_size: 32 acc: 0.5703 avg length: 126.11
reward/wandb/run-20260530_140614-fmmkx1a5/files/requirements.txt ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ transformers==4.52.4
2
+ nvidia-nvtx-cu12==12.4.127
3
+ deepspeed==0.18.6
4
+ typing-inspection==0.4.2
5
+ scipy==1.15.3
6
+ MarkupSafe==3.0.3
7
+ nvidia-cuda-runtime-cu12==12.4.127
8
+ detoxify==0.5.2
9
+ yarl==1.22.0
10
+ tornado==6.5.4
11
+ nvidia-curand-cu12==10.3.5.147
12
+ nest-asyncio==1.6.0
13
+ safetensors==0.7.0
14
+ async-timeout==5.0.1
15
+ typing_extensions==4.15.0
16
+ asttokens==3.0.1
17
+ cuda-python==13.1.1
18
+ executing==2.2.1
19
+ nvidia-cudnn-frontend==1.18.0
20
+ comm==0.2.3
21
+ tokenizers==0.21.4
22
+ six==1.17.0
23
+ Pygments==2.19.2
24
+ nvidia-cusparselt-cu12==0.6.2
25
+ apache-tvm-ffi==0.1.8.post2
26
+ flash_attn==2.7.4.post1
27
+ tqdm==4.67.3
28
+ tensorboard-data-server==0.7.2
29
+ annotated-types==0.7.0
30
+ math-verify==0.9.0
31
+ idna==3.11
32
+ regex==2026.1.15
33
+ nvidia-cutlass-dsl-libs-base==4.4.0
34
+ flashinfer-python==0.6.3
35
+ click==8.3.1
36
+ pytz==2025.2
37
+ wheel==0.46.3
38
+ ipykernel==7.2.0
39
+ stack-data==0.6.3
40
+ absl-py==2.4.0
41
+ wandb==0.25.0
42
+ pandas==2.3.3
43
+ termcolor==3.3.0
44
+ sympy==1.13.1
45
+ joblib==1.5.3
46
+ prompt_toolkit==3.0.52
47
+ attrs==25.4.0
48
+ nvidia-cusolver-cu12==11.6.1.9
49
+ xxhash==3.6.0
50
+ aiohappyeyeballs==2.6.1
51
+ python-dateutil==2.9.0.post0
52
+ frozenlist==1.8.0
53
+ nvidia-ml-py==13.590.48
54
+ multiprocess==0.70.18
55
+ decorator==5.2.1
56
+ cuda-pathfinder==1.3.4
57
+ multidict==6.7.1
58
+ pure_eval==0.2.3
59
+ nvidia-cufft-cu12==11.2.1.3
60
+ omegaconf==2.3.0
61
+ PyYAML==6.0.3
62
+ debugpy==1.8.20
63
+ psutil==7.2.2
64
+ ninja==1.13.0
65
+ nvidia-cublas-cu12==12.4.5.8
66
+ triton==3.2.0
67
+ antlr4-python3-runtime==4.9.3
68
+ peft==0.18.1
69
+ aiosignal==1.4.0
70
+ accelerate==1.12.0
71
+ liger_kernel==0.7.0
72
+ anyio==4.12.1
73
+ decord==0.6.0
74
+ h11==0.16.0
75
+ urllib3==2.6.3
76
+ wcwidth==0.6.0
77
+ networkx==3.4.2
78
+ huggingface_hub==0.36.2
79
+ tzdata==2025.3
80
+ xformers==0.0.29.post3
81
+ tabulate==0.9.0
82
+ certifi==2026.1.4
83
+ tensorboard==2.20.0
84
+ matplotlib-inline==0.2.1
85
+ pip==26.0.1
86
+ smmap==5.0.2
87
+ nvidia-cuda-cupti-cu12==12.4.127
88
+ Markdown==3.10.2
89
+ nvidia-nccl-cu12==2.21.5
90
+ aiohttp==3.13.3
91
+ scikit-learn==1.7.2
92
+ nvidia-cutlass-dsl==4.4.0
93
+ setuptools==82.0.0
94
+ jupyter_core==5.9.1
95
+ asyncio==4.0.0
96
+ einops==0.8.2
97
+ pydantic==2.12.5
98
+ av==16.1.0
99
+ protobuf==6.33.5
100
+ evaluate==0.4.6
101
+ Jinja2==3.1.6
102
+ exceptiongroup==1.3.1
103
+ ipython==8.38.0
104
+ sentry-sdk==2.53.0
105
+ httpx==0.28.1
106
+ msgpack==1.1.2
107
+ platformdirs==4.9.2
108
+ hjson==3.1.0
109
+ torchvision==0.21.0
110
+ parso==0.8.6
111
+ cuda-bindings==13.1.1
112
+ pexpect==4.9.0
113
+ threadpoolctl==3.6.0
114
+ pyarrow==23.0.1
115
+ jedi==0.19.2
116
+ nvidia-cuda-nvrtc-cu12==12.4.127
117
+ Werkzeug==3.1.5
118
+ fsspec==2025.10.0
119
+ pydantic_core==2.41.5
120
+ GitPython==3.1.46
121
+ propcache==0.4.1
122
+ mpmath==1.3.0
123
+ nvidia-nvjitlink-cu12==12.4.127
124
+ nvidia-cusparse-cu12==12.3.1.170
125
+ hf-xet==1.2.0
126
+ charset-normalizer==3.4.4
127
+ dill==0.4.0
128
+ datasets==4.5.0
129
+ py-cpuinfo==9.0.0
130
+ sentencepiece==0.2.1
131
+ latex2sympy2_extended==1.11.0
132
+ jupyter_client==8.8.0
133
+ pyzmq==27.1.0
134
+ numpy==2.2.6
135
+ gitdb==4.0.12
136
+ grpcio==1.78.0
137
+ packaging==26.0
138
+ requests==2.32.5
139
+ nvidia-cudnn-cu12==9.1.0.70
140
+ httpcore==1.0.9
141
+ traitlets==5.14.3
142
+ filelock==3.24.2
143
+ ptyprocess==0.7.0
144
+ pillow==12.1.1
145
+ torch==2.6.0
146
+ more-itertools==10.8.0
147
+ wheel==0.46.3
148
+ jaraco.text==4.0.0
149
+ zipp==3.23.0
150
+ autocommand==2.2.2
151
+ jaraco.context==6.1.0
152
+ jaraco.functools==4.4.0
153
+ tomli==2.4.0
154
+ backports.tarfile==1.2.0
155
+ importlib_metadata==8.7.1
156
+ platformdirs==4.4.0
157
+ packaging==26.0
reward/wandb/run-20260530_140614-fmmkx1a5/files/wandb-metadata.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.15.0-144-generic-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.19",
4
+ "startedAt": "2026-05-30T06:06:14.187311Z",
5
+ "args": [
6
+ "config=../configs/rl_lavida_video_reversal.yaml",
7
+ "wandb.run_id=fmmkx1a5",
8
+ "experiment.function=train",
9
+ "evaluation.block_size=None",
10
+ "evaluation.top_k=None",
11
+ "evaluation.remasking_strategy=None",
12
+ "experiment.current_epoch=17"
13
+ ],
14
+ "program": "/data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py",
15
+ "codePath": "reward/rl_reward_video_reversal.py",
16
+ "codePathLocal": "rl_reward_video_reversal.py",
17
+ "git": {
18
+ "remote": "https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git",
19
+ "commit": "10b4fd1cba83e4496c20585dc2fd01dc02f20255"
20
+ },
21
+ "email": "shixi_runqing@staff.weibo.com",
22
+ "root": "/data4/runqing/dLLM-RL/reward",
23
+ "host": "b1301b38c75f",
24
+ "executable": "/data8/runqing/miniconda/envs/dllm-rl/bin/python",
25
+ "cpu_count": 96,
26
+ "cpu_count_logical": 192,
27
+ "gpu": "NVIDIA H800",
28
+ "gpu_count": 8,
29
+ "disk": {
30
+ "/": {
31
+ "total": "806578724864",
32
+ "used": "625497956352"
33
+ }
34
+ },
35
+ "memory": {
36
+ "total": "2164113764352"
37
+ },
38
+ "gpu_nvidia": [
39
+ {
40
+ "name": "NVIDIA H800",
41
+ "memoryTotal": "85520809984",
42
+ "cudaCores": 16896,
43
+ "architecture": "Hopper",
44
+ "uuid": "GPU-f768b684-b9ce-23a2-81a6-af16161cf9be"
45
+ },
46
+ {
47
+ "name": "NVIDIA H800",
48
+ "memoryTotal": "85520809984",
49
+ "cudaCores": 16896,
50
+ "architecture": "Hopper",
51
+ "uuid": "GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9"
52
+ },
53
+ {
54
+ "name": "NVIDIA H800",
55
+ "memoryTotal": "85520809984",
56
+ "cudaCores": 16896,
57
+ "architecture": "Hopper",
58
+ "uuid": "GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6"
59
+ },
60
+ {
61
+ "name": "NVIDIA H800",
62
+ "memoryTotal": "85520809984",
63
+ "cudaCores": 16896,
64
+ "architecture": "Hopper",
65
+ "uuid": "GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53"
66
+ },
67
+ {
68
+ "name": "NVIDIA H800",
69
+ "memoryTotal": "85520809984",
70
+ "cudaCores": 16896,
71
+ "architecture": "Hopper",
72
+ "uuid": "GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad"
73
+ },
74
+ {
75
+ "name": "NVIDIA H800",
76
+ "memoryTotal": "85520809984",
77
+ "cudaCores": 16896,
78
+ "architecture": "Hopper",
79
+ "uuid": "GPU-f531028f-805c-3301-61b3-0c46329dc9c0"
80
+ },
81
+ {
82
+ "name": "NVIDIA H800",
83
+ "memoryTotal": "85520809984",
84
+ "cudaCores": 16896,
85
+ "architecture": "Hopper",
86
+ "uuid": "GPU-2775489f-18c8-2328-8829-c46238575379"
87
+ },
88
+ {
89
+ "name": "NVIDIA H800",
90
+ "memoryTotal": "85520809984",
91
+ "cudaCores": 16896,
92
+ "architecture": "Hopper",
93
+ "uuid": "GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd"
94
+ }
95
+ ],
96
+ "cudaVersion": "12.8",
97
+ "writerId": "imdr4j6cax5po0b3qgu3odrrqmyfb0d3"
98
+ }
reward/wandb/run-20260530_140614-fmmkx1a5/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"reward/train_step":1,"_timestamp":1.7801027754513717e+09,"train/learning_rate":8.236931423909135e-07,"_step":28,"_wandb":{"runtime":14471},"reward/avg_response_length":124.568359375,"reward/acc":0.396484375,"train/loss":2.6498982906341553,"_runtime":14471,"reward/t_grpo_bonus":0.2718750000000003,"reward/unbiased_bonus":0.09374999999999996}
reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug-core.log ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T14:06:14.252853695+08:00","level":"INFO","msg":"main: starting server","port-filename":"/tmp/tmptf_o9omj/port-3189609.txt","pid":3189609,"log-level":0,"disable-analytics":false,"shutdown-on-parent-exit":false,"enable-dcgm-profiling":false}
2
+ {"time":"2026-05-30T14:06:14.255446114+08:00","level":"INFO","msg":"server: will exit if parent process dies","ppid":3189609}
3
+ {"time":"2026-05-30T14:06:14.255399321+08:00","level":"INFO","msg":"server: accepting connections","addr":{"Name":"/tmp/wandb-3189609-3189769-2652934524/socket","Net":"unix"}}
4
+ {"time":"2026-05-30T14:06:14.434395439+08:00","level":"INFO","msg":"connection: ManageConnectionData: new connection created","id":"1(@)"}
5
+ {"time":"2026-05-30T14:06:14.44368416+08:00","level":"INFO","msg":"handleInformInit: received","streamId":"fmmkx1a5","id":"1(@)"}
6
+ {"time":"2026-05-30T14:06:14.846645685+08:00","level":"INFO","msg":"handleInformInit: stream started","streamId":"fmmkx1a5","id":"1(@)"}
7
+ {"time":"2026-05-30T14:06:15.314612487+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"llqguxih095q"}
8
+ {"time":"2026-05-30T14:06:15.499801767+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"llqguxih095q"}
9
+ {"time":"2026-05-30T14:06:15.500637307+08:00","level":"INFO","msg":"handleInformFinish: finish message received","streamId":"fmmkx1a5","id":"1(@)"}
10
+ {"time":"2026-05-30T14:06:15.501177166+08:00","level":"INFO","msg":"handleInformFinish: stream closed","streamId":"fmmkx1a5","id":"1(@)"}
11
+ {"time":"2026-05-30T14:06:15.501348011+08:00","level":"INFO","msg":"handleInformTeardown: server teardown initiated","id":"1(@)"}
12
+ {"time":"2026-05-30T14:06:15.501382227+08:00","level":"INFO","msg":"handleInformTeardown: server shutdown complete","id":"1(@)"}
13
+ {"time":"2026-05-30T14:06:15.501403137+08:00","level":"INFO","msg":"server is shutting down"}
14
+ {"time":"2026-05-30T14:06:15.501400402+08:00","level":"INFO","msg":"connection: closing","id":"1(@)"}
15
+ {"time":"2026-05-30T14:06:15.501501284+08:00","level":"INFO","msg":"server: listener closed","addr":{"Name":"/tmp/wandb-3189609-3189769-2652934524/socket","Net":"unix"}}
16
+ {"time":"2026-05-30T14:06:15.501544871+08:00","level":"INFO","msg":"connection: closed successfully","id":"1(@)"}
17
+ {"time":"2026-05-30T14:06:15.501562198+08:00","level":"INFO","msg":"connection: ManageConnectionData: connection closed","id":"1(@)"}
18
+ {"time":"2026-05-30T14:06:15.501582678+08:00","level":"INFO","msg":"server is closed"}
reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug-internal.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T14:06:14.443844276+08:00","level":"INFO","msg":"stream: starting","core version":"0.25.0"}
2
+ {"time":"2026-05-30T14:06:14.846184934+08:00","level":"ERROR","msg":"featurechecker: failed to load features, all will be disabled","error":"input:4:3: Cannot query field \"features\" on type \"ServerInfo\".\n"}
3
+ {"time":"2026-05-30T14:06:14.84633166+08:00","level":"INFO","msg":"stream: created new stream","id":"fmmkx1a5"}
4
+ {"time":"2026-05-30T14:06:14.846412969+08:00","level":"INFO","msg":"handler: started","stream_id":"fmmkx1a5"}
5
+ {"time":"2026-05-30T14:06:14.846627007+08:00","level":"INFO","msg":"stream: started","id":"fmmkx1a5"}
6
+ {"time":"2026-05-30T14:06:14.846671467+08:00","level":"INFO","msg":"sender: started","stream_id":"fmmkx1a5"}
7
+ {"time":"2026-05-30T14:06:14.846678967+08:00","level":"INFO","msg":"writer: started","stream_id":"fmmkx1a5"}
8
+ {"time":"2026-05-30T14:06:14.849320102+08:00","level":"WARN","msg":"runupserter: server does not expand metric globs but the x_server_side_expand_glob_metrics setting is set; ignoring"}
9
+ {"time":"2026-05-30T14:06:15.108142778+08:00","level":"ERROR","msg":"git repo not found","error":"repository does not exist"}
10
+ {"time":"2026-05-30T14:06:15.313717943+08:00","level":"WARN","msg":"handler: ignoring partial history record","step":17,"current":29}
11
+ {"time":"2026-05-30T14:06:15.446739037+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=7b299196e96c355ac66dc469a6d12d1c0311c93ed7653bdd5cbc9434f7b5d9b1"}
12
+ {"time":"2026-05-30T14:06:15.446887188+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Resource><RequestId>18B442C70EEA507A</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/files/requirements.txt, Name: requirements.txt, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=7b299196e96c355ac66dc469a6d12d1c0311c93ed7653bdd5cbc9434f7b5d9b1, Size: 2982}"}
13
+ {"time":"2026-05-30T14:06:15.448015981+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=06e6b7e52973920c46c19828b50b32e38449629b2f1c0c5dc0ad986bbb6c2cfe"}
14
+ {"time":"2026-05-30T14:06:15.448120795+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Resource><RequestId>18B442C70EF3BC59</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/files/config.yaml, Name: config.yaml, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=06e6b7e52973920c46c19828b50b32e38449629b2f1c0c5dc0ad986bbb6c2cfe, Size: 7996}"}
15
+ {"time":"2026-05-30T14:06:15.449220337+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=5eb9562231e35009137c625c4e531c6eb48fe0bd886fae2dda8ae1db246c6310"}
16
+ {"time":"2026-05-30T14:06:15.449305178+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Resource><RequestId>18B442C70DF68521</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/files/output.log, Name: output.log, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=5eb9562231e35009137c625c4e531c6eb48fe0bd886fae2dda8ae1db246c6310, Size: 111}"}
17
+ {"time":"2026-05-30T14:06:15.449773216+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=e9586dfb79eabfcf548ad50e529327ca5b5805309efaf950c76ecdec3d2f191a"}
18
+ {"time":"2026-05-30T14:06:15.449862921+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Resource><RequestId>18B442C70DF9E2D7</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/files/wandb-metadata.json, Name: wandb-metadata.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=e9586dfb79eabfcf548ad50e529327ca5b5805309efaf950c76ecdec3d2f191a, Size: 2850}"}
19
+ {"time":"2026-05-30T14:06:15.450618987+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fc10c8034d331fe0cde1d97fe5c0746ef022e4c321cd41da45bdeb63a8e0d624"}
20
+ {"time":"2026-05-30T14:06:15.450747098+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Resource><RequestId>18B442C70EA171A3</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/files/wandb-summary.json, Name: wandb-summary.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fc10c8034d331fe0cde1d97fe5c0746ef022e4c321cd41da45bdeb63a8e0d624, Size: 343}"}
21
+ {"time":"2026-05-30T14:06:15.455659714+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=2d5ebab258ac9e8fa83df3405b01745814f83b1b13be610e400fdf7a7eeea6d5"}
22
+ {"time":"2026-05-30T14:06:15.455706576+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Resource><RequestId>18B442C70EA3CFA3</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py, Name: code/reward/rl_reward_video_reversal.py, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T060615Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=2d5ebab258ac9e8fa83df3405b01745814f83b1b13be610e400fdf7a7eeea6d5, Size: 14790}"}
23
+ {"time":"2026-05-30T14:06:15.456032194+08:00","level":"INFO","msg":"fileTransfer: Close: file transfer manager closed"}
24
+ {"time":"2026-05-30T14:06:15.495836498+08:00","level":"INFO","msg":"handler: operation stats","stats":{}}
25
+ {"time":"2026-05-30T14:06:15.500648396+08:00","level":"INFO","msg":"stream: closing","id":"fmmkx1a5"}
26
+ {"time":"2026-05-30T14:06:15.500661021+08:00","level":"INFO","msg":"handler: closed","stream_id":"fmmkx1a5"}
27
+ {"time":"2026-05-30T14:06:15.500712477+08:00","level":"INFO","msg":"sender: closed","stream_id":"fmmkx1a5"}
28
+ {"time":"2026-05-30T14:06:15.500726726+08:00","level":"INFO","msg":"stream: closed","id":"fmmkx1a5"}
reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug.log ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2026-05-30 14:06:14,190 INFO MainThread:3189609 [wandb_setup.py:_flush():81] Current SDK version is 0.25.0
2
+ 2026-05-30 14:06:14,190 INFO MainThread:3189609 [wandb_setup.py:_flush():81] Configure stats pid to 3189609
3
+ 2026-05-30 14:06:14,190 INFO MainThread:3189609 [wandb_setup.py:_flush():81] Loading settings from environment variables
4
+ 2026-05-30 14:06:14,190 INFO MainThread:3189609 [wandb_init.py:setup_run_log_directory():717] Logging user logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug.log
5
+ 2026-05-30 14:06:14,191 INFO MainThread:3189609 [wandb_init.py:setup_run_log_directory():718] Logging internal logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_140614-fmmkx1a5/logs/debug-internal.log
6
+ 2026-05-30 14:06:14,191 INFO MainThread:3189609 [wandb_init.py:init():844] calling init triggers
7
+ 2026-05-30 14:06:14,191 INFO MainThread:3189609 [wandb_init.py:init():849] wandb.init called with sweep_config: {}
8
+ config: {'wandb.entity': None, 'wandb.resume': 'auto', 'wandb.run_id': 'fmmkx1a5', 'system.HTTP_PROXY': None, 'system.HF_HOME': None, 'system.env_name': '/data8/runqing/miniconda/envs/dllm-rl', 'system.envs_dir': '/data8/runqing/miniconda/envs/dllm-rl', 'system.base_dir': '/data4/runqing/dLLM-RL', 'experiment.project': 'rl_lavida_video_reversal', 'experiment.function': 'train', 'experiment.start_from_scratch': True, 'experiment.total_step': 30, 'experiment.save_every': 10, 'experiment.eval_every': 5, 'experiment.current_epoch': 17, 'experiment.deepspeed_file': '1_node_8_gpus_deepspeed_zero2', 'experiment.num_node': 1, 'experiment.node_index': 0, 'model.pretrained_model': '/data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized', 'model.optimized_name': 'optimized', 'model.model_base': 'lavida', 'model.vq_model_path': '/data4/runqing/hf/magvitv2', 'model.image_resolution': 512, 'dataset.train_dataset': 'video_reversal_rl_train', 'dataset.data_type': 'video_reverse', 'dataset.optimization_data': 'rl_data', 'rollout.num_task_per_step': 128, 'rollout.num_response_per_task': 8, 'rollout.temperature': 0.8, 'rollout.steps': 128, 'rollout.max_gen_length': 128, 'rollout.batch_size': 1, 'rollout.remasking_strategy': 'low_confidence_dynamic', 'rollout.target': 'confidence', 'rollout.dynamic_threshold': 0.9, 'rollout.block_size': 32, 'rollout.further_horizon': 128, 'rollout.use_cache': True, 'reward.answer_must_in_box': True, 'reward.strict_len_check': False, 'execute.num_chunk': 128, 'training.gradient_accumulation_steps': 2, 'training.batch_size_lm': 1, 'training.mixed_precision': 'bf16', 'training.enable_tf32': True, 'training.seed': 10086, 'training.num_train_epochs': 1, 'training.max_grad_norm': 1.0, 'training.method': 'random_masking', 'training.lower_p': 0.35, 'training.upper_p': 0.9, 'training.shrink': 8, 'training.post_num': 1, 'training.mask_times_per_sample': 2, 'training.max_gen_length': 128, 'training.max_prompt_len': 512, 'training.eps': 0.2, 'training.beta': 0.01, 'training.use_kl_estimator_k3': True, 'optimizer.name': 'adamw', 'optimizer.params.learning_rate': 1e-06, 'optimizer.params.scale_lr': False, 'optimizer.params.beta1': 0.9, 'optimizer.params.beta2': 0.999, 'optimizer.params.weight_decay': 0.0, 'optimizer.params.epsilon': 1e-08, 'lr_scheduler.scheduler': 'cosine', 'lr_scheduler.params.learning_rate': 1e-06, 'lr_scheduler.params.warmup_steps': 0, 'lr_scheduler.params.min_lr_scale': 1.0, 'evaluation.if_eval': False, 'evaluation.eval_dataset': 'video_reversal_rl_eval', 'evaluation.data_type': 'video_reverse', 'evaluation.num_response_per_task': 3, 'evaluation.temperature': 0.1, 'evaluation.steps': 128, 'evaluation.max_gen_length': 128, 'evaluation.batch_size': 1, 'evaluation.remasking_strategy': 'None', 'evaluation.target': 'confidence', 'evaluation.dynamic_threshold': 0.9, 'evaluation.block_size': 'None', 'evaluation.further_horizon': 128, 'evaluation.use_cache': True, 'evaluation.top_k': 'None', 'config': '../configs/rl_lavida_video_reversal.yaml', '_wandb': {'code_path': 'code/reward/rl_reward_video_reversal.py'}}
9
+ 2026-05-30 14:06:14,191 INFO MainThread:3189609 [wandb_init.py:init():892] starting backend
10
+ 2026-05-30 14:06:14,434 INFO MainThread:3189609 [wandb_init.py:init():895] sending inform_init request
11
+ 2026-05-30 14:06:14,439 INFO MainThread:3189609 [wandb_init.py:init():903] backend started and connected
12
+ 2026-05-30 14:06:14,441 INFO MainThread:3189609 [wandb_init.py:init():973] updated telemetry
13
+ 2026-05-30 14:06:14,444 INFO MainThread:3189609 [wandb_init.py:init():997] communicating run to backend with 90.0 second timeout
14
+ 2026-05-30 14:06:15,102 INFO MainThread:3189609 [wandb_init.py:init():1037] run resumed
15
+ 2026-05-30 14:06:15,106 INFO MainThread:3189609 [wandb_init.py:init():1042] starting run threads in backend
16
+ 2026-05-30 14:06:15,195 INFO MainThread:3189609 [wandb_run.py:_console_start():2524] atexit reg
17
+ 2026-05-30 14:06:15,195 INFO MainThread:3189609 [wandb_run.py:_redirect():2373] redirect: wrap_raw
18
+ 2026-05-30 14:06:15,195 INFO MainThread:3189609 [wandb_run.py:_redirect():2442] Wrapping output streams.
19
+ 2026-05-30 14:06:15,195 INFO MainThread:3189609 [wandb_run.py:_redirect():2465] Redirects installed.
20
+ 2026-05-30 14:06:15,199 INFO MainThread:3189609 [wandb_init.py:init():1082] run started, returning control to user process
21
+ 2026-05-30 14:06:15,313 INFO MainThread:3189609 [wandb_run.py:_finish():2291] finishing run shixi_runqing/rl_lavida_video_reversal/fmmkx1a5
22
+ 2026-05-30 14:06:15,313 INFO MainThread:3189609 [wandb_run.py:_atexit_cleanup():2490] got exitcode: 0
23
+ 2026-05-30 14:06:15,314 INFO MainThread:3189609 [wandb_run.py:_restore():2472] restore
24
+ 2026-05-30 14:06:15,314 INFO MainThread:3189609 [wandb_run.py:_restore():2478] restore done
25
+ 2026-05-30 14:06:15,499 INFO MainThread:3189609 [wandb_run.py:_footer_sync_info():3868] logging synced files
reward/wandb/run-20260530_140614-fmmkx1a5/run-fmmkx1a5.wandb ADDED
Binary file (6.1 kB). View file
 
reward/wandb/run-20260530_172226-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import math_utils_v
3
+ import nest_asyncio
4
+ from concurrent.futures import ThreadPoolExecutor
5
+ import asyncio
6
+ import re
7
+ from termcolor import cprint
8
+ from omegaconf import MISSING
9
+ from omegaconf import DictConfig, ListConfig, OmegaConf
10
+ from typing import List, Union
11
+ import os
12
+ from collections import defaultdict
13
+ import sys
14
+
15
+ REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
+ sys.path.insert(0, REPO_ROOT)
17
+
18
+ import wandb
19
+ from train.utils import flatten_omega_conf, ensure_wandb_run_id
20
+
21
+ def resolve_media_abs_path(sample: dict, dataset_root: str | None, media_type: str = "image") -> str | None:
22
+ p = sample.get(f"{media_type}_abs_path")
23
+ if p is None:
24
+ p = sample.get(media_type) or sample.get(f"{media_type}_path")
25
+ if p is None:
26
+ return None
27
+ if not os.path.isabs(p) and dataset_root:
28
+ p = os.path.join(dataset_root, p)
29
+ try:
30
+ return os.path.abspath(p)
31
+ except Exception:
32
+ return p
33
+
34
+ def get_config():
35
+ cli_conf = OmegaConf.from_cli()
36
+ yaml_conf = OmegaConf.load(cli_conf.config)
37
+ conf = OmegaConf.merge(yaml_conf, cli_conf)
38
+ return conf
39
+
40
+ def remove_endoftext(obj: Union[str, List[str]]) -> Union[str, List[str]]:
41
+ token = '<|endoftext|>'
42
+ if isinstance(obj, str):
43
+ return obj.replace(token, '')
44
+ if isinstance(obj, list):
45
+ return [s.replace(token, '') if isinstance(s, str) else s for s in obj]
46
+ raise TypeError("Expected str or list of str")
47
+
48
+
49
+ if __name__ == "__main__":
50
+
51
+ config = get_config()
52
+ run = None
53
+ if config.experiment.function == "train":
54
+ existing_run_id = OmegaConf.select(config, "wandb.run_id", default=None)
55
+ run_id = ensure_wandb_run_id(config)
56
+ resume_wandb_run = config.wandb.resume
57
+ if existing_run_id is None:
58
+ resume_wandb_run = False
59
+ wandb_config = {k: v for k, v in flatten_omega_conf(config, resolve=True)}
60
+ run = wandb.init(
61
+ project=config.experiment.project,
62
+ entity=config.wandb.get("entity", None),
63
+ id=run_id,
64
+ resume=resume_wandb_run,
65
+ config=wandb_config,
66
+ reinit=True,
67
+ name=config.experiment.project,
68
+ )
69
+
70
+ project_name = config.experiment.project
71
+
72
+ if config.experiment.current_epoch == 1:
73
+ pretrained_model = config.model.pretrained_model
74
+ else:
75
+ pretrained_model = "../" + project_name + "/ckpt/" + config.model.optimized_name
76
+
77
+ if config.experiment.function == "train":
78
+ shrink = config.training.shrink
79
+ dataset = config.dataset.train_dataset
80
+ outputs_name = "rl-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
81
+
82
+ elif config.experiment.function == "evaluation":
83
+ dataset = config.evaluation.eval_dataset
84
+ outputs_name = "eval-" + pretrained_model.replace("/", ".") + "-" + dataset + f"-step{config.experiment.current_epoch}"
85
+
86
+ file_name = "../" + project_name + "/temp_data/outputs-" + outputs_name + ".json"
87
+
88
+ with open(file_name, 'r') as f:
89
+ data = json.load(f)
90
+
91
+ index_list = []
92
+ extracted_output_list = []
93
+ response_length_list = []
94
+ for i in range(len(data)):
95
+ data[i]["correctness"] = []
96
+ response_length_list += data[i]["response_length"]
97
+ index_list += [i] * len(data[i]["extracted_output"])
98
+ extracted_output_list += remove_endoftext(data[i]["extracted_output"])
99
+
100
+ nest_asyncio.apply()
101
+
102
+ async def get_correctness_all():
103
+ executor = ThreadPoolExecutor(max_workers=64)
104
+ tasks = []
105
+
106
+ for p in range(len(index_list)):
107
+ pred = extracted_output_list[p]
108
+ idx = index_list[p]
109
+
110
+ # 选择题正确性匹配逻辑
111
+ if config.dataset.data_type == "video_reverse" or config.evaluation.data_type == "video_reverse":
112
+ gt = data[idx].get("response", "")
113
+
114
+ async def mcq_check(p_str, g_str):
115
+ if p_str in g_str or g_str in p_str:
116
+ return True
117
+
118
+ p_str = str(p_str).strip()
119
+ g_str = str(g_str).strip()
120
+ p_match = re.search(r'^([A-Z])[\.\s]', p_str)
121
+ g_match = re.search(r'^([A-Z])[\.\s]', g_str)
122
+ if p_match and g_match:
123
+ return p_match.group(1) == g_match.group(1)
124
+ return g_str in p_str
125
+
126
+ tasks.append(mcq_check(pred, gt))
127
+ else:
128
+ gt = data[idx].get("ground_truth_answer", "")
129
+ tasks.append(math_utils_v.is_equal(pred, gt, executor))
130
+
131
+ return await asyncio.gather(*tasks)
132
+
133
+ correctness_all = asyncio.run(get_correctness_all())
134
+ for p, ok in enumerate(correctness_all):
135
+ index_i = index_list[p]
136
+ data[index_i]["correctness"].append(bool(ok))
137
+
138
+ # =========================================================================
139
+ # 核心新增逻辑:跨样本群组计算 T-GRPO 奖励 和 逆转无偏奖励
140
+ # =========================================================================
141
+
142
+ # 1. 按照 data_id 分组映射索引
143
+ grouped_data = defaultdict(lambda: {
144
+ "forward_False": [], "backward_False": [],
145
+ "forward_True": [], "backward_True": []
146
+ })
147
+
148
+ for i in range(len(data)):
149
+ d_id = data[i].get("data_id")
150
+ if d_id is None:
151
+ continue
152
+ r_type = data[i].get("reversal_type", "forward")
153
+ is_shuf = str(data[i].get("is_shuffled", False))
154
+ grouped_data[d_id][f"{r_type}_{is_shuf}"].append(i)
155
+
156
+ # 计算并应用群组奖励
157
+ all_temporal_bonuses = [] # 新增:记录所有的时序红利
158
+ all_unbiased_bonuses = [] # 新增:记录所有的无偏红利
159
+
160
+ # 2. 计算并应用群组奖励
161
+ for d_id, group in grouped_data.items():
162
+
163
+ def get_acc(key):
164
+ if not group[key]: return 0.0
165
+ idx = group[key][0]
166
+ corr = data[idx]["correctness"]
167
+ return sum(corr) / len(corr) if len(corr) > 0 else 0.0
168
+
169
+ # 获取四组情况的正确率
170
+ acc_f_ord = get_acc("forward_False")
171
+ acc_f_shuf = get_acc("forward_True")
172
+ acc_b_ord = get_acc("backward_False")
173
+ acc_b_shuf = get_acc("backward_True")
174
+
175
+ # T-GRPO 奖励: 顺序正确率 >= 0.8 * 打乱正确率,得 0.3
176
+ f_temporal_bonus = 0.3 if acc_f_ord >= 0.8 * acc_f_shuf else 0.0
177
+ b_temporal_bonus = 0.3 if acc_b_ord >= 0.8 * acc_b_shuf else 0.0
178
+
179
+ # 逆转无偏奖励: 正反正确率差值 <= 0.2,且都不是彻底全错,得 0.3
180
+ unbiased_bonus = 0.0
181
+ if abs(acc_f_ord - acc_b_ord) <= 0.2 and (acc_f_ord > 0.1 or acc_b_ord > 0.1):
182
+ unbiased_bonus = 0.3
183
+
184
+ # 新增:将当前组的奖励记录下来用于统计
185
+ if group["forward_False"]:
186
+ all_temporal_bonuses.append(f_temporal_bonus)
187
+ all_unbiased_bonuses.append(unbiased_bonus)
188
+ if group["backward_False"]:
189
+ all_temporal_bonuses.append(b_temporal_bonus)
190
+ all_unbiased_bonuses.append(unbiased_bonus)
191
+
192
+ # 仅将奖励发放给 顺序组(is_shuffled=False) 中回答正确的样本
193
+ def apply_bonus(key, temporal_bonus, unbiased_bonus):
194
+ if not group[key]: return
195
+ idx = group[key][0]
196
+ raw_rewards = []
197
+ for is_correct in data[idx]["correctness"]:
198
+ if is_correct:
199
+ # 基础分 1.0 + 时序红利 + 无偏红利
200
+ raw_rewards.append(1.0 + temporal_bonus + unbiased_bonus)
201
+ else:
202
+ raw_rewards.append(0.0)
203
+ data[idx]["raw_rewards"] = raw_rewards
204
+
205
+ apply_bonus("forward_False", f_temporal_bonus, unbiased_bonus)
206
+ apply_bonus("backward_False", b_temporal_bonus, unbiased_bonus)
207
+
208
+ # =========================================================================
209
+
210
+ def z_score_normalize(lst):
211
+ mean = sum(lst) / len(lst) if len(lst) > 0 else 0.0
212
+ std = (sum((x - mean) ** 2 for x in lst) / len(lst)) ** 0.5 if len(lst) > 0 else 0.0
213
+ if std == 0:
214
+ return [0 for _ in lst]
215
+ return [(x - mean) / std for x in lst]
216
+
217
+ final_data = []
218
+ ordered_correctness = [] # 用于日志打印,不记录被打乱的实验数据
219
+
220
+ for i in range(len(data)):
221
+ # 丢弃打乱的对照组,它们仅仅用于上面的计算参照,不进入强化学习
222
+ if data[i].get("is_shuffled", False):
223
+ continue
224
+
225
+ ordered_correctness.extend(data[i]["correctness"])
226
+
227
+ # 如果部分数据没有走过分组逻辑,默认回退为原始 correct 分数
228
+ raw_rewards = data[i].get("raw_rewards", [float(c) for c in data[i]["correctness"]])
229
+ lengths = data[i]["response_length"]
230
+
231
+ # 长度惩罚
232
+ if config.reward.strict_len_check:
233
+ for j in range(len(lengths)):
234
+ if OmegaConf.select(config, "rollout.max_gen_length", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_gen_length - 5:
235
+ raw_rewards[j] = 0.0
236
+ if OmegaConf.select(config, "rollout.max_token", default=MISSING) is not MISSING and lengths[j] >= config.rollout.max_token - 5:
237
+ raw_rewards[j] = 0.0
238
+
239
+ # Z-Score 优势归一化
240
+ rewards = z_score_normalize(raw_rewards)
241
+ data[i]["rewards"] = rewards
242
+
243
+ if config.experiment.function == "train":
244
+ proportion = sum(data[i]["correctness"]) / len(data[i]["correctness"]) if len(data[i]["correctness"]) > 0 else 0.0
245
+ # 如果全部回答都是错的,或者全是对的(无差别区分度),则剔除该样本
246
+ if proportion > 0.95 or proportion < 0.05:
247
+ continue
248
+
249
+ for j in range(len(rewards)):
250
+ data_i = {}
251
+ data_i["prompt"] = data[i]["prompt"]
252
+ data_i["reward"] = rewards[j]
253
+ data_i["response"] = data[i]["full_output"][j]
254
+ data_i["step_map"] = data[i]["step_map"][j]
255
+
256
+ # 保留其他需要的上下文 ID
257
+ data_i["data_id"] = data[i].get("data_id")
258
+ data_i["reversal_type"] = data[i].get("reversal_type")
259
+
260
+ if "image_token_ids" in data[i]:
261
+ data_i["image_token_ids"] = data[i]["image_token_ids"]
262
+
263
+ p_video_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "video")
264
+ if p_video_abs is not None:
265
+ data_i["video_abs_path"] = p_video_abs
266
+
267
+ p_image_abs = resolve_media_abs_path(data[i], config.dataset.get("image_root", None), "image")
268
+ if p_image_abs is not None:
269
+ data_i["image_abs_path"] = p_image_abs
270
+
271
+ final_data.append(data_i)
272
+
273
+ if config.experiment.function == "evaluation":
274
+ data[i]["step_map"] = []
275
+
276
+ if config.experiment.function == "train":
277
+ with open("../" + project_name + "/temp_data/" + config.dataset.optimization_data + ".json", "w", encoding="utf-8") as f:
278
+ json.dump(final_data, f, indent=2, ensure_ascii=False)
279
+
280
+
281
+ os.makedirs(os.path.dirname(file_name), exist_ok=True)
282
+ with open(file_name, "w", encoding="utf-8") as f:
283
+ json.dump(data, f, indent=2, ensure_ascii=False)
284
+
285
+
286
+ outputs_result_name = "../" + project_name + "/results/results-" + outputs_name + ".txt"
287
+ os.makedirs(os.path.dirname(outputs_result_name), exist_ok=True)
288
+ with open(outputs_result_name, "a") as f:
289
+ # Save + print
290
+ def save_and_print(text):
291
+ cprint("\n\n\n" + text, color="green")
292
+ f.write(text + "\n")
293
+
294
+ # 只计算有序组(有效学习组)的准确率来作为监控指标
295
+ acc = (sum(ordered_correctness)/len(ordered_correctness)) if len(ordered_correctness) > 0 else float("nan")
296
+ avg_len = sum(response_length_list)/len(response_length_list)
297
+
298
+ # 新增:计算 T-GRPO 和 Unbiased 奖励的平均值
299
+ avg_temp = sum(all_temporal_bonuses)/len(all_temporal_bonuses) if all_temporal_bonuses else 0.0
300
+ avg_unbias = sum(all_unbiased_bonuses)/len(all_unbiased_bonuses) if all_unbiased_bonuses else 0.0
301
+
302
+ output_text = f"train step: {config.experiment.current_epoch} "
303
+ if config.experiment.function == "train":
304
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
305
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} block_size: {config.rollout.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
306
+ else:
307
+ output_text = output_text + f"remasking_strategy: {config.rollout.remasking_strategy} top_k: {config.rollout.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
308
+ else:
309
+ if config.model.model_base != "sdar" and config.model.model_base != "trado":
310
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} block_size: {config.evaluation.block_size} acc: {acc:.4f} avg length: {avg_len:.2f}"
311
+ else:
312
+ output_text = output_text + f"remasking_strategy: {config.evaluation.remasking_strategy} top_k: {config.evaluation.top_k} acc: {acc:.4f} avg length: {avg_len:.2f}"
313
+ save_and_print(output_text)
314
+
315
+ if config.experiment.function == "train":
316
+ csv_file_path = f"../{project_name}/results/all_rewards.csv"
317
+
318
+ # 如果是第1个 epoch/step,或者是新文件,就先写入表头
319
+ write_header = not os.path.exists(csv_file_path) or config.experiment.current_epoch == 1
320
+
321
+ with open(csv_file_path, "a", encoding="utf-8") as f_csv:
322
+ if write_header:
323
+ f_csv.write("step,acc_reward,t_grpo_reward,unbiased_reward,response_length\n")
324
+
325
+ # 按行追加当前 step 的数据
326
+ f_csv.write(f"{config.experiment.current_epoch},{acc:.4f},{avg_temp:.4f},{avg_unbias:.4f},{avg_len:.2f}\n")
327
+
328
+ if run is not None:
329
+ wandb.log(
330
+ {
331
+ "reward/acc": acc,
332
+ "reward/t_grpo_bonus": avg_temp,
333
+ "reward/unbiased_bonus": avg_unbias,
334
+ "reward/avg_response_length": avg_len,
335
+ "reward/train_step": config.experiment.current_epoch,
336
+ },
337
+ step=config.experiment.current_epoch,
338
+ )
339
+ wandb.finish()
reward/wandb/run-20260530_172226-fmmkx1a5/files/config.yaml ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _wandb:
2
+ value:
3
+ cli_version: 0.25.0
4
+ code_path: code/reward/rl_reward_video_reversal.py
5
+ e:
6
+ ro1jo8bnilhxkv1j8cs1071jii2lxyb8:
7
+ args:
8
+ - config=../configs/rl_lavida_video_reversal.yaml
9
+ - wandb.run_id=fmmkx1a5
10
+ - experiment.function=train
11
+ - evaluation.block_size=None
12
+ - evaluation.top_k=None
13
+ - evaluation.remasking_strategy=None
14
+ - experiment.current_epoch=20
15
+ codePath: reward/rl_reward_video_reversal.py
16
+ codePathLocal: rl_reward_video_reversal.py
17
+ cpu_count: 96
18
+ cpu_count_logical: 192
19
+ cudaVersion: "12.8"
20
+ disk:
21
+ /:
22
+ total: "806578724864"
23
+ used: "625591750656"
24
+ email: shixi_runqing@staff.weibo.com
25
+ executable: /data8/runqing/miniconda/envs/dllm-rl/bin/python
26
+ git:
27
+ commit: 10b4fd1cba83e4496c20585dc2fd01dc02f20255
28
+ remote: https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git
29
+ gpu: NVIDIA H800
30
+ gpu_count: 8
31
+ gpu_nvidia:
32
+ - architecture: Hopper
33
+ cudaCores: 16896
34
+ memoryTotal: "85520809984"
35
+ name: NVIDIA H800
36
+ uuid: GPU-f768b684-b9ce-23a2-81a6-af16161cf9be
37
+ - architecture: Hopper
38
+ cudaCores: 16896
39
+ memoryTotal: "85520809984"
40
+ name: NVIDIA H800
41
+ uuid: GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9
42
+ - architecture: Hopper
43
+ cudaCores: 16896
44
+ memoryTotal: "85520809984"
45
+ name: NVIDIA H800
46
+ uuid: GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6
47
+ - architecture: Hopper
48
+ cudaCores: 16896
49
+ memoryTotal: "85520809984"
50
+ name: NVIDIA H800
51
+ uuid: GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53
52
+ - architecture: Hopper
53
+ cudaCores: 16896
54
+ memoryTotal: "85520809984"
55
+ name: NVIDIA H800
56
+ uuid: GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad
57
+ - architecture: Hopper
58
+ cudaCores: 16896
59
+ memoryTotal: "85520809984"
60
+ name: NVIDIA H800
61
+ uuid: GPU-f531028f-805c-3301-61b3-0c46329dc9c0
62
+ - architecture: Hopper
63
+ cudaCores: 16896
64
+ memoryTotal: "85520809984"
65
+ name: NVIDIA H800
66
+ uuid: GPU-2775489f-18c8-2328-8829-c46238575379
67
+ - architecture: Hopper
68
+ cudaCores: 16896
69
+ memoryTotal: "85520809984"
70
+ name: NVIDIA H800
71
+ uuid: GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd
72
+ host: b1301b38c75f
73
+ memory:
74
+ total: "2164113764352"
75
+ os: Linux-5.15.0-144-generic-x86_64-with-glibc2.35
76
+ program: /data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py
77
+ python: CPython 3.10.19
78
+ root: /data4/runqing/dLLM-RL/reward
79
+ startedAt: "2026-05-30T09:22:26.977115Z"
80
+ writerId: ro1jo8bnilhxkv1j8cs1071jii2lxyb8
81
+ m: []
82
+ python_version: 3.10.19
83
+ t:
84
+ "1":
85
+ - 1
86
+ - 41
87
+ "2":
88
+ - 1
89
+ - 41
90
+ "3":
91
+ - 2
92
+ - 5
93
+ - 13
94
+ - 14
95
+ - 16
96
+ - 61
97
+ - 62
98
+ "4": 3.10.19
99
+ "5": 0.25.0
100
+ "10":
101
+ - 20
102
+ "12": 0.25.0
103
+ "13": linux-x86_64
104
+ config:
105
+ value: ../configs/rl_lavida_video_reversal.yaml
106
+ dataset.data_type:
107
+ value: video_reverse
108
+ dataset.optimization_data:
109
+ value: rl_data
110
+ dataset.train_dataset:
111
+ value: video_reversal_rl_train
112
+ evaluation.batch_size:
113
+ value: 1
114
+ evaluation.block_size:
115
+ value: None
116
+ evaluation.data_type:
117
+ value: video_reverse
118
+ evaluation.dynamic_threshold:
119
+ value: 0.9
120
+ evaluation.eval_dataset:
121
+ value: video_reversal_rl_eval
122
+ evaluation.further_horizon:
123
+ value: 128
124
+ evaluation.if_eval:
125
+ value: false
126
+ evaluation.max_gen_length:
127
+ value: 128
128
+ evaluation.num_response_per_task:
129
+ value: 3
130
+ evaluation.remasking_strategy:
131
+ value: None
132
+ evaluation.remasking_strategy.0:
133
+ value: low_confidence_static
134
+ evaluation.remasking_strategy.1:
135
+ value: low_confidence_dynamic
136
+ evaluation.steps:
137
+ value: 128
138
+ evaluation.target:
139
+ value: confidence
140
+ evaluation.temperature:
141
+ value: 0.1
142
+ evaluation.top_k:
143
+ value: None
144
+ evaluation.use_cache:
145
+ value: true
146
+ execute.num_chunk:
147
+ value: 128
148
+ experiment.current_epoch:
149
+ value: 20
150
+ experiment.deepspeed_file:
151
+ value: 1_node_8_gpus_deepspeed_zero2
152
+ experiment.eval_every:
153
+ value: 5
154
+ experiment.function:
155
+ value: train
156
+ experiment.logging_dir:
157
+ value: rl_lavida_video_reversal/logs
158
+ experiment.node_index:
159
+ value: 0
160
+ experiment.num_node:
161
+ value: 1
162
+ experiment.project:
163
+ value: rl_lavida_video_reversal
164
+ experiment.save_every:
165
+ value: 10
166
+ experiment.start_from_scratch:
167
+ value: true
168
+ experiment.total_step:
169
+ value: 30
170
+ lr_scheduler.params.learning_rate:
171
+ value: 1e-06
172
+ lr_scheduler.params.min_lr_scale:
173
+ value: 1
174
+ lr_scheduler.params.warmup_steps:
175
+ value: 0
176
+ lr_scheduler.scheduler:
177
+ value: cosine
178
+ model.image_resolution:
179
+ value: 512
180
+ model.model_base:
181
+ value: lavida
182
+ model.optimized_name:
183
+ value: optimized
184
+ model.pretrained_model:
185
+ value: /data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized
186
+ model.vq_model_path:
187
+ value: /data4/runqing/hf/magvitv2
188
+ optimizer.name:
189
+ value: adamw
190
+ optimizer.params.beta1:
191
+ value: 0.9
192
+ optimizer.params.beta2:
193
+ value: 0.999
194
+ optimizer.params.epsilon:
195
+ value: 1e-08
196
+ optimizer.params.learning_rate:
197
+ value: 1e-06
198
+ optimizer.params.scale_lr:
199
+ value: false
200
+ optimizer.params.weight_decay:
201
+ value: 0
202
+ reward.answer_must_in_box:
203
+ value: true
204
+ reward.strict_len_check:
205
+ value: false
206
+ rollout.batch_size:
207
+ value: 1
208
+ rollout.block_size:
209
+ value: 32
210
+ rollout.dynamic_threshold:
211
+ value: 0.9
212
+ rollout.further_horizon:
213
+ value: 128
214
+ rollout.max_gen_length:
215
+ value: 128
216
+ rollout.num_response_per_task:
217
+ value: 8
218
+ rollout.num_task_per_step:
219
+ value: 128
220
+ rollout.remasking_strategy:
221
+ value: low_confidence_dynamic
222
+ rollout.steps:
223
+ value: 128
224
+ rollout.target:
225
+ value: confidence
226
+ rollout.temperature:
227
+ value: 0.8
228
+ rollout.use_cache:
229
+ value: true
230
+ system.HF_HOME:
231
+ value: null
232
+ system.HTTP_PROXY:
233
+ value: null
234
+ system.base_dir:
235
+ value: /data4/runqing/dLLM-RL
236
+ system.env_name:
237
+ value: /data8/runqing/miniconda/envs/dllm-rl
238
+ system.envs_dir:
239
+ value: /data8/runqing/miniconda/envs/dllm-rl
240
+ training.batch_size_lm:
241
+ value: 1
242
+ training.beta:
243
+ value: 0.01
244
+ training.enable_tf32:
245
+ value: true
246
+ training.eps:
247
+ value: 0.2
248
+ training.gradient_accumulation_steps:
249
+ value: 2
250
+ training.lower_p:
251
+ value: 0.35
252
+ training.mask_times_per_sample:
253
+ value: 2
254
+ training.max_gen_length:
255
+ value: 128
256
+ training.max_grad_norm:
257
+ value: 1
258
+ training.max_prompt_len:
259
+ value: 512
260
+ training.method:
261
+ value: random_masking
262
+ training.mixed_precision:
263
+ value: bf16
264
+ training.num_train_epochs:
265
+ value: 1
266
+ training.post_num:
267
+ value: 1
268
+ training.seed:
269
+ value: 10086
270
+ training.shrink:
271
+ value: 8
272
+ training.upper_p:
273
+ value: 0.9
274
+ training.use_kl_estimator_k3:
275
+ value: true
276
+ wandb.entity:
277
+ value: null
278
+ wandb.resume:
279
+ value: auto
280
+ wandb.run_id:
281
+ value: fmmkx1a5
reward/wandb/run-20260530_172226-fmmkx1a5/files/output.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+
2
+
3
+
4
+ train step: 20 remasking_strategy: low_confidence_dynamic block_size: 32 acc: 0.4395 avg length: 125.99
reward/wandb/run-20260530_172226-fmmkx1a5/files/requirements.txt ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ transformers==4.52.4
2
+ nvidia-nvtx-cu12==12.4.127
3
+ deepspeed==0.18.6
4
+ typing-inspection==0.4.2
5
+ scipy==1.15.3
6
+ MarkupSafe==3.0.3
7
+ nvidia-cuda-runtime-cu12==12.4.127
8
+ detoxify==0.5.2
9
+ yarl==1.22.0
10
+ tornado==6.5.4
11
+ nvidia-curand-cu12==10.3.5.147
12
+ nest-asyncio==1.6.0
13
+ safetensors==0.7.0
14
+ async-timeout==5.0.1
15
+ typing_extensions==4.15.0
16
+ asttokens==3.0.1
17
+ cuda-python==13.1.1
18
+ executing==2.2.1
19
+ nvidia-cudnn-frontend==1.18.0
20
+ comm==0.2.3
21
+ tokenizers==0.21.4
22
+ six==1.17.0
23
+ Pygments==2.19.2
24
+ nvidia-cusparselt-cu12==0.6.2
25
+ apache-tvm-ffi==0.1.8.post2
26
+ flash_attn==2.7.4.post1
27
+ tqdm==4.67.3
28
+ tensorboard-data-server==0.7.2
29
+ annotated-types==0.7.0
30
+ math-verify==0.9.0
31
+ idna==3.11
32
+ regex==2026.1.15
33
+ nvidia-cutlass-dsl-libs-base==4.4.0
34
+ flashinfer-python==0.6.3
35
+ click==8.3.1
36
+ pytz==2025.2
37
+ wheel==0.46.3
38
+ ipykernel==7.2.0
39
+ stack-data==0.6.3
40
+ absl-py==2.4.0
41
+ wandb==0.25.0
42
+ pandas==2.3.3
43
+ termcolor==3.3.0
44
+ sympy==1.13.1
45
+ joblib==1.5.3
46
+ prompt_toolkit==3.0.52
47
+ attrs==25.4.0
48
+ nvidia-cusolver-cu12==11.6.1.9
49
+ xxhash==3.6.0
50
+ aiohappyeyeballs==2.6.1
51
+ python-dateutil==2.9.0.post0
52
+ frozenlist==1.8.0
53
+ nvidia-ml-py==13.590.48
54
+ multiprocess==0.70.18
55
+ decorator==5.2.1
56
+ cuda-pathfinder==1.3.4
57
+ multidict==6.7.1
58
+ pure_eval==0.2.3
59
+ nvidia-cufft-cu12==11.2.1.3
60
+ omegaconf==2.3.0
61
+ PyYAML==6.0.3
62
+ debugpy==1.8.20
63
+ psutil==7.2.2
64
+ ninja==1.13.0
65
+ nvidia-cublas-cu12==12.4.5.8
66
+ triton==3.2.0
67
+ antlr4-python3-runtime==4.9.3
68
+ peft==0.18.1
69
+ aiosignal==1.4.0
70
+ accelerate==1.12.0
71
+ liger_kernel==0.7.0
72
+ anyio==4.12.1
73
+ decord==0.6.0
74
+ h11==0.16.0
75
+ urllib3==2.6.3
76
+ wcwidth==0.6.0
77
+ networkx==3.4.2
78
+ huggingface_hub==0.36.2
79
+ tzdata==2025.3
80
+ xformers==0.0.29.post3
81
+ tabulate==0.9.0
82
+ certifi==2026.1.4
83
+ tensorboard==2.20.0
84
+ matplotlib-inline==0.2.1
85
+ pip==26.0.1
86
+ smmap==5.0.2
87
+ nvidia-cuda-cupti-cu12==12.4.127
88
+ Markdown==3.10.2
89
+ nvidia-nccl-cu12==2.21.5
90
+ aiohttp==3.13.3
91
+ scikit-learn==1.7.2
92
+ nvidia-cutlass-dsl==4.4.0
93
+ setuptools==82.0.0
94
+ jupyter_core==5.9.1
95
+ asyncio==4.0.0
96
+ einops==0.8.2
97
+ pydantic==2.12.5
98
+ av==16.1.0
99
+ protobuf==6.33.5
100
+ evaluate==0.4.6
101
+ Jinja2==3.1.6
102
+ exceptiongroup==1.3.1
103
+ ipython==8.38.0
104
+ sentry-sdk==2.53.0
105
+ httpx==0.28.1
106
+ msgpack==1.1.2
107
+ platformdirs==4.9.2
108
+ hjson==3.1.0
109
+ torchvision==0.21.0
110
+ parso==0.8.6
111
+ cuda-bindings==13.1.1
112
+ pexpect==4.9.0
113
+ threadpoolctl==3.6.0
114
+ pyarrow==23.0.1
115
+ jedi==0.19.2
116
+ nvidia-cuda-nvrtc-cu12==12.4.127
117
+ Werkzeug==3.1.5
118
+ fsspec==2025.10.0
119
+ pydantic_core==2.41.5
120
+ GitPython==3.1.46
121
+ propcache==0.4.1
122
+ mpmath==1.3.0
123
+ nvidia-nvjitlink-cu12==12.4.127
124
+ nvidia-cusparse-cu12==12.3.1.170
125
+ hf-xet==1.2.0
126
+ charset-normalizer==3.4.4
127
+ dill==0.4.0
128
+ datasets==4.5.0
129
+ py-cpuinfo==9.0.0
130
+ sentencepiece==0.2.1
131
+ latex2sympy2_extended==1.11.0
132
+ jupyter_client==8.8.0
133
+ pyzmq==27.1.0
134
+ numpy==2.2.6
135
+ gitdb==4.0.12
136
+ grpcio==1.78.0
137
+ packaging==26.0
138
+ requests==2.32.5
139
+ nvidia-cudnn-cu12==9.1.0.70
140
+ httpcore==1.0.9
141
+ traitlets==5.14.3
142
+ filelock==3.24.2
143
+ ptyprocess==0.7.0
144
+ pillow==12.1.1
145
+ torch==2.6.0
146
+ more-itertools==10.8.0
147
+ wheel==0.46.3
148
+ jaraco.text==4.0.0
149
+ zipp==3.23.0
150
+ autocommand==2.2.2
151
+ jaraco.context==6.1.0
152
+ jaraco.functools==4.4.0
153
+ tomli==2.4.0
154
+ backports.tarfile==1.2.0
155
+ importlib_metadata==8.7.1
156
+ platformdirs==4.4.0
157
+ packaging==26.0
reward/wandb/run-20260530_172226-fmmkx1a5/files/wandb-metadata.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "os": "Linux-5.15.0-144-generic-x86_64-with-glibc2.35",
3
+ "python": "CPython 3.10.19",
4
+ "startedAt": "2026-05-30T09:22:26.977115Z",
5
+ "args": [
6
+ "config=../configs/rl_lavida_video_reversal.yaml",
7
+ "wandb.run_id=fmmkx1a5",
8
+ "experiment.function=train",
9
+ "evaluation.block_size=None",
10
+ "evaluation.top_k=None",
11
+ "evaluation.remasking_strategy=None",
12
+ "experiment.current_epoch=20"
13
+ ],
14
+ "program": "/data4/runqing/dLLM-RL/reward/rl_reward_video_reversal.py",
15
+ "codePath": "reward/rl_reward_video_reversal.py",
16
+ "codePathLocal": "rl_reward_video_reversal.py",
17
+ "git": {
18
+ "remote": "https://gitclone.com/github.com/Gen-Verse/dLLM-RL.git",
19
+ "commit": "10b4fd1cba83e4496c20585dc2fd01dc02f20255"
20
+ },
21
+ "email": "shixi_runqing@staff.weibo.com",
22
+ "root": "/data4/runqing/dLLM-RL/reward",
23
+ "host": "b1301b38c75f",
24
+ "executable": "/data8/runqing/miniconda/envs/dllm-rl/bin/python",
25
+ "cpu_count": 96,
26
+ "cpu_count_logical": 192,
27
+ "gpu": "NVIDIA H800",
28
+ "gpu_count": 8,
29
+ "disk": {
30
+ "/": {
31
+ "total": "806578724864",
32
+ "used": "625591750656"
33
+ }
34
+ },
35
+ "memory": {
36
+ "total": "2164113764352"
37
+ },
38
+ "gpu_nvidia": [
39
+ {
40
+ "name": "NVIDIA H800",
41
+ "memoryTotal": "85520809984",
42
+ "cudaCores": 16896,
43
+ "architecture": "Hopper",
44
+ "uuid": "GPU-f768b684-b9ce-23a2-81a6-af16161cf9be"
45
+ },
46
+ {
47
+ "name": "NVIDIA H800",
48
+ "memoryTotal": "85520809984",
49
+ "cudaCores": 16896,
50
+ "architecture": "Hopper",
51
+ "uuid": "GPU-2f1e1a7b-76a2-e00b-3dc5-79add059b8f9"
52
+ },
53
+ {
54
+ "name": "NVIDIA H800",
55
+ "memoryTotal": "85520809984",
56
+ "cudaCores": 16896,
57
+ "architecture": "Hopper",
58
+ "uuid": "GPU-33d7b8d4-af9c-4719-9686-1712e9694cd6"
59
+ },
60
+ {
61
+ "name": "NVIDIA H800",
62
+ "memoryTotal": "85520809984",
63
+ "cudaCores": 16896,
64
+ "architecture": "Hopper",
65
+ "uuid": "GPU-0b797f66-23ec-d0ff-1c65-fb34b9064e53"
66
+ },
67
+ {
68
+ "name": "NVIDIA H800",
69
+ "memoryTotal": "85520809984",
70
+ "cudaCores": 16896,
71
+ "architecture": "Hopper",
72
+ "uuid": "GPU-ad9e9c73-0f31-a8b3-e8f7-7be19f5338ad"
73
+ },
74
+ {
75
+ "name": "NVIDIA H800",
76
+ "memoryTotal": "85520809984",
77
+ "cudaCores": 16896,
78
+ "architecture": "Hopper",
79
+ "uuid": "GPU-f531028f-805c-3301-61b3-0c46329dc9c0"
80
+ },
81
+ {
82
+ "name": "NVIDIA H800",
83
+ "memoryTotal": "85520809984",
84
+ "cudaCores": 16896,
85
+ "architecture": "Hopper",
86
+ "uuid": "GPU-2775489f-18c8-2328-8829-c46238575379"
87
+ },
88
+ {
89
+ "name": "NVIDIA H800",
90
+ "memoryTotal": "85520809984",
91
+ "cudaCores": 16896,
92
+ "architecture": "Hopper",
93
+ "uuid": "GPU-1dd27781-c1f3-d980-6f18-fe8a778b69fd"
94
+ }
95
+ ],
96
+ "cudaVersion": "12.8",
97
+ "writerId": "ro1jo8bnilhxkv1j8cs1071jii2lxyb8"
98
+ }
reward/wandb/run-20260530_172226-fmmkx1a5/files/wandb-summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"_step":38,"reward/t_grpo_bonus":0.2718750000000003,"train/loss":-0.3729729354381562,"reward/unbiased_bonus":0.09374999999999996,"_wandb":{"runtime":17501},"_timestamp":1.7801299761845806e+09,"reward/train_step":1,"train/learning_rate":8.997213817017502e-07,"reward/avg_response_length":124.568359375,"_runtime":17501,"reward/acc":0.396484375}
reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug-core.log ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T17:22:27.04143453+08:00","level":"INFO","msg":"main: starting server","port-filename":"/tmp/tmp2x8fjv_z/port-3551204.txt","pid":3551204,"log-level":0,"disable-analytics":false,"shutdown-on-parent-exit":false,"enable-dcgm-profiling":false}
2
+ {"time":"2026-05-30T17:22:27.042735442+08:00","level":"INFO","msg":"server: will exit if parent process dies","ppid":3551204}
3
+ {"time":"2026-05-30T17:22:27.042714412+08:00","level":"INFO","msg":"server: accepting connections","addr":{"Name":"/tmp/wandb-3551204-3551362-849267276/socket","Net":"unix"}}
4
+ {"time":"2026-05-30T17:22:27.222975932+08:00","level":"INFO","msg":"connection: ManageConnectionData: new connection created","id":"1(@)"}
5
+ {"time":"2026-05-30T17:22:27.232792259+08:00","level":"INFO","msg":"handleInformInit: received","streamId":"fmmkx1a5","id":"1(@)"}
6
+ {"time":"2026-05-30T17:22:27.541036828+08:00","level":"INFO","msg":"handleInformInit: stream started","streamId":"fmmkx1a5","id":"1(@)"}
7
+ {"time":"2026-05-30T17:22:27.994496409+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"auo56fcc68sg"}
8
+ {"time":"2026-05-30T17:22:28.184304262+08:00","level":"INFO","msg":"connection: cancelling request","id":"1(@)","requestId":"auo56fcc68sg"}
9
+ {"time":"2026-05-30T17:22:28.185718012+08:00","level":"INFO","msg":"handleInformFinish: finish message received","streamId":"fmmkx1a5","id":"1(@)"}
10
+ {"time":"2026-05-30T17:22:28.186498786+08:00","level":"INFO","msg":"handleInformFinish: stream closed","streamId":"fmmkx1a5","id":"1(@)"}
11
+ {"time":"2026-05-30T17:22:28.186511866+08:00","level":"INFO","msg":"handleInformTeardown: server teardown initiated","id":"1(@)"}
12
+ {"time":"2026-05-30T17:22:28.186526631+08:00","level":"INFO","msg":"handleInformTeardown: server shutdown complete","id":"1(@)"}
13
+ {"time":"2026-05-30T17:22:28.186539893+08:00","level":"INFO","msg":"server is shutting down"}
14
+ {"time":"2026-05-30T17:22:28.186547143+08:00","level":"INFO","msg":"connection: closing","id":"1(@)"}
15
+ {"time":"2026-05-30T17:22:28.186612995+08:00","level":"INFO","msg":"server: listener closed","addr":{"Name":"/tmp/wandb-3551204-3551362-849267276/socket","Net":"unix"}}
16
+ {"time":"2026-05-30T17:22:28.186678574+08:00","level":"INFO","msg":"connection: closed successfully","id":"1(@)"}
17
+ {"time":"2026-05-30T17:22:28.186701214+08:00","level":"INFO","msg":"connection: ManageConnectionData: connection closed","id":"1(@)"}
18
+ {"time":"2026-05-30T17:22:28.186726989+08:00","level":"INFO","msg":"server is closed"}
reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug-internal.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"time":"2026-05-30T17:22:27.232937553+08:00","level":"INFO","msg":"stream: starting","core version":"0.25.0"}
2
+ {"time":"2026-05-30T17:22:27.539809+08:00","level":"ERROR","msg":"featurechecker: failed to load features, all will be disabled","error":"input:4:3: Cannot query field \"features\" on type \"ServerInfo\".\n"}
3
+ {"time":"2026-05-30T17:22:27.539960749+08:00","level":"INFO","msg":"stream: created new stream","id":"fmmkx1a5"}
4
+ {"time":"2026-05-30T17:22:27.540040025+08:00","level":"INFO","msg":"handler: started","stream_id":"fmmkx1a5"}
5
+ {"time":"2026-05-30T17:22:27.540265028+08:00","level":"INFO","msg":"stream: started","id":"fmmkx1a5"}
6
+ {"time":"2026-05-30T17:22:27.540313058+08:00","level":"INFO","msg":"writer: started","stream_id":"fmmkx1a5"}
7
+ {"time":"2026-05-30T17:22:27.540320327+08:00","level":"INFO","msg":"sender: started","stream_id":"fmmkx1a5"}
8
+ {"time":"2026-05-30T17:22:27.546505052+08:00","level":"WARN","msg":"runupserter: server does not expand metric globs but the x_server_side_expand_glob_metrics setting is set; ignoring"}
9
+ {"time":"2026-05-30T17:22:27.789168203+08:00","level":"ERROR","msg":"git repo not found","error":"repository does not exist"}
10
+ {"time":"2026-05-30T17:22:27.993538075+08:00","level":"WARN","msg":"handler: ignoring partial history record","step":20,"current":39}
11
+ {"time":"2026-05-30T17:22:28.12846478+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=1ce3ae738e7d0bc0ffe1e3737fe2274f8ec737e47405849811686632a22b979c"}
12
+ {"time":"2026-05-30T17:22:28.128613141+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json</Resource><RequestId>18B44D7C1A742FFA</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/files/wandb-summary.json, Name: wandb-summary.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-summary.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=1ce3ae738e7d0bc0ffe1e3737fe2274f8ec737e47405849811686632a22b979c, Size: 344}"}
13
+ {"time":"2026-05-30T17:22:28.129301299+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=7c0d120326dea6a895511e535ca7056ca376c56d4d101c36da4a73a69912265f"}
14
+ {"time":"2026-05-30T17:22:28.129380254+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json</Resource><RequestId>18B44D7C1A7FB4F4</RequestId><HostId>29678716-7d96-4915-b26c-b7113941467d</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/files/wandb-metadata.json, Name: wandb-metadata.json, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/wandb-metadata.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=7c0d120326dea6a895511e535ca7056ca376c56d4d101c36da4a73a69912265f, Size: 2850}"}
15
+ {"time":"2026-05-30T17:22:28.129818574+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=74997416f86f06e18f1bbc0f2446d3be115c1210e8f5ab57d8ec06eadd48028e"}
16
+ {"time":"2026-05-30T17:22:28.129958872+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt</Resource><RequestId>18B44D7C1937D42E</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/files/requirements.txt, Name: requirements.txt, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/requirements.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=74997416f86f06e18f1bbc0f2446d3be115c1210e8f5ab57d8ec06eadd48028e, Size: 2982}"}
17
+ {"time":"2026-05-30T17:22:28.130031053+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=96eeff59e7a48d818a898f5eefd63492186dbd6eb1709844274e554fd8ad9f72"}
18
+ {"time":"2026-05-30T17:22:28.130169381+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml</Resource><RequestId>18B44D7C1946ACF5</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/files/config.yaml, Name: config.yaml, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/config.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=96eeff59e7a48d818a898f5eefd63492186dbd6eb1709844274e554fd8ad9f72, Size: 7996}"}
19
+ {"time":"2026-05-30T17:22:28.131820082+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=9204fe41fd5a38debea745c182f231aaf2082ff99a03d7b26ae4aef97885a66f"}
20
+ {"time":"2026-05-30T17:22:28.131962038+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log</Resource><RequestId>18B44D7C18D9227B</RequestId><HostId>17e81bf8-654d-4ce6-b556-0f7349513ee1</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/files/output.log, Name: output.log, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=9204fe41fd5a38debea745c182f231aaf2082ff99a03d7b26ae4aef97885a66f, Size: 111}"}
21
+ {"time":"2026-05-30T17:22:28.139228096+08:00","level":"ERROR","msg":"api: HTTP error","status":403,"method":"PUT","url":"http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fc59e39f1dd81378885a5dba222371e184553eb47a275345286e8a4f67dcc2d7"}
22
+ {"time":"2026-05-30T17:22:28.139306875+08:00","level":"ERROR","msg":"file transfer: upload: failed to upload: status: 403 Forbidden: body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Key><BucketName>netdisk</BucketName><Resource>/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py</Resource><RequestId>18B44D7C1956AF18</RequestId><HostId>4b5cbd82-31a6-4e32-8e3a-3b4f1cd8a94b</HostId></Error>","task":"DefaultUploadTask{FileKind: 1, Path: /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/files/code/reward/rl_reward_video_reversal.py, Name: code/reward/rl_reward_video_reversal.py, Url: http://jfs-s3-gateway.wml.weibo.com:80/netdisk/shixi_runqing/rl_lavida_video_reversal/fmmkx1a5/code/reward/rl_reward_video_reversal.py?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260530%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20260530T092228Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-User=shixi_runqing&X-Amz-Signature=fc59e39f1dd81378885a5dba222371e184553eb47a275345286e8a4f67dcc2d7, Size: 14790}"}
23
+ {"time":"2026-05-30T17:22:28.140177101+08:00","level":"INFO","msg":"fileTransfer: Close: file transfer manager closed"}
24
+ {"time":"2026-05-30T17:22:28.180931733+08:00","level":"INFO","msg":"handler: operation stats","stats":{}}
25
+ {"time":"2026-05-30T17:22:28.185744642+08:00","level":"INFO","msg":"stream: closing","id":"fmmkx1a5"}
26
+ {"time":"2026-05-30T17:22:28.185765907+08:00","level":"INFO","msg":"handler: closed","stream_id":"fmmkx1a5"}
27
+ {"time":"2026-05-30T17:22:28.185836488+08:00","level":"INFO","msg":"sender: closed","stream_id":"fmmkx1a5"}
28
+ {"time":"2026-05-30T17:22:28.185857352+08:00","level":"INFO","msg":"stream: closed","id":"fmmkx1a5"}
reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug.log ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_setup.py:_flush():81] Current SDK version is 0.25.0
2
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_setup.py:_flush():81] Configure stats pid to 3551204
3
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_setup.py:_flush():81] Loading settings from environment variables
4
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_init.py:setup_run_log_directory():717] Logging user logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug.log
5
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_init.py:setup_run_log_directory():718] Logging internal logs to /data4/runqing/dLLM-RL/reward/wandb/run-20260530_172226-fmmkx1a5/logs/debug-internal.log
6
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_init.py:init():844] calling init triggers
7
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_init.py:init():849] wandb.init called with sweep_config: {}
8
+ config: {'wandb.entity': None, 'wandb.resume': 'auto', 'wandb.run_id': 'fmmkx1a5', 'system.HTTP_PROXY': None, 'system.HF_HOME': None, 'system.env_name': '/data8/runqing/miniconda/envs/dllm-rl', 'system.envs_dir': '/data8/runqing/miniconda/envs/dllm-rl', 'system.base_dir': '/data4/runqing/dLLM-RL', 'experiment.project': 'rl_lavida_video_reversal', 'experiment.function': 'train', 'experiment.start_from_scratch': True, 'experiment.total_step': 30, 'experiment.save_every': 10, 'experiment.eval_every': 5, 'experiment.current_epoch': 20, 'experiment.deepspeed_file': '1_node_8_gpus_deepspeed_zero2', 'experiment.num_node': 1, 'experiment.node_index': 0, 'model.pretrained_model': '/data4/runqing/dLLM-RL/sft_lavida_video_reversal/ckpt/optimized', 'model.optimized_name': 'optimized', 'model.model_base': 'lavida', 'model.vq_model_path': '/data4/runqing/hf/magvitv2', 'model.image_resolution': 512, 'dataset.train_dataset': 'video_reversal_rl_train', 'dataset.data_type': 'video_reverse', 'dataset.optimization_data': 'rl_data', 'rollout.num_task_per_step': 128, 'rollout.num_response_per_task': 8, 'rollout.temperature': 0.8, 'rollout.steps': 128, 'rollout.max_gen_length': 128, 'rollout.batch_size': 1, 'rollout.remasking_strategy': 'low_confidence_dynamic', 'rollout.target': 'confidence', 'rollout.dynamic_threshold': 0.9, 'rollout.block_size': 32, 'rollout.further_horizon': 128, 'rollout.use_cache': True, 'reward.answer_must_in_box': True, 'reward.strict_len_check': False, 'execute.num_chunk': 128, 'training.gradient_accumulation_steps': 2, 'training.batch_size_lm': 1, 'training.mixed_precision': 'bf16', 'training.enable_tf32': True, 'training.seed': 10086, 'training.num_train_epochs': 1, 'training.max_grad_norm': 1.0, 'training.method': 'random_masking', 'training.lower_p': 0.35, 'training.upper_p': 0.9, 'training.shrink': 8, 'training.post_num': 1, 'training.mask_times_per_sample': 2, 'training.max_gen_length': 128, 'training.max_prompt_len': 512, 'training.eps': 0.2, 'training.beta': 0.01, 'training.use_kl_estimator_k3': True, 'optimizer.name': 'adamw', 'optimizer.params.learning_rate': 1e-06, 'optimizer.params.scale_lr': False, 'optimizer.params.beta1': 0.9, 'optimizer.params.beta2': 0.999, 'optimizer.params.weight_decay': 0.0, 'optimizer.params.epsilon': 1e-08, 'lr_scheduler.scheduler': 'cosine', 'lr_scheduler.params.learning_rate': 1e-06, 'lr_scheduler.params.warmup_steps': 0, 'lr_scheduler.params.min_lr_scale': 1.0, 'evaluation.if_eval': False, 'evaluation.eval_dataset': 'video_reversal_rl_eval', 'evaluation.data_type': 'video_reverse', 'evaluation.num_response_per_task': 3, 'evaluation.temperature': 0.1, 'evaluation.steps': 128, 'evaluation.max_gen_length': 128, 'evaluation.batch_size': 1, 'evaluation.remasking_strategy': 'None', 'evaluation.target': 'confidence', 'evaluation.dynamic_threshold': 0.9, 'evaluation.block_size': 'None', 'evaluation.further_horizon': 128, 'evaluation.use_cache': True, 'evaluation.top_k': 'None', 'config': '../configs/rl_lavida_video_reversal.yaml', '_wandb': {'code_path': 'code/reward/rl_reward_video_reversal.py'}}
9
+ 2026-05-30 17:22:26,979 INFO MainThread:3551204 [wandb_init.py:init():892] starting backend
10
+ 2026-05-30 17:22:27,223 INFO MainThread:3551204 [wandb_init.py:init():895] sending inform_init request
11
+ 2026-05-30 17:22:27,229 INFO MainThread:3551204 [wandb_init.py:init():903] backend started and connected
12
+ 2026-05-30 17:22:27,230 INFO MainThread:3551204 [wandb_init.py:init():973] updated telemetry
13
+ 2026-05-30 17:22:27,233 INFO MainThread:3551204 [wandb_init.py:init():997] communicating run to backend with 90.0 second timeout
14
+ 2026-05-30 17:22:27,784 INFO MainThread:3551204 [wandb_init.py:init():1037] run resumed
15
+ 2026-05-30 17:22:27,787 INFO MainThread:3551204 [wandb_init.py:init():1042] starting run threads in backend
16
+ 2026-05-30 17:22:27,876 INFO MainThread:3551204 [wandb_run.py:_console_start():2524] atexit reg
17
+ 2026-05-30 17:22:27,876 INFO MainThread:3551204 [wandb_run.py:_redirect():2373] redirect: wrap_raw
18
+ 2026-05-30 17:22:27,876 INFO MainThread:3551204 [wandb_run.py:_redirect():2442] Wrapping output streams.
19
+ 2026-05-30 17:22:27,876 INFO MainThread:3551204 [wandb_run.py:_redirect():2465] Redirects installed.
20
+ 2026-05-30 17:22:27,879 INFO MainThread:3551204 [wandb_init.py:init():1082] run started, returning control to user process
21
+ 2026-05-30 17:22:27,993 INFO MainThread:3551204 [wandb_run.py:_finish():2291] finishing run shixi_runqing/rl_lavida_video_reversal/fmmkx1a5
22
+ 2026-05-30 17:22:27,993 INFO MainThread:3551204 [wandb_run.py:_atexit_cleanup():2490] got exitcode: 0
23
+ 2026-05-30 17:22:27,994 INFO MainThread:3551204 [wandb_run.py:_restore():2472] restore
24
+ 2026-05-30 17:22:27,994 INFO MainThread:3551204 [wandb_run.py:_restore():2478] restore done
25
+ 2026-05-30 17:22:28,184 INFO MainThread:3551204 [wandb_run.py:_footer_sync_info():3868] logging synced files
reward/wandb/run-20260530_172226-fmmkx1a5/run-fmmkx1a5.wandb ADDED
Binary file (6.11 kB). View file