Subcommands
List models
List the models in your model repository:ls as a shorthand for list.
List flags
Add a model
Add a model by mirroring a Hugging Face repository.--name is the name the model gets in your repository, and --huggingface-model is the source:
--wait-for-hash. To also delete the local files once the upload is confirmed, add --delete-my-model-files-after-upload:
--huggingface-model can’t be combined with the local upload flags, such as --model-path.
Add flags
Delete the uploaded
--model-path files once the model version is confirmed deployable. Requires --wait-for-hash.Remove a model
Remove a model from your repository. Both--name and --owner are required:
rm or delete as a shorthand for remove.
A model that a Serverless endpoint still references can’t be removed. The command fails and lists the endpoints that use it. Detach the model from each endpoint first, then remove it: