Skip to content

vllm.config.mm_tensor_refs

Classes:

  • MMTensorRefsConfig –

    Configuration for features.kwargs_refs in /inference/v1/generate:

MMTensorRefsConfig

Configuration for features.kwargs_refs in /inference/v1/generate: processed multimodal tensors that clients upload to an S3-compatible store and reference by URI. Passing this config enables them.

Attributes:

max_concurrent_reads = Field(default=32, ge=1) class-attribute instance-attribute

How many requests per API server can download references at once. Default: 32.

max_object_bytes = Field(default=1 << 30, gt=0) class-attribute instance-attribute

The largest object the server downloads. Default: 1 GiB.

max_request_bytes = Field(default=1 << 30, gt=0) class-attribute instance-attribute

The largest total size of the objects one request references. A request over it fails with a 400 before anything is downloaded. Default: 1 GiB.

max_reserved_bytes = Field(default=8 << 30, gt=0) class-attribute instance-attribute

The memory one API server reserves for referenced tensors. Each request reserves twice the declared size of its objects, for the downloaded bytes and the decoded tensors, and keeps the reservation until it finishes, even if the client disconnects. Requests wait in arrival order until their reservation fits. Must be at least twice max_request_bytes. Default: 8 GiB.

s3_allowed_uri_prefix = '' class-attribute instance-attribute

The s3://bucket/prefix that every reference must be under. Required. Every caller of the endpoint can reference every object the server can read under it, so use one prefix per trust domain.