Cost, training, and evaluation commands

Feature set: Inference Contact our support for access.
This functionality evolves quickly, the behavior and APIs might change between releases without further notice.

These commands cover what an organization spends on inference and how models are trained and scored. Every command on this page is a subcommand of akka optimize. This page lists the commands most tasks use. See akka optimize for every command and flag.

The format a -f FILE option reads depends on the command, and --help states it. Training plans are JSON or YAML. eval datasets create reads a zip or an items.jsonl file. datasets create reads chat-format JSONL. training sessions create reads a conversation corpus. Most commands read the document from standard input when you pass -f -.

Spend

akka optimize spend reports what a period consumed, what it cost, and what one conversation cost. The alias spends is accepted.

Command Description

akka optimize spend get --from INSTANT --to INSTANT

What a period consumed and cost, divided as asked.

akka optimize spend compare --from INSTANT --to INSTANT --against-from INSTANT --against-to INSTANT

Two periods, and the difference between them.

akka optimize spend conversations list --from INSTANT --to INSTANT

The conversations of a period that cost the most.

akka optimize spend info

Which service is answering at this address.

Callers

akka optimize callers holds the callers that spend figures are attributed to. The alias caller is accepted.

Command Description

akka optimize callers erase VALUE --basis BASIS

Remove one caller and keep every figure it is behind. BASIS is declared when the request carried the x-optimize-caller header, or forwarded when a proxy reported the address.

akka optimize callers erase VALUE --basis BASIS --dry-run

Report what the erasure would reach without writing anything.

Incidents

akka optimize incidents is the incident feed, unioned from its sources. The alias incident is accepted.

Command Description

akka optimize incidents list

The incident feed: anomalies, blocked requests and scrub failures.

Pricing catalog

akka optimize pricing-catalog holds model prices as input and output rates per million tokens for each served name. A published version is never edited. The aliases pricing-catalogs, catalog, and catalogs are accepted.

Command Description

akka optimize pricing-catalog get

The version in force now, or at an instant.

akka optimize pricing-catalog apply -f FILE

Publish a catalog version, or check one.

akka optimize pricing-catalog versions list

Every published version, newest first.

Training runs

akka optimize training runs manages training runs. The alias run is accepted.

Command Description

akka optimize training runs start -f PLAN

Start a training run from a plan file.

akka optimize training runs list

List training runs.

akka optimize training runs get RUN

Show one run.

akka optimize training runs wait RUN

Wait for a run to finish.

akka optimize training runs cancel RUN

Cancel a run and free its GPUs.

Training pipelines

akka optimize training pipelines manages multi-stage training pipelines. The alias pipeline is accepted.

Command Description

akka optimize training pipelines start -f PLAN

Start a pipeline from a plan file.

akka optimize training pipelines list

List pipelines and the stage each is on.

akka optimize training pipelines get PIPELINE

Show a pipeline, stage by stage.

akka optimize training pipelines wait PIPELINE

Wait for every stage to finish.

akka optimize training pipelines cancel PIPELINE

Cancel a pipeline and its running stage.

Trained models

akka optimize trained-models manages the models training produced. The alias trained-model is accepted.

Command Description

akka optimize trained-models list

List models and what they scored.

akka optimize trained-models get MODEL

Show one model’s lineage, cost, and score.

Training evaluations

akka optimize training evaluations manages evaluations of trained models. The alias evaluation is accepted.

Command Description

akka optimize training evaluations start --model MODEL --dataset HASH

Score a trained model against a dataset.

akka optimize training evaluations list

List evaluations and what they scored.

akka optimize training evaluations get EVALUATION

Show what an evaluation scored and where it got to.

akka optimize training evaluations report EVALUATION

Show how a model scored, field by field.

akka optimize training evaluations predictions EVALUATION

Show what the model answered, example by example.

akka optimize training evaluations wait EVALUATION

Follow an evaluation until it finishes.

akka optimize training evaluations cancel EVALUATION

Stop an evaluation and release what it holds.

Training datasets

akka optimize datasets manages training datasets. The alias dataset is accepted.

Command Description

akka optimize datasets create -f FILE

Register chat-format JSONL examples. The alias register is accepted.

akka optimize datasets list

List registered datasets, newest first.

akka optimize datasets get HASH

Show what a dataset holds.

akka optimize datasets name NAME DATASET

Point a name at a registered dataset.

akka optimize datasets images push PATH…​

Upload images, skipping the ones already registered.

Sessions and curations

A session is a raw conversation corpus. A curation judges raw sessions into a training dataset.

Command Description

akka optimize training sessions create -f CORPUS --source SOURCE

Upload a raw conversation corpus.

akka optimize training curations apply -f FILE

Start a curation run.

akka optimize training curations wait CURATION

Wait for a curation to finish.

akka optimize training curations get ID

Phase, counts, mean score and resulting dataset.

Evaluation

akka optimize eval covers datasets, experiments and the evaluators that score them.

Command Description

akka optimize eval datasets create -f FILE

Upload a dataset file and version it.

akka optimize eval datasets list

Datasets that have been imported, most recently imported first.

akka optimize eval datasets get ID

One dataset: what it holds, what scores it, and every version it has had.

akka optimize eval datasets items ID --version V

The items in one version of a dataset.

akka optimize eval datasets imports get ID

How far an import has got.

akka optimize eval experiments apply -f FILE

Start an experiment.

akka optimize eval experiments get ID

How far an experiment has got, and what it has found.

akka optimize eval experiments record ID

The finished record: the run’s report, or the numbers behind it.

akka optimize eval experiments item EXPERIMENT ITEM

One item’s run, and what each evaluator said about it.

akka optimize eval experiments compare ID --baseline ID

An experiment against a baseline, item by item.

akka optimize eval experiments history NAME

Every run of a recurring experiment, most recent first.

akka optimize eval evaluators list

Registered evaluators, their kind and their version.

Captures

akka optimize captures reads recorded interaction artifacts off a filesystem. The alias capture is accepted.

These commands serve debugging and diagnostics. They read artifacts from a directory on disk, which is where a capture written during local development or a support investigation lands.

Captures recorded in production are stored in a location the CLI cannot reach in this version. The commands below read a filesystem directory only.

Command Description

akka optimize captures list DIRECTORY

Every artifact in a directory, newest first.

akka optimize captures show ARTIFACT

One artifact, read forward.

Service status

Command Description

akka optimize status

Which services are answering, and at what address.

 

The features described in this section are an add-on to Akka Automated Operations. They are not included in the base product.