feat(cli): pin Hugging Face revisions on remote-uploads create - #556
feat(cli): pin Hugging Face revisions on remote-uploads create#556nbroad1881 wants to merge 1 commit into
Conversation
The uploads API has no revision field; hermes reads @commit|tag|branch from the source URL. Add --revision so callers can pin without encoding it by hand.
Broly Security ScanCaution Note Summary 5 actionable finding(s) in this PR
All actionable items are in the table below.
Dismiss false positivesTick a box to dismiss the finding; untick it to bring the finding back. That is the same as replying
Note Re-scan this PR anytime with
|
|
@nbroad1881 if I'm understanding this correctly - this is more of a nice to have than a new feature because you can use embed the revision in the URL you pass to |
Summary
@<commit|tag|branch>on the remote URL.--revisiontotg beta models remote-uploads createso callers can pin a commit, tag, or branch without encoding it by hand.@…/--revisionvalues and--revisionon non-Hugging Face sources (presigned archives).Test plan
uv run pytest tests/cli/test_beta_models.py::TestBetaModelsRemoteUploadstg beta models remote-uploads create <model-id> --from https://huggingface.co/org/model --revision <sha>--from …@rev-a --revision rev-bfails--revisionis rejected for a presigned S3/GCS URL