[ci] Change macOS version (#9229)

This commit is contained in:
Yaowei Zheng
2025-10-05 02:18:30 +08:00
committed by GitHub
parent 2e2f92701f
commit af8437095a
5 changed files with 12 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ jobs:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-13"
- "macos-latest"
transformers:
- null
include: # test backward compatibility
@@ -75,10 +75,11 @@ jobs:
run: |
python -m pip install "transformers==${{ matrix.transformers }}"
- name: Install transformers to avoid mac os ci errors
if: ${{ matrix.os == 'macos-13' }}
- name: Update accelerate to avoid mac os ci errors (before accelerate 1.11.0)
if: ${{ matrix.os == 'macos-latest' }}
run: |
python -m pip install "transformers<=4.51.3"
python -m pip uninstall -y accelerate
python -m pip install "git+https://github.com/huggingface/accelerate.git"
- name: Cache files
id: hf-hub-cache