verl icon indicating copy to clipboard operation
verl copied to clipboard

Is verl support multi-turns and multi-tools rl training?

Open shayxurui opened this issue 1 year ago • 11 comments

i wanna register multi-tools in tool_config.yaml

Image

is that supoort?

shayxurui avatar Jul 03 '25 08:07 shayxurui

Sure. You can use those settings:

    actor_rollout_ref.rollout.name=vllm \
    actor_rollout_ref.rollout.mode=async \
    actor_rollout_ref.rollout.multi_turn.enable=True \
    actor_rollout_ref.rollout.multi_turn.max_user_turns=$max_turns \
    actor_rollout_ref.rollout.multi_turn.max_assistant_turns=$max_turns \
    actor_rollout_ref.rollout.multi_turn.tool_config_path=$tool_config_path \
    actor_rollout_ref.rollout.multi_turn.format=hermes \
    actor_rollout_ref.rollout.gpu_memory_utilization=0.9 \

chenhaiq avatar Jul 03 '25 11:07 chenhaiq

Sure. You can use those settings:

    actor_rollout_ref.rollout.name=vllm \
    actor_rollout_ref.rollout.mode=async \
    actor_rollout_ref.rollout.multi_turn.enable=True \
    actor_rollout_ref.rollout.multi_turn.max_user_turns=$max_turns \
    actor_rollout_ref.rollout.multi_turn.max_assistant_turns=$max_turns \
    actor_rollout_ref.rollout.multi_turn.tool_config_path=$tool_config_path \
    actor_rollout_ref.rollout.multi_turn.format=hermes \
    actor_rollout_ref.rollout.gpu_memory_utilization=0.9 \

Does vllm support the use of the parameter multi_turn?

ccl4wsh avatar Jul 03 '25 12:07 ccl4wsh

Sure. You can use those settings:

    actor_rollout_ref.rollout.name=vllm \
    actor_rollout_ref.rollout.mode=async \
    actor_rollout_ref.rollout.multi_turn.enable=True \
    actor_rollout_ref.rollout.multi_turn.max_user_turns=$max_turns \
    actor_rollout_ref.rollout.multi_turn.max_assistant_turns=$max_turns \
    actor_rollout_ref.rollout.multi_turn.tool_config_path=$tool_config_path \
    actor_rollout_ref.rollout.multi_turn.format=hermes \
    actor_rollout_ref.rollout.gpu_memory_utilization=0.9 \

Does vllm support the use of the parameter multi_turn?

@ccl4wsh Yes, both vllm and sglang support multi_turn.

wuxibin89 avatar Jul 08 '25 02:07 wuxibin89

Hey @chenhaiq , @wuxibin89 , are you sure?

In my experience, when using actor_rollout_ref.rollout.multi_turn.enable=True \ and actor_rollout_ref.rollout.name=vllm \ and trying to run the basic Gsm8kInteraction, my control flow never reaches the class (i.e. breakpoints, asserts, and prints do not trigger). Looking at the code, I can see sglang_rollout.py imports

from verl.interactions.base import BaseInteraction
from verl.interactions.utils.interaction_registry import initialize_interactions_from_config

and its main generate_sequences method branches based on if self.config.multi_turn.enable: to see whether to run the multi_turn or default single turn rollout.

However, when running with fsdp and vllm my control flow goes from generate_sequences in fsdp_workers.py to generate_sequences in vllm_rollout_spmd.py. Neither imports verl.interactions... or references "multi_turn."

I'm curious: what am I missing?

GnarlyMshtep avatar Aug 09 '25 13:08 GnarlyMshtep

Hey @chenhaiq , @wuxibin89 , are you sure?

In my experience, when using actor_rollout_ref.rollout.multi_turn.enable=True \ and actor_rollout_ref.rollout.name=vllm \ and trying to run the basic Gsm8kInteraction, my control flow never reaches the class (i.e. breakpoints, asserts, and prints do not trigger). Looking at the code, I can see sglang_rollout.py imports

