Run monitoring

Use run details, metrics and sampled answers to check progress and decide what to change.

Read run details

Read a run, inspect its settings or wait for it to finish:

akka optimize training runs get RUN_ID
akka optimize training runs get RUN_ID --settings
akka optimize training runs wait RUN_ID --exit-status
akka optimize training runs get 2c7f4e9a1b3d
State
  Run              2c7f4e9a1b3d5e601acde0294582a2e4fd460d953e233a7926d4bed4e6c61f3f
  Project          triage
  Method           SFT
  Base model       unsloth/Llama-3.2-1B-Instruct
  Dataset          triage/train:v1 — 2000 example(s)
  Evaluated on     triage/llama-3.2-1b-instruct:v2 on triage/eval:v1 by json-label-match, score 0.8600 (6a1d3f5b7c9e)
  Phase            Completed
  Progress         120/120 steps (100%), loss 0.1960
  Saved            step 120 (latest reported step)

Results
  Model            triage/llama-3.2-1b-instruct:v2
  Validation loss  0.2310 (perplexity 1.26)
  Training loss    2.3100 → 0.1960 (mean 0.4120)
  Start checks     ✓ passed 4 of 4 in 41s with a warning: packing lossError 0.0062 against 0.005, refused over 0.025

Cost
  GPU              3384.0 seconds over 2000 examples
  Duration         31m, ended 3h28m ago (waiting for devices 41s, queued 14s, preparing 96s, training 28m, other 20s)
  Throughput       1,005 tokens per second per device, the mean over its steps
  Training peak    9.8 GiB per device, held by the training pass
  Host memory      41.3 GiB in use on node 1 at peak (12.4 GiB at start)
  Memory           at step 88, of 79.6 GiB: weights 1.2, adapter 0.0, gradients 0.0, activations 7.9, optimizer 0.1, other 0.5, allocator 0.8, outside 0.5, free 68.5

Use these parts of the output:

  • State for phase, progress, saved step and failure reason.

  • Evaluated on under State for the three newest evaluations of the run’s model and of the versions registered from its snapshots: the exact dataset version each scored against and its grader, with a bundle grader at its exact bundle version. The dataset version stays the same after the project’s evaluation dataset changes. Each line names the version first. Where there are more evaluations, a last line counts them. List them all with akka optimize training runs get RUN_ID --jq .evaluations.

  • Results for the registered model and training or validation results.

  • Cost for GPU time, throughput and peak memory.

  • Data fit for dropped or trimmed rows. Increase maxSeqLength, shorten rows or change truncation if too much data is omitted.

The saved step is where a restore starts; updates after it repeat. Costs include every attempt. The --settings option adds the resolved configuration and execution settings. Use -o json for the full record.

In the API, run detail lists the evaluations in evaluations, newest first. The list holds every evaluation of the run’s model and of each version registered from one of its snapshots, including evaluations started by hand after the run ended. Each entry has evaluationId, modelId, phase, dataset, graderKey, meanScore, scored, unscored, failureReason, pipelineId, stageName and startedAt, as an entry of akka optimize training evaluations list has. modelId is the version the evaluation scored. scored and unscored count the answers the mean is over and the answers the grader could not score. failureReason says why an evaluation failed or was cancelled. The list is empty until the run registers a version.

Read the order of a run’s phases

The --phases option lists each phase the run entered, in order, with how long it took. Under Checking lengths, Tokenizing and Preparing it lists where that phase’s time went, each part of a second or more on a line of its own:

akka optimize training runs get ad5f31fbe854 --phases
State
  Run                    ad5f31fbe854ff730c3ab945631f8c44afb50694d5bead99e85e22219e6f8c20
  Project                triage
  Method                 DPO
  Base model             Qwen/Qwen3-0.6B
  Dataset                triage/preferences:v1 — 1200 example(s)
  Phase                  Completed
  Progress               150/150 steps (100%), loss 0.4120
  Saved                  step 150 (latest reported step)

Results
  Model                  triage/qwen3-0.6b:v1
  Validation loss        0.5380
  Training loss          0.6931 → 0.4120 (mean 0.4980)
  Preference             accuracy 0.82, margin 1.4 (chosen -0.3, rejected -1.7)
  Validation preference  accuracy 0.71, margin 0.9 (chosen -0.5, rejected -1.4)
  Loss                   fused (Liger)
  Data fit               0 of 1200 pairs reached maxSeqLength; batches 11% padding

Cost
  GPU                    1416.0 seconds over 1200 examples
  Duration               25m, ended 25h ago (checking lengths 2s, waiting for devices 9s, queued 9s, preparing 32s, training 23m, other 16s)
  Throughput             1,017 tokens per second per device, the mean over its steps
  Training peak          14.6 GiB per device, held by the training pass
  Host memory            19.4 GiB in use on node 1 at peak (11.9 GiB at start)
  Memory                 at step 141, of 79.6 GiB: weights 1.1, adapter 0.0, gradients 0.0, activations 12.4, optimizer 0.1, other 1.0, allocator 1.2, outside 0.5, free 63.3

Phases
  Resolving dataset      <1s
  Checking lengths       2s
  Awaiting capacity      9s
  Starting job           5s
  Queued                 9s
  Preparing              32s
                           starting job 11s
                           reading dataset 1s
                           loading base model 9s
                           tokenizing rows 6s
                           building trainer 4s
  Training               23m
  Recording              7s
  Cleaning up            3s
  Completed              ended 25h ago

Each phase that follows something the job did starts when the job or the cluster recorded it, not when Optimize next reads the job. A run enters Preparing when its training job’s process starts, Training when the job’s training loop starts its first update, and the phase after training when the job ends, even when the job finishes before Optimize next reads it. Step 1 is part of Training, so setup that the first update does lazily, such as compiling kernels or a reinforcement run’s first rollouts, shows as a slow first step. A run recorded by an earlier release has a first training step part under Preparing, and its Training starts after step 1. Until the job has written its start, the run reads as Queued. If the job recorded no time for the start of its loop, Training starts when the job ended, or when Optimize reads the job while it still runs. A job that stops before its training loop starts leaves no Training phase. Its failure is recorded against Preparing, or against Queued if the cluster never started the job. The phase the run is in reads so far, or ended once the run has finished. A phase shorter than one second reads <1s. Before it claims any device, a run checks its rows' lengths in Checking lengths, and a supervised verl run tokenizes its rows in Tokenizing. Preparing is the training job’s own preparation. When a run has more than one attempt, the first phase of each attempt starts with attempt N:. A resume starts a new attempt, so Paused belongs to the attempt that paused.

A run that finished before 0.11.0 shows not recorded for this run. A run still going when Optimize was upgraded lists its phases from its next phase change. Its first phase is the one it was in at the upgrade, from when it entered that phase. Where the run has no record of when that was, its first phase is the one it entered next. Either way, a History line says that earlier phases were not recorded.

In the API, run detail lists the phases in timing.phases, oldest first. Each entry has phase, enteredAt, millis and attempt. millis is null for the phase the run is in. The first entry of a list that starts partway has partial: true.

Investigate a failure

Read the failure reason before changing a plan:

Failure Action

Device memory

Reduce sequence length or batch size, enable activation recomputation, or choose a device with more memory.

Rollout engine memory

Use a shorter sequence or smaller model. If copying weights fails, use a smaller model or more device memory.

Host memory

Reduce sequence length or batch size and reconsider enabled offloads, or choose a profile with more host memory. A reason that names a checkpoint save gives the step whose save was running when Ray stopped the workers.

Invalid data or adapter

Correct the row, file or module named in the reason.

Cluster or job failure

Retry when the cluster responds.

For an evaluation, match the start of failureReason to the evaluation job ran out of device memory or the evaluation job’s inference engine did not fit its share of device memory, then follow the stated remedy.

See Troubleshooting for waiting work and connection errors.

Read metrics

Read each step’s results:

akka optimize training runs metrics RUN_ID
akka optimize training runs metrics RUN_ID -o json

Start with the metrics on your method page: SFT, DPO, or GRPO and GSPO.

If gradients are clipped at almost every step, inspect update_ratio for the update size relative to the adapter. The grad_norm metric alone does not show how much the weights changed. JSON output retains engine metrics under measured and reinforcement term contributions under rewardTerms.

Compare two runs

Compare SFT training loss against a baseline:

akka optimize training runs compare RUN_ID BASELINE_RUN_ID

The command reports loss windows and gradient spikes. It accepts SFT runs with the same configuration and base model. Use --across-plans to compare different plans, and read the reported differences before attributing them to learning.

Adjust --window (default 10 steps), --margin (default 0.03) or --spike-factor (default 10) to change the report. Repeat comparable runs before acting on a single spike.

Open Grafana

Print a link to the run on your project’s training dashboard:

akka optimize training runs grafana RUN_ID

The link carries a token and prints its expiry. Do not share it. Use --attempt to select an earlier attempt. Set --platform-project to choose the Akka platform project; otherwise the command uses AKKA_PROJECT, then the Akka CLI login’s default project.

Inspect resolved settings

Inspect the hyperparameters, engine configuration or startup runtime record:

akka optimize training runs hparams RUN_ID
akka optimize training runs engine-config RUN_ID -o json
akka optimize training runs engine-runtime RUN_ID

Use engine-config to compare requested settings with resolved engine defaults. adapter source is cold for a run that built a new adapter, warmStart for a run that started from source.model, and inherited for a branch. For SFT masking problems, inspect masking and sampled examples; examplesUnread explains missing samples.

Check attempt before comparing runtime records because a restarted run can still show the previous attempt’s record.

Open TensorBoard

Start TensorBoard on your machine:

akka optimize training runs tensorboard RUN_ID

The command downloads event files using your credentials. Keep TensorBoard local because it has no authentication. Use loss and validation curves for SFT, preference curves for DPO, and reward-term curves for reinforcement runs. A full-state branch’s engine curves can start above zero even though its run detail counts from zero. Under TRL, SFT and DPO runs also show throughput, step timings, batch shape, save time and data-fit curves in TensorBoard.

For device utilization and memory across runs, use telemetry export.

Inspect generated answers

Check that a rising reinforcement reward corresponds to better answers:

akka optimize training runs rollouts RUN_ID
akka optimize training runs rollouts RUN_ID --step 40 --worst 5
akka optimize training runs rollouts RUN_ID --best 3 -o json

Use --limit N to bound the list. JSON output includes full prompts, answers and tool-call comparisons. Check CALL MATCH and the first mismatch before changing a tool reward. Retained rollouts remain readable after the job stops or fails.

Export telemetry

Send OpenTelemetry metrics and spans to your collector. See Telemetry export.