Skip to content

Commit b76bbfb

Browse files
committed
fix(scripts): use --type/--exist-ok flags for new hf CLI
The newer hf CLI (>=1.0) renamed `--repo_type` to `--type` (or `--repo-type`) and `--exist_ok` to `--exist-ok`. The old underscore forms now fail with 'No such option'. Verified locally: end-to-end publish of dinov2-small succeeds, repo dinov2-cpp-core/dinov2-small-gguf contains model.gguf. Surfaced by running the script against a real HF_TOKEN per the local test plan; without this fix the workflow would silently fail at the upload step on every monthly cron run.
1 parent 9b27bb2 commit b76bbfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/publish-gguf.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ if [ "${SKIP_UPLOAD:-0}" = "1" ]; then
100100
echo "==> SKIP_UPLOAD=1, not uploading to $REPO_SLUG"
101101
else
102102
echo "==> ensuring HF repo $REPO_SLUG exists"
103-
hf repo create "$REPO_SLUG" --repo_type model --exist_ok
103+
hf repo create "$REPO_SLUG" --type model --exist-ok
104104

105105
echo "==> uploading $GGUF_PATH -> $REPO_SLUG (path: model.gguf)"
106106
hf upload "$REPO_SLUG" "$GGUF_PATH" model.gguf

0 commit comments

Comments
 (0)