2.6.0

ShardConfig

Package: flyte.prefetch

Configuration for model sharding.

Parameters

class ShardConfig(
    engine: typing.Literal['vllm'] = 'vllm',
    args: flyte.prefetch._hf_model.VLLMShardArgs = VLLMShardArgs(),
)

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameter Type Description
engine typing.Literal['vllm'] The sharding engine to use (currently only “vllm” is supported).
args flyte.prefetch._hf_model.VLLMShardArgs Arguments for the sharding engine.