Base models

A run starts from a base model. Select an allowed model to prepare it for training, evaluation or serving.

Find a model

List the selected models, or add --all to include every allowed model:

akka optimize training base-models list --all
akka optimize training base-models get Qwen/Qwen3-8B

Use the repository name in run plans and other base model commands. The detail shows its pinned commit, context length and supported methods. A model marked Allowed for: serving only cannot train in this deployment.

Choose a measured configuration

Read the model’s Measured training envelopes to choose a method, precision, GPU count and sequence length measured on your device profile. List all deployment measurements with:

akka optimize training base-models envelopes

An advisory catalog admits supported but unmeasured configurations with a warning; they may run out of memory. A strict catalog requires a matching measurement. Check the warning or refusal with a dry run before submitting.

Use execution.deviceProfile to choose a device profile and execution.gpus for its GPU count. TRL trains DPO on one GPU or several GPUs of one node, and other methods on one GPU. SFT under verl needs at least two GPUs. See DPO for pair and batch requirements.

Train over experts

To adapt the experts of a Gemma 4 mixture-of-experts model, such as google/gemma-4-26B-A4B-it, set lora.adaptExperts: true in the method’s hyperparameters. Use one GPU, keep lora.dropout: 0, and leave model.gradientCheckpointing unset or set it to true. The router stays frozen.

Expert measurements cover SFT, GRPO and GSPO. Choose an envelope measured with the experts adapted. Outside those measurements, an advisory catalog warns that the run is unmeasured; a strict catalog refuses it.

GRPO and GSPO runs over experts warn about slow generation: about 5 tokens per second measured on an H200, so each step’s rollouts take minutes. For a run that starts from source.model, match lora.adaptExperts to the version’s adapter; a branch keeps the source setting.

Read Parameters with training runs get RUN_ID --settings and registry models get MODEL_REF; training snapshots get SNAPSHOT_ID lists them on Model. Registry JSON names them targetParameters.

Check previous runs

The model detail lists Completed on this deployment and Ran out of memory. Use peak memory, throughput and training time to choose a model size, sequence length and device count. Read a listed run with akka optimize training runs get RUN_ID.

akka optimize training base-models get unsloth/Llama-3.2-1B-Instruct
Repository    unsloth/Llama-3.2-1B-Instruct
Reference     6288fd16f1bd3ca70d8bb1e3f69cbae8cf023ac4
Entry         59b11e930ddb6cf4c59400a9e0861d83bc1176317a56b8f033576778eefb41e6
Status        AVAILABLE

Selection     READY
Model         unsloth/llama-3.2-1b-instruct:v1
Weights       cached by selection

Commit        6288fd16f1bd3ca70d8bb1e3f69cbae8cf023ac4
Parameters    1.2B
Context       128k
Modality      text
Architecture  LlamaForCausalLM

Measured training envelopes:
  METHOD  PRECISION  GPUS    GPU MEMORY PER GPU  HOST MEMORY PER NODE  SEQUENCE
  sft     bf16       1×H100  80 GiB              192 GiB               8k tokens
  sft     bf16       2×H100  80 GiB              192 GiB               8k tokens

Completed on this deployment:
  RUN                   METHOD  PRECISION  ENGINE  GPUS    SEQUENCE   TRAINING PEAK  HOST MEMORY  TOKENS/S PER DEVICE  TRAINING  FINISHED
  1a288e760284 (smoke)  sft     bf16       trl     1×H100  4k tokens  6.1 GiB        22.6 GiB     4,556                10m       4h49m ago
  2c7f4e9a1b3d          sft     bf16       verl    2×H100  4k tokens  9.8 GiB        41.3 GiB     1,005                28m       3h28m ago
  7b3e9f1c5a2d          sft     bf16       verl    3×H100  4k tokens  9.6 GiB        47.9 GiB     977                  19m       89m ago

Use -o wide for revisions and device peaks, or -o json for full records. Previous successful runs provide evidence, but do not replace measured envelopes in a strict catalog.

To try an unmeasured configuration, start with a small maxSteps budget and inspect the result before a longer run.

Find compatible models

Check repositories from a Hugging Face account against the deployment’s engines and hardware:

akka optimize training base-models candidates --author google --match 'gemma-4-*'

The VERDICT column says admissible or explains the incompatibility. This command does not allow or select a model.

Select a model

Prepare an allowed model and wait for it to be ready:

akka optimize training base-models select Qwen/Qwen3-8B --wait

Without --wait, selection continues in the background. Check progress with base-models get. The default wait is 30 minutes; use --timeout to change it.

The Selection field progresses through PREPARING and, when weights download, FETCHING, to READY. Weights says whether selection cached the weights. A ready model can be used even without cached weights; its first job downloads them.

If selection fails, read the reason and select the model again to retry.

Deselect a model

Remove a model from your selected list:

akka optimize training base-models deselect Qwen/Qwen3-8B

The model remains allowed and can be selected again. Deselecting does not stop an existing endpoint; delete the endpoint to release its devices.