Check out our new VS Code extension for experiment tracking and model development
Copy a MLEM Object from uri
and
saves a copy of it to target
path.
usage: mlem clone [options] uri target
arguments:
URI URI to object you want to clone [required]
TARGET Path to store the downloaded object. [required]
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.
-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.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
...