Skip to content

Commit c85747f

Browse files
authored
fix: fix manylinux2_28 build (#436)
1 parent 750082f commit c85747f

File tree

9 files changed

+31
-38
lines changed

9 files changed

+31
-38
lines changed

.devcontainer/manylinux/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
ARG BASE_IMAGE=vectorchai/scalellm_manylinux:cuda12.4
1+
ARG BASE_IMAGE=vectorchai/scalellm_manylinux2_28:cuda12.6
22
FROM ${BASE_IMAGE}
33

44
ARG USER=vscode
55
ARG UID=1000
66
ARG GID=1000
7-
ARG TORCH_VERSION=2.6.0
8-
ARG CUDA_VERSION=12.4
7+
ARG TORCH_VERSION=2.7.0
8+
ARG CUDA_VERSION=12.6
99
ARG PYTHON_VERSION=3.12
1010

1111
# Run as non-root user
@@ -19,7 +19,7 @@ RUN yum -y update && yum -y install \
1919
htop \
2020
vim \
2121
jq \
22-
gdb
22+
gdb
2323

2424
# Choose python 3.12
2525
ENV PATH="/opt/python/cp312-cp312/bin:$PATH"
@@ -41,4 +41,4 @@ export CLICOLOR=1
4141
export LSCOLORS=ExFxCxDxBxegedabagacad
4242
EOT
4343

44-
ENTRYPOINT [ "/usr/bin/bash" ]
44+
ENTRYPOINT [ "/usr/bin/bash" ]

.devcontainer/manylinux/devcontainer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"build": {
55
"dockerfile": "Dockerfile",
66
"args": {
7-
"BASE_IMAGE": "vectorchai/scalellm_manylinux:cuda12.4",
8-
"TORCH_VERSION": "2.6.0",
9-
"CUDA_VERSION": "12.4",
7+
"BASE_IMAGE": "vectorchai/scalellm_manylinux2_28:cuda12.6",
8+
"TORCH_VERSION": "2.7.0",
9+
"CUDA_VERSION": "12.6",
1010
"USER": "${localEnv:USER:vscode}",
1111
"UID": "${localEnv:UID:1000}",
1212
"GID": "${localEnv:GID:1000}"
@@ -66,4 +66,4 @@
6666
}
6767
}
6868
}
69-
}
69+
}

.github/workflows/build_wheel.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343
mkdir -p $CI_CACHE_DIR/.vcpkg/bincache
4444
mkdir -p $CI_CACHE_DIR/.ccache
4545
mkdir -p $CI_CACHE_DIR/.pip
46-
46+
4747
- name: Build wheel
4848
timeout-minutes: 60
4949
run: |
50-
docker pull vectorchai/scalellm_manylinux:cuda${CUDA_VERSION}
50+
docker pull vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION}
5151
docker run --rm -t \
5252
-v "$CI_CACHE_DIR":/ci_cache \
5353
-v "$GITHUB_WORKSPACE":/ScaleLLM \
@@ -60,7 +60,7 @@ jobs:
6060
-e CCACHE_DIR=/ci_cache/.ccache \
6161
-e PIP_CACHE_DIR=/ci_cache/.pip \
6262
-u $(id -u):$(id -g) \
63-
vectorchai/scalellm_manylinux:cuda${CUDA_VERSION} \
63+
vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION} \
6464
bash /ScaleLLM/scripts/build_wheel.sh
6565
6666
- name: show wheel size
@@ -96,7 +96,7 @@ jobs:
9696
draft: false
9797
prerelease: false
9898
make_latest: true
99-
99+
100100
commit_whl_index:
101101
needs: build_wheel
102102
runs-on: ubuntu-latest
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: Show wheels
112112
run: ls -lha dist
113-
113+
114114
- name: Clone whl repo
115115
run: |
116116
git clone https://oauth2:${WHL_TOKEN}@github.com/vectorch-ai/whl.git
@@ -130,5 +130,3 @@ jobs:
130130
git add -A
131131
git commit -m "Update whl index for version ${{ inputs.tag }}"
132132
git push
133-
134-

.github/workflows/package_test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Package test
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch:
55

66
push:
77
paths:
@@ -11,7 +11,7 @@ on:
1111
- "requirements.txt"
1212
- "requirements-test.txt"
1313
- ".github/workflows/package_test.yml"
14-
branches:
14+
branches:
1515
- main
1616

1717
pull_request:
@@ -58,11 +58,11 @@ jobs:
5858
mkdir -p $CI_CACHE_DIR/.vcpkg/bincache
5959
mkdir -p $CI_CACHE_DIR/.ccache
6060
mkdir -p $CI_CACHE_DIR/.pip
61-
61+
6262
- name: Build wheel
6363
timeout-minutes: 60
6464
run: |
65-
docker pull vectorchai/scalellm_manylinux:cuda${CUDA_VERSION}
65+
docker pull vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION}
6666
docker run --rm -t \
6767
-v "$CI_CACHE_DIR":/ci_cache \
6868
-v "$GITHUB_WORKSPACE":/ScaleLLM \
@@ -73,7 +73,7 @@ jobs:
7373
-e CCACHE_DIR=/ci_cache/.ccache \
7474
-e PIP_CACHE_DIR=/ci_cache/.pip \
7575
-u $(id -u):$(id -g) \
76-
vectorchai/scalellm_manylinux:cuda${CUDA_VERSION} \
76+
vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION} \
7777
bash /ScaleLLM/scripts/build_wheel.sh
7878
7979
- name: Show whl package size

