MosaicML CLI

0.8.3 · active · verified Fri Apr 17

The `mosaicml-cli` provides a command-line interface for interacting with Databricks Mosaic AI training. It allows users to authenticate, manage runs, models, and clusters directly from their terminal. The current version is 0.8.3, and new versions are released periodically to align with updates to the Mosaic AI platform.

Common errors

Warnings

Install

Imports

Quickstart

The most crucial step is to log in using `mosaicml login`. This authenticates your CLI session with the Mosaic AI platform. After successful login, you can execute various commands, such as listing models or initiating training runs.

mosaicml login
# Follow the on-screen instructions to authenticate via a browser.

# List available models (requires authentication)
mosaicml list models

# Example of running a training job (requires a config.yaml file and an authenticated session)
# This command assumes you have a 'config.yaml' file in your current directory.
# For a real quickstart, replace 'path/to/my_config.yaml' with your actual path.
# If you don't have one, just run 'mosaicml list models' as a basic check.
# mosaicml run path/to/my_config.yaml

view raw JSON →