We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c805fc3 commit 97b5561Copy full SHA for 97b5561
.github/workflows/cache-hf-model.yml
@@ -35,10 +35,13 @@ jobs:
35
with:
36
python-version: "3.12"
37
38
+ - name: Checkout repository
39
+ uses: actions/checkout@v4
40
+
41
- name: Install dependencies
42
run: |
- pip install torch "huggingface_hub[cli]"
- pip install -U transformers
43
+ TRANSFORMERS_VERSION=$(grep -E 'transformers[[:space:]]*[=><!~]+' pyproject.toml | sed -E 's/.*transformers[[:space:]]*([=><!~]+)[[:space:]]*"?([0-9a-zA-Z\.\-\*]+)"?.*/\1\2/')
44
+ pip install torch transformers${TRANSFORMERS_VERSION} "huggingface_hub[cli]"
45
46
- name: Log in to HuggingFace
47
env:
0 commit comments