Model API

read_model_repository

vessl.read_model_repository(
   repository_name: str, **kwargs
)

Read model repository in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

Example

vessl.read_model_repository(
    repository_name="Transformer-ImageNet",
)

list_model_repositories

vessl.list_model_repositories(
   **kwargs
)

List model repositories in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Example


create_model_repository

Create model repository in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • name (str) : Model repository name.

  • description (str) : Model repository description. Defaults to None.

Example


update_model_repository

Update model repository in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • name (str) : Model repository name.

  • description (str) : Model repository description to update.

Example


delete_model_repository

Delete model repository in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • name (str) : Model repository name.

Example


read_model

Read model in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

  • model_number (int) : Model number.

Example


list_models

List models in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

Example


create_model

Create model in the default organization. If you want to override the default organization, then pass organization_name as **kwargs. If the given model repository name does not exist, then create one with the given repository_description. Otherwise, create a model in the existing model repository.

Args

  • repository_name (str) : Model repository name.

  • repository_description (str) : Model repository description. Defaults to None

  • experiment_id (int) : Pass experiment ID if the model is sourced from the experiment outputs. Defaults to None.

  • model_name (str) : Model name is unique and optional. Defaults to None.

  • paths (List[str]) : Paths for creating model. Paths could be sub paths of experiment output files or local file paths. Defaults to root.

Example


update_model

Update model in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

  • model_number (int) : Model number.

  • name (str) : Model name to update.

Example


delete_model

Delete model in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

  • model_number (int) : Model number.

Example


list_model_volume_files

List model files in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

  • model_number (int) : Model number.

  • need_download_url (bool) : True if you need a download URL, False otherwise. Defaults to False.

  • path (str) : Directory path to list. Defaults to root.

  • recursive (bool) : True if file is a directory, False otherwise. Defaults to False.

Example


upload_model_volume_file

Upload file to the model in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

  • model_number (int) : Model number.

  • source_path (str) : Local source path.

  • dest_path (str) : Destination path within the model.

Example


download_model_volume_file

Download a model in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

  • model_number (int) : Model number.

  • source_path (str) : Source path within the model

  • dest_path (str) : Local destination path

Example


delete_model_volume_file

Delete the model volume file in the default organization. If you want to override the default organization, then pass organization_name as **kwargs.

Args

  • repository_name (str) : Model repository name.

  • model_number (int) : Model number.

  • path (str) : File path within the model

Example

Last updated