title: Create a new experiment
To create an experiment, first specify a few options such as cluster, resource, image, and start command. Here is an explanation of the config options.
<img style={{ borderRadius: '0.5rem' }} src="/images/experiment/create/1_experiment.jpeg" />
Cluster & Resource (Required)
You can run your experiment on either VESSL's managed cluster or your custom cluster. Start by selecting a cluster.
Once you selected VESSL's managed cluster, you can view a list of available resources under the dropdown menu.<img style={{ borderRadius: '0.5rem' }}
src="/images/experiment/create/2_cluster-managed.png"
/>
You also have an option to use spot instances.
Check out the full list of resource types and corresponding prices:
Your custom cluster can be either on-premise or on-cloud. For on-premise clusters, you can specify the processor type and resource requirements. The experiment will be assigned automatically to an available node based on the input resource requirements.
<img style={{ borderRadius: '0.5rem' }}
src="/images/experiment/create/3_cluster-custom.png"
/>
Distribution Mode (Optional)
You have an option to use multi-node distributed training. The default option is single-node training.
<img style={{ borderRadius: '0.5rem' }} src="/images/experiment/create/4_distributed.png" />
Image (Required)
Select the Docker image that the experiment container will use. You can either use a managed image provided by VESSL or your own custom image.
Managed images are pre-pulled images provided by VESSL. You can find the available image tags at VESSL's [Amazon ECR Public Gallery](https://gallery.ecr.aws/vessl/kernels)_._<img style={{ borderRadius: '0.5rem' }}
src="/images/experiment/create/5_image-managed.png"
/>
You can pull your own custom images from either [Docker Hub](https://hub.docker.com) or [Amazon ECR](https://aws.amazon.com/ecr/).
#### Public Images
To pull images from the public Docker registry, simply pass the image URL. The example below demonstrates pulling the official TensorFlow development GPU image from Docker Hub. 
<img style={{ borderRadius: '0.5rem' }}
src="/images/experiment/create/6_image-custom.png"
/>
#### Private Images
To pull images from the private Docker registry, you should first integrate your credentials in organization settings.
Then, check the private image checkbox, fill in the image URL, and select the credential.
<img style={{ borderRadius: '0.5rem' }}
src="/images/experiment/create/7_image-custom.png"
/>
Start Command (Required)
Specify the start command in the experiment container. Write a running script with command-line arguments just as you are using a terminal. You can put multiple commands by using the &&
command or a new line separation.
<img style={{ borderRadius: '0.5rem' }} src="/images/experiment/create/8_command.png" />
Volume (Optional)
You can mount the project, dataset, and files to the experiment container.
<img style={{ borderRadius: '0.5rem' }} src="/images/experiment/create/9_volume.png" />
Learn more about volume mount on the following page:
Hyperparameters
You can set hyperparameters as key-value pairs. The given hyperparameters are automatically added to the container as environment variables with the given key and value. A typical experiment will include hyperparameters like learning_rate
and optimizer
.
<img style={{ borderRadius: '0.5rem' }} src="/images/experiment/create/10_hyperparam.png" />
You can also use them at runtime by appending them to the start command as follows.
python main.py \
--learning-rate $learning_rate \
--optimizer $optimizer
Termination Protection
Checking the termination protection option puts experiments in idle once it completes running, so you to access the container of a finished experiment.
<img style={{ borderRadius: '0.5rem' }} src="/images/experiment/create/11_termination.png" />