Skip to content

Add dependencies to pyproject and uv.lock#6

Merged
chtruong814 merged 5 commits into
mainfrom
chtruong/dependencies
Sep 18, 2025
Merged

Add dependencies to pyproject and uv.lock#6
chtruong814 merged 5 commits into
mainfrom
chtruong/dependencies

Conversation

@chtruong814

Copy link
Copy Markdown
Contributor

Add dependencies to pyproject and uv.lock

  • Set uv.lock managed = true to ensure dependency scanning works
  • Do not reinstall torch and other dependencies in the container

Signed-off-by: Charlie Truong <chtruong@nvidia.com>
Signed-off-by: Charlie Truong <chtruong@nvidia.com>
Signed-off-by: Charlie Truong <chtruong@nvidia.com>
Signed-off-by: Charlie Truong <chtruong@nvidia.com>
ko3n1g
ko3n1g previously approved these changes Sep 16, 2025
skyw
skyw previously approved these changes Sep 16, 2025

@skyw skyw left a comment

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.

Otherwise LGTM.

Comment thread docker/Dockerfile.ci Outdated
uv sync --link-mode symlink --locked --all-groups \
--no-install-package absl-py \
--no-install-package torch \
--no-install-package torchvision \

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'm not familiar with uv. Does this mean install or not install torchvision?
Torchvision is not needed.

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.

It means NOT to install. I'll remove it anyway because it's not needed here. I copied these exclusions from sone other projects where we need to prevent uv from overriding the torch dependencies that are already installed.

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.

uv works well when we're installing all the dependencies from scratch. However, in the Pytorch container, we need to tell uv to not install the already installed dependencies we care about

Signed-off-by: Charlie Truong <chtruong@nvidia.com>
@chtruong814

Copy link
Copy Markdown
Contributor Author

Moving forward with merging since just minor change since @ko3n1g approved last time. @skyw approved again already.

@chtruong814 chtruong814 merged commit c19c447 into main Sep 18, 2025
13 checks passed
@chtruong814 chtruong814 deleted the chtruong/dependencies branch September 18, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants