Skip to content

Change default placement_group_strategy to PACK #895

Closed

Description

@yuki-97

PACK is the default placement_group_strategy for ray, and some of our features need to use it (e.g. non-colocated, auto scaling), so it's ideally to change our default placement_group_strategy from SPREAD back to PACK.

Currently we have slowdown issue when using PACK at Megatron backend. We should change to default PACK once it's fixed, or close this issue if we find that SPREAD is really faster than PACK in some reason.

Test result
From recent test (llama-3.1-8b with vllm tp8pp2):

  1. the behavior of PACK and SPREAD of FSDP2 backend are the same.
  2. for Megatron backend, PACK is slower than SPREAD at policy_training and policy_and_reference_logprobs.
Image

Test script
main branch uses SPREAD. adding this commit 162b0c2 to use PACK.

RUN_COMMAND="NRL_VLLM_ASYNC_TIMEOUT_SECONDS=14400 NRL_FORCE_REBUILD_VENVS=true uv run python examples/run_grpo_math.py \
    --config examples/configs/grpo_math_8B_megatron.yaml \
    policy.generation.vllm_cfg.async_engine=true \
    grpo.max_num_steps=100 \
    grpo.val_period=1000 \
    policy.model_name=meta-llama/Llama-3.1-8B-Instruct \
    policy.megatron_cfg.enabled=true \
    policy.megatron_cfg.activation_checkpointing=false \
    policy.megatron_cfg.tensor_model_parallel_size=8 \
    policy.megatron_cfg.pipeline_model_parallel_size=1 \
    policy.generation.vllm_cfg.tensor_parallel_size=8 \
    policy.generation.vllm_cfg.pipeline_parallel_size=2 \
    policy.dynamic_batching.enabled=true \
    policy.sequence_packing.enabled=false \
    checkpointing.enabled=false \
    logger.wandb_enabled=true \
    logger.tensorboard_enabled=false \
    logger.monitor_gpus=true \
    logger.wandb.project=${PROJECT_NAME} \
    logger.wandb.name=${EXP_NAME} \
    cluster.num_nodes=4 \
    cluster.gpus_per_node=8"

Activity

  1. added
    qa_rcca_done
    on May 5, 2026
  2. qiaochuz-nv commented on May 5, 2026

    @qiaochuz-nv
    Contributor

    QA RCCA Analysis

    RCCA Status: Done
    RCCA Category: covered
    Test Action: none

    Fix PR: #1341
    Root Cause: fix PR includes upstream test coverage.
    Trigger Config: Change default placement_group_strategy to PACK

    Coverage Assessment:

    Area Result
    Existing Test Upstream fix PR test coverage
    Coverage Status COVERED
    Gap N/A
    Corrective Action No nmfw_tests addition required; fix PR includes upstream test coverage or equivalent regression coverage.

    Conclusion: RCCA classification completed for this closed NeMo-RL GitHub issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    qa_rcca_done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions