Merge pull request #247 from OpenAccess-AI-Collective/fix-apex-base
Browse files- .github/workflows/base.yml +1 -1
- .github/workflows/main.yml +2 -2
- docker/Dockerfile-base +1 -1
.github/workflows/base.yml
CHANGED
|
@@ -26,7 +26,7 @@ jobs:
|
|
| 26 |
pytorch: 2.0.0
|
| 27 |
axolotl_extras:
|
| 28 |
- cuda: "117"
|
| 29 |
-
cuda_version: 11.7.
|
| 30 |
python_version: "3.9"
|
| 31 |
pytorch: 1.13.1
|
| 32 |
axolotl_extras:
|
|
|
|
| 26 |
pytorch: 2.0.0
|
| 27 |
axolotl_extras:
|
| 28 |
- cuda: "117"
|
| 29 |
+
cuda_version: 11.7.1
|
| 30 |
python_version: "3.9"
|
| 31 |
pytorch: 1.13.1
|
| 32 |
axolotl_extras:
|
.github/workflows/main.yml
CHANGED
|
@@ -30,7 +30,7 @@ jobs:
|
|
| 30 |
pytorch: 2.0.0
|
| 31 |
axolotl_extras: gptq
|
| 32 |
- cuda: cu117
|
| 33 |
-
cuda_version: 11.7.
|
| 34 |
python_version: "3.9"
|
| 35 |
pytorch: 1.13.1
|
| 36 |
axolotl_extras:
|
|
@@ -85,7 +85,7 @@ jobs:
|
|
| 85 |
pytorch: 2.0.0
|
| 86 |
axolotl_extras: gptq
|
| 87 |
- cuda: cu117
|
| 88 |
-
cuda_version: 11.7.
|
| 89 |
python_version: "3.9"
|
| 90 |
pytorch: 1.13.1
|
| 91 |
axolotl_extras:
|
|
|
|
| 30 |
pytorch: 2.0.0
|
| 31 |
axolotl_extras: gptq
|
| 32 |
- cuda: cu117
|
| 33 |
+
cuda_version: 11.7.1
|
| 34 |
python_version: "3.9"
|
| 35 |
pytorch: 1.13.1
|
| 36 |
axolotl_extras:
|
|
|
|
| 85 |
pytorch: 2.0.0
|
| 86 |
axolotl_extras: gptq
|
| 87 |
- cuda: cu117
|
| 88 |
+
cuda_version: 11.7.1
|
| 89 |
python_version: "3.9"
|
| 90 |
pytorch: 1.13.1
|
| 91 |
axolotl_extras:
|
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
|