Verl 支持 Llava_OneVision FSDP 策略求助!😭
我正在将 llava_onevision 模型合入 verl 框架中 现在在 fsdp 配置中碰到问题 如果我设置 fsdp 按照数字进行切片,min_num_params: 140000000,会出现报错如下 File "/mnt/largeml-train-gui-agent/yangchangpeng/codes/gui_lab/tiny-mllm/ori_verl/verl/models/transformers/llava_onevision.py", line 296, in _get_input_embeds inputs_embeds = model.language_model.get_input_embeddings()(input_ids) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1751, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1762, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/sparse.py", line 190, in forward return F.embedding( File "/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py", line 2551, in embedding return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse) RuntimeError: The tensor has a non-zero number of elements, but its data is not allocated yet.
如果我设置指定 wrap 层, GPU-Util 和 UTL 都是 100% hang 住。 transformer_layer_cls_to_wrap: [ "Qwen2DecoderLayer", # Qwen2语言模型的transformer层 "SiglipEncoderLayer", # SigLIP视觉编码器层 "SiglipVisionEmbeddings", # SigLIP视觉嵌入 ] // 这些参数都是 siglip 和 Qwen2 模型中的 _no_split_modules中获取得到的 已经尝试好几天了,始终无法解决这个问题。
定时 issue 清理检查结果:本 issue 创建于 2025-10-28T10:03:25Z;comments 数量为 0;timeline 检查未发现公开评论、PR/issue cross-reference、commit/PR mention 或其它公开引用互动(timeline 事件数量 0;来源:https://github.com/verl-project/verl/issues/3942#issuecomment-timeline)。截至 2026-07-22,该 issue 创建已超过 6 个月且属于零评论零引用情况。
因此按定时清理标准关闭。若作者或社区成员仍能提供新的复现、证据或需求背景,欢迎继续评论请求重开,或创建新的 issue 并链接到这里。
Scheduled issue cleanup check: this issue was created at 2025-10-28T10:03:25Z; comment count is 0; the timeline check found no public comments, PR/issue cross-references, commit/PR mentions, or other public reference interactions (timeline events checked: 0; source: https://github.com/verl-project/verl/issues/3942#issuecomment-timeline). As of 2026-07-22, the issue is older than 6 months and matches the zero-comment/zero-reference case.
Therefore, this is being closed under the scheduled cleanup policy. If the author or community can provide a fresh reproduction, evidence, or requirement context, please comment to request reopening or open a new issue linking back here.
This response was generated by a scheduled Codex GPT5.5 issue processing task.