Skip to content

Storage models

Contains storage configuration models.

StorageConfig

Bases: BaseModel

Defines the storage configuration for model uploads.

Attributes:

Name Type Description
bucket_name str | None

The name of the bucket. None (default) means no bucket is configured and cloud uploads will be skipped.

upload_to_cloud bool

Whether to upload the model to the cloud.

object_prefix str

The object prefix in the bucket.

endpoint_url str | None

The complete URL to use for the storage client.

provider str

The cloud provider.

replace_existing_artifact bool

When True, upload proceeds even if the remote artifact already exists, relying on the provider's overwrite semantics. When False (default), uploading to an existing remote path raises FileExistsError before the upload is attempted.