Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ python3 -m recipe.one_step_off_policy.main_ppo \
actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=1 \
actor_rollout_ref.rollout.tensor_model_parallel_size=4 \
actor_rollout_ref.rollout.name=vllm \
actor_rollout_ref.rollout.mode=sync \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This change correctly sets the rollout mode to sync. The script uses the recipe.one_step_off_policy.main_ppo entry point, which seems intended for synchronous execution, similar to what's done in the E2E test script tests/special_e2e/run_one_step_off_policy.sh. Without this explicit setting, it would default to async mode from the configuration file verl/trainer/config/rollout/rollout.yaml, which is likely incorrect for this script and could lead to unexpected behavior. This ensures the script runs in its intended synchronous mode.

actor_rollout_ref.rollout.gpu_memory_utilization=0.8 \
actor_rollout_ref.rollout.max_num_batched_tokens=$((max_prompt_length + max_response_length)) \
actor_rollout_ref.rollout.n=8 \
Expand Down
Loading