Signature
Parameters
Name of the GPU model, replace spaces with underscores
Number of GPUs required
Name of the image to use for instance
Geographical location of the instance
Disk space required in GB
Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o ‘num_gpus,total_flops-’. default=‘score-’
docker login arguments for private repo authentication, surround with ”
label to set on the instance
filename to use as onstart script
contents of onstart script as single argument
override entrypoint for args launch instance
Launch as an ssh instance type
Launch as a jupyter instance instead of an ssh instance
Use (faster) direct connections for jupyter & ssh
For runtype ‘jupyter’, directory in instance to use to launch jupyter. Defaults to image’s working directory
For runtype ‘jupyter’, Launch instance with jupyter lab
Workaround for images with locale problems: install and generate locales before instance launch, and set locale to C.UTF-8
Workaround for images with locale problems: set python’s locale to C.UTF-8
env variables and port mapping options, surround with ”
list of arguments passed to container ENTRYPOINT. Onstart is recommended for this purpose. (must be last argument)
Return error if scheduling fails (rather than creating a stopped instance)
template hash which contains all relevant information about an instance. This can be used as a replacement for other parameters describing the instance configuration
Returns
dict