Skip to content

Support NGC Pytorch containers #741

Closed

Description

@terrykong

Right now NeMo RL uses uv and that has worked for us so far. With newer fixes and next gen hardware, we'll have to support pytorch coming from NGC containers as opposed to official wheels on torch index.

As an example, we won't be able to use torch 2.8 wheels (when they come out) b/c they do not ship with a new enough nccl for blackwell

This requires some design, but initial thoughts of directions to try (in order of complexity) are:

  1. Adding a second dockerfile (w/ NGC pytorch base) and add a switch in NeMo RL to use a "non-isolated" environment
    • this would mean we try to install everything in the system environment
    • may need to think about how to ensure libraries like vllm do not override system torch
    • need a switch in nemo-rl to use the PY_EXECUTABLES.SYSTEM everywhere
  2. Keep the existing isolated environments, but somehow constrain the uv resolver to not install torch (and its transitive dependencies, e.g., pypi nccl/nvidia wheels)
  • This path should also not be made default in NeMo RL which prevents us from being "pip installable"
  • Ideally we keep this functionality in the main branch.

Activity

  1. terrykong commented on Jul 24, 2025

    @terrykong
    CollaboratorAuthor
  2. terrykong commented on Aug 20, 2025

    @terrykong
    CollaboratorAuthor

    Completed as of #897 . Functionality is tracked in #952

  3. added
    qa_rcca_done
    on May 5, 2026
  4. qiaochuz-nv commented on May 5, 2026

    @qiaochuz-nv
    Contributor

    QA RCCA Analysis

    RCCA Status: Done
    RCCA Category: missing_test_case
    Test Action: create_new_test

    Fix PR: #897
    Root Cause: product-code fix PR found without upstream test file.
    Trigger Config: Support NGC Pytorch containers

    Coverage Assessment:

    Area Result
    Existing Test N/A
    Coverage Status MISSING_TEST_CASE
    Gap No direct upstream or nmfw_tests regression identified for this fixed code path.
    Corrective Action Missing regression test recorded. Add targeted nmfw_tests coverage if this issue recurs or remains high priority.

    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

Labels

needs-designqa_rcca_done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions