Recipes#
A recipe is a YAML description of a supported fine-tuning configuration. It binds a model, method, engine, accelerator requirement, training defaults, and engine-specific settings into a tested starting point for a job.
Recipes are packaged under /opt/aim_fine_tune/recipes in AIMFT images. Use --recipes-root or
AIMFT_RECIPES_ROOT to select a different recipe directory.
Recipe structure#
Each recipe contains three top-level mappings. metadata and defaults are
common recipe sections; engine_args is reserved for engine-specific
configuration.
metadataidentifies the recipe and its compatibility requirements.defaultsprovides runtime hyperparameter defaults.engine_argssupplies engine-specific configuration.
The common recipe structure is documented in the recipe schema reference.
engine reference pages document the accepted fields inside engine_args.
The metadata includes a stable recipeId, engine, model ID, AIM ID, method,
adapter mode, accelerator count, compatible accelerator IDs, and a status of
preview or validated.
metadata:
recipeId: aimfttk/sft/google-gemma-3-27b-it/lora/1gpu/default
status: preview
engine: aimfttk
modelId: google/gemma-3-27b-it
aimId: google/gemma-3-27b-it
method: SFT
isAdapter: true
acceleratorCount: 1
compatibleAccelerators: ["74a1", "74a9"]
defaults:
epochs: 1
learning_rate: 0.000005
per_accelerator_batch_size: 1
engine_args:
distributed_type: auto-deepspeed-stage1
Selection#
By default, the CLI detects the available accelerators and chooses a recipe that matches all of these dimensions:
Requested engine.
AIM model ID.
Accelerator device IDs and requested accelerator count.
Adapter or full-parameter mode, when it is specified.
When multiple recipes match, a validated recipe is preferred over a preview
recipe. The CLI reports an error rather than silently selecting an incompatible
recipe.
Inspect and pin recipes#
List the available recipes, optionally filtering to those compatible with the current environment:
uv run aim_fine_tune list-recipes
uv run aim_fine_tune list-recipes --compatible-only
uv run aim_fine_tune list-recipes --aim-id google/gemma-3-27b-it
Set --recipe-id or AIMFT_RECIPE_ID to pin one recipe. The pinned recipe must
still match the requested model, accelerator count, and hardware. For dry-run
rendering only, --allow-incompatible-recipe bypasses detected hardware
compatibility after those other constraints have been checked.