From c02a5475eafb82f20ea297bdf49cba632e6c6080 Mon Sep 17 00:00:00 2001 From: OlivierDehaene <23298448+OlivierDehaene@users.noreply.github.com> Date: Fri, 3 Mar 2023 17:44:50 +0100 Subject: [PATCH] enable hf_transfer on tests --- .github/workflows/tests.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 27caff11..476ae443 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -60,7 +60,7 @@ jobs: - name: Run server tests run: | pip install pytest - pytest -sv server/tests + HF_HUB_ENABLE_HF_TRANSFER=1 pytest -sv server/tests - name: Run Rust tests run: | cargo test diff --git a/Makefile b/Makefile index 08217730..cf7b8675 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ integration-tests: install-router install-launcher cargo test python-tests: - cd server && pytest tests + cd server && HF_HUB_ENABLE_HF_TRANSFER=1 pytest tests run-bloom-560m: text-generation-launcher --model-id bigscience/bloom-560m --num-shard 2