in launcher/nemo/stages.py [0:0]
def get_instance_type(cfg):
instance_type = None
if cfg.get("instance_type"):
instance_type = cfg.instance_type
else:
# custom path
instance_type = cfg.cluster.instance_type
assert instance_type is not None, "instance type is required from config"
if instance_type.startswith("ml."):
instance_type = instance_type[3:]
return instance_type.lower()