OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Use legacy HUGGINGFACE_HUB_CACHE variable in addition to the documented HF_HUB_CACHE (#32286)
Andrey Babushkin177cf8e4a654
diff --git a/.github/workflows/job_jax_layer_tests.yml b/.github/workflows/job_jax_layer_tests.ymlindex 9ac1f58073d..017501e8a72 100644--- a/.github/workflows/job_jax_layer_tests.yml+++ b/.github/workflows/job_jax_layer_tests.yml@@ -58,13 +58,13 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:@@ -74,11 +74,12 @@ jobs:- name: Setup Variablesrun: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ echo "HUGGINGFACE_HUB_CACHE=$HF_HUB_CACHE" >> "$GITHUB_ENV"- name: Install OpenVINO dependencies (mac)if: runner.os == 'macOS'run: brew install pigz-+- name: Extract OpenVINO packages (Linux, macOS)if: runner.os != 'Windows'run: pigz -dc openvino_tests.tar.gz | tar -xf - -vdiff --git a/.github/workflows/job_jax_models_tests.yml b/.github/workflows/job_jax_models_tests.ymlindex 8146ed89195..dc484717c87 100644--- a/.github/workflows/job_jax_models_tests.yml+++ b/.github/workflows/job_jax_models_tests.yml@@ -54,13 +54,13 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:@@ -76,6 +76,7 @@ jobs:- name: Setup Variablesrun: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ echo "HUGGINGFACE_HUB_CACHE=$HF_HUB_CACHE" >> "$GITHUB_ENV"- name: Extract OpenVINO packages and testsrun: pigz -dc openvino_tests.tar.gz | tar -xf - -vdiff --git a/.github/workflows/job_onnx_models_tests.yml b/.github/workflows/job_onnx_models_tests.ymlindex 8cae9bc4e9f..4e4147f6a36 100644--- a/.github/workflows/job_onnx_models_tests.yml+++ b/.github/workflows/job_onnx_models_tests.yml@@ -57,26 +57,27 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_testspath: ${{ env.INSTALL_DIR }}-+- name: Extract OpenVINO testsrun: pigz -dc openvino_tests.tar.gz | tar -xf - -vworking-directory: ${{ env.INSTALL_DIR }}-+- name: Setup Variablesrun: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ echo "HUGGINGFACE_HUB_CACHE=$HF_HUB_CACHE" >> "$GITHUB_ENV"echo "MODELS_SHARE_PATH=/mount/testdata$((GITHUB_RUN_NUMBER % NUMBER_OF_REPLICAS))" >> "$GITHUB_ENV"# Issue 148922diff --git a/.github/workflows/job_pytorch_fx_layer_tests.yml b/.github/workflows/job_pytorch_fx_layer_tests.ymlindex d8c47796205..7c14b4174dd 100644--- a/.github/workflows/job_pytorch_fx_layer_tests.yml+++ b/.github/workflows/job_pytorch_fx_layer_tests.yml@@ -56,13 +56,13 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:@@ -71,7 +71,9 @@ jobs:- name: Setup HuggingFace Cache Directory (Windows)if: runner.os == 'Windows'- run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"+ run: |+ Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"+ Add-Content -Path $env:GITHUB_ENV -Value "HUGGINGFACE_HUB_CACHE=C:\\mount\\caches\\huggingface"- name: Install OpenVINO dependencies (mac)if: runner.os == 'macOS'diff --git a/.github/workflows/job_pytorch_layer_tests.yml b/.github/workflows/job_pytorch_layer_tests.ymlindex daf64c29221..02fd6cb2817 100644--- a/.github/workflows/job_pytorch_layer_tests.yml+++ b/.github/workflows/job_pytorch_layer_tests.yml@@ -58,13 +58,13 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:@@ -74,6 +74,7 @@ jobs:- name: Setup Variablesrun: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ echo "HUGGINGFACE_HUB_CACHE=$HF_HUB_CACHE" >> "$GITHUB_ENV"- name: Install OpenVINO dependencies (mac)if: runner.os == 'macOS'diff --git a/.github/workflows/job_pytorch_models_tests.yml b/.github/workflows/job_pytorch_models_tests.ymlindex c053e0794ed..7b56c03a1d2 100644--- a/.github/workflows/job_pytorch_models_tests.yml+++ b/.github/workflows/job_pytorch_models_tests.yml@@ -52,13 +52,13 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:@@ -72,7 +72,9 @@ jobs:path: ${{ env.INSTALL_DIR }}- name: Setup Variables- run: echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ run: |+ echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ echo "HUGGINGFACE_HUB_CACHE=$HF_HUB_CACHE" >> "$GITHUB_ENV"- name: Extract OpenVINO artifactsrun: pigz -dc openvino_tests.tar.gz | tar -xf - -vdiff --git a/.github/workflows/job_tensorflow_layer_tests.yml b/.github/workflows/job_tensorflow_layer_tests.ymlindex 31554d99c2b..5c2dab2cb12 100644--- a/.github/workflows/job_tensorflow_layer_tests.yml+++ b/.github/workflows/job_tensorflow_layer_tests.yml@@ -57,13 +57,13 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:@@ -79,11 +79,12 @@ jobs:- name: Setup Variablesrun: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ echo "HUGGINGFACE_HUB_CACHE=$HF_HUB_CACHE" >> "$GITHUB_ENV"- name: Install OpenVINO dependencies (mac)if: ${{ runner.os == 'macOS' }}run: brew install pigz-+- name: Extract OpenVINO packages (Linux, macOS)if: ${{ runner.os != 'Windows' }}run: pigz -dc openvino_tests.tar.gz | tar -xf - -vdiff --git a/.github/workflows/job_tensorflow_models_tests.yml b/.github/workflows/job_tensorflow_models_tests.ymlindex cf8b8e9b777..9f78ef2856b 100644--- a/.github/workflows/job_tensorflow_models_tests.yml+++ b/.github/workflows/job_tensorflow_models_tests.yml@@ -52,13 +52,13 @@ jobs:.github/actionssparse-checkout-cone-mode: falsesubmodules: 'false'-+- name: Download OpenVINO artifacts (wheels)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:name: openvino_wheelspath: ${{ env.INSTALL_DIR }}-+- name: Download OpenVINO artifacts (tests)uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415with:@@ -70,16 +70,17 @@ jobs:with:name: openvino_tokenizers_wheelpath: ${{ env.INSTALL_DIR }}-+- name: Setup Variablesrun: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"+ echo "HUGGINGFACE_HUB_CACHE=$HF_HUB_CACHE" >> "$GITHUB_ENV"echo "TFHUB_CACHE_DIR=/mount/testdata$((GITHUB_RUN_NUMBER % NUMBER_OF_REPLICAS))/tfhub_models" >> "$GITHUB_ENV"- name: Extract OpenVINO artifacts (Linux and macOS)run: pigz -dc openvino_tests.tar.gz | tar -xf - -vworking-directory: ${{ env.INSTALL_DIR }}-+- name: Extract OpenVINO artifacts (Windows)if: ${{ runner.os == 'Windows' }}run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose