> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/automodel/_mcp/server.

# nemo_automodel.components.launcher.skypilot.utils

## Module Contents

### Functions

| Name                                                                                            | Description                                                |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [`_get_cloud`](#nemo_automodel-components-launcher-skypilot-utils-_get_cloud)                   | Return a sky cloud object for the given cloud name string. |
| [`submit_skypilot_job`](#nemo_automodel-components-launcher-skypilot-utils-submit_skypilot_job) | Launch a training job on a cloud VM via SkyPilot.          |

### Data

[`REMOTE_CONFIG_PATH`](#nemo_automodel-components-launcher-skypilot-utils-REMOTE_CONFIG_PATH)

[`_CLOUD_CLASSES`](#nemo_automodel-components-launcher-skypilot-utils-_CLOUD_CLASSES)

[`_DEFAULT_SETUP`](#nemo_automodel-components-launcher-skypilot-utils-_DEFAULT_SETUP)

### API

```python
nemo_automodel.components.launcher.skypilot.utils._get_cloud(
    cloud_name: str
)
```

Return a sky cloud object for the given cloud name string.

```python
nemo_automodel.components.launcher.skypilot.utils.submit_skypilot_job(
    config: nemo_automodel.components.launcher.skypilot.config.SkyPilotConfig,
    job_dir: str
) -> int
```

Launch a training job on a cloud VM via SkyPilot.

The local job config written to *job\_dir*/job\_config.yaml is uploaded to
REMOTE\_CONFIG\_PATH on the remote VM.  The code in the current working
directory is synced to \~/sky\_workdir via SkyPilot's workdir mechanism.

**Parameters:**

Populated SkyPilotConfig (including the training command).

Local directory holding the job artifacts.

**Returns:** `int`

0 on successful submission.

```python
nemo_automodel.components.launcher.skypilot.utils.REMOTE_CONFIG_PATH = '/tmp/automodel_job_config.yaml'
```

```python
nemo_automodel.components.launcher.skypilot.utils._CLOUD_CLASSES = {'aws': 'AWS', 'gcp': 'GCP', 'azure': 'Azure', 'lambda': 'Lambda', 'kubernetes':...
```

```python
nemo_automodel.components.launcher.skypilot.utils._DEFAULT_SETUP = 'cd ~/sky_workdir && pip install -e . --quiet'
```