update pip install command for apex
Browse files- docker/Dockerfile-base +1 -1
docker/Dockerfile-base
CHANGED
@@ -77,7 +77,7 @@ FROM base-builder
|
|
77 |
RUN python3 -m pip uninstall -y apex
|
78 |
RUN git clone https://github.com/NVIDIA/apex
|
79 |
# `MAX_JOBS=1` disables parallel building to avoid cpu memory OOM when building image on GitHub Action (standard) runners
|
80 |
-
RUN cd apex && MAX_JOBS=1 python3 -m pip install
|
81 |
|
82 |
RUN mkdir -p /workspace/builds
|
83 |
COPY --from=bnb-builder /workspace/bitsandbytes /workspace/builds/bitsandbytes
|
|
|
77 |
RUN python3 -m pip uninstall -y apex
|
78 |
RUN git clone https://github.com/NVIDIA/apex
|
79 |
# `MAX_JOBS=1` disables parallel building to avoid cpu memory OOM when building image on GitHub Action (standard) runners
|
80 |
+
RUN cd apex && MAX_JOBS=1 python3 -m pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./
|
81 |
|
82 |
RUN mkdir -p /workspace/builds
|
83 |
COPY --from=bnb-builder /workspace/bitsandbytes /workspace/builds/bitsandbytes
|