.github/workflows/publish_devel_image.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
# Schedule the workflow to run at 10:00 (UTC) every month.
1111
schedule:
1212
# Minute[0,59] Hour[0,23] Day of month[1,31] Month[1,12] Day of week[0,6] (Sunday=0)
13-
- cron: '0 10 1 * *'
13+
- cron: '0 10 1 * *'
1414

1515
env:
1616
# Tells where to store caches.
@@ -23,9 +23,6 @@ jobs:
2323
matrix:
2424
cuda: ["12.6", "12.8"]
2525
gcc: ["12"]
26-
include: # build cuda 11.8 with gcc 11
27-
- cuda: "11.8"
28-
gcc: "11"
2926
runs-on: [self-hosted, linux, build]
3027
steps:
3128
- name: Checkout repository
@@ -61,4 +58,3 @@ jobs:
6158
tags: |
6259
vectorchai/scalellm_devel:cuda${{ matrix.cuda }}-ubuntu22.04
6360
vectorchai/scalellm_devel:cuda${{ matrix.cuda }}
64-

.github/workflows/publish_manylinux_2_28_image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
cuda: ["12.6", "12.8"]
24+
cuda: ["11.8", "12.6", "12.8"]
2525
runs-on: [self-hosted, linux, build]
2626
steps:
2727
- name: Checkout repository

.github/workflows/publish_wheel.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Build wheel
4646
timeout-minutes: 60
4747
run: |
48-
docker pull vectorchai/scalellm_manylinux:cuda${CUDA_VERSION}
48+
docker pull vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION}
4949
docker run --rm -t \
5050
-v "$CI_CACHE_DIR":/ci_cache \
5151
-v "$GITHUB_WORKSPACE":/ScaleLLM \
@@ -57,16 +57,16 @@ jobs:
5757
-e CCACHE_DIR=/ci_cache/.ccache \
5858
-e PIP_CACHE_DIR=/ci_cache/.pip \
5959
-u $(id -u):$(id -g) \
60-
vectorchai/scalellm_manylinux:cuda${CUDA_VERSION} \
60+
vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION} \
6161
bash /ScaleLLM/scripts/build_wheel.sh
6262
6363
- name: show wheels
6464
run: ls -lh dist
6565

66-
- name: rename wheel to manylinux
66+
- name: rename wheel to manylinux_2_28
6767
run: |
6868
for whl in dist/scalellm-*.whl; do
69-
new_whl=${whl//"-linux_"/"-manylinux1_"}
69+
new_whl=${whl//"-linux_"/"-manylinux_2_28_"}
7070
if [ "$whl" != "$new_whl" ]; then
7171
mv $whl $new_whl
7272
fi
@@ -103,5 +103,3 @@ jobs:
103103
password: ${{ secrets.PYPI_API_TOKEN }}
104104
skip-existing: true
105105
verbose: true
106-
107-

.github/workflows/release_test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
# Schedule the workflow to run at 08:00 (UTC) every day.
99
schedule:
1010
# Minute[0,59] Hour[0,23] Day of month[1,31] Month[1,12] Day of week[0,6] (Sunday=0)
11-
- cron: '0 8 * * *'
11+
- cron: '0 8 * * *'
1212

1313
env:
1414
# Tells where to store caches.
@@ -39,11 +39,11 @@ jobs:
3939
mkdir -p $CI_CACHE_DIR/.vcpkg/bincache
4040
mkdir -p $CI_CACHE_DIR/.ccache
4141
mkdir -p $CI_CACHE_DIR/.pip
42-
42+
4343
- name: Build wheel
4444
timeout-minutes: 60
4545
run: |
46-
docker pull vectorchai/scalellm_manylinux:cuda${CUDA_VERSION}
46+
docker pull vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION}
4747
docker run --rm -t \
4848
-v "$CI_CACHE_DIR":/ci_cache \
4949
-v "$GITHUB_WORKSPACE":/ScaleLLM \
@@ -54,7 +54,7 @@ jobs:
5454
-e CCACHE_DIR=/ci_cache/.ccache \
5555
-e PIP_CACHE_DIR=/ci_cache/.pip \
5656
-u $(id -u):$(id -g) \
57-
vectorchai/scalellm_manylinux:cuda${CUDA_VERSION} \
57+
vectorchai/scalellm_manylinux2_28:cuda${CUDA_VERSION} \
5858
bash /ScaleLLM/scripts/build_wheel.sh
5959
6060
- name: Show whl package size

docker/common/install_cmake.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ command -v pip3 >/dev/null && pip3 uninstall -y cmake
99

1010
# Remove existing CMake installation
1111
rm -f /usr/local/bin/cmake
12+
rm -f /opt/conda/bin/cmake
1213

1314
path="v${CMAKE_VERSION}"
1415
ARCH=$(uname -m)
@@ -19,4 +20,4 @@ pushd /tmp
1920
wget -q "https://github.com/Kitware/CMake/releases/download/${path}/${file}"
2021
tar -C /usr/local --strip-components 1 --no-same-owner -zxf ${file}
2122
rm -f cmake-*.tar.gz
22-
popd
23+
popd

0 commit comments

Comments
 (0)