Edit on GitHub

clone

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

Synopsis

usage: mlem clone [options] uri target

arguments:
URI     URI to object you want to clone  [required]
TARGET  Path to store the downloaded object.  [required]

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, --project TEXT: Path to MLEM project [default: (none)]
  • --rev TEXT: Repo revision to use [default: (none)]
  • --target-project, --tp TEXT: Project to save target to [default: (none)]
  • -e, --external: Save result not in .mlem, but directly in project
  • --link / --no-link: Whether to create link for output in .mlem directory
  • --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