Skip to main content
Version: v0.24.x

AutoML

AutoML runs a series of fine-tuning experiments for you. You choose how many experiments to run, and after each one, AutoML adjusts settings such as the learning rate and backbone to find the best-performing model.

If you'd rather get a single recommendation for one experiment at a time instead of running a full AutoML series, see Ask KGM. For an overview of both, see AutoML and Ask KGM in Key concepts.

AutoML runs table​

When you open the AutoML tab from the top navigation bar or the project homepage, you'll see a table of all AutoML runs in your project.

Each row shows:

  • Name: Searchable name of the AutoML run
  • Progress: Completed / total experiments
  • Best Score: Performance metric of the best experiment
  • Created: Date/time the run was started
  • Status: queued, running, completed, failed, or cancelled

Click ⋮ on a row to Stop a queued or running AutoML run, or to Delete it.

To rename a run, click the edit mode icon at the top left of the table, then click the run's name. Type the new name and press Enter, or press Esc to cancel. You can also rename a run from its page, by clicking the pencil icon next to its name.

AutoML runs table with the Name, Progress, Best Score, Created, and Status columns and the row action (⋮) buttons

Start an AutoML run​

Click New AutoML to open the New AutoML Run page. You can also open it from:

  • A completed experiment, by selecting Create AutoML from the row's action menu in the experiment list, or Start AutoML from the ⋮ menu on the experiment's page. The page is pre-filled with that experiment's settings.
  • A dataset, by clicking Create AutoML on the dataset's page. The dataset is pre-selected.

A name (for example, grim-grasshopper) is generated for each new run. To change it, click the pencil icon next to the page title.

The page has the following sections.

Settings​

Choose the data and the training settings shared by every experiment in the run:

  • Train Dataset, and the column fields for its problem type (for example, Input Column and Output Column)
  • Data Sample, Validation Strategy, and Validation Size
  • Training Mode and Metrics
  • Optimization Metric: The metric AutoML optimizes. The default is Validation Loss. You can pick any of your selected Metrics instead.
  • Number of Experiments: How many experiments to run (default: 5)

Settings section of the New AutoML Run page with the Train Dataset, column, validation, Training Mode, Metrics, Optimization Metric, and Number of Experiments fields

Backbone selection​

Select one or more backbone models for AutoML to evaluate. Use Select All or Unselect All to change the selection quickly. Select All selects the models under Available Backbones and Custom Backbones. To try a model that isn't listed, enter its Hugging Face ID (for example, organization/model-name) under Add Custom Backbone and click Add.

If your administrator has configured a model hub:

  • Available Backbones lists the default models that are in the hub.
  • Other models in model hub lists all other models in the hub. Select All doesn't select these.

A notice above the lists explains why they might look different than expected, for example when the hub can't be reached.

Backbone Selection section with the available backbones and the Add Custom Backbone field

Parameter optimization​

Choose which hyperparameters AutoML tunes, such as learning rate, batch size, epochs, and LoRA settings. Only Learning Rate is selected by default. For each selected parameter, you can set the range (Min and Max) or the options to try. The Optimization Summary shows how many parameters are selected.

Parameter Optimization section with the Parameters to Optimize list and the Min and Max fields for a selected parameter

Advanced configuration​

Expand this section to add other settings in YAML format, as on the New Experiment page. See Advanced configuration.

Start the run​

Click Start AutoML at the top right of the page. The system then builds models one after another:

  • Starts with a base configuration
  • Evaluates the results
  • Adjusts parameters (for example, backbone or learning rate)
  • Starts the next experiment

View an AutoML run​

Click a run in the runs table to open its page. At the top, you'll see:

  • Status: queued, running, completed, failed, or cancelled
  • Progress: Completed / total experiments, for example 2/5
  • Best Score: The best score so far, labeled with the optimization metric, for example Best Score (Validation Loss)
  • Created: When the run was started

At the top right of the page:

  • Compare Experiments: Compare the run's experiments side by side. Shown once the run has created at least one experiment. See Compare experiments.
  • Stop: Stop the run. Shown while the run is queued or running.
  • Delete: Remove the run.

AutoML run page header showing the status, progress, best score, and created time, with the Stop and Delete buttons

Experiments table​

This table lists the experiments created by the run, with these columns:

  • Name
  • Dataset
  • Created
  • Status

Use the column toggle at the top right of the table to show more columns, such as the experiment ID and validation metrics.

AutoML experiments table with the Name, Dataset, Created, and Status columns

Click any experiment to open its detail page. See View and manage an experiment.

AutoML logs​

This expandable section shows a live progress feed for the run:

  • A summary when the run starts: the backbones, the parameters being optimized and their ranges, and the optimization metric
  • For each new experiment, the configuration AutoML chose (backbone and training settings) and an explanation of why
  • Status transitions (for example, an experiment moving from queued to running)
  • Runtime, ETA, and train/validation loss updates about once a minute while an experiment is in progress
  • A closing summary when an experiment completes (runtime and final train and validation loss), or its error message if it fails

Use Copy or Download to save the logs.

AutoML logs section expanded, showing the run summary, experiment status updates, and the next configuration chosen by AutoML

Compare experiments​

Click Compare Experiments at the top right of the run page to compare the run's experiments on one page. The comparison page shows:

  • Experiments: The experiments being compared. All of them are selected at first. Clear an experiment's checkbox to leave it out of the comparison.
  • Metrics Summary: The metric values for each experiment. The best value for each metric is marked with ✓, and the worst with ✗.
  • Charts: The Training Loss Comparison and Validation Loss Comparison charts, which you can switch between a Linear and Log scale, and a chart for each validation metric, such as Perplexity Comparison
  • Configuration Comparison: The settings for each experiment. Use the toggle to show All Parameters or Only Differences, which shows what AutoML changed between experiments.

Experiment comparison page showing the selected experiments and the Metrics Summary

Experiment comparison page showing the Training Loss Comparison and Validation Loss Comparison charts

Experiment comparison page showing the Configuration Comparison table with Only Differences selected

To see how an experiment is linked to the others in the run, open the experiment and look at its Connected experiments section.


Feedback