Skip to content

Commit 520c38d

Browse files
committed
fix nvcr dockerfile build
Signed-off-by: Dushyant Behl <dushyantbehl@in.ibm.com>
1 parent facbce8 commit 520c38d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

build/nvcr.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ RUN pip install --upgrade --force-reinstall torch torchaudio torchvision --index
4747
# Install main package + flash attention
4848
COPY . ${SOURCE_DIR}
4949
RUN cd ${SOURCE_DIR}
50-
RUN pip install --no-cache-dir ${SOURCE_DIR} && \
51-
pip install --no-cache-dir ${SOURCE_DIR}[flash-attn]
50+
51+
RUN pip install --no-cache-dir ${SOURCE_DIR}
52+
RUN pip install --user --no-build-isolation ${SOURCE_DIR}[flash-attn]
5253

5354
# Optional extras
5455
RUN if [[ "${ENABLE_FMS_ACCELERATION}" == "true" ]]; then \

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
{name = "Sukriti Sharma", email = "sukriti.sharma4@ibm.com"},
1414
{name = "Anh Uong", email = "anh.uong@ibm.com"},
1515
]
16-
license = "Apache-2.0"
16+
license = { text = "Apache-2.0" }
1717
readme = "README.md"
1818
requires-python = "~=3.9"
1919
keywords = ['fms-hf-tuning', 'python', 'tuning']
@@ -30,6 +30,7 @@ dependencies = [
3030
"accelerate>=1.9.0,<2.0.0",
3131
"transformers>=4.55.0,<=4.55.4",
3232
"torch>2.7.0,<2.9.0",
33+
"torchvision<0.24",
3334
"sentencepiece>=0.1.99,<0.3",
3435
"tokenizers<=0.22",
3536
"tqdm>=4.66.2,<5.0",

0 commit comments

Comments
 (0)