From 76484fdc66b9bc571d950cb38c7f36062ae350c7 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Tue, 18 Mar 2025 15:31:43 +0100 Subject: [PATCH] Minor fixes. --- .github/workflows/nix_build.yaml | 2 +- tgi-entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix_build.yaml b/.github/workflows/nix_build.yaml index 33c8ff14..5a10bd39 100644 --- a/.github/workflows/nix_build.yaml +++ b/.github/workflows/nix_build.yaml @@ -47,7 +47,7 @@ jobs: if [ "${{ github.event_name }}" = "pull_request" ]; then export TAG=nix-sha-${{ env.GITHUB_SHA_SHORT }} else - export TAG=nix-{{ version }} + export TAG=nix-${{ github.ref_name }} fi export IMAGE=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:$TAG nix-shell -p skopeo --command "skopeo --insecure-policy copy docker-archive:$(readlink -f ./result) docker://$IMAGE --dest-compress-format zstd" diff --git a/tgi-entrypoint.sh b/tgi-entrypoint.sh index cd551ed5..32eccea5 100755 --- a/tgi-entrypoint.sh +++ b/tgi-entrypoint.sh @@ -2,5 +2,5 @@ ldconfig 2>/dev/null || echo 'unable to refresh ld cache, not a big deal in most cases' -source ./.venv/bin/activate +source /usr/src/.venv/bin/activate exec text-generation-launcher $@