Skip to content

Upgrade to vllm 0.10.2, ray, and torch 2.8.0 #1122

Closed

Description

@terrykong

Vllm just released yesterday, so we can now update to the next torch.

We plan to do this post 0.4 release.

Activity

  1. self-assigned this
    on Sep 14, 2025
  2. yuki-97 commented on Sep 15, 2025

    @yuki-97
    Contributor

    with vllm==0.10.2:

    1. _patched_maybe_force_spawn is okay to be removed.
      1. [Bugfix] Always set RAY_ADDRESS for Ray actor before spawn vllm-project/vllm#21540
    2. skip_tokenizer_init should be set back to skip_tokenizer_init=self.cfg["vllm_cfg"]["skip_tokenizer_init"].
      1. [Bugfix] fix when skip tokenizer init vllm-project/vllm#21922
    3. logprobs_mode can be set to logprobs_mode="processed_logprobs".
      1. [Sampler] Support returning final logprobs vllm-project/vllm#22387
      2. _patch_vllm_sampler can be removed and sampling at training side can be updated. cc @zhandaz
  3. vegaluisjose commented on Sep 15, 2025

    @vegaluisjose
    Contributor

    Curious if these changes are needed to work? or nice-to-have? @yuki-97

  4. terrykong commented on Sep 15, 2025

    @terrykong
    CollaboratorAuthor

    Upgrading also will cause this issue which we need to solve (found by @yfw):

      File "/tmp/ray/session_2025-09-15_14-31-03_994983_2464005/runtime_resources/working_dir_files/_ray_pkg_f71471d97dc1673d/nemo_rl/models/policy/dtensor_policy_worker.py", line 319, in __init__
        device_mesh = torch.distributed.device_mesh.init_device_mesh(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/ray_venvs/nemo_rl.models.policy.dtensor_policy_worker.DTensorPolicyWorker/lib/python3.12/site-packages/torch/distributed/device_mesh.py", line 1046, in init_device_mesh
        device_mesh = DeviceMesh(
                      ^^^^^^^^^^^
      File "/opt/ray_venvs/nemo_rl.models.policy.dtensor_policy_worker.DTensorPolicyWorker/lib/python3.12/site-packages/torch/distributed/device_mesh.py", line 462, in __init__
        self._setup_world_group_and_device()
      File "/opt/ray_venvs/nemo_rl.models.policy.dtensor_policy_worker.DTensorPolicyWorker/lib/python3.12/site-packages/torch/distributed/device_mesh.py", line 500, in _setup_world_group_and_device
        device_handle.set_device(local_rank)
      File "/opt/ray_venvs/nemo_rl.models.policy.dtensor_policy_worker.DTensorPolicyWorker/lib/python3.12/site-packages/torch/cuda/__init__.py", line 569, in set_device
        torch._C._cuda_setDevice(device)
    torch.AcceleratorError: CUDA error: invalid device ordinal
    
  5. yuki-97 commented on Sep 16, 2025

    @yuki-97
    Contributor

    Curious if these changes are needed to work? or nice-to-have? @yuki-97

    They are all nice-to-have.

    1. The patch is used to fix the issue, and vllm officially fixed it now.
    2. skip_tokenizer_init=True is broken in vllm==0.10.0, and now it's fixed.
    3. We have been waiting for the final logprobs for some time :)
  6. vegaluisjose commented on Sep 17, 2025

    @vegaluisjose
    Contributor
  7. guyueh1 commented on Sep 22, 2025

    @guyueh1
    Contributor

    This upgrade is also blocking #1175; this is because vllm 0.10.1+ contains a bugfix for EP + torch.compile, previously when with vllm 0.10.0 we didn't have to use EP, but now to enable fp8, to make sure hidden_size/TP % 128==0, we have to keep TP small and thus need EP.

  8. guyueh1 commented on Sep 24, 2025

    @guyueh1
    Contributor

    I am working in a branch (#1199) to bump to a intermediate version (vllm 0.10.1.1 and ray 2.48, but no change to torch), fixed some issues for this version; If directly bumping to 0.10.2 goes smoothly then we dont need to merge this subversion bump, so just fyi.

  9. terrykong commented on Oct 10, 2025

    @terrykong
    CollaboratorAuthor

    @guyueh1 i'm okay with bumping to 0.10.2 provided the nightlies/release tests are good. we need to run way more than the presubmit to validate these version bumps b/c vllm is always a risky upgrade

  10. terrykong commented on Oct 10, 2025

    @terrykong
    CollaboratorAuthor

    I've started the big upgrade in #1334

  11. linked a pull request that will close this issuechore: Bump vllm and ray #1199on Oct 14, 2025
  12. added
    qa_rcca_done
    on May 5, 2026
  13. qiaochuz-nv commented on May 5, 2026

    @qiaochuz-nv
    Contributor

    QA RCCA Analysis

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

    Fix PR: #1175, #1199, #1334
    Root Cause: fix PR includes upstream test coverage.
    Trigger Config: Upgrade to vllm 0.10.2, ray, and torch 2.8.0

    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

Labels

qa_rcca_done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions