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