use python setup install, bdist wheel is unreliable in installing extension
Browse files- docker/Dockerfile-base +5 -1
docker/Dockerfile-base
CHANGED
@@ -76,6 +76,9 @@ RUN git clone https://github.com/NVIDIA/apex
|
|
76 |
# `MAX_JOBS=1` disables parallel building to avoid cpu memory OOM when building image on GitHub Action (standard) runners
|
77 |
RUN cd apex && MAX_JOBS=1 python3 -m pip install --global-option="--cpp_ext" --global-option="--cuda_ext" --no-cache -v --disable-pip-version-check .
|
78 |
|
|
|
|
|
|
|
79 |
RUN mkdir -p /workspace/wheels/bitsandbytes
|
80 |
COPY --from=deepspeed-builder /workspace/DeepSpeed/dist/deepspeed-*.whl wheels
|
81 |
COPY --from=bnb-builder /workspace/bitsandbytes/dist/bitsandbytes-*.whl wheels
|
@@ -86,7 +89,8 @@ COPY --from=flash-attn-builder /workspace/flash-attention/csrc/xentropy/dist/xen
|
|
86 |
COPY --from=flash-attn-builder /workspace/flash-attention/csrc/rotary/dist/rotary_emb-*.whl wheels
|
87 |
COPY --from=flash-attn-builder /workspace/flash-attention/csrc/layer_norm/dist/dropout_layer_norm-*.whl wheels
|
88 |
|
89 |
-
RUN pip3 install wheels/deepspeed-*.whl wheels/flash_attn-*.whl wheels/fused_dense_lib-*.whl wheels/xentropy_cuda_lib-*.whl wheels/rotary_emb-*.whl wheels/dropout_layer_norm-*.whl
|
|
|
90 |
RUN git lfs install --skip-repo
|
91 |
RUN pip3 install "peft @ git+https://github.com/huggingface/peft.git@main" \
|
92 |
"accelerate @ git+https://github.com/huggingface/accelerate.git@main" \
|
|
|
76 |
# `MAX_JOBS=1` disables parallel building to avoid cpu memory OOM when building image on GitHub Action (standard) runners
|
77 |
RUN cd apex && MAX_JOBS=1 python3 -m pip install --global-option="--cpp_ext" --global-option="--cuda_ext" --no-cache -v --disable-pip-version-check .
|
78 |
|
79 |
+
RUN mkdir -p /workspace/builds
|
80 |
+
COPY --from=bnb-builder /workspace/bitsandbytes /workspace/builds/bitsandbytes
|
81 |
+
|
82 |
RUN mkdir -p /workspace/wheels/bitsandbytes
|
83 |
COPY --from=deepspeed-builder /workspace/DeepSpeed/dist/deepspeed-*.whl wheels
|
84 |
COPY --from=bnb-builder /workspace/bitsandbytes/dist/bitsandbytes-*.whl wheels
|
|
|
89 |
COPY --from=flash-attn-builder /workspace/flash-attention/csrc/rotary/dist/rotary_emb-*.whl wheels
|
90 |
COPY --from=flash-attn-builder /workspace/flash-attention/csrc/layer_norm/dist/dropout_layer_norm-*.whl wheels
|
91 |
|
92 |
+
RUN pip3 install wheels/deepspeed-*.whl wheels/flash_attn-*.whl wheels/fused_dense_lib-*.whl wheels/xentropy_cuda_lib-*.whl wheels/rotary_emb-*.whl wheels/dropout_layer_norm-*.whl
|
93 |
+
RUN cd /workspace/builds/bitsandbytes && python3 setup.py install
|
94 |
RUN git lfs install --skip-repo
|
95 |
RUN pip3 install "peft @ git+https://github.com/huggingface/peft.git@main" \
|
96 |
"accelerate @ git+https://github.com/huggingface/accelerate.git@main" \
|