Skip to main content
The ax post-train commands turn a project’s traces into a fine-tuned model and score it against a holdout set with an evaluator you already use. Training and serving run on a provider (Baseten by default); the dataset, experiment, and grades land in Arize.

Setup

Your Baseten workspace also needs an hf_access_token secret so it can load the base model.

ax post-train run

Run the whole chain: export, build, dataset, train, deploy, eval, undeploy.
Example:
The run is resumable: rerun the same command with the same --dir and it picks up after the last completed step. The deployment is removed when the run ends, and the experiment appears on the new dataset in Arize with the evaluator’s score for each holdout example.
Steps that spend money stop unless you pass --confirm. Use ax post-train plan first to see rows, tokens, and an estimated cost.

Running the steps one at a time

Each step reads and writes post-train.json in --dir, so you can run them separately, inspect the output in between, or mix them with the Arize UI.
Run any command with --help for its full list of options.

Providers

Baseten is the default and supports the full chain. Fireworks no longer accepts new fine-tuning jobs, so with --provider fireworks you can deploy and evaluate an existing model but not train a new one.
Last modified on December 2, 2026