Edit on GitHub

clone

Copy a MLEM Object from uri and saves a copy of it to target path.

Synopsis

usage: mlem clone [-p <path>] [--rev <commitish>]
                  [--tp <path>] [-h]
                  uri target

arguments:
  uri              URI to object you want to clone
  target           Path to store the downloaded object.

Description

Cloning a MLEM Object from source to target destination creates an independent copy of the original object. This can be useful in cases where you need the model without cloning the whole repository.

Options

  • -p <path>, --project <path> - Path to MLEM project [default: (none)]
  • --rev <commitish> - Repo revision to use [default: (none)]
  • --tp <path>, --target-project <path> - Project to save target to [default: (none)]
  • -h, --help - Show this message and exit.

Examples

Copy a remote model (in GitHub) to a local directory

$ mlem clone rf --project https://github.com/iterative/example-mlem-get-started --rev main mymodel
...

Copy a remote model from a GitHub repo, to a different, remote, S3 MLEM project

$ mlem clone rf --project https://github.com/iterative/example-mlem-get-started --rev main mymodel --tp s3://mybucket/mymodel
...
Content

šŸ› Found an issue? Let us know! Or fix it:

Edit on GitHub

ā“ Have a question? Join our chat, we will help you:

Discord Chat