瀏覽代碼

fix huggingface cache

Alex Cheema 1 年之前
父節點
當前提交
6c871562e4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .github/workflows/test.yml

+ 3 - 3
.github/workflows/test.yml

@@ -82,10 +82,10 @@ jobs:
     - name: Cache huggingface hub models
       uses: actions/cache@v3
       with:
-        path: ~/.cache/huggingface
-        key: ${{ runner.os }}-huggingface-${{ hashFiles('~/.cache/huggingface/hub/**/*') }}
+        path: ~/.cache/huggingface/hub
+        key: ${{ runner.os }}-huggingface-hub-${{ hashFiles('~/.cache/huggingface/hub/**/*') }}
         restore-keys: |
-          ${{ runner.os }}-huggingface-
+          ${{ runner.os }}-huggingface-hub-
 
     - name: Cache tinygrad downloaded models
       uses: actions/cache@v3