vllm.multimodal.s3_transport
¶
Frontend transport for multimodal tensors in S3-compatible object stores.
Classes:
-
S3MMReader–Load client-provided multimodal tensors from an S3-compatible store.
-
S3MMReference–Reference to one processed multimodal tensor bundle in S3.
S3MMReader
¶
Load client-provided multimodal tensors from an S3-compatible store.
Endpoint and credentials come from the server environment: S3_ENDPOINT_URL
if set, otherwise the standard boto3 configuration. Every caller of the
endpoint can reference every object the server can read under
config.s3_allowed_uri_prefix.
Methods:
-
read–Fetch, bound, verify, and decode one referenced tensor bundle.
-
validate–Validate a reference and return its server-approved bucket and key.
read(reference)
¶
Fetch, bound, verify, and decode one referenced tensor bundle.
A missing, inaccessible or mismatched object raises the same error, so a caller can't learn about objects it doesn't already know.
Raises:
-
ValueError–If the reference is not allowed.
-
MMTensorTransportError–If the object can't be loaded or decoded.
-
RetryableRequestError–If the store failed or was unreachable.
validate(reference)
¶
Validate a reference and return its server-approved bucket and key.
S3MMReference
¶
Bases: BaseMMTensorReference
Reference to one processed multimodal tensor bundle in S3.
Attributes:
uri = Field(min_length=1, max_length=2048)
class-attribute
instance-attribute
¶
An s3://bucket/key URI under the configured s3_allowed_uri_prefix.