diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 0000000..5928771 --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,28 @@ +name: Weekly Snapshot Release +on: + schedule: + - cron: '15 20 * * 0' + workflow_dispatch: {} + +jobs: + create_release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set snapshot tag + id: set_snapshot_tag + run: echo ::set-output name=tag::snapshot-$(date +'%Y-%m-%d') + + - name: Create release + id: create_release + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + tag_name: ${{ steps.set_snapshot_tag.outputs.tag }} + name: ${{ steps.set_snapshot_tag.outputs.tag }} + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docker/Dockerfile b/docker/Dockerfile index 810bb7c..7b14b24 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,8 +11,8 @@ WORKDIR /build RUN --mount=type=cache,target=/root/.cache/pip,rw \ python3 -m venv /build/venv && \ . /build/venv/bin/activate && \ - pip3 install --upgrade pip setuptools wheel && \ - pip3 install torch torchvision torchaudio && \ + pip3 install --upgrade pip setuptools wheel ninja && \ + pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 && \ pip3 install -r requirements.txt # https://developer.nvidia.com/cuda-gpus @@ -31,6 +31,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,rw apt-get update && rm -rf /var/lib/apt/lists/* RUN --mount=type=cache,target=/root/.cache/pip,rw pip3 install virtualenv + RUN mkdir /app WORKDIR /app @@ -42,8 +43,9 @@ RUN test -n "${WEBUI_VERSION}" && git reset --hard ${WEBUI_VERSION} || echo "Usi RUN virtualenv /app/venv RUN --mount=type=cache,target=/root/.cache/pip,rw \ . /app/venv/bin/activate && \ - pip3 install --upgrade pip setuptools wheel && \ - pip3 install torch torchvision torchaudio sentence_transformers xformers + pip3 install --upgrade pip setuptools wheel ninja && \ + pip3 install torch --index-url https://download.pytorch.org/whl/cu118 && \ + pip3 install torchvision torchaudio sentence_transformers xformers # Copy and install GPTQ-for-LLaMa COPY --from=builder /build /app/repositories/GPTQ-for-LLaMa diff --git a/requirements.txt b/requirements.txt index dc7c231..addba22 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6; platform_system != "Darwin" and platform_machine != "x86_64" gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_amd.txt b/requirements_amd.txt index e6078e5..dc73219 100644 --- a/requirements_amd.txt +++ b/requirements_amd.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6 gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_amd_noavx2.txt b/requirements_amd_noavx2.txt index 7b104fb..84c7fb5 100644 --- a/requirements_amd_noavx2.txt +++ b/requirements_amd_noavx2.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6 gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_apple_intel.txt b/requirements_apple_intel.txt index 6c78004..09d16f8 100644 --- a/requirements_apple_intel.txt +++ b/requirements_apple_intel.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6 gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_apple_silicon.txt b/requirements_apple_silicon.txt index 9e160f9..288be50 100644 --- a/requirements_apple_silicon.txt +++ b/requirements_apple_silicon.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6 gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_cpu_only.txt b/requirements_cpu_only.txt index 49eb4f1..cd79d86 100644 --- a/requirements_cpu_only.txt +++ b/requirements_cpu_only.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6 gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_cpu_only_noavx2.txt b/requirements_cpu_only_noavx2.txt index 35e1473..2d99e4e 100644 --- a/requirements_cpu_only_noavx2.txt +++ b/requirements_cpu_only_noavx2.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6 gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_noavx2.txt b/requirements_noavx2.txt index d5e4ef5..576efca 100644 --- a/requirements_noavx2.txt +++ b/requirements_noavx2.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6; platform_system != "Darwin" and platform_machine != "x86_64" gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.* diff --git a/requirements_nowheels.txt b/requirements_nowheels.txt index f165523..283a369 100644 --- a/requirements_nowheels.txt +++ b/requirements_nowheels.txt @@ -5,7 +5,7 @@ einops exllamav2==0.0.6 gradio==3.47.* markdown -numpy==1.24 +numpy==1.24.* optimum==1.13.1 pandas peft==0.5.*