Skip to content

Commit e23db60

Browse files
committed
don't install te in model requirements, use uv in dockerfiles
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
1 parent 2880389 commit e23db60

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/framework-unit-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
- uses: actions/setup-python@v5
6060
with:
6161
python-version: "3.13"
62-
cache: "pip"
6362
- name: Setup UV
6463
uses: astral-sh/setup-uv@v6
6564
with:

models/amplify/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ FROM nvcr.io/nvidia/pytorch:25.01-py3
44
RUN MAX_JOBS=4 pip --disable-pip-version-check --no-cache-dir install -v git+https://github.com/facebookresearch/xformers.git@v0.0.29.post1#egg=xformers
55
RUN PIP_CONSTRAINT= NVTE_FRAMEWORK=pytorch MAX_JOBS=4 pip --disable-pip-version-check --no-cache-dir install -v git+https://github.com/nvidia/TransformerEngine.git@v2.4
66

7+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
78
WORKDIR /workspace/bionemo
89
COPY . .
9-
RUN --mount=type=cache,target=/root/.cache/pip \
10-
PIP_CONSTRAINT= pip install .
10+
RUN --mount=type=cache,target=/root/.cache/uv \
11+
uv pip install --system --break-system-packages -e .

models/amplify/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies = [
2020
"omegaconf",
2121
"pytest",
2222
"torch",
23-
"transformer-engine",
23+
# "transformer_engine[pytorch]",
2424
"transformers",
2525
"xformers",
2626
]

models/esm2/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM nvcr.io/nvidia/pytorch:25.06-py3
2+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
23
WORKDIR /workspace/bionemo
34
COPY . .
4-
RUN --mount=type=cache,target=/root/.cache/pip \
5-
PIP_CONSTRAINT= pip install .
5+
RUN --mount=type=cache,target=/root/.cache/uv \
6+
uv pip install --system --break-system-packages -e .

models/esm2/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"omegaconf",
1919
"pytest",
2020
"torch",
21-
"transformer-engine",
21+
# "transformer_engine[pytorch]",
2222
"transformers",
2323
]
2424

0 commit comments

Comments
 (0)