@basetenlabs/client - v0.2.0
    Preparing search index...

    Interface WeightsSource

    Configuration for a weights source in the new weights API.

    Uses a URI-based source field with a required scheme prefix:

    • hf:// -> HuggingFace (e.g., "hf://meta-llama/Llama-2-7b" or "hf://meta-llama/Llama-2-7b@main")
    • s3:// -> AWS S3 (e.g., "s3://bucket/path")
    • gs:// -> Google Cloud Storage (e.g., "gs://bucket/path")
    • azure:// -> Azure Blob Storage (e.g., "azure://account/container/path")
    • r2:// -> CloudFlare R2 Storage (e.g., "r2://account_id.bucket/path")
    • cw:// -> CoreWeave AI Object Storage (e.g., "cw://bucket/path")
    • https:// -> Direct URL download (e.g., "https://example.com/model.bin")

    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:

    • Using the auth section (required for OIDC and AWS AssumeRole): auth: auth_method: AWS_OIDC aws_oidc_role_arn: <role_arn> aws_oidc_region: or, for native AWS AssumeRole: auth: auth_method: AWS_ASSUME_ROLE aws_assume_role_arn: <role_arn> aws_assume_role_region:
    • Using auth_secret_name at the top level (or in the auth section)
    interface WeightsSource {
        allow_patterns?: string[] | null;
        auth?: WeightsAuth | null;
        auth_secret_name?: string | null;
        ignore_patterns?: string[] | null;
        mount_location: string;
        source: string;
        [k: string]: unknown;
    }

    Indexable

    • [k: string]: unknown
    Index
    allow_patterns?: string[] | null

    File patterns to include (e.g., ['*.safetensors']).

    auth?: WeightsAuth | null

    Authentication configuration for accessing the weights source.

    auth_secret_name?: string | null

    Baseten secret name containing credentials. Can also be specified in auth.auth_secret_name.

    ignore_patterns?: string[] | null

    File patterns to exclude (e.g., ['*.md']).

    mount_location: string

    Absolute path where weights will be mounted at runtime.

    source: string

    URI with scheme prefix. Use hf://, s3://, gs://, azure://, r2://, cw://, or https://. For HuggingFace, use

    suffix (e.g., hf://owner/repo@main).