1414 RECURRENT_MODEL_FILE : mamba-130m-hf.Q2_K.gguf
1515 HYBRID_REPO_ID : tiiuae/Falcon-H1-Tiny-90M-Instruct-GGUF
1616 HYBRID_MODEL_FILE : Falcon-H1-Tiny-90M-Instruct-Q2_K.gguf
17- MODEL_CACHE_KEY : qwen35-q8-mamba130m-q2-falconh1tiny-q2
17+ EMBEDDING_REPO_ID : CompendiumLabs/bge-small-en-v1.5-gguf
18+ EMBEDDING_MODEL_FILE : bge-small-en-v1.5-q4_k_m.gguf
19+ MODEL_CACHE_KEY : qwen35-q8-mamba130m-q2-falconh1tiny-q2-bge-small-q4
1820
1921jobs :
2022 download-model :
@@ -26,16 +28,19 @@ jobs:
2628 python-version : " 3.9"
2729 - name : Install huggingface-hub
2830 run : pip install huggingface-hub
31+ - name : Restore model cache
32+ uses : actions/cache@v5
33+ with :
34+ path : ~/.cache/huggingface/hub
35+ key : ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
36+ restore-keys : |
37+ ${{ runner.os }}-model-qwen35-q8-mamba130m-q2-falconh1tiny-q2
2938 - name : Download model
3039 run : |
3140 hf download ${{ env.REPO_ID }} ${{ env.MODEL_FILE }}
3241 hf download ${{ env.RECURRENT_REPO_ID }} ${{ env.RECURRENT_MODEL_FILE }}
3342 hf download ${{ env.HYBRID_REPO_ID }} ${{ env.HYBRID_MODEL_FILE }}
34- - name : Cache model
35- uses : actions/cache@v4
36- with :
37- path : ~/.cache/huggingface/hub
38- key : ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
43+ hf download ${{ env.EMBEDDING_REPO_ID }} ${{ env.EMBEDDING_MODEL_FILE }}
3944
4045 build-linux :
4146 needs : download-model
5459 python-version : ${{ matrix.python-version }}
5560 cache : ' pip'
5661 - name : Restore model cache
57- uses : actions/cache@v4
62+ uses : actions/cache@v5
5863 with :
5964 path : ~/.cache/huggingface/hub
6065 key : ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
8691 cache : ' pip'
8792
8893 - name : Restore model cache
89- uses : actions/cache@v4
94+ uses : actions/cache@v5
9095 with :
9196 path : ~/.cache/huggingface/hub
9297 key : ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
@@ -126,7 +131,7 @@ jobs:
126131 python3 -c "import platform; print(platform.machine(), platform.architecture())"
127132
128133 - name : Restore model cache
129- uses : actions/cache@v4
134+ uses : actions/cache@v5
130135 with :
131136 path : ~/.cache/huggingface/hub
132137 key : ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
@@ -162,7 +167,7 @@ jobs:
162167 python3 -c "import platform; print(platform.machine(), platform.architecture())"
163168
164169 - name : Restore model cache
165- uses : actions/cache@v4
170+ uses : actions/cache@v5
166171 with :
167172 path : ~/.cache/huggingface/hub
168173 key : ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
0 commit comments