Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install geometric dependencies before invalidating caches with source copy #224

Merged
merged 6 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ ENV UV_LINK_MODE=copy \
UV_PYTHON_DOWNLOADS=never \
UV_SYSTEM_PYTHON=true

# Install the bionemo-geomtric requirements ahead of copying over the rest of the repo, so that we can cache their
# installation. These involve building some torch extensions, so they can take a while to install.
RUN --mount=type=bind,source=./sub-packages/bionemo-geometric/requirements.txt,target=/requirements-pyg.txt \
--mount=type=cache,id=uv-cache,target=/root/.cache,sharing=locked \
uv pip install --no-build-isolation -r /requirements-pyg.txt

WORKDIR /workspace/bionemo2

# Install 3rd-party deps and bionemo submodules.
Expand Down
3 changes: 2 additions & 1 deletion sub-packages/bionemo-geometric/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ classifiers = ["Private :: Do Not Upload", "Programming Language :: Python :: 3.
dynamic = ["version"]
dependencies = [
'bionemo-core',
# Version pins for the pip package. If updating these, also update the image pins in requirements.txt.
# Version pins for the pip package. If updating these, also update the image pins in requirements.txt. Ideally we
# should allow these dependencies to float in the package definition.
'torch-cluster==1.6.3',
'torch-geometric==2.5.0',
'torch-scatter==2.1.2',
pstjohn marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading