Skip to main content

model

Manage the file-based models in your model registry.

These actions affect the model registry on the current branch unless otherwise specified.

Parameters

modelbit model {action} [parameters]
  • {action}: Can be one of add or get
  • --name or -n: The name of the model in the registry
  • --path or -p: The local path for reading or writing the model file
  • --branch or -b: Optional. Sets the git branch for the command. If run from outside of a Modelbit git directory the default value is main. If run from within a Modelbit git directory then the current branch is used.

Examples

Uploading a model to the registry

Upload model.gguf to the registry as my_model:

modelbit model add --name my_model --path path/to/model.gguf

Downloading a model from the registry

Download my_model from the registry and store it as model.gguf:

modelbit model get --name my_model --path path/to/store/model.gguf

See also