Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

truss migrate [OPTIONS] [TARGET_DIRECTORY]
Converts deprecated model_cache and external_data entries in config.yaml to the unified weights API. Truss prints a colorized diff of the change and asks for confirmation before writing it back to disk. The command is a no-op if config.yaml already defines weights or if it has neither model_cache nor external_data.

Arguments

TARGET_DIRECTORY
TEXT
A Truss directory containing config.yaml. Defaults to the current directory.
Examples: Preview and apply a migration in the current directory:
truss migrate
You should see a unified diff between the original and migrated config.yaml, then a prompt:
Apply these changes? [y/N]
Migrate a specific Truss directory:
truss migrate /path/to/my-truss
Run non-interactively (skip the prompt and apply the change) — useful in CI:
truss --non-interactive migrate