Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

databricks-ai-runtime

БесплатноБез исполняемых скриптовНе проверен

Databricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on Databricks serverless compute. Use for: writing…

databricksот databricks★ 421 звезда на GitHub

Об этом скилле

Databricks AI Runtime (databricks air)

Databricks AI Runtime is a set of databricks air CLI commands for submitting GPU training workloads to Databricks serverless compute. It manages environment setup, distributed training configuration, and workload lifecycle, without requiring you to manage clusters or infrastructure.

This skill covers the three everyday flows: starting a run, checking on a run, and monitoring a run as it trains.

Reference discipline

The CLI's built-in help is the source of truth for field names, accelerator types, defaults, and constraints. Prefer it at runtime over anything memorized. Look up a config field by passing its path to -h on the run command (the path is a separate argument):

databricks air run -h config                              # list the YAML fields
databricks air run -h config.compute                      # one field
databricks air run -h config.compute.accelerator_type     # a nested field

databricks air <subcommand> --help documents each command's flags. This skill covers workflow and the few things the help does not spell out.

Session setup

Check the CLI version, confirm the command is available, and list your Databricks config profiles:

databricks version
databricks air --help
databricks auth profiles --skip-validate    # available Databricks config profiles

The examples use flattened code_source fields, available in Databricks CLI 1.20.0 and newer. On an older CLI, use the equivalent nested snapshot format shown under Workload YAML. CLI 1.20.0 and newer accept both formats. Do not mix nested and flattened fields in the same configuration.

Pass -p <profile> on every command. Add -o json for scripted/programmatic calls so you get a structured envelope instead of human text:

  • Success: {"v": 1, "ts": "...", "data": {...}}
  • Error: {"v": 1, "ts": "...", "error": {"code": "...", "kind": "...", "message": "...", "retryable": bool}}

On CLI 1.28.0 and newer, air run -o json also reports config validation (input) errors as a structured error with code INVALID_ARGS. Older CLIs print them as plain text to stderr with a non-zero exit even under -o json, so check the exit code and stderr too, not just the parsed JSON. When you do get a structured error, its kind tells you what to do:

kind Meaning Action
PERMANENT Not authenticated / permission denied / feature disabled / non-retryable If auth: databricks auth login --host <workspace-url>
NOT_FOUND Bad run ID / resource Check the input
CONFLICT Idempotency key collision Use a new --idempotency-key
TRANSIENT Retryable Retry

Running AIR commands from an agent

Run each databricks air command as its own shell call. Don't chain it with other commands through &&, ;, or | (for example python -m py_compile train.py && databricks air run ...). Permission rules such as Claude Code's approve a chained command only when every part matches an allow-rule, so a chained air command prompts the user on every call. Run the check first, and run the air command in a separate call only if the check succeeded. Start the call with databricks air itself: put the profile in -p <profile> rather than an environment-variable prefix, and use paths instead of a cd ... && prefix.

To stop the prompts, the user can allow databricks air commands once, for example in Claude Code's .claude/settings.json:

{
  "permissions": {
    "allow": ["Bash(databricks air *)"]
  }
}

Subcommands

Command What it does
databricks air run Submit a workload from a YAML file. Add --watch to stream logs until it finishes, --dry-run to validate without submitting, and --override <field>=<value> (repeatable) to change a field without editing the YAML.
databricks air get <JOB_RUN_ID> Show status, config, timing, and the failure reason for one run.
databricks air list List your active runs. A run that just finished drops out of the default view; add --all-status to include finished runs. Also --all-users, --filter KEY=VALUE, --limit.
databricks air cancel <JOB_RUN_ID> [<JOB_RUN_ID>...] / ... --all Cancel one or more runs, or all of your active runs (--all prompts; add --yes in scripts).
databricks air logs <JOB_RUN_ID> Print a run's logs. Newer CLIs print the logs available now and exit, and stream with --follow; older CLIs (no --follow in --help) stream an active run by default.
databricks air pools list / pools get <POOL_ID> View the provisioned GPU pools available to the workspace.
databricks air images push Push a local or remote container image to Databricks Artifact Registry. See docker-images.md.
databricks air convert-to-dabs <yaml_path> Convert a workload YAML into a Datab
Полный SKILL.md на GitHub

Установить databricks-ai-runtime в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/databricks.pngassets/databricks.svgdocker-images.md

FAQ

Что делает скилл databricks-ai-runtime?

Databricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on Databricks serverless compute. Use for: writing and submitting `databricks air` workload YAML, choosing an accelerator type and Python environment, reading Unity Catalog tables as training data with UCDataset, passing hyperparameters and secrets, configuring retries, checking run status, listing/cancelling runs, streaming a run's logs and watching its progress, debugging failed runs, GPU pools, multi-container workloads, custom Docker image setup, and converting a workload to a Databricks Asset Bundle.

Как установить скилл databricks-ai-runtime?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл databricks-ai-runtime запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить databricks-ai-runtime с