python -m fleet_rlm.optimize. See Commands to run it from a terminal instead.
Prerequisites
- A running Fleet RLM 0.15.0 backend and browser workspace. See Quickstart.
- An isolated Neon branch for optimization runs. Configure at least one of these:
FLEET_NEON_API_KEYandFLEET_NEON_PROJECT_ID, so Fleet creates an ephemeral branch for each run. SetFLEET_NEON_PARENT_BRANCH_IDto branch from a branch other than the project default.FLEET_OPTIMIZATION_DATABASE_URL, the URL of a Neon branch you created for optimization.- Neither, if you paste a branch URL each time you start a run.
- Optional:
FLEET_MLFLOW_TRACKING_URI, to log each run to MLflow. See Observability.
Targets
The target cards at the top of the page show what each target uses now: Promoted artifact, Env artifact (a path in
FLEET_SKILL_SELECTOR_PATH, FLEET_MEMORY_GATE_PATH, or FLEET_OPTIMIZED_PROGRAM_PATH), or Default baseline. Each card also shows the holdout score of the latest scored run.
The launch dialog also offers Skill revision evaluation. It checks a generated Skill against matching and swapped chart data with a model you choose. It produces a report only, and you can’t promote it.
Add a dataset
Each target has a built-in dataset. To use your own, open the Datasets tab and upload a JSONL file:- Choose the Target the dataset is for.
- Choose Upload a local file… and select a UTF-8
.jsonlfile. - Optionally, enter a Display name. Names must be unique.
- Choose a Storage backend: Neon backend (Object Storage + Postgres), or a Daytona Volume. The Daytona Volume option needs a Daytona API key (
FLEET_DAYTONA_API_KEYorDAYTONA_API_SERVICE_KEY) andFLEET_DAYTONA_DATASET_VOLUME, which defaults tofleet-eval-datasets. - Select Upload dataset.
- The file is at most 10 MiB and 2,000 rows.
rlmdatasets need at least 3 rows.skillsandmemorydatasets need at least 2.- Every row follows the row rules for its target. See Datasets.
- Either every row sets
splitor none does. Rows that share alineagemust stay in one split. - Fleet rejects a file that appears to contain credentials, such as API keys, bearer tokens, or Postgres URLs, with
Dataset appears to contain raw credentials or API keys; remove secrets before uploading.
422 with the line number and the reason, for example Line 4: RLM rows require a nonempty 'task'. A file over 10 MiB returns 413 with Dataset exceeds 10 MiB limit.
Select a dataset and choose Preview to see its rows, or Configure run to start a run with it. You can delete custom datasets, but not built-in ones or a dataset an active run is using.
Start a run
Select New Run at the top of the page, or Run on a target card, to open the New Optimization Run dialog.- Choose the Target and the Dataset. For Root RLM, the dataset can also be your past completed Neon runs. That option uses unverified answers, so a labeled dataset gives more reliable results.
-
Choose the Neon database isolation mode:
Fleet refuses a configured or custom URL that points at the serving database, for example with
Custom database URL matches the primary serving database; pass an isolated Neon branch URL. - Optionally, choose models for each role, such as Root LM (agent being optimized), Reflection LM (GEPA prompt editor), Judge LM (semantic grader), and Decision model. Pick from the providers you registered. Unset roles use your workspace models. ChatGPT plan models work in interactive chat only.
- Adjust the run options if you need to, such as the Random seed, Train ratio override, GEPA max metric calls, and Holdout repeats. They match the optimizer flags.
- Select Start optimization.
409 with Target '<target>' already has an active optimization job.
Monitor and cancel a run
A banner shows the active run, its stage, the baseline and candidate scores, and the latest optimizer output. A run moves throughqueued and running to completed, failed, or cancelled.
To stop a run, select Cancel run in the banner. Fleet stops the optimizer process and changes no live artifact.
Fleet marks a run failed with Optimization job timed out or worker restarted when its worker stops reporting for FLEET_OPTIMIZATION_HEARTBEAT_STALE_SECONDS (default 300).
The Runs tab lists past runs, with filters by target and status. Select a run to inspect it. When MLflow is configured, each run links to its MLflow run in the <FLEET_MLFLOW_EXPERIMENT>-optimization experiment.
Review the holdout gate
Fleet scores the baseline and the candidate on the holdout split, then checks a promotion gate. The candidate qualifies only when every check passes.
A row with
"blocking": true in an rlm dataset is a blocking case: if the candidate fails it, the gate fails.
A run that fails the gate saves no artifact, unless you started it with Save artifact even if holdout gate does not improve (—force).
Promote an artifact
Select Promote on a completed run, review the comparison with the currently active artifact, and select Promote live. Fleet validates the artifact’s SHA-256 and contents, then activates it on every API worker from the next Turn.- Promoting a run that saved an artifact but failed the gate requires you to confirm I understand and confirm promoting a non-qualifying candidate.
- A Skill Selector promotion always pins the decision model the run calibrated against. For a Memory Gate, you can turn the pin off. The pin applies only to that target.
- You can’t promote a run with no saved artifact, a
dspy.Flexrun, or a Skill revision evaluation.
FLEET_*_PATH variable. If Fleet can’t load a promoted artifact, it falls back to the environment or default artifact and keeps serving.
Roll back a target
Select Rollback on a target card, then choose what to restore:- Previous promotion reactivates the artifact promoted before the current one.
- Env / Default baseline clears the promoted override, so the target uses its
FLEET_*_PATHartifact or the default baseline again.
Related pages
- Commands: run the optimizer from a terminal.
- HTTP API reference: the
/api/optimizationsroutes behind this page. - Configure models: pin the decision model for calibrated artifacts.