ruanhao123

Results comments of ruanhao123

I found that the weight saving file contains step information, which means there was an issue when loading the weights.

` def load_checkpoint(self, local_path: str, hdfs_path: str = None, del_local_after_load=False): if local_path is not None: assert os.path.exists(local_path), f"Checkpoint path {local_path} does not exist." # For load optimizer dist_ckpt import transformer_engine...

/verl/megatron_link/core/optimizer/distrib_optimizer.py 临时修改,将 step = torch.tensor(steps[0], dtype=torch.float32, device="cpu") 替换为 if steps[0] is None: logger.warning(" Optimizer step is None, setting to 0.") step = torch.tensor(0, dtype=torch.float32, device="cpu") else: step = torch.tensor(steps[0], dtype=torch.float32,...

https://verl.readthedocs.io/en/latest/examples/config.html#trainer trainer.resume_mode: The mode of resuming training. Support disable, auto and resume_path. If set to auto as default, the program will automatically resume from the latest checkpoint in the default_local_dir....