vllm.model_executor.model_loader.sharded_state_loader
¶
Classes:
-
ShardedStateLoader–Model loader that directly loads each worker's model state dict, which
ShardedStateLoader
¶
Bases: BaseModelLoader
Model loader that directly loads each worker's model state dict, which
enables a fast load path for large tensor-parallel/pipeline-parallel models
where each worker only needs to read its own shard rather than the entire
checkpoint. See examples/features/sharded_state/save_sharded_state_offline.py
for creating a sharded checkpoint.
_filter_subtensors(tensors)
staticmethod
¶
Filter out all tensors that share the same memory or a subset of the memory of another tensor.