Skip to content

Conversation

@chtruong814
Copy link
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 <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
ko3n1g
ko3n1g previously approved these changes Sep 16, 2025
skyw
skyw previously approved these changes Sep 16, 2025
Copy link
Contributor

@skyw skyw left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM.

uv sync --link-mode symlink --locked --all-groups \
--no-install-package absl-py \
--no-install-package torch \
--no-install-package torchvision \
Copy link
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
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
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

@chtruong814
Copy link
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.

4 participants