name, description, and tags fields are the metadata of Run. They should be ideally represent the specific characteristics or purposes of your run for better identification.
Name
Type
Required
Description
name
string
Required
The name of the run.
description
string
Optional
The description of the run.
tags
list
Optional
The tags of the run.
Specify run metadata
name: stable-diffusiondescription: This is the inference example of stable diffusion.tags:-"best"-"A100-80g"-"20epochs"
The image field is a string that specifies the container image to be used in the run. This is typically a Docker image that includes all the necessary dependencies and environment for your machine learning model.
Name
Type
Required
Description
image
string or map
Requried
Container image url or map of url and credential_name.
url
string
Optional
Container image url.
credential_name
string
Optional
Registered credential name at VESSL for private image usage.
image: quay.io/vessl-ai/torch:2.3.1-cuda12.1-r5
You can list available VESSL-managed images with the CLI command: vessl image list.
There are three type of volumes: import, mount, and export. Each field is a map that specifies a target path as a key and a source information as a value. The value is either a simple string with prefix or another map that holds more detailed information.
Import
The import type signifies that the data will be downloaded from the source to a target path in the running container.
Prefix
Type
Required
Description
git://
string
Optional
Import a git repository. The repository will be cloned into the specified target path when container starts.
The run field is a list that contains commands to be run in the container. Each item in the list is a map with the following keys. run could be empty if it’s an interactive run.
The interactive field is used to specify if the run allows interactive communication with the user. It provides multiple ways to interact with the container during the run, such as JupyterLab, SSH, or a custom service via specified ports.
Name
Type
Required
Description
interactive
map
Optional
Mark run as an interactive type that includes max_runtime, jupyter, and idle_timeout
max_runtime
string
Required
The amount of time to run. Set 0 for infintie use.
jupyter
map
Required
Jupyter configurations that includes idle_timeout
idle_timeout
string
Required
The amount of time a server can be inactive before it will be culled.
The env field is a map that specifies the environment variables for the run. Each key-value pair in this map represents an environment variable and its value.
Name
Type
Required
Description
env
map
Optional
Key-value pairs for environment variables in the run container.