From 0c9be43fe316d9f1a628ea63a957e3b948251011 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 09:11:18 +0800 Subject: [PATCH 1/9] [CI] fix release env no uv --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfc95a5ba..b070eacc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,11 +89,21 @@ jobs: needs: - check-vm if: ${{ inputs.github_vm == false }} + env: + UV_PYTHON: 3.14yt container: image: ${{ needs.check-vm.outputs.ip }}:5000/nvidia/cuda:130-ubuntu24.04_0415 volumes: - - /monster/ci/env/entrypoint.sh:/etc/profile.d/01-entrypoint.sh - - /monster/ci/uv:/opt/uv + - /github/workspace/uv:/opt/uv + - /github/workspace/tmp:/opt/uv/tmp + - /monster/ci/uv/python:/opt/uv/python + - /monster/ci/uv/cache/python:/opt/uv/cache/python + - /monster/ci/uv/setup_uv_venv.sh:/opt/uv/setup_uv_venv.sh + - /monster/ci/uv/uv:/opt/uv/uv + - /monster/ci/uv/uvx:/opt/uv/uvx + - /monster/ci/uv/env:/opt/uv/env + - /monster/ci/uv/uv.toml:/opt/uv/uv.toml + - /monster/ci/env:/opt/env steps: - name: Checkout Codes uses: actions/checkout@v6 @@ -101,12 +111,22 @@ jobs: repository: ${{ env.repo }} ref: ${{ env.ref }} - - name: Setup release env + - name: Activate uv env run: | - export UV_PYTHON=3.14 - echo "UV_PYTHON=3.14" >> "$GITHUB_ENV" + echo "::group::-- dust uv cache dir --" + dust $(uv cache dir) + echo "::endgroup::" + + bash .github/scripts/ci_unit_activate_uv_env.sh \ + "gptqmodel_py314t_release_source" \ + 130 \ + "${{ env.TORCH_VERSION }}" \ + "${{ github.run_id }}" \ + "${{ github.run_attempt }}" - env_name="gptqmodel_py314_release_source" + - name: Setup release env + run: | + env_name="gptqmodel_py314t_release_source" /opt/uv/setup_uv_venv.sh $env_name - name: Run shared release source flow From 0cc068312bf0fafa052152447994b55ba43c3181 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 09:20:55 +0800 Subject: [PATCH 2/9] [CI] add envs --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b070eacc3..9094439f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,7 +90,10 @@ jobs: - check-vm if: ${{ inputs.github_vm == false }} env: - UV_PYTHON: 3.14yt + UV_TORCH_BACKEND: cu130 + TORCH_VERSION: 2.11.0 + PYTHON_VERSION: 3.14t + UV_PYTHON: 3.14t container: image: ${{ needs.check-vm.outputs.ip }}:5000/nvidia/cuda:130-ubuntu24.04_0415 volumes: @@ -126,6 +129,10 @@ jobs: - name: Setup release env run: | + echo "::group::-- uv envs --" + printenv | grep UV + echo "::endgroup::" + env_name="gptqmodel_py314t_release_source" /opt/uv/setup_uv_venv.sh $env_name From 8b5251d4ed481bea1858118622eea6eb036e83e5 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 09:22:30 +0800 Subject: [PATCH 3/9] [CI] no need check vm step --- .github/workflows/release.yml | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9094439f6..78a1a92de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,40 +54,10 @@ concurrency: cancel-in-progress: true jobs: - check-vm: - runs-on: [ self-hosted, linux ] - container: - image: modelcloud/gptqmodel:alpine-ci-v1 - outputs: - ip: ${{ steps.get_ip.outputs.ip }} - run_id: ${{ steps.get_ip.outputs.run_id }} - if: ${{ inputs.github_vm == false }} - steps: - - name: Checkout Codes - uses: actions/checkout@v6 - with: - repository: ${{ env.repo }} - ref: ${{ env.ref }} - - - name: Print env - run: | - echo "event name: ${{ github.event_name }}" - echo "repo: ${{ env.repo }}" - echo "ref: ${{ env.ref }}" - echo "upload_release: ${{ inputs.upload_release }}" - echo "upload_pypi: ${{ inputs.upload_pypi }}" - - - name: Select server - id: get_ip - run: | - bash .github/scripts/ci_write_runner_outputs.sh "$RUNNER" "${{ github.run_id }}" - release-source: permissions: contents: write runs-on: [ self-hosted, xeon5 ] - needs: - - check-vm if: ${{ inputs.github_vm == false }} env: UV_TORCH_BACKEND: cu130 @@ -95,7 +65,7 @@ jobs: PYTHON_VERSION: 3.14t UV_PYTHON: 3.14t container: - image: ${{ needs.check-vm.outputs.ip }}:5000/nvidia/cuda:130-ubuntu24.04_0415 + image: 10.0.13.31:5000/nvidia/cuda:130-ubuntu24.04_0415 volumes: - /github/workspace/uv:/opt/uv - /github/workspace/tmp:/opt/uv/tmp From f899eb652fd4277a38be68a8a7db840dc31e2a80 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 09:23:33 +0800 Subject: [PATCH 4/9] [CI] mount entrypoint.sh --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78a1a92de..d9956dd83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,7 @@ jobs: container: image: 10.0.13.31:5000/nvidia/cuda:130-ubuntu24.04_0415 volumes: + - /monster/ci/env/entrypoint.sh:/etc/profile.d/01-entrypoint.sh - /github/workspace/uv:/opt/uv - /github/workspace/tmp:/opt/uv/tmp - /monster/ci/uv/python:/opt/uv/python From add5c80729887bedd9f90fe0ee760874f2388e96 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 09:32:55 +0800 Subject: [PATCH 5/9] [CI] fix uv not found --- .github/scripts/ci_release_test_install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/ci_release_test_install.sh b/.github/scripts/ci_release_test_install.sh index 142429ed2..9a9a17fcd 100755 --- a/.github/scripts/ci_release_test_install.sh +++ b/.github/scripts/ci_release_test_install.sh @@ -4,6 +4,7 @@ set -euo pipefail pkg_name="${1:?package filename is required}" venv_dir="${2:-local_uv_env}" -uv venv "$venv_dir" +python -m venv "$venv_dir" source "$venv_dir/bin/activate" -uv pip install "dist/$pkg_name" torch +# if released on github, no uv was preinstalled, use pip here +pip install "dist/$pkg_name" From 704e99e815a2bc23ae83eedc8ac4b309ad57f9b9 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 09:40:01 +0800 Subject: [PATCH 6/9] [CI] install uv first --- .github/scripts/ci_release_test_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/ci_release_test_install.sh b/.github/scripts/ci_release_test_install.sh index 9a9a17fcd..b28ec9975 100755 --- a/.github/scripts/ci_release_test_install.sh +++ b/.github/scripts/ci_release_test_install.sh @@ -6,5 +6,5 @@ venv_dir="${2:-local_uv_env}" python -m venv "$venv_dir" source "$venv_dir/bin/activate" -# if released on github, no uv was preinstalled, use pip here -pip install "dist/$pkg_name" +pip install uv +uv pip install "dist/$pkg_name" From 59df04e2037492c205ace75155dd2c3ba95ce835 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 09:40:48 +0800 Subject: [PATCH 7/9] [CI] install uv first --- .github/scripts/ci_release_build_sdist.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/ci_release_build_sdist.sh b/.github/scripts/ci_release_build_sdist.sh index 2e5021a7c..cfd6a01bf 100755 --- a/.github/scripts/ci_release_build_sdist.sh +++ b/.github/scripts/ci_release_build_sdist.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -python -m pip install -U build twine setuptools +python -m pip install uv +uv python -m pip install -U build twine setuptools python -m build --sdist From 52352bbf30e335fd07d7690e86b9d0d9c92710cf Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 10:02:50 +0800 Subject: [PATCH 8/9] [CI] fix command --- .github/scripts/ci_release_build_sdist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/ci_release_build_sdist.sh b/.github/scripts/ci_release_build_sdist.sh index cfd6a01bf..42611d583 100755 --- a/.github/scripts/ci_release_build_sdist.sh +++ b/.github/scripts/ci_release_build_sdist.sh @@ -2,5 +2,5 @@ set -euo pipefail python -m pip install uv -uv python -m pip install -U build twine setuptools +uv pip install -U build twine setuptools python -m build --sdist From 384422e7c1893a7a7829339e974f71ee6dc5e379 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 29 Apr 2026 10:08:21 +0800 Subject: [PATCH 9/9] [CI] use py 3.14 --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9956dd83..cabc841ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,8 +62,8 @@ jobs: env: UV_TORCH_BACKEND: cu130 TORCH_VERSION: 2.11.0 - PYTHON_VERSION: 3.14t - UV_PYTHON: 3.14t + PYTHON_VERSION: 3.14 + UV_PYTHON: 3.14 container: image: 10.0.13.31:5000/nvidia/cuda:130-ubuntu24.04_0415 volumes: