verl icon indicating copy to clipboard operation
verl copied to clipboard

delta_sharded + one_step_off_policy fails with Qwen3.5 due to multimodal processor / ContinuousToken family mismatch

Open yuxuan-z19 opened this issue 3 months ago • 3 comments

System Info

Hi, thanks for the great work on verl.

I encountered an issue when trying to use the experimental delta_sharded checkpoint engine together with one_step_off_policy.main_ppo on Qwen3.5 models.

The same model/config works with the standard verl.trainer.main_ppo FSDP training script, but fails when switching to the experimental one-step-off-policy pipeline.

Environment

  • verl: latest main (local source checkout)
  • B300 CUDA GPUs
  • rollout backend: sglang==0.5.17
  • checkpoint engine: delta_sharded

Model: Qwen/Qwen3.5-9B (Qwen 3.5 family)

I am using the experimental script similar to:

python3 -m verl.experimental.one_step_off_policy.main_ppo \
    actor_rollout_ref.rollout.checkpoint_engine.backend=delta_sharded \
    +actor_rollout_ref.rollout.checkpoint_engine.engine_kwargs.delta_sharded.encoding=indices \
    actor_rollout_ref.rollout.name=sglang \
    actor_rollout_ref.hybrid_engine=False \
    actor_rollout_ref.model.path=Qwen/Qwen3.5-9B

The run fails during rollout / agent-loop initialization with:

File "/mnt/data/yuxuan-z/verl/verl/experimental/agent_loop/single_turn_agent_loop.py", line 33, in __init__
    super().__init__(*args, **kwargs)

File "/mnt/data/yuxuan-z/verl/verl/experimental/agent_loop/agent_loop.py", line 242, in __init__
    self.continuous_token_builder = create_continuous_token_builder(

File "/mnt/data/yuxuan-z/verl/verl/utils/tokenizer/continuous_token_wiring.py", line 295, in create_continuous_token_builder
    raise ValueError(

ValueError:
Model resolved to the text Continuous Token family
<ContinuousTokenModelFamily.QWEN35: 'qwen35'>,
but a multimodal processor was provided.
Register config.json model_type='qwen3_5' as a VL or unified family,
or do not load a multimodal processor.

Questions:

  1. Is one_step_off_policy.main_ppo currently incompatible with text-only Qwen3.5 checkpoints because it always initializes a multimodal processor?
  2. Is there a recommended way to force tokenizer-only loading for Qwen3.5 in the experimental pipeline?
  3. Should qwen3_5 be registered as a unified/VL continuous-token family?
  4. Is data.return_multi_modal_inputs=True expected for text-only runs?

Information

  • [x] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [x] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

I'm using the official experimental script grpo_0.6b_gsm8k_fsdp2_sglang_delta_sharded_2_6.sh provided, by passing MODEL_PATH=Qwen/Qwen3.5-9B.

Error log is available here.

Expected behavior

None

yuxuan-z19 avatar Aug 16 '26 13:08 yuxuan-z19

@yuxuan-z19 Looks like you already have a pretty reproducible launch path here with the official one-step-off-policy script.

I can smoke-test that Qwen3.5 + delta_sharded setup in Badgr first and map it into a small capped GPU run, just far enough to see whether the multimodal/ContinuousToken mismatch reproduces before you spend on another full B300 training attempt.

Does the failure happen with the stock GSM8K example as-is when you only swap MODEL_PATH, or is there any other config/data change needed?

michaelmanly avatar Aug 16 '26 15:08 michaelmanly

@michaelmanly I made only two changes:

  1. the MODEL_PATH, and

  2. Explicitly set the SGLang attention backend to triton, as flashinfer is currently not supported by the latest SGLang on B300 https://github.com/sgl-project/sglang/issues/20709#issuecomment-5306302227 :

    +actor_rollout_ref.rollout.engine_kwargs.sglang.attention_backend=triton
    

Other than that, the setup is the stock GSM8K delta_sharded example unchanged. The failure reproduces without any dataset or trainer modifications.

yuxuan-z19 avatar Aug 17 '26 03:08 yuxuan-z19

Fixed in https://github.com/verl-project/verl/pull/7362, seems Qwen35 ContinuousToken is not registered.

ContinuousTokenModelFamily.QWEN35: ContinuousTokenModelFamily.QWEN3_VL

wuxibin89 avatar Aug 18 '26 04:08 wuxibin89