DBMing
DBMing
Have you resolved this issue? @ruanhao123 下面的修改操作能解决问题吗? 临时修改,将 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,...
Suppoert model list https://github.com/verl-project/verl/issues/5389
> This is expected behavior for MoE models with expert parallelism (EP). Each rank only holds a subset of expert parameters, so the optimizer state keys differ across EP ranks....
我使用单卡H100同样按照 #5381 操作,修改examples/grpo_trainer/run_qwen3_5-35b-megatron.sh脚本 也没有成功训练Qwen3.5-2B,我训练了三次分别在15步 36步 84步 出现了下面同样的报错 ``` [36m(vLLMHttpServer pid=8715)[0m (EngineCore_DP0 pid=9198) ERROR 03-19 05:25:38 [core.py:1102] EngineCore encountered a fatal error. [36m(vLLMHttpServer pid=8715)[0m (EngineCore_DP0 pid=9198) ERROR 03-19 05:25:38 [core.py:1102] Traceback...
@AriesJin 你这个问题应该是verl版本有点低,还没将qwen3.5注册进去,你直接用最新版本verl 或者 0.7.1版本都行
@Necolizer You can try the latest version of vllm. Switch the backend from flashinfer to triton.
@shinesun07 May I ask which image version you are using?
> verl调用transformers apply_chat_template渲染messages: https://github.com/verl-project/verl/blob/main/verl/experimental/agent_loop/agent_loop.py#L257-L264 transformers apply_chat_template会使用模型自带的chat模版进行渲染: https://huggingface.co/Qwen/Qwen3.6-27B/blob/main/chat_template.jinja#L45-L52 我所展示的"Tool definition prompt 示例"就是解码apply_chat_template渲染messages 后的raw_prompt,解码后的工具格式就是json schema格式的。 这种定义是json schema,示例是xml的工具格式不一致的情况是可接受的吗?
> 训崩的原因可能是多重的。 Tool schema (json)和 tool call (xml)格式是 follow 的 qwen 自己的模板。官方能训出来可发布的 qwen 3.5 ,格式差异估计对指标有影响,但不一定是主要矛盾。 agent loop 的 tool parser 还有别的问题,虽说不至于训崩,但是会让训练后的模型工具调用倾向和 benchmark (think 内不允许 tool call)的 gap 变大。[#4757](https://github.com/verl-project/verl/issues/4757) 好的,我会继续检查tool parser...
> 方便问一下你的 swift SFT 用的是 HF backend 还是 Megatron backend? Megatron backend