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 |
|---|---|---|---|
|
String |
Required |
Set |
|
String |
Required |
Training project name or ID. |
|
String |
Required |
Selected base model repository. |
|
String |
Base model name |
Output model name in the project’s namespace. |
|
Object |
Required |
Training recipe; see Configuration. |
|
Object |
Execution settings table |
Device and save settings; see Execution settings. |
|
String |
|
Grader specification; see Graders and rewards. |
|
String |
None |
Explicit instructions for a model grader. |
|
Object |
None |
The registered model version the run starts from, as |
|
String |
Generated by CLI |
Reuse to reach the same submission after a lost response. |
|
Object |
None |
SFT, GRPO or GSPO smoke check settings. |
|
Integer |
None |
Update at which to save and pause. |
|
String |
None |
Editable description of the run. |
|
String |
None |
Editable label for the configuration in project scores. |
Configuration
Write these fields under config:
| Field | Type | Default | Description |
|---|---|---|---|
|
String |
Required |
Training dataset registry reference. |
|
String |
|
Select |
|
Object |
Method defaults |
SFT and DPO settings; see Supervised hyperparameters. |
|
Object |
DPO defaults |
DPO settings; see Preference settings. |
|
Object |
Reinforcement defaults |
GRPO and GSPO settings; see Reinforcement hyperparameters. |
|
Object |
Run’s grader |
Weighted reinforcement reward terms. |
|
String |
Derived |
Set by Optimize from the |
|
Object |
Model settings table |
Precision and activation settings; see Model settings. |
|
Integer |
|
Maximum training row length in tokens. |
|
Object |
Data table |
Validation and row handling; see Data. |
|
Object |
Loss table |
SFT token selection; see Loss. |
|
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 |
|---|---|---|---|
|
Integer |
|
Adapter rank, within the endpoint’s supported limit. |
|
Integer |
Twice |
Adapter update scale. |
|
Number |
|
Dropout probability, from 0 inclusive to 1 exclusive. |
|
String |
|
Whole-path regular expression, or |
|
Boolean |
|
Set |
The optimizer group sets the update parameters:
| Field | Type | Default | Description |
|---|---|---|---|
|
String |
|
Optimizer; only |
|
Number |
SFT |
Peak learning rate. |
|
Number |
|
Non-negative weight decay; explicit zero disables it. |
|
Number |
|
Gradient clipping norm. |
The scheduler group sets the learning-rate schedule:
| Field | Type | Default | Description |
|---|---|---|---|
|
String |
|
Select |
|
Number |
|
Fraction of updates used for warmup, from 0 inclusive to 1 exclusive. |
|
Number |
|
Final learning-rate fraction for a cosine schedule. |
The training group sets the budget, batches and validation:
| Field | Type | Default | Description |
|---|---|---|---|
|
Integer |
|
Passes over the dataset. |
|
Integer |
No cap |
Update cap; a positive value overrides |
|
Integer |
Sized by method and length |
Sequences per GPU pass, or pairs for DPO. |
|
Integer |
Sized toward 8 rows per GPU update |
Passes combined per optimizer update. |
|
Integer |
|
Updates between evaluations on the validation dataset. |
|
Integer |
|
Initialization, data-order and dropout seed; zero uses the default. |
|
Integer |
|
Token budget per GPU pass; multi-GPU SFT only. |
|
Boolean |
|
Also validate before training and at each SFT or DPO epoch, except on full-state branches. |
|
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 |
|---|---|---|---|
|
Number |
|
Positive reference penalty; larger values hold the adapter closer to its reference. |
|
String |
|
Select |
|
Boolean |
|
Allow Liger fused loss; set |
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 |
|---|---|---|---|
|
String |
None |
Separate registered dataset for validation during training. |
|
String |
|
Select |
|
Boolean |
|
Combine short rows; one-GPU SFT only. |
|
Boolean |
|
Shuffle using the training seed; DPO requires |
|
String |
|
Select |
Loss
Write these fields under config.loss for SFT. See conversation loss settings for tool calls and explicit masks.
| Field | Type | Default | Description |
|---|---|---|---|
|
String |
|
Train the |
|
Boolean |
|
Include calls in earlier trained assistant messages. |
|
Boolean |
|
Include tool-result tokens. |
|
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 |
|---|---|---|---|
|
Integer |
|
Passes over the prompts. |
|
Integer |
No cap |
Positive update cap overrides |
|
Integer |
|
Answers sampled per prompt. |
|
Integer |
|
Prompts per update; a multiple of |
|
Number |
|
Reference-policy penalty; zero disables it. |
|
Number |
|
Sampling temperature; zero selects greedy sampling. |
|
Integer |
|
Maximum sampled answer length in tokens. |
|
Integer |
Engine default |
Seed from |
|
Number |
|
Only zero is supported. |
|
Object |
Shared defaults |
Adapter settings from Supervised hyperparameters; dropout must be zero. |
|
Object |
Rate |
Shared optimizer fields from Supervised hyperparameters. |
|
Object |
|
Shared scheduler fields; |
Model settings
Write these fields under config.model. See Engine and memory for memory tradeoffs.
| Field | Type | Default | Description |
|---|---|---|---|
|
String |
|
Base-weight precision: |
|
Boolean |
Expert adapters and DPO |
Recompute activations to save device memory. |
|
String |
Model/device default |
Select |
|
String |
Deployment value, usually |
Trained-weight precision: |
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 |
|---|---|---|---|
|
Integer |
|
Training GPUs; DPO must fit on one node. |
|
Integer |
|
Keep zero; all reinforcement devices are counted in |
|
Integer |
Job default |
Reinforcement sequences per device pass. |
|
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. |
|
Integer |
|
Unreferenced adapter snapshots retained, excluding epoch holds. |
|
Integer |
|
Unreferenced full-state saves retained; at least 1. |
|
Integer |
|
Maximum saves between selections for a training-state upload. |
|
Integer |
|
Maximum minutes after a state upload before selecting another save. |
|
Boolean |
|
Save and register an adapter at each SFT epoch. |
|
String |
Catalog choice |
Accelerator profile from the catalog. |
|
String |
Catalog choice |
Supported training engine: |
|
Number |
Deployment value, usually |
Device-memory share for reinforcement generation. |
|
Boolean |
Deployment value, usually |
Move model weights to host memory between passes. |
|
Boolean |
|
Move optimizer state to host memory between updates. |
|
Boolean |
|
Store saved activations in host memory. |
|
String |
|
The value |
|
Integer |
None |
Host-memory requirement checked against the profile; does not reserve memory. |