Skip to content

Remove nvenc/dec for xenna 0.1.6#1202

Merged
abhinavg4 merged 11 commits intomainfrom
aot/remove-nvencs
Jan 7, 2026
Merged

Remove nvenc/dec for xenna 0.1.6#1202
abhinavg4 merged 11 commits intomainfrom
aot/remove-nvencs

Conversation

@suiyoubi
Copy link
Copy Markdown
Contributor

@suiyoubi suiyoubi commented Oct 23, 2025

Description

Linked issue: #1201

For Video Transcoding stage, use similar logic as https://github.com/nvidia-cosmos/cosmos-curate/blob/main/cosmos_curate/pipelines/video/clipping/clip_extraction_stages.py#L198 to partition gpu based on _nb_streams_per_gpu.

Usage

# Add snippet demonstrating usage

Checklist

  • I am familiar with the Contributing Guide.
  • New or Existing tests cover these changes.
  • The documentation is up to date with these changes.

Signed-off-by: Ao Tang <aot@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Oct 23, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

7 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment on lines +69 to +70
if self.entire_gpu:
self.gpus = 1.0
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.

logic: When entire_gpu=True, self.gpus is set to 1.0 after validation checks. If user also sets gpu_memory_gb > 0, the validation on line 52 will fail before reaching this code, which is correct. However, if user sets both entire_gpu=True and gpus > 0, this assignment will silently overwrite their explicit gpus value without raising an error. Should there be a validation check to prevent setting both entire_gpu=True and gpus > 0 explicitly?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I honestly think the best is to drop entire_gpu and only provide gpu_memory_gb and gpus. @ayushdg @praateekmahajan what do you think

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.

I agree with this, entire_gpu has been confusing for me the whole time it existed. I think it was there for nvenc/nvdec reasons (which I never understood well). So if we're nuking nvenc/nvdec support this should be good to go

@abhinavg4

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.

Fine with me too.

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.

Agreed let's just drop this

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.

I will make a seperate issue for this to track. Let's keep it seperate. Wanna make sure we do it properly across documentation and code and stuff

Signed-off-by: Ao Tang <aot@nvidia.com>
@suiyoubi
Copy link
Copy Markdown
Contributor Author

/ok to test d9f705a

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Signed-off-by: Abhinav Garg <abhinavg@stanford.edu>
@abhinavg4
Copy link
Copy Markdown
Contributor

/ok to test d9834e6

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Additional Comments (1)

  1. docs/about/concepts/video/abstractions.md, line 78-80 (link)

    syntax: Documentation still references entire_gpu giving access to NVDEC/NVENC and mentions nvdecs/nvencs fields which have been removed in this PR

7 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread nemo_curator/stages/resources.py Outdated
@abhinavg4
Copy link
Copy Markdown
Contributor

/ok to test 73d9dd3

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Additional Comments (1)

  1. nemo_curator/__init__.py, line 34 (link)

    logic: import path needs updating to match the new cosmos-xenna 0.1.8 structure - cosmos_xenna.ray_utils.cluster was moved. Check if this should be cosmos_xenna.pipelines.private.cluster or if API_LIMIT is now in a different module

7 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread nemo_curator/stages/resources.py
Comment on lines +69 to +70
if self.entire_gpu:
self.gpus = 1.0
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.

Fine with me too.

@sarahyurick sarahyurick mentioned this pull request Dec 15, 2025
Comment on lines +69 to +70
if self.entire_gpu:
self.gpus = 1.0
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.

Agreed let's just drop this

Comment thread pyproject.toml Outdated
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

7 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Signed-off-by: Abhinav Garg <abhinavg@stanford.edu>
@abhinavg4
Copy link
Copy Markdown
Contributor

/ok to test ec9a212

@abhinavg4 abhinavg4 mentioned this pull request Jan 5, 2026
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

7 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread nemo_curator/stages/resources.py Outdated
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Signed-off-by: Abhinav Garg <abhinavg@stanford.edu>
@abhinavg4
Copy link
Copy Markdown
Contributor

/ok to test 84fb624

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

7 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment on lines 36 to 41
Attributes:
cpus: Number of CPU cores required
gpu_memory_gb: GPU memory required in GB (Only for single-GPU stages)
nvdecs: Number of NVDEC units required
nvencs: Number of NVENC units required
entire_gpu: Whether to allocate entire GPU regardless of memory (This also gives you nvdecs and nvencs of that GPU)
entire_gpu: Whether to allocate entire GPU regardless of memory
gpus: Number of GPUs required (Only for multi-GPU stages)
"""
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.

style: Check that documentation is updated. Several doc files still reference removed nvdecs/nvencs fields:

  • docs/curate-video/tutorials/pipeline-customization/add-cust-stage.md
  • docs/curate-video/tutorials/pipeline-customization/add-cust-model.md
  • docs/curate-video/tutorials/pipeline-customization/add-cust-env.md
  • docs/curate-video/index.md
  • docs/about/concepts/video/abstractions.md

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.

@suiyoubi @praateekmahajan Can you take a look at this? Not addressing this in this PR.

@abhinavg4
Copy link
Copy Markdown
Contributor

/ok to test 84fb624

@suiyoubi suiyoubi mentioned this pull request Jan 5, 2026
3 tasks
@abhinavg4
Copy link
Copy Markdown
Contributor

/ok to test 85814d2

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jan 7, 2026

Greptile's behavior is changing!

From now on, if a review finishes with no comments, we will not post an additional "statistics" comment to confirm that our review found nothing to comment on. However, you can confirm that we reviewed your changes in the status check section.

This feature can be toggled off in your Code Review Settings by deselecting "Create a status check for each PR".

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

Labels

gpuci Run GPU CI/CD on PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants