Skip to content

Commit e3d52a3

Browse files
authored
Merge branch 'main' into abetlen/setup-ruff
2 parents a643113 + 9f661ff commit e3d52a3

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎.github/workflows/test.yaml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install huggingface-hub
2323
run: pip install huggingface-hub
2424
- name: Download model
25-
run: huggingface-cli download ${{ env.REPO_ID }} ${{ env.MODEL_FILE }}
25+
run: hf download ${{ env.REPO_ID }} ${{ env.MODEL_FILE }}
2626
- name: Cache model
2727
uses: actions/cache@v4
2828
with:
@@ -96,7 +96,7 @@ jobs:
9696
9797
build-macos:
9898
needs: download-model
99-
runs-on: macos-13
99+
runs-on: macos-15
100100
strategy:
101101
matrix:
102102
python-version: ["3.9", "3.10", "3.11", "3.12"]
@@ -127,17 +127,16 @@ jobs:
127127
run: |
128128
python3 -m pip install --upgrade pip
129129
python3 -m pip install uv
130-
python3 -m uv pip install -e .[all] --verbose
131-
CMAKE_ARGS="-DLLAMA_METAL=off" python3 -m uv pip install .[all] --verbose
130+
CMAKE_ARGS="-DGGML_NATIVE=off" python3 -m uv pip install -e .[all] --verbose
132131
shell: bash
133132

134133
- name: Test with pytest
135134
run: |
136135
python3 -m pytest
137136
138-
build-macos-metal:
137+
build-macos-intel:
139138
needs: download-model
140-
runs-on: macos-13
139+
runs-on: macos-15-intel
141140
steps:
142141
- uses: actions/checkout@v4
143142
with:
@@ -163,7 +162,7 @@ jobs:
163162
- name: Install dependencies
164163
run: |
165164
python3 -m pip install --upgrade pip
166-
CMAKE_ARGS="-DLLAMA_METAL=on" python3 -m pip install .[all] --verbose
165+
python3 -m pip install .[all] --verbose
167166
shell: bash
168167

169168
- name: Test with pytest

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
- chore(dev): Add Ruff-based formatting and a safe lint baseline, and run it in CI for pull requests and pushes to `main`
11+
- fix(ci): Run macOS CI on supported Apple Silicon and Intel runners by @abetlen in #2150
12+
- fix(ci): Use the `hf` CLI instead of the deprecated `huggingface-cli` name in GitHub Actions and docs by @abetlen in #2149
1113

1214
## [0.3.16]
1315

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ llm = Llama.from_pretrained(
328328
)
329329
```
330330

331-
By default [`from_pretrained`](https://llama-cpp-python.readthedocs.io/en/latest/api-reference/#llama_cpp.Llama.from_pretrained) will download the model to the huggingface cache directory, you can then manage installed model files with the [`huggingface-cli`](https://huggingface.co/docs/huggingface_hub/en/guides/cli) tool.
331+
By default [`from_pretrained`](https://llama-cpp-python.readthedocs.io/en/latest/api-reference/#llama_cpp.Llama.from_pretrained) will download the model to the huggingface cache directory, you can then manage installed model files with the [`hf`](https://huggingface.co/docs/huggingface_hub/en/guides/cli) tool.
332332

333333
### Chat Completion
334334

0 commit comments

Comments
 (0)