from verl.interactions.base import BaseInteraction
from verl.interactions.utils.interaction_registry import initialize_interactions_from_config

and its main generate_sequences method branches based on if self.config.multi_turn.enable: to see whether to run the multi_turn or default single turn rollout.

However, when running with fsdp and vllm my control flow goes from generate_sequences in fsdp_workers.py to generate_sequences in vllm_rollout_spmd.py. Neither imports verl.interactions... or references "multi_turn."

I'm curious: what am I missing?

interaction for vllm is on the way: https://github.com/volcengine/verl/pull/2980 cc @plutoZZZZ

chenhaiq avatar Aug 11 '25 08:08 chenhaiq

Hey @chenhaiq , @wuxibin89 , are you sure?

In my experience, when using actor_rollout_ref.rollout.multi_turn.enable=True \ and actor_rollout_ref.rollout.name=vllm \ and trying to run the basic Gsm8kInteraction, my control flow never reaches the class (i.e. breakpoints, asserts, and prints do not trigger). Looking at the code, I can see sglang_rollout.py imports

from verl.interactions.base import BaseInteraction
from verl.interactions.utils.interaction_registry import initialize_interactions_from_config

and its main generate_sequences method branches based on if self.config.multi_turn.enable: to see whether to run the multi_turn or default single turn rollout.

However, when running with fsdp and vllm my control flow goes from generate_sequences in fsdp_workers.py to generate_sequences in vllm_rollout_spmd.py. Neither imports verl.interactions... or references "multi_turn."

I'm curious: what am I missing?

I'm finding a similar problem. It seems like it never calls multi-turn interaction class

amayuelas avatar Aug 16 '25 02:08 amayuelas

@amayuelas , yes, afaik vllm + multi_turn is not supported yet. @chenhaiq comment is somewhat misleading.

GnarlyMshtep avatar Aug 16 '25 15:08 GnarlyMshtep

@chenhaiq Hello! does Verl currently support vLLM with multi-turn interaction?

1204922635 avatar Aug 26 '25 14:08 1204922635

Wait, I tried to use the example in Agentic RL and register custom tools, use vllm, it works for me.

Damon-GSY avatar Aug 28 '25 09:08 Damon-GSY

Wait, I tried to use the example in Agentic RL and register custom tools, use vllm, it works for me.

In tool_agent_loop.py, there are max_turns and max_assistants_turns setttings

Damon-GSY avatar Aug 28 '25 11:08 Damon-GSY

定时清理检查发现:该 issue 最近一次非当前运行账号(Kirrito-k423)的公开回复或公开引用是 2025-08-28T11:50:34Z(actor=Damon-GSY, type=commented),截至 2026-07-09 已超过 6 个月。按照社区 issue 定时清理标准,本次先关闭该 issue。

Scheduled maintenance check: the latest public reply or public reference from an account other than the current runner (Kirrito-k423) was at 2025-08-28T11:50:34Z (actor=Damon-GSY, type=commented), which is more than 6 months before 2026-07-09. Under the scheduled issue cleanup rule, this issue is being closed for now.

证据 / Evidence: latest_non_self_reply_or_reference_at=2025-08-28T11:50:34Z; comments_checked=10; timeline_public_events_checked=17; issue=https://github.com/verl-project/verl/issues/2340; timeline API=https://api.github.com/repos/verl-project/verl/issues/2340/timeline.

如果作者或社区成员仍能提供新的复现、证据或需求背景,欢迎继续评论请求重开,或创建新的 issue 并引用这里的上下文。

If the author or community can still provide a fresh reproduction, evidence, or requirement context, please comment to request reopening or open a new issue and link back to this context.

This response was generated by a scheduled Codex GPT5.5 issue processing task.

Kirrito-k423 avatar Jul 09 '26 01:07 Kirrito-k423