Optionalallow_File patterns to include (e.g., ['*.safetensors']).
OptionalauthAuthentication configuration for accessing the weights source.
Optionalauth_Baseten secret name containing credentials. Can also be specified in auth.auth_secret_name.
Optionalignore_File patterns to exclude (e.g., ['*.md']).
Absolute path where weights will be mounted at runtime.
URI with scheme prefix. Use hf://, s3://, gs://, azure://, r2://, cw://, or https://. For HuggingFace, use
Configuration for a weights source in the new weights API.
Uses a URI-based
sourcefield with a required scheme prefix:For HuggingFace sources, you can specify a revision (branch, tag, or commit SHA) using the @{rev} suffix: "hf://owner/repo@revision"
Authentication can be specified either:
authsection (required for OIDC and AWS AssumeRole): auth: auth_method: AWS_OIDC aws_oidc_role_arn: <role_arn> aws_oidc_region:auth_secret_nameat the top level (or in theauthsection)