Skip to main content
Upload files to create a new checkpoint in FlexAI

Usage

flexai checkpoint push <checkpoint_name> [(--file <path_in_filesystem> ... | --file <path_in_filesystem>=<path_in_checkpoint> ...) | (--storage-provider <storage_provider_name> --source-path <source_path>)] [flags]

Arguments

ArgumentTypeRequiredDescription
checkpoint_namestringYesPushes a new Checkpoint to FlexAI from either the host machine running the FlexAI CLI or from a Remote Storage Provider Connection, such as Hugging Face, Amazon S3, Cloudflare R2 or GCP Cloud Storage.

Flags

FlagShortTypeDescription
--file-fkey-valuePushes a new Checkpoint to FlexAI from either the host machine running the FlexAI CLI or from a Remote Storage Provider Connection, such as Hugging Face, Amazon S3, Cloudflare R2 or GCP Cloud Storage. ‘Key=Value’ path pair: <path_in_filesystem>=<path_in_checkpoint>
--help-hbooleanDisplays this help page.
--source-pathstringThe path to the source checkpoint files.
--storage-providerstringThe name of the Remote Storage Provider Connection to use for the Checkpoint upload.
--verbose-vbooleanProvides more detailed output when pushing a Checkpoint.

Examples

Push checkpoint from local files

flexai checkpoint push my-checkpoint —file /path/to/checkpoint/
flexai checkpoint push my-checkpoint --file /path/to/checkpoint/

Push checkpoint from storage provider

flexai checkpoint push my-checkpoint —storage-provider my-s3-provider —source-path bucket-name/checkpoints/model/
flexai checkpoint push my-checkpoint --storage-provider my-s3-provider --source-path bucket-name/checkpoints/model/