From ee8ae74ca3766cd38fd10b454c268c46b2caaf75 Mon Sep 17 00:00:00 2001 From: abetlen Date: Wed, 3 Jun 2026 02:09:31 -0700 Subject: [PATCH 1/2] ci: cache embedding test model --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 83a91a8ed..051693995 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,7 +14,9 @@ env: RECURRENT_MODEL_FILE: mamba-130m-hf.Q2_K.gguf HYBRID_REPO_ID: tiiuae/Falcon-H1-Tiny-90M-Instruct-GGUF HYBRID_MODEL_FILE: Falcon-H1-Tiny-90M-Instruct-Q2_K.gguf - MODEL_CACHE_KEY: qwen35-q8-mamba130m-q2-falconh1tiny-q2 + EMBEDDING_REPO_ID: CompendiumLabs/bge-small-en-v1.5-gguf + EMBEDDING_MODEL_FILE: bge-small-en-v1.5-q4_k_m.gguf + MODEL_CACHE_KEY: qwen35-q8-mamba130m-q2-falconh1tiny-q2-bge-small-q4 jobs: download-model: @@ -31,6 +33,7 @@ jobs: hf download ${{ env.REPO_ID }} ${{ env.MODEL_FILE }} hf download ${{ env.RECURRENT_REPO_ID }} ${{ env.RECURRENT_MODEL_FILE }} hf download ${{ env.HYBRID_REPO_ID }} ${{ env.HYBRID_MODEL_FILE }} + hf download ${{ env.EMBEDDING_REPO_ID }} ${{ env.EMBEDDING_MODEL_FILE }} - name: Cache model uses: actions/cache@v5 with: From 5a0565a70bd73e2071aaf5dc1926d24759da9a3c Mon Sep 17 00:00:00 2001 From: abetlen Date: Wed, 3 Jun 2026 02:12:07 -0700 Subject: [PATCH 2/2] ci: restore previous model cache --- .github/workflows/test.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 051693995..d79896767 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -28,17 +28,19 @@ jobs: python-version: "3.9" - name: Install huggingface-hub run: pip install huggingface-hub + - name: Restore model cache + uses: actions/cache@v5 + with: + path: ~/.cache/huggingface/hub + key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }} + restore-keys: | + ${{ runner.os }}-model-qwen35-q8-mamba130m-q2-falconh1tiny-q2 - name: Download model run: | hf download ${{ env.REPO_ID }} ${{ env.MODEL_FILE }} hf download ${{ env.RECURRENT_REPO_ID }} ${{ env.RECURRENT_MODEL_FILE }} hf download ${{ env.HYBRID_REPO_ID }} ${{ env.HYBRID_MODEL_FILE }} hf download ${{ env.EMBEDDING_REPO_ID }} ${{ env.EMBEDDING_MODEL_FILE }} - - name: Cache model - uses: actions/cache@v5 - with: - path: ~/.cache/huggingface/hub - key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }} build-linux: needs: download-model