Skip to content

Commit afb3f86

Browse files
juntaoclaude
andcommitted
Fix huggingface-cli not found in CI
pip-installed scripts may not be on PATH in ubuntu-latest runners. Use `python -m huggingface_hub.cli` instead of `huggingface-cli`. Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 82a0c49 commit afb3f86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
HF_TOKEN: ${{ secrets.HF_TOKEN }}
5555
run: |
5656
pip install --quiet huggingface_hub sentencepiece
57-
huggingface-cli download CohereLabs/cohere-transcribe-03-2026 \
57+
python -m huggingface_hub.cli download CohereLabs/cohere-transcribe-03-2026 \
5858
--local-dir "$MODEL_DIR" \
5959
--token "$HF_TOKEN"
6060
python tools/extract_vocab.py --model_dir "$MODEL_DIR"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
HF_TOKEN: ${{ secrets.HF_TOKEN }}
3232
run: |
3333
pip install -q huggingface_hub sentencepiece
34-
huggingface-cli download CohereLabs/cohere-transcribe-03-2026 \
34+
python -m huggingface_hub.cli download CohereLabs/cohere-transcribe-03-2026 \
3535
--include "tokenizer.model" \
3636
--local-dir models/cohere-transcribe-03-2026 \
3737
--token "$HF_TOKEN"

0 commit comments

Comments
 (0)