Run plan reference

A run.yaml names the project, base model, training configuration and execution settings. Omit optional fields to use their defaults. Unknown fields are refused by name; correct the named field before submitting again. Inspect resolved values with akka optimize training runs start -f run.yaml --dry-run --show-resolved. A run records the config and execution fields its plan sets, and akka optimize training runs get --settings marks each one (stated).

Top-level fields

Write these fields at the root of the plan:

Field Type Default Description

kind

String

Required

Set run.

project

String

Required

Training project name or ID.

baseModel

String

Required

Selected base model repository.

modelName

String

Base model name

Output model name in the project’s namespace.

config

Object

Required

Training recipe; see Configuration.

execution

Object

Execution settings table

Device and save settings; see Execution settings.

grader

String

json-label-match

Grader specification; see Graders and rewards.

graderInstructions

String

None

Explicit instructions for a model grader.

source

Object

None

The registered model version the run starts from, as source.model. The run trains that version’s adapter; see Start from existing weights.

submissionId

String

Generated by CLI

Reuse to reach the same submission after a lost response.

smoke

Object

None

SFT, GRPO or GSPO smoke check settings.

pauseAtStep

Integer

None

Update at which to save and pause.

description

String

None

Editable description of the run.

configName

String

None

Editable label for the configuration in project scores.

Configuration

Write these fields under config:

Field Type Default Description

dataset

String

Required

Training dataset registry reference.

method

String

sft

Select sft, dpo, grpo or gspo; see Training methods.

hyperparams

Object

Method defaults

SFT and DPO settings; see Supervised hyperparameters.

preference

Object

DPO defaults

DPO settings; see Preference settings.

rlHyperparams

Object

Reinforcement defaults

GRPO and GSPO settings; see Reinforcement hyperparameters.

reward

Object

Run’s grader

Weighted reinforcement reward terms.

warmStartConfigHash

String

Derived

Set by Optimize from the source.model version; leave it out.

model

Object

Model settings table

Precision and activation settings; see Model settings.

maxSeqLength

Integer

2048

Maximum training row length in tokens.

data

Object

Data table

Validation and row handling; see Data.

loss

Object

Loss table

SFT token selection; see Loss.

engineSettings

Object

None

Direct engine settings.

Supervised hyperparameters

Write SFT and DPO hyperparameters under config.hyperparams. Each omitted field keeps its method’s default.

The lora group sets the adapter shape:

Field Type Default Description

rank

Integer

8

Adapter rank, within the endpoint’s supported limit.

alpha

Integer

Twice rank

Adapter update scale.

dropout

Number

0

Dropout probability, from 0 inclusive to 1 exclusive.

targetModules

String

default

Whole-path regular expression, or default for language-backbone linear modules.

adaptExperts

Boolean

false

Set true to include Gemma 4 mixture-of-experts layers; see expert training requirements.

The optimizer group sets the update parameters:

Field Type Default Description

kind

String

adamw

Optimizer; only adamw is supported.

learningRate

Number

SFT 0.0001; DPO 0.000005

Peak learning rate.

weightDecay

Number

0

Non-negative weight decay; explicit zero disables it.

maxGradNorm

Number

1

Gradient clipping norm.

The scheduler group sets the learning-rate schedule:

Field Type Default Description

kind

String

linear

Select linear, cosine or constant.

warmupRatio

Number

0

Fraction of updates used for warmup, from 0 inclusive to 1 exclusive.

minLearningRateRatio

Number

0

Final learning-rate fraction for a cosine schedule.

The training group sets the budget, batches and validation:

Field Type Default Description

epochs

Integer

3

Passes over the dataset.

maxSteps

Integer

No cap

Update cap; a positive value overrides epochs.

microBatchPerGpu

Integer

Sized by method and length

Sequences per GPU pass, or pairs for DPO.

gradientAccumulation

Integer

Sized toward 8 rows per GPU update

Passes combined per optimizer update.

validationFrequencySteps

Integer

100

Updates between evaluations on the validation dataset.

seed

Integer

42

Initialization, data-order and dropout seed; zero uses the default.

tokensPerGpu

Integer

microBatchPerGpu × maxSeqLength

Token budget per GPU pass; multi-GPU SFT only.

validateEachEpoch

Boolean

false

Also validate before training and at each SFT or DPO epoch, except on full-state branches.

validationBatchSize

Integer

Rows in one update

Rows per validation call; multi-GPU SFT only.

Preference settings

Write these fields under config.preference for DPO:

Field Type Default Description

beta

Number

0.1

Positive reference penalty; larger values hold the adapter closer to its reference.

lossType

String

sigmoid

Select sigmoid preference loss or ipo squared loss.

fusedLoss

Boolean

true

Allow Liger fused loss; set false to use unfused loss.

Data

Write these fields under config.data.

For validation cadence, see validation and row handling.

For oversized rows and truncation choices, see row handling.

Field Type Default Description

validationDataset

String

None

Separate registered dataset for validation during training.

truncation

String

error

Select error, drop, oldest, oldest_or_drop or right.

packing

Boolean

false

Combine short rows; one-GPU SFT only.

shuffle

Boolean

true

Shuffle using the training seed; DPO requires true.

consecutiveAssistantMessages

String

merge

Select merge or refuse for two assistant messages in a row that the chat template joins into one turn. merge joins their text with a blank line into one assistant message. Under merge, a row is still refused where a message of the joined pair has tool calls or a field besides its text, such as reasoning, or where the row carries the loss.explicitLossMaskColumn column.

Loss

Write these fields under config.loss for SFT. See conversation loss settings for tool calls and explicit masks.

Field Type Default Description

assistantTurns

String

last

Train the last assistant answer or all assistant messages.

trainOnToolCalls

Boolean

true

Include calls in earlier trained assistant messages.

trainOnToolResults

Boolean

false

Include tool-result tokens.

explicitLossMaskColumn

String

None

Row column holding the explicit token-loss mask.

Reinforcement hyperparameters

Write these fields under config.rlHyperparams. Use training runs get RUN_ID --settings to read resolved sampling and KL settings on the Rollouts line.

For runs that start from an adapter and KL penalties on inherited adapters, see Reinforcement learning (GRPO and GSPO).

Field Type Default Description

epochs

Integer

1

Passes over the prompts.

maxSteps

Integer

No cap

Positive update cap overrides epochs.

groupSize

Integer

4

Answers sampled per prompt.

promptsPerStep

Integer

8

Prompts per update; a multiple of execution.gpus.

klBeta

Number

0.04

Reference-policy penalty; zero disables it.

temperature

Number

0.7

Sampling temperature; zero selects greedy sampling.

maxCompletionLength

Integer

256

Maximum sampled answer length in tokens.

seed

Integer

Engine default

Seed from 1 to 2147483647; omit or use zero for no explicit seed.

stalenessThreshold

Number

0

Only zero is supported.

lora

Object

Shared defaults

Adapter settings from Supervised hyperparameters; dropout must be zero.

optimizer

Object

Rate 0.00001, decay 0.01

Shared optimizer fields from Supervised hyperparameters.

scheduler

Object

constant

Shared scheduler fields; constant or cosine only.

Model settings

Write these fields under config.model. See Engine and memory for memory tradeoffs.

Field Type Default Description

precision

String

BF16

Base-weight precision: BF16 or one-GPU INT4.

gradientCheckpointing

Boolean

Expert adapters and DPO true; otherwise maxSeqLength > 4096

Recompute activations to save device memory.

attentionImplementation

String

Model/device default

Select sdpa, eager or supported flex_attention; see defaults.

weightPrecision

String

Deployment value, usually fp32

Trained-weight precision: fp32 or bf16.

Execution settings

Write these fields under execution.

See Snapshots for save and recovery policies.

Count reinforcement devices in gpus; separate rollout GPUs are unsupported. See memory settings for memory tradeoffs.

Field Type Default Description

gpus

Integer

1

Training GPUs; DPO must fit on one node.

rolloutGpus

Integer

0

Keep zero; all reinforcement devices are counted in gpus.

microBatchSequences

Integer

Job default

Reinforcement sequences per device pass.

saveEvery

Integer

Off

Periodic snapshot interval in optimizer updates. Where no multiple of the interval falls within the steps a run trains, the run writes only its final save, and a reinforcement run gets a warning.

keepAdapters

Integer

5

Unreferenced adapter snapshots retained, excluding epoch holds.

keepRecoverable

Integer

1

Unreferenced full-state saves retained; at least 1.

resumableSaveEvery

Integer

10

Maximum saves between selections for a training-state upload.

resumableSaveMinutes

Integer

5

Maximum minutes after a state upload before selecting another save.

saveEachEpoch

Boolean

false

Save and register an adapter at each SFT epoch.

deviceProfile

String

Catalog choice

Accelerator profile from the catalog.

engine

String

Catalog choice

Supported training engine: trl or verl.

rollout.memoryShare

Number

Deployment value, usually 0.5

Device-memory share for reinforcement generation.

memory.offload.weights

Boolean

Deployment value, usually false

Move model weights to host memory between passes.

memory.offload.optimizer

Boolean

false

Move optimizer state to host memory between updates.

memory.offload.activations

Boolean

false

Store saved activations in host memory.

memory.sharding

String

all

The value all splits model state across GPUs; none keeps a copy on each.

hostMemoryGiB

Integer

None

Host-memory requirement checked against the profile; does not reserve memory.