Skip to content

Commit 315c0c7

Browse files
committed
Merge remote-tracking branch 'origin/hf-gguf-pipeline'
2 parents a1cd7c4 + 9c5f919 commit 315c0c7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/convert-and-publish-gguf.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,20 @@ jobs:
106106

107107
- name: Install dependencies
108108
if: env.SKIP != 'true'
109-
run: uv sync
109+
run: |
110+
uv sync
111+
uv tool install 'huggingface_hub[cli]'
110112
111113
- name: Convert to GGUF
112114
if: env.SKIP != 'true'
113115
run: uv run python scripts/dinov2-to-gguf.py --model_name ${{ matrix.hf_id }}
114-
115116
- name: Ensure target repo exists
116117
if: env.SKIP != 'true'
118+
run: hf repo create dinov2-cpp-core/${{ matrix.variant }}-gguf --repo_type model --exist_ok
119+
120+
- name: Upload GGUF to Hugging Face
121+
if: env.SKIP != 'true'
122+
run: hf upload dinov2-cpp-core/${{ matrix.variant }}-gguf ./ggml-model.gguf model.gguf
117123
run: uv run hf repo create dinov2-cpp-core/${{ matrix.variant }}-gguf --repo_type model --exist_ok
118124

119125
- name: Upload GGUF to Hugging Face

0 commit comments

Comments
 (0)