hf upload myuser/new-repo ./model.safetensors --private

Category: AI/ML Tooling

hf upload myuser/new-repo ./model.safetensors --private

Upload and create a private repo

Creates the private repo myuser/new-repo if it does not exist, then uploads model.safetensors into it in one command. Private repos are only visible to you and people you explicitly grant access to. Remove --private for a public upload.